/* =============================================================
   Somarriva Abogados — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --ink:        #12161d;
  --ink-soft:   #3b4250;
  --ink-mute:   #6b7280;
  --paper:      #faf9f6;
  --paper-2:    #f1ede6;
  --paper-3:    #ffffff;
  --cream:      #f6f1ea;
  --line:       rgba(18, 22, 29, 0.12);
  --line-soft:  rgba(18, 22, 29, 0.08);
  --line-dark:  rgba(246, 241, 234, 0.16);

  --accent:      #c8524a;
  --accent-600:  #a83a30;
  --accent-700:  #8a2e26;
  --accent-100:  #f7e9e7;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 84px;
  --container: 1240px;
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(18,22,29,0.06), 0 1px 1px rgba(18,22,29,0.04);
  --shadow-md: 0 12px 32px -12px rgba(18,22,29,0.22);
  --shadow-lg: 0 28px 60px -20px rgba(18,22,29,0.28);
}

@media (min-width: 720px) {
  :root { --nav-h: 92px; }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-weight: 500; font-family: var(--font-display); }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent-600); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--ink); color: var(--cream);
  z-index: 999; border-radius: 8px; font-weight: 600; font-size: .9rem;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-600);
  font-weight: 600;
}
.section-ink .eyebrow { color: #e7a29c; }
.eyebrow::before {
  content: "";
  width: 20px; height: 1px;
  background: currentColor;
}

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: .85rem; }
.section-head p { margin-top: 1rem; color: var(--ink-mute); font-size: 1.05rem; }
.section-ink .section-head p { color: rgba(246,241,234,0.72); }

.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head.centered .eyebrow::before,
.section-head.centered .eyebrow::after { content: ""; width: 20px; height: 1px; background: currentColor; }

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

/* reveal — only hidden when JS is actually running (see inline head script) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
/* failsafe: if main.js never booted, show everything rather than a blank page */
.no-js-fallback .reveal { opacity: 1 !important; transform: none !important; }

/* =============================================================
   4. Typography
   ============================================================= */
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
}
em, .em { font-style: italic; color: var(--accent-600); font-family: inherit; }
.section-ink em { color: #e7a29c; }

.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-mute); max-width: 62ch; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem;
  font-size: .95rem; font-weight: 600;
  border-radius: 999px;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary { background: var(--accent-600); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-700); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.section-ink .btn-ghost,
.hero .btn-ghost { border-color: var(--line-dark); color: var(--cream); }
.section-ink .btn-ghost:hover,
.hero .btn-ghost:hover { border-color: var(--cream); background: rgba(246,241,234,0.08); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-wa {
  background: #25d366; color: #06340f;
}
.btn-wa:hover { background: #21bd5a; transform: translateY(-1px); }
.btn-sm { padding: .65rem 1.15rem; font-size: .85rem; }

/* Cards */
.card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  /* opacity included so .card.reveal still fades in (this rule would otherwise
     override the shorthand transition declared on .reveal) */
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out), opacity .8s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card.is-tiltable:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(200,82,74,0.35);
  }
}
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-100);
  color: var(--accent-600);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.card p { color: var(--ink-mute); font-size: .96rem; }

/* number badge for differentiators */
.num {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--ink-mute);
  letter-spacing: .06em;
}

/* Stats */
.stats-band {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding-block: 2.75rem;
}
@media (min-width: 720px) { .stats-band { grid-template-columns: repeat(3, 1fr); } }
.stat { text-align: left; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  color: var(--cream);
  line-height: 1;
  display: flex; align-items: baseline; gap: .15rem;
}
.stat-value .suffix { color: var(--accent); font-size: .55em; }
.stat-label { margin-top: .6rem; color: rgba(246,241,234,0.68); font-size: .95rem; }

/* Recognitions strip */
.recognitions {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
  flex-wrap: wrap;
  padding-block: .5rem;
}
/* Full colour, per-logo heights so the four lockups read at a similar optical
   weight despite very different aspect ratios.
   Explicit height + width:auto (never height:auto) so the box is reserved from
   the width/height attributes before the lazy image loads — otherwise the strip
   collapses to 0px and shifts on load. */
