/* =========================================================
   Lemon & Hijos — homepage recreation
   ========================================================= */
:root {
  --dark:        #18151e;
  --dark-2:      #211d29;
  --yellow:      #f0e281;
  --yellow-soft: #f0e281;
  --mustard:     #d8c974;
  --mustard-h:   #cdbd61;
  --gray:        #e9e9e9;
  --gray-line:   #3a3543;
  --white:       #ffffff;
  --ink-muted:   #cfcad6;

  /* highlighter effect for highlighted text */
  --hl-grad: linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, #f1e181 45%);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 80px;
  --maxw: 1320px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }

/* =========================================================
   HEADER
   ========================================================= */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  color: var(--white);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
}

.nav-left { justify-self: start; }
.menu { display: flex; gap: 34px; }
.menu a {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 4px 0;
}
/* diagonal yellow line that strikes through the word.
   Fixed length + thickness for every item, centered on the word.
   Absolutely positioned so the word never moves and the link
   height is identical with or without the bar. */
.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 67px;
  height: 1px;
  background: var(--yellow);
  transform: translate(-50%, -50%) rotate(-16deg) scaleX(0);
  transform-origin: center center;
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
}
.menu a:hover::after,
.menu a:focus-visible::after,
.menu a.is-active::after {
  transform: translate(-50%, -50%) rotate(-16deg) scaleX(1);
}

/* ---------------------------------------------------------
   Priority / overflow nav (desktop) — injected by script.js.
   The .menu-more <li> + dropdown are created in JS so no
   per-page HTML edits are needed. Voices collapse one at a
   time from the right into this dropdown when they'd collide
   with the centered logo (collision-driven, see script.js).
   --------------------------------------------------------- */
.menu-more {
  position: relative;
  align-items: center;
  /* tuck the triangle close to the last still-visible voice
     (the menu gap is 34px; this leaves ~12px) */
  margin-left: -22px;
}
.menu-more[hidden] { display: none; }
.menu-more:not([hidden]) { display: inline-flex; }

.menu-more-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 6px 4px;
  cursor: pointer;
  color: var(--white);
  line-height: 0;
}
.menu-more-toggle svg {
  display: block;
  transition: transform .25s ease, color .2s ease;
}
.menu-more-toggle:hover svg,
.menu-more.is-open .menu-more-toggle svg,
.menu-more.has-active .menu-more-toggle svg { color: var(--yellow); }
.menu-more.is-open .menu-more-toggle svg { transform: rotate(180deg); }

.menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  background: var(--dark-2);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 200;
}
/* invisible bridge over the 10px gap so hover doesn't drop
   when the pointer travels from the triangle to the panel */
.menu-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.menu-more.is-open .menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.menu-dropdown li { width: 100%; }
.menu-dropdown a {
  /* inline-block so the box hugs the text — this makes the diagonal
     strike line (::after, left:50%) center on the WORD, not on the
     full-width dropdown panel */
  display: inline-block;
  padding: 9px 0;
  white-space: nowrap;
}

.brand { justify-self: center; }
.brand img { height: 22px; width: auto; }

/* longer translations (en/ca can run ~30% longer than es) must wrap, never overflow */
.hero h1, .section-title, .subhead, .svc-head .subhead { overflow-wrap: break-word; }

.social { display: flex; align-items: center; gap: 16px; }
.social--header { justify-self: end; }
.social a {
  color: var(--white);
  display: inline-flex;
  transition: color .2s ease, transform .2s ease;
}
.social a:hover { color: var(--yellow); transform: translateY(-1px); }

/* ---------------------------------------------------------
   Language switcher (injected by i18n.js). On desktop it sits
   in .header-right next to the social icons; on mobile it lives
   inside the hamburger panel (.lang-switch--mobile).
   --------------------------------------------------------- */
.header-right { display: flex; align-items: center; gap: 18px; justify-self: end; }

