/* =========================================================================
   Beyond Words Travel — Site Stylesheet
   Editorial · Restrained · Asymmetric
   Brand DNA pulled forward from the cotizacion template:
     - Fraunces (display) + Newsreader (body), both serif
     - Italic emphasis colored Pacific Moss (not just slanted)
     - Warmer ink/paper, dual rule weights, airier tracking
     - Amber-bordered editorial pull, soft-fog match-note
   ========================================================================= */

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Brand palette */
  --slate:        #3D4A52;
  --cobblestone:  #8A8070;
  --pacific-moss: #5B7065;
  --morning-fog:  #EAE7E2;
  --amber-stone:  #C4935A;

  /* Functional */
  --ink:         #2A2F33;            /* warm near-black for body */
  --paper:       #FAF8F4;            /* warm paper, cooler than fog */
  --fog-accent:  var(--morning-fog); /* reserved for accent panels */
  --rule:        rgba(61, 74, 82, 0.18);
  --rule-soft:   rgba(61, 74, 82, 0.08);
  --rule-strong: rgba(61, 74, 82, 0.55);

  /* Type */
  --serif:   'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --reading: 'Newsreader', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Rhythm */
  --measure: 64rem;
  --measure-wide: 76rem;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 16px; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* --- Base ---------------------------------------------------------------- */
body {
  font-family: var(--reading);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--amber-stone); color: var(--paper); }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--slate);
  letter-spacing: -0.008em;
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
}

/* The defining brand move: italic emphasis is pigmented, not just slanted. */
h1 em, h2 em, h3 em, h4 em,
.brand em,
.tagline em {
  font-style: italic;
  font-weight: 400;
  color: var(--pacific-moss);
}

p { max-width: 38em; }
p + p { margin-top: 1em; }

em { font-style: italic; }

a.inline-link {
  color: var(--amber-stone);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.25s ease;
}
a.inline-link:hover { opacity: 0.7; }

/* Section labels — small caps with airy tracking */
.eyebrow {
  font-family: var(--serif);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cobblestone);
  display: inline-block;
}

/* --- Layout primitives --------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--wide { max-width: var(--measure-wide); }

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section--tight {
  padding-top: calc(var(--section-y) * 0.6);
  padding-bottom: calc(var(--section-y) * 0.6);
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* --- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  max-width: var(--measure-wide);
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--slate);
}
.brand em {
  font-style: italic;
  font-weight: 400;
  color: var(--pacific-moss);
  letter-spacing: 0.18em; /* italics need slightly less */
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.nav a {
  font-family: var(--serif);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cobblestone);
  transition: color 0.25s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--slate); }
.nav a:focus-visible { outline: 1px solid var(--amber-stone); outline-offset: 4px; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}
.nav-toggle__bars {
  position: relative;
  width: 18px;
  height: 1px;
  background: var(--slate);
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--slate);
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top:  6px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: var(--gutter);
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 40;
  }
  .nav a { font-size: 0.95rem; letter-spacing: 0.28em; }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
}

/* --- Hero (home) --------------------------------------------------------- */
.hero {
  padding-top: clamp(4rem, 10vw, 8rem);
  padding-bottom: clamp(4rem, 10vw, 8rem);
}

.hero__eyebrow { margin-bottom: 1.6rem; }

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.014em;
  color: var(--slate);
  max-width: 16ch;
}
.hero__title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--pacific-moss);
}

.hero__sub {
  margin-top: 1.6rem;
  font-family: var(--reading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--slate);
  max-width: 38ch;
}

/* Hero entrance animation */
.hero__eyebrow,
.hero__title,
.hero__sub {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1.2s ease forwards;
}
.hero__title { animation-delay: 0.15s; }
.hero__sub   { animation-delay: 0.3s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__sub {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Sub-page hero */
.subhero {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.subhero__eyebrow { margin-bottom: 1.2rem; }
.subhero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--slate);
  max-width: 18ch;
}
.subhero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--pacific-moss);
}
.subhero__lede {
  margin-top: 1.4rem;
  font-family: var(--reading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 38em;
}

/* --- Positioning lede (amber-bordered editorial pull, from cotizacion) -- */
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
  color: var(--slate);
  max-width: 60ch;
  padding-left: clamp(1rem, 2vw, 1.6rem);
  border-left: 2px solid var(--amber-stone);
}

/* --- Numbered services list --------------------------------------------- */
.services {
  border-top: 1px solid var(--slate);
}
.service {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.6rem, 3.5vw, 2.4rem) 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s ease;
}
.service:last-child { border-bottom: 1px solid var(--slate); }
.service:hover { background: rgba(138, 128, 112, 0.045); }

.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--amber-stone);
  letter-spacing: 0.04em;
}

.service__body { min-width: 0; }
.service__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.18;
  margin-bottom: 0.55rem;
  color: var(--slate);
}
.service__desc {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 56ch;
}

.service__link {
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-stone);
  white-space: nowrap;
  align-self: center;
  transition: opacity 0.25s ease;
}
.service__link .arrow { display: inline-block; margin-left: 0.4em; transition: transform 0.3s ease; }
.service__link:hover { opacity: 0.75; }
.service__link:hover .arrow { transform: translateX(4px); }

@media (max-width: 720px) {
  .service {
    grid-template-columns: 3rem 1fr;
    grid-template-areas:
      "num   body"
      ".     link";
    row-gap: 0.6rem;
  }
  .service__num  { grid-area: num; }
  .service__body { grid-area: body; }
  .service__link { grid-area: link; align-self: start; }
}