.recognitions img,
.recognition-logo {
  width: auto;
  object-fit: contain;
  /* Altura por defecto: cualquier logo nuevo subido desde el panel se ve
     proporcionado aunque su nombre no coincida con las reglas de abajo. */
  height: 42px;
  max-width: 170px;
}
.recognition-logo[src*="wtr"]            { height: 42px; }
.recognition-logo[src*="leaders-league"] { height: 40px; }
.recognition-logo[src*="legal-500"]      { height: 54px; }
/* this asset ships with its own dark background baked in — round it so it
   reads as a deliberate chip rather than a raw rectangle */
.recognition-logo[src*="inta"] { height: 34px; border-radius: 5px; }

/* Service grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .service-link {
  margin-top: auto; padding-top: 1.15rem;
  font-size: .85rem; font-weight: 600; color: var(--accent-600);
  display: inline-flex; align-items: flex-end; gap: .4rem;
  min-height: 44px;
}
.service-card .service-link svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.service-card:hover .service-link svg { transform: translateX(3px); }

/* Service detail blocks (servicios.html) */
.service-detail {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  scroll-margin-top: calc(var(--nav-h) + 16px);
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .service-detail { grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: start; }
}
.service-detail:first-of-type { border-top: 0; }
.service-detail .service-num { font-family: var(--font-mono); color: var(--accent-600); font-size: .85rem; letter-spacing: .08em; }
.service-detail h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: .6rem; }
.service-detail-body p { color: var(--ink-mute); font-size: 1.02rem; max-width: 62ch; }
.service-detail-list {
  margin-top: 1.4rem;
  display: grid; gap: .65rem;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .service-detail-list { grid-template-columns: 1fr 1fr; } }
.service-detail-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .95rem; color: var(--ink-soft);
}
.service-detail-list svg { width: 16px; height: 16px; margin-top: .2rem; flex-shrink: 0; color: var(--accent-600); }

/* FAQ (native details/summary — works without JS) */
.faq-list { border-top: 1px solid var(--line); max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.35rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon {
  flex-shrink: 0; width: 26px; height: 26px;
  border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.faq-item .faq-icon svg { width: 12px; height: 12px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent-600); border-color: var(--accent-600); color: var(--cream); }
.faq-item p { padding-bottom: 1.35rem; color: var(--ink-mute); max-width: 62ch; }

/* CTA band */
.cta-band {
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 860px) { .cta-band { flex-direction: row; align-items: center; } }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band .cta-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Values grid */
.values-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.values-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .values-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- Header / Nav --- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header.is-solid { background: var(--paper); }
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 34px; width: auto; }
@media (min-width: 720px) { .brand img { height: 38px; } }

.brand img.logo-light { display: block; }
.brand img.logo-dark { display: none; }
.site-header.is-solid .brand img.logo-light { display: none; }
.site-header.is-solid .brand img.logo-dark { display: block; }

.nav-desktop { display: none; align-items: center; gap: clamp(1.4rem, 2.5vw, 2.4rem); }
@media (min-width: 960px) { .nav-desktop { display: flex; } }
.nav-desktop a {
  font-size: .93rem; font-weight: 500;
  position: relative;
  padding-block: .3rem;
  color: var(--ink-soft);
  transition: color .25s var(--ease-out);
}
.site-header:not(.is-solid) .nav-desktop a { color: rgba(246,241,234,0.88); }
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: currentColor; transition: right .3s var(--ease-out);
}
.nav-desktop a:hover::after, .nav-desktop a.is-active::after { right: 0; }
.nav-desktop a.is-active { color: var(--accent-600); }
.site-header:not(.is-solid) .nav-desktop a.is-active { color: var(--accent); }

.nav-cta { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 960px) { .nav-cta { display: flex; } }

/* language switcher — plain text, same treatment as the other nav links:
   active language matches the header's link color, the other one is dimmed */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: .45rem;
  line-height: 1;
}
.lang-opt {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-mute);
  transition: color .2s var(--ease-out);
}
.lang-opt:hover { color: var(--ink-soft); }
.lang-opt.is-on { color: var(--ink-soft); font-weight: 700; }
.lang-sep { color: var(--line); font-size: .8rem; }