/* language switcher as a click-to-open dropdown (desktop header) */
.lang-switch { position: relative; display: inline-flex; align-items: center; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--white);
  padding: 6px 2px; line-height: 1;
  transition: color .2s ease;
}
.lang-toggle:hover,
.lang-switch.is-open .lang-toggle { color: var(--yellow); }
.lang-caret { transition: transform .25s ease; }
.lang-switch.is-open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: 100%; right: 0;
  margin-top: 10px;
  min-width: 154px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px;
  background: var(--dark-2);
  border: 1px solid var(--gray-line);
  border-radius: 4px;
  box-shadow: 0 14px 32px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 200;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li { width: 100%; }
.lang-opt {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: var(--ink-muted);
  padding: 8px 10px; border-radius: 3px; line-height: 1.2;
  transition: color .2s ease, background .2s ease;
}
.lang-opt:hover { color: var(--white); background: rgba(255,255,255,.06); }
.lang-opt.is-active { color: var(--yellow); }
.lang-switch--mobile { display: none; }

/* hamburger */
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 34px; height: 34px;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 24px;
  background: var(--white); border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--yellow);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 32px;
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 70px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--white);
  margin: 0 0 26px;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.hero-copy p {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
  color: var(--white);
  max-width: 560px;
  margin: 0 0 34px;
  text-shadow: 0 1px 10px rgba(0,0,0,.18);
}
.btn-hero {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--dark);
  background: var(--mustard);
  padding: 16px 34px;
  transition: background .2s ease, transform .2s ease;
}
.btn-hero:hover { background: var(--mustard-h); transform: translateY(-2px); }

.hero-art {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(46vw, 66vh, 560px);
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-art img { width: 100%; height: auto; display: block; }

.hero-scroll { display: none; }

/* =========================================================
   CARDS
   ========================================================= */
.cards {
  background: var(--gray);
  padding: 96px 32px 110px;
}
.cards-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px 80px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}
.card-art {
  width: 560px;
  max-width: 100%;
  aspect-ratio: 485 / 410;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.card-art img { width: 100%; height: 100%; object-fit: contain; }
.card:hover .card-art { transform: translateY(-8px) scale(1.03); }

.card-label {
  font-size: 44px;
  font-weight: 500;
  color: var(--dark);
  background: var(--hl-grad);
  padding: 2px 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* odd card out (Nosotros) spans the full width and centers under the pair */
.cards-grid .card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* =========================================================
   FOOTER
   ========================================================= */
#footer {
  background: var(--dark);
  color: var(--white);
  padding: 40px 32px 56px;
}
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto 36px;
  padding-bottom: 32px;
}
.footer-top ul {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}
.footer-top a {
  font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  transition: color .2s ease;
}
.footer-top a:hover { color: var(--yellow); }

.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.6fr;
  gap: 40px;
  align-items: start;
}
.footer-col--menu {
  border-right: 1px solid var(--gray-line);
  padding-right: 32px;
  text-align: right;
}
.footer-col--menu ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col--menu a {
  font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  transition: color .2s ease;
}
.footer-col--menu a:hover { color: var(--yellow); }
.footer-terms { margin: 26px 0 4px; }
.footer-terms a { font-size: 13px; color: var(--ink-muted); }
.footer-terms a:hover { color: var(--yellow); }
.footer-copy { margin: 0; font-size: 13px; color: var(--ink-muted); }

.footer-col--brand {
  text-align: center;
  border-right: 1px solid var(--gray-line);
  padding-right: 32px;
}
.footer-logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 52px;
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.footer-logo .amp {
  font-style: italic;
  font-weight: 500;
}
.footer-tagline {
  font-family: var(--serif);
  font-size: 18px;
  margin: 18px 0 0;
}

