/* travelbrowsequartz.com — home + shared chrome */
:root {
  /* palette from images/logo.png: espresso #281808, teal #186868 / #184848, amber #E8A848 */
  --page: #FAF6EE;
  --band: #ECEAE4;
  --white: #FFFFFF;
  --ink: #281808;
  --muted: #5B4733;
  --teal: #186868;
  --teal-deep: #184848;
  --amber: #E8A848;
  --amber-soft: #F2C57A;
  --line: rgba(40, 24, 8, .14);
  /* aliases used by pages.css */
  --cream: var(--page);
  --mist: #E3EEEC;
  --honey: #F6E6C8;
  --amber-deep: #8A5712;
  --f-head: "Pathway Extreme", system-ui, sans-serif;
  --f-body: "Martel Sans", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: 16px;
  --edge: 12px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body { overflow-x: hidden; max-width: 100%; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  position: relative;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--f-head);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .45em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.45rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.lede { color: var(--muted); max-width: 34em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px;
  font-family: var(--f-head); font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: background-color .15s ease;
}
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-soft); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-deep); }
.text-link { font-family: var(--f-head); font-weight: 500; color: var(--teal-deep); }

/* pill aliases kept for subpages */
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-family: var(--f-head); font-weight: 600; text-decoration: none; }
.pill-teal { background: var(--teal); color: var(--white); }
.pill-teal:hover { background: var(--teal-deep); }

/* ---------- Header: white inset bar ---------- */
.site-header {
  position: relative; z-index: 20;
  padding: var(--edge) var(--edge) 0;
}
.site-header-over {
  position: absolute; left: 0; right: 0; top: 0;
  padding: calc(var(--edge) * 2) calc(var(--edge) * 2) 0;
}
.bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 8px 8px 18px;
  background: var(--white);
  border-radius: 10px;
}
.site-header:not(.site-header-over) .bar { border: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; }
.bar .brand img { height: 38px; width: auto; }
.bar-links { display: none; }
.bar-cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 999px;
  background: var(--teal); color: var(--white);
  font-family: var(--f-head); font-weight: 600; font-size: .95rem;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease;
}
.bar-cta:hover { background: var(--teal-deep); }
.bar-cta .ico { width: 16px; height: 16px; }

@media (min-width: 860px) {
  .bar { grid-template-columns: 1fr auto 1fr; min-height: 64px; padding-left: 22px; }
  .bar .brand img { height: 48px; }
  .bar-links { display: flex; gap: 6px; }
  .bar-links a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    color: var(--ink); text-decoration: none; font-family: var(--f-head); font-size: 1rem;
    border-radius: 6px;
  }
  .bar-links a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }
}
@media (max-width: 380px) {
  .bar { padding-left: 12px; }
  .bar .brand img { height: 32px; }
  .bar-cta { padding: 0 14px; font-size: .9rem; }
  .bar-cta .ico { display: none; }
}

/* ---------- Hero: inset rounded photo ---------- */
.hero {
  position: relative;
  margin: var(--edge) var(--edge) 0;
  min-height: clamp(560px, 86vh, 780px);
  border-radius: 14px;
  overflow: hidden;
  display: flex; align-items: flex-end;
  background: #6b5640;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(40, 24, 8, .7) 0%, rgba(40, 24, 8, .3) 45%, rgba(40, 24, 8, 0) 72%),
    linear-gradient(90deg, rgba(40, 24, 8, .45) 0%, rgba(40, 24, 8, 0) 55%);
}
.hero-copy {
  position: relative; z-index: 1;
  max-width: 700px;
  padding: 0 clamp(20px, 5vw, 64px) clamp(28px, 6vw, 64px);
  color: var(--white);
}
.hero h1 { color: var(--white); margin-bottom: .3em; font-size: clamp(2.3rem, 4.8vw, 3.7rem); }
.hero-copy p { font-size: 1.12rem; max-width: 30em; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.hero-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--white); font-family: var(--f-head); font-weight: 500;
}
.hero :focus-visible { outline-color: var(--white); }