.site-header:not(.is-solid) .lang-opt { color: rgba(246,241,234,.5); }
.site-header:not(.is-solid) .lang-opt:hover { color: rgba(246,241,234,.85); }
.site-header:not(.is-solid) .lang-opt.is-on { color: rgba(246,241,234,.95); }
.site-header:not(.is-solid) .lang-sep { color: rgba(246,241,234,.3); }

.lang-toggle-mobile {
  align-self: flex-start;
  margin-top: 1.1rem;
}
.lang-toggle-mobile .lang-opt { font-size: .95rem; color: rgba(246,241,234,.5); }
.lang-toggle-mobile .lang-opt:hover { color: rgba(246,241,234,.85); }
.lang-toggle-mobile .lang-opt.is-on { color: var(--cream); }
.lang-toggle-mobile .lang-sep { color: rgba(246,241,234,.3); }

/* mobile menu — checkbox hack, works without JS */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  z-index: 110;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.site-header:not(.is-solid) .nav-toggle { color: var(--cream); }

.nav-mobile {
  position: fixed; inset: 0;
  background: var(--ink);
  color: var(--cream);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;          /* keeps hidden links out of tab order + a11y tree */
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
  /* below .site-header (100) so the close button + logo stay visible and tappable */
  z-index: 90;
}
.nav-mobile > a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 1.9rem);
  line-height: 1.25;
  padding-block: .7rem;
  display: block;
  border-bottom: 1px solid var(--line-dark);
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.nav-mobile > a.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-mobile .nav-mobile-foot { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .8rem; }
/* CTA buttons inside the menu must not inherit the 2rem display font */
.nav-mobile .nav-mobile-foot .btn {
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.3;
  white-space: normal;
  padding: .9rem 1.4rem;
  border-bottom: 0;
}
/* the menu sits on the dark overlay — ghost buttons need light ink to be legible */
.nav-mobile .btn-ghost { border-color: var(--line-dark); color: var(--cream); }
.nav-mobile .btn-ghost:hover { border-color: var(--cream); background: rgba(246,241,234,0.08); }
.nav-toggle-input:checked ~ .nav-mobile { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
/* lock background scroll while the menu is open (JS adds .menu-open as fallback) */
html:has(.nav-toggle-input:checked), html.menu-open { overflow: hidden; }
.nav-toggle-input:checked ~ .site-header .nav-toggle .icon-burger { display: none; }
.nav-toggle-input:checked ~ .site-header .nav-toggle .icon-close { display: block; }
.nav-toggle-input:checked ~ .site-header .nav-toggle { color: var(--cream); }
.nav-toggle-input:checked ~ .site-header { background: transparent; box-shadow: none; border-color: transparent; backdrop-filter: none; }
/* menu open = dark overlay behind the header, so always use the light logo */
.nav-toggle-input:checked ~ .site-header .brand img.logo-light { display: block; }
.nav-toggle-input:checked ~ .site-header .brand img.logo-dark { display: none; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: clip;
}
.hero-page .hero { min-height: 62svh; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,22,29,0.55) 0%, rgba(18,22,29,0.42) 32%, rgba(18,22,29,0.78) 100%),
    linear-gradient(90deg, rgba(18,22,29,0.55) 0%, rgba(18,22,29,0.15) 55%);
}
.hero-inner { position: relative; z-index: 1; padding-block: calc(var(--nav-h) + 3rem) 4.5rem; width: 100%; }
.hero-kicker { color: rgba(246,241,234,0.85); }
.hero h1 {
  margin-top: 1.1rem;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  max-width: 18ch;
  text-wrap: balance;
}
.hero .lede { color: rgba(246,241,234,0.82); margin-top: 1.25rem; max-width: 56ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.hero-actions { margin-top: 2.1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-page .hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }

/* --- Simple page header (legal / credits pages) --- */
.page-head {
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: .85rem; max-width: 22ch; }
.page-head .lede { margin-top: 1rem; }
.page-head a.back-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-size: .88rem; font-weight: 600; color: var(--ink-mute); margin-bottom: .75rem; transition: color .2s var(--ease-out); }
.page-head a.back-link:hover { color: var(--accent-600); }
.page-head a.back-link svg { width: 15px; height: 15px; }