.contact-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.contact-block h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .1em;
  margin: 0 0 10px;
}
.contact-block p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-muted); }
.contact-block a { color: var(--ink-muted); transition: color .2s ease; }
.contact-block a:hover { color: var(--yellow); }
.social--footer { gap: 14px; margin-top: 4px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .footer-col--menu,
  .footer-col--brand { border-right: 0; padding-right: 0; text-align: center; }
  .footer-col--menu ul { align-items: center; }
  .contact-blocks { max-width: 360px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    padding: 0 20px;
    min-height: 64px;
  }
  .nav-toggle { display: flex; }
  .brand { justify-self: start; }
  .brand img { height: 19px; }
  .social--header { display: none; }
  .header-right { display: none; }
  .lang-switch--mobile {
    display: flex;
    gap: 6px;
    padding: 12px 24px 18px;
    border-top: 1px solid var(--gray-line);
  }
  .lang-switch--mobile .lang-opt {
    width: auto;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--white);
    opacity: .6;
    padding: 6px 8px;
    border-radius: 0;
  }
  .lang-switch--mobile .lang-opt:hover { opacity: 1; background: none; color: var(--white); }
  .lang-switch--mobile .lang-opt.is-active { opacity: 1; color: var(--yellow); }

  .nav-left {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--dark);
    border-top: 1px solid var(--gray-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .nav-left.open { max-height: 420px; }
  .menu {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .menu li { width: 100%; }
  .menu a {
    display: block;
    padding: 14px 24px;
    letter-spacing: .12em;
  }
  .menu a::after { display: none; }

  /* overflow nav is desktop-only; on mobile every voice lives
     in the hamburger list and script.js moves them all back */
  .menu-more { display: none !important; }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 22px 0;
    min-height: 0;
  }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 46px); }
  .hero-copy p { font-size: 18px; }
  .btn-hero { display: none; }
  .hero-art {
    position: relative;
    top: auto; right: auto;
    transform: none;
    width: min(78vw, 420px);
    align-self: flex-end;
    margin-top: -120px;
    opacity: .95;
    z-index: 0;
  }
  .hero-copy { z-index: 2; }
  .hero {
    padding-bottom: 56px;
  }
  .hero-scroll {
    display: flex;
    width: 46px; height: 46px;
    margin: 8px auto 0;
    align-items: center; justify-content: center;
    border: 1px solid rgba(24,21,30,.45);
    border-radius: 50%;
    color: var(--dark);
    position: relative;
    z-index: 3;
    animation: bob 1.8s ease-in-out infinite;
  }
  @keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

  .cards { padding: 64px 24px 72px; }
  .cards-grid { grid-template-columns: 1fr; gap: 48px; max-width: 360px; }
  .card-art { width: 220px; }
  .card-label { font-size: 20px; }

  .footer-logo { font-size: 44px; }
  .contact-blocks { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   INNER PAGES (Filosofía, Nosotros)
   ========================================================= */
/* Compact hero variant: heading left, shape right */
.hero--inner .hero-inner {
  min-height: 85vh;
  padding: 40px 32px;
  align-items: center;
}
.hero--inner .hero-copy { max-width: 58%; }
.hero--inner .hero-copy h1 {
  font-size: clamp(34px, 5.8vw, 80px);
  margin: 0;
}
.hero--inner .hero-art {
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  height: 92%;
  aspect-ratio: 485 / 410;
  width: auto;
  mix-blend-mode: multiply;
}
.hero--inner .hero-art img { width: 100%; height: 100%; object-fit: contain; }

/* Content section */
.page-section { background: var(--gray); padding: 4px 0 88px; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 40px; }

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.3rem;
  letter-spacing: -.005em;
  margin: 60px 0 8px;
  color: var(--dark);
}

.content-block { margin: 36px 0 0; }

.illustration {
  display: block;
  margin: 36px auto 52px;
  /* 100% bigger than the original clamp(220px, 32vw, 420px) */
  width: clamp(440px, 64vw, 840px);
  color: var(--dark);
}
.illustration svg,
.illustration img { width: 100%; height: auto; display: block; }

.subhead {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0 0 18px;
  color: var(--dark);
}
.subhead--lg { font-size: clamp(26px, 3vw, 38px); }

.lead {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 68ch;
  color: var(--dark);
}

.body-text {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 22px;
  max-width: 72ch;
  color: #2b2833;
}
.body-text.justify { text-align: justify; }
.body-text strong { font-weight: 700; color: var(--dark); }

.highlight-line { margin: 26px 0 4px; max-width: 72ch; line-height: 1.7; }