/* ---------- Trip tiles ---------- */
.trips { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.trips h2 { margin-bottom: .25em; }
.tiles {
  list-style: none; margin: 28px 0 0; padding: 0 var(--gutter) 6px;
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
  gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.tiles li { scroll-snap-align: start; }
.tile {
  position: relative; display: block;
  aspect-ratio: 3 / 4;
  border-radius: 10px; overflow: hidden;
  background: var(--band);
  text-decoration: none;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-label {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: var(--white); color: var(--ink);
  font-family: var(--f-head); font-size: .95rem; white-space: nowrap;
  padding: 6px 14px; border-radius: 6px;
}
.tile:hover .tile-label { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }
@media (min-width: 640px) { .tiles { grid-auto-columns: 38%; } }
@media (min-width: 1000px) {
  .tiles {
    grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: var(--wrap); margin-inline: auto; overflow: visible;
  }
}

/* ---------- Packing-list columns on grey band ---------- */
.lists { background: var(--band); padding: clamp(56px, 8vw, 100px) 0; }
.lists-head { margin-bottom: clamp(28px, 4vw, 44px); }
.list-cols {
  display: grid; gap: 36px 40px;
  grid-template-columns: minmax(0, 1fr);
}
.pack { scroll-margin-top: 24px; }
.pack h3 { padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; }
.pack ul { list-style: none; margin: 0 0 10px; padding: 0; }
.pack li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}
.pack li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 14px; height: 14px;
  border: 1.5px solid var(--teal); border-radius: 3px;
}
.suits { font-size: .95rem; color: var(--muted); margin: 0; }
@media (min-width: 700px) { .list-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .list-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 56px; } }

/* ---------- How it works ---------- */
.how { padding: clamp(64px, 9vw, 112px) 0; }
.how-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.how-photo { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.how-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }
.steps { list-style: none; counter-reset: step; margin: 8px 0 28px; padding: 0; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--f-head); font-size: 1.15rem; font-weight: 600; color: var(--teal);
  line-height: 1.3;
}
.steps h3 { margin: 0 0 2px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 88px); }
  .how-photo { aspect-ratio: 4 / 5; }
}

/* ---------- FAQ ---------- */
.faq { padding: 0 0 clamp(56px, 8vw, 96px); }
.faq-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.faq-list { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 12px 0;
  font-family: var(--f-head); font-size: 1.08rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--teal); transition: transform .2s ease; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 40em; margin: 0 0 18px; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}

/* ---------- Closing CTA ---------- */
.closing { padding: 0 0 clamp(56px, 8vw, 96px); }
.cta-panel {
  display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--white);
  border-radius: 14px; overflow: hidden;
}
.cta-panel > img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cta-copy { padding: clamp(24px, 4vw, 52px); align-self: center; }
.cta-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); max-width: 16em; }
.cta-copy > p { color: var(--muted); max-width: 32em; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 6px 0 16px; }
.cta-note { font-size: .92rem; color: var(--muted); margin: 0; }
@media (min-width: 860px) {
  .cta-panel { grid-template-columns: 5fr 7fr; }
  .cta-panel > img { aspect-ratio: auto; min-height: 340px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(44px, 6vw, 72px); font-size: .97rem; }
.footer-top { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding-bottom: 36px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 32em; }
.footer-brand a { overflow-wrap: anywhere; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 8px; }
.footer-col a {
  display: inline-flex; align-items: center; min-height: 40px;
  color: var(--ink); text-decoration: none;
}
.footer-col a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  padding-top: 18px; padding-bottom: 28px;
  font-size: .9rem; color: var(--muted);
}
.footer-base p { margin: 0; }
@media (min-width: 760px) {
  .footer-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}

/* ---------- Header: Blog link stays visible on phones (WordPress build only) ---------- */
.bar-links .nav-blog[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (max-width: 859px) {
  .bar:has(.nav-blog) { grid-template-columns: 1fr auto auto; gap: 4px; }
  .bar-links:has(.nav-blog) { display: flex; }
  .bar-links:has(.nav-blog) a:not(.nav-blog) { display: none; }
  .bar-links .nav-blog {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
    color: var(--ink); font-family: var(--f-head); font-size: .95rem; text-decoration: none;
  }
}

/* ---------- From the blog (homepage, WordPress build only) ---------- */
.notes { padding: 0 0 clamp(56px, 8vw, 96px); }
.notes-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.notes-head .lede { margin-bottom: .6em; }
.notes-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--teal); }
.notes-item {
  position: relative;
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.notes-fig { display: block; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--band); }
.notes-fig img { width: 100%; height: 100%; object-fit: cover; }
.notes-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notes-label { font-size: .88rem; color: var(--amber-deep); }
.notes-title {
  font-family: var(--f-head); font-size: 1.12rem; line-height: 1.3; color: var(--ink); text-decoration: none;
}
.notes-title::after { content: ""; position: absolute; inset: 0; }
.notes-item:hover .notes-title { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.notes-meta { font-size: .88rem; color: var(--muted); }
@media (min-width: 900px) {
  .notes-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
  .notes-item { grid-template-columns: 168px minmax(0, 1fr); gap: 24px; padding: 18px 0; }
  .notes-title { font-size: 1.25rem; }
}