/* --- Footer --- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
@media (min-width: 720px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; } }
/* large enough that the "ABOGADOS" line in the lockup stays legible */
.footer-brand img { height: 42px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: rgba(246,241,234,0.65); max-width: 34ch; font-size: .95rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(246,241,234,0.55); margin-bottom: 1rem; font-weight: 600; }
.footer-col p { display: block; font-size: .96rem; color: rgba(246,241,234,0.85); margin-bottom: .65rem; }
/* generous tap area on touch screens (min 44px) */
.footer-col a {
  display: flex; align-items: center; min-height: 44px;
  font-size: .96rem; color: rgba(246,241,234,0.85);
  transition: color .2s var(--ease-out);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.75rem;
  display: flex; flex-direction: column; gap: .75rem;
  font-size: .82rem; color: rgba(246,241,234,0.5);
}
@media (min-width: 720px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-bottom a { color: rgba(246,241,234,0.65); display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom a:hover { color: var(--accent); }
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }

/* --- Contact page --- */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.95fr 1.15fr; gap: 4rem; } }
.contact-info-list { margin-top: 2rem; display: grid; gap: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-info-item h4 { font-family: var(--font-body); font-weight: 600; font-size: .95rem; margin-bottom: .25rem; }
.contact-info-item p { color: var(--ink-mute); font-size: .95rem; }
/* email / phone are primary mobile actions — keep them comfortably tappable */
.contact-info-item a {
  color: var(--ink-mute); font-size: .95rem;
  display: inline-flex; align-items: center; min-height: 44px;
  transition: color .2s var(--ease-out);
}
.contact-info-item a:hover { color: var(--accent-600); }

.map-embed { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 260px; border: 0; filter: grayscale(0.25) contrast(1.02); }

.form-card { background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-bottom: 1.1rem; }
@media (min-width: 620px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .45rem; }
.field .optional { font-weight: 400; color: var(--ink-mute); }
.field input, .field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  /* 16px minimum — anything smaller makes iOS Safari zoom in on focus */
  font-size: 16px;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
@media (min-width: 720px) {
  .field input, .field textarea { font-size: .96rem; }
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-600);
  box-shadow: 0 0 0 4px var(--accent-100);
}
.field textarea { resize: vertical; min-height: 130px; }
.consent-row { display: flex; align-items: flex-start; gap: .8rem; margin-block: 1.4rem; }
.consent-row input { margin-top: .15rem; width: 24px; height: 24px; accent-color: var(--accent-600); flex-shrink: 0; }
.consent-row label { font-size: .87rem; color: var(--ink-mute); padding-block: .25rem; cursor: pointer; }
.consent-row a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 2px; }
.form-note { margin-top: 1rem; font-size: .85rem; color: var(--ink-mute); }
.form-status { margin-top: 1rem; font-size: .9rem; font-weight: 600; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-error { color: var(--accent-700); }
.form-status.is-ok { color: #2f7a4d; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Legal / long-form pages --- */
.legal-content { max-width: 74ch; }
.legal-content h2 { font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: .85rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--ink-soft); margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1rem; display: grid; gap: .5rem; }
.legal-content li { color: var(--ink-soft); position: relative; padding-left: 1.3rem; }
.legal-content li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-600); }
.legal-updated { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-mute); margin-bottom: 2.5rem; display: block; }

/* --- Credits page --- */
.credits-list { display: grid; gap: 1rem; max-width: 74ch; }
.credits-list li { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; color: var(--ink-soft); }
.credits-list a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 2px; }

/* --- About page image block --- */
.about-figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }

.split-block { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .split-block { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }
.split-block.reverse { direction: rtl; }
.split-block.reverse > * { direction: ltr; }

/* =============================================================
   7. Effects
   ============================================================= */
[data-tilt] { will-change: transform; }

.marquee-track { display: flex; gap: clamp(2rem, 6vw, 4.5rem); animation: marquee 32s linear infinite; width: max-content; }
.marquee-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============================================================
   8. Responsive helpers already inlined above per component
   ============================================================= */

/* =============================================================
   9. Reduced-motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 60s; }
  .reveal { transition-duration: .25s; }
}