/* inline yellow highlight */
.hl {
  background: var(--hl-grad);
  padding: 0 .14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.divider {
  border: 0;
  border-top: 1px solid #b4b1ba;
  margin: 40px 0;
  max-width: 72ch;
}
.divider--wide { max-width: 100%; }

/* Trabajo client grid */
.trabajo-title { margin-top: 110px; }
.trabajo-intro { max-width: 82ch; margin-bottom: 30px; }
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 82px 36px;
  margin: 40px 0 0;
}
.client-name {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 1.4rem;
  letter-spacing: .01em;
  color: #acaaaf;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  transition: color .2s ease;
}
.client-name:hover { color: #17151f; }
.li-badge {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: #acaaaf;
  transition: fill .2s ease;
}
.client-name:hover .li-badge { fill: #68b090; }
.client-logo {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Servicios — duotone image with the title overlapping it (z-index layering) */
.svc-block { margin: 56px 0 0; }
.svc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  position: relative;
  margin: 0 0 26px;
}
/* image and title share one grid cell, so they stack and overlap */
.svc-media,
.svc-head .subhead { grid-area: 1 / 1; }
.svc-media {
  justify-self: end;          /* bigger image, pinned to the right */
  width: 68%;
  z-index: 1;                 /* sits behind the title */
}
.svc-media img { width: 100%; height: auto; display: block; }
.svc-head .subhead {
  justify-self: start;        /* title on the left, vertically centred */
  align-self: center;
  max-width: 52%;
  margin: 0;
  z-index: 2;                 /* sits on top of the image */
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
}

/* highlighted bullet list (each line gets the inline highlighter) */
.hl-list {
  list-style: none;
  margin: 4px 0 6px;
  padding: 0;
  max-width: 72ch;
  font-family: var(--serif);
  font-weight: 500;
}
.hl-list li { margin: 0 0 10px; line-height: 1.5; }
.hl-list li:last-child { margin-bottom: 0; }
.hl-list .hl { font-size: clamp(34px, 3vw, 40px); }

/* Video placeholder */
.video-embed {
  background: var(--yellow);
  padding: 28px;
  margin: 26px 0 4px;
  max-width: 920px;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #18151e;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Inner pages — responsive */
@media (max-width: 768px) {
  .hero--inner .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 22px 8px;
    min-height: 0;
  }
  .hero--inner .hero-copy { max-width: 100%; z-index: 2; }
  .hero--inner .hero-copy h1 { font-size: clamp(30px, 8vw, 40px); }
  .hero--inner .hero-art {
    position: relative;
    left: auto; right: auto;
    transform: none;
    height: auto;
    width: min(64vw, 320px);
    align-self: center;
    margin: 16px auto 4px;
    opacity: 1;
  }
  .hero--inner .hero-art img { width: 100%; height: auto; }

  .container { padding: 0 22px; }
  .section-title { margin-top: 44px; }
  .illustration { width: min(100%, 480px); margin: 28px auto 36px; }
  .lead, .body-text, .highlight-line, .divider, .trabajo-intro { max-width: 100%; }
  .page-section p { font-size: 1.1rem; }
  .body-text.justify { text-align: left; }
  .client-grid { grid-template-columns: 1fr; gap: 40px; }
  .client-name { font-size: 1.15rem; }
  .video-embed { padding: 16px; }

  /* service blocks stack: image on top, then heading, body, list */
  .svc-head,
  .svc-head--rev { display: block; }
  .svc-media { width: 100%; max-width: 100%; margin: 0 0 18px; }
  .svc-head .subhead { max-width: 100%; font-size: clamp(24px, 7vw, 34px); }
  .hl-list { max-width: 100%; }
}

/* Inner-page content paragraphs */
.page-section p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.8rem;
  line-height: 1.5em;
  letter-spacing: -1px;
}

/* =========================================================
   FOOTER LOGO (now a link to home)
   ========================================================= */
a.footer-logo { transition: color .2s ease; }
a.footer-logo:hover { color: var(--yellow); }

/* =========================================================
   TERMS PAGE
   ========================================================= */
.legal { background: var(--gray); padding: 60px 0 80px; }
.legal-inner { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.legal-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 6vw, 72px); line-height: 1.04;
  color: var(--dark); margin: 0 0 36px;
}
.legal-inner p {
  font-size: clamp(18px, 2vw, 24px); line-height: 1.55;
  color: var(--dark); margin: 0 0 26px; max-width: 64ch;
}
.legal-inner p a { color: var(--dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-inner p a:hover { color: #68b090; }

/* visually-hidden utility (for screen-reader-only labels) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