/* --- Approach (single quiet pause) -------------------------------------- */
.approach .eyebrow { margin-bottom: 1.4rem; }
.approach__copy {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  color: var(--slate);
  max-width: 32em;
}
.approach__copy em {
  font-style: italic;
  font-weight: 400;
  color: var(--pacific-moss);
}

/* --- Access (typographic grid) ----------------------------------------- */
.access .eyebrow { margin-bottom: 1.2rem; }
.access__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 2.4rem;
  max-width: 22ch;
  color: var(--slate);
}

.access__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0 2.4rem;
  list-style: none;
  border-bottom: 1px solid var(--rule-soft);
}
.access__grid li {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--slate);
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule-soft);
}

/* --- About -------------------------------------------------------------- */
.about .eyebrow { margin-bottom: 1.4rem; }
.about__copy {
  font-family: var(--reading);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.65vw, 1.25rem);
  line-height: 1.65;
  color: var(--slate);
  max-width: 34em;
}
.about__copy p + p { margin-top: 1.1em; }

/* --- Walks teaser ------------------------------------------------------- */
.walks-teaser .eyebrow { margin-bottom: 1.2rem; }
.walks-teaser__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  max-width: 22ch;
  color: var(--slate);
}
.walks-teaser__copy {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 38em;
  margin-bottom: 1.6rem;
}

/* --- CTA link (text + arrow) ------------------------------------------- */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-stone);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: opacity 0.25s ease;
}
.cta-link .arrow { display: inline-block; transition: transform 0.3s ease; }
.cta-link:hover { opacity: 0.78; }
.cta-link:hover .arrow { transform: translateX(4px); }

/* --- Begin / contact CTA (full-bleed Slate) ---------------------------- */
.begin {
  background:
    linear-gradient(135deg, var(--slate) 0%, color-mix(in srgb, var(--slate) 88%, #2a3540) 100%);
  color: var(--paper);
  padding-top: clamp(4.5rem, 10vw, 8rem);
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
}
.begin .eyebrow { color: var(--amber-stone); margin-bottom: 1.4rem; }
.begin__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--paper);
  margin-bottom: 1.2rem;
  max-width: 18ch;
}
.begin__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--morning-fog);
}
.begin__sub {
  font-family: var(--reading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.55;
  color: rgba(234, 231, 226, 0.82);
  max-width: 36em;
  margin-bottom: 2.2rem;
}
.begin .cta-link { color: var(--amber-stone); }
.begin .cta-link:hover { color: #d8a878; }

/* --- Editorial sub-page sections --------------------------------------- */
.editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.editorial__block { max-width: 38em; }
.editorial__label {
  font-family: var(--serif);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cobblestone);
  margin-bottom: 0.9rem;
  display: block;
}
.editorial__heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  line-height: 1.18;
  margin-bottom: 1rem;
  color: var(--slate);
  letter-spacing: -0.005em;
}
.editorial__heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--pacific-moss);
}
.editorial__copy {
  font-family: var(--reading);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}
.editorial__copy p + p { margin-top: 1em; }
.editorial__copy strong { font-weight: 500; color: var(--slate); }

/* Two-column editorial on wider screens */
@media (min-width: 720px) {
  .editorial--two-up {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

/* Match-note: italic editorial callout (from cotizacion) */
.match-note {
  margin-top: 2.4rem;
  padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.6rem, 3.5vw, 2.2rem);
  background: var(--morning-fog);
  border-left: 3px solid var(--amber-stone);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--slate);
  max-width: 52em;
}
.match-note strong {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cobblestone);
  margin-bottom: 0.7rem;
}

/* Plain typographic list inside editorial */
.list-plain {
  list-style: none;
  margin-top: 1rem;
}
.list-plain li {
  font-family: var(--serif);
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 1.02rem;
  color: var(--slate);
}
.list-plain li:last-child { border-bottom: 1px solid var(--rule-soft); }

/* --- Walks page specifics ---------------------------------------------- */
.walks-frame {
  border: 1px solid var(--rule-strong);
  background: rgba(138, 128, 112, 0.05);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.walks-frame__label {
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cobblestone);
}
.walks-frame__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--slate);
}
.walks-frame__meta {
  font-family: var(--reading);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--cobblestone);
}

/* --- Contact form area -------------------------------------------------- */
.contact-form {
  margin-top: 2rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--rule-strong);
  background: rgba(255, 255, 255, 0.4);
}
.contact-form p {
  font-family: var(--reading);
  color: var(--ink);
  font-size: 0.95rem;
  max-width: none;
}
.contact-direct {
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--slate);
}
.contact-direct a {
  color: var(--amber-stone);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  font-style: normal;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--slate);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
  color: var(--cobblestone);
  font-size: 0.92rem;
}
.site-footer__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}
.site-footer__brand .brand { display: block; margin-bottom: 0.9rem; }
.site-footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 24ch;
}
.site-footer h4 {
  font-family: var(--serif);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cobblestone);
  margin-bottom: 1rem;
}
.site-footer ul {
  font-family: var(--serif);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.site-footer a { color: var(--slate); transition: color 0.25s ease; }
.site-footer a:hover { color: var(--amber-stone); }

/* Social icons (footer Follow column) */
.social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--cobblestone);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.social-icons a:hover {
  color: var(--amber-stone);
  border-color: var(--amber-stone);
  transform: translateY(-1px);
}
.social-icons svg { display: block; }

.site-footer__legal {
  max-width: var(--measure-wide);
  margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-family: var(--reading);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--cobblestone);
}
.site-footer__legal p { max-width: 60ch; }

@media (max-width: 720px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* --- Skip link (a11y) --------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--slate);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- Focus states ------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--amber-stone);
  outline-offset: 4px;
}
