/* GMF Tax Consulting — warm palette (paper, sand, evergreen, clay)
   with Newsreader for headings and Instrument Sans for text. */

:root {
  --paper: #f7f2eb;      /* page background */
  --sand: #ede3d6;       /* soft sections, light text on dark */
  --white: #ffffff;
  --deep: #263630;       /* evergreen: text + dark sections */
  --clay: #a9552f;       /* accent: buttons, rules, icons */
  --clay-dark: #8e4525;
  --clay-light: #d08a66; /* accents on evergreen */
  --on-clay: #fbf3ec;    /* body text on clay */
  --muted: #6a5f55;      /* secondary text */
  --gray: #716760;
  --line: rgba(38, 54, 48, 0.14);
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(38, 54, 48, 0.4);
  --glass: rgba(255, 255, 255, 0.14);

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;

  --gutter: clamp(20px, 5.5vw, 80px);
  --section-y: 112px;
  --stack: 56px;         /* heading → content */
  --heading-gap: 18px;
  --grid-gap: 24px;
  --card-pad: 32px;

  --fs-display: 66px;  --lh-display: 1.04;  /* Newsreader's caps run ~2% taller, so 66 matches the old 68 */
  --fs-h2: 44px;       --lh-h2: 1.1;
  --fs-h3: 22px;
  --fs-stat: 44px;
  --fs-callout: 38px;
  --fs-body-lg: 20px;
  --fs-body: 17px;
  --fs-eyebrow: 13px;
}

@media (max-width: 767px) {
  :root {
    --section-y: 72px;
    --stack: 36px;
    --heading-gap: 14px;
    --grid-gap: 16px;
    --card-pad: 24px;
    --fs-display: 42px;  --lh-display: 1.06;
    --fs-h2: 32px;       --lh-h2: 1.12;
    --fs-h3: 20px;
    --fs-stat: 32px;
    --fs-callout: 28px;
    --fs-body-lg: 18px;
    --fs-body: 16px;
    --fs-eyebrow: 12px;
  }
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--deep);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  letter-spacing: -0.01em; /* Instrument Sans runs a little wide; this keeps Figtree's line lengths */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; border-radius: 2px; }
.site-footer :focus-visible { outline-color: var(--sand); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--deep); color: var(--white); padding: 10px 16px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hand-placed line breaks and phone-only copy trims (from the Figma file) */
.br-mobile { display: none; }
@media (max-width: 767px) {
  .br-mobile { display: inline; }
  .br-desktop, .hide-mobile { display: none; }
}
/* Even out line lengths in running text (orphans are also prevented when pages build) */
p, li, blockquote, figcaption, summary, cite { text-wrap: pretty; }
/* Headings, titles and short descriptions: even line lengths */
h1, h2, h3, strong, summary, .creds__row span { text-wrap: balance; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ── Type ─────────────────────────────────────────────── */
.display, .h2, .h3, .stat {
  font-family: var(--font-display); font-weight: 400; color: var(--deep);
  font-optical-sizing: auto; text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: -0.03em; font-weight: 350; }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: -0.02em; font-weight: 350; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 450; }
.stat { font-size: var(--fs-stat); line-height: 1.1; letter-spacing: -0.02em; white-space: nowrap; }
.display em, .h2 em { font-style: italic; font-weight: 300; color: var(--clay); }
.callout { font: italic 300 var(--fs-callout)/1.25 var(--font-serif); color: var(--sand); text-wrap: balance; }
.body-lg { font-size: var(--fs-body-lg); line-height: 1.6; }
.small { font-size: 14px; line-height: 1.5; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font: 500 var(--fs-eyebrow)/1.4 var(--font-body);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--clay); flex: none; }

.heading { display: flex; flex-direction: column; gap: var(--heading-gap); align-items: flex-start; }
.heading--center { align-items: center; text-align: center; }
.heading .display { max-width: 900px; }
.heading .h2 { max-width: 1000px; }
.heading .body-lg { max-width: 640px; color: var(--muted); }

/* ── Sections & colour themes ─────────────────────────── */
.section { padding-block: var(--section-y); }
.section > .container { display: flex; flex-direction: column; gap: var(--stack); }

.theme-sand { background: var(--sand); }

.theme-deep { background: var(--deep); color: var(--sand); }
.theme-deep .h2, .theme-deep .h3 { color: var(--white); }
.theme-deep .eyebrow { color: var(--sand); }
.theme-deep .eyebrow::before { background: var(--clay-light); }
.theme-deep .heading .body-lg { color: var(--sand); }

/* ── Buttons & links ──────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 4px; border: 0;
  font: 500 16px/1.2 var(--font-body); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s ease, transform .15s ease;
}
.btn img { width: 18px; height: 18px; transition: transform .15s ease; }
.btn:hover img { transform: translateX(3px); }
.btn--primary { background: var(--clay); color: var(--white); }
.btn--primary:hover { background: var(--clay-dark); }
.btn--light { background: var(--sand); color: var(--deep); }
.btn--light:hover { background: var(--white); }
.btn--ghost { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: var(--white); box-shadow: inset 0 0 0 1px var(--deep); }
.btn--sm { padding: 12px 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 16px/1.2 var(--font-body); color: var(--deep); text-decoration: none;
}
.text-link img { width: 18px; height: 18px; transition: transform .15s ease; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover img { transform: translateX(3px); }

@media (max-width: 767px) {
  .btn { padding: 15px 24px; }
  .btn-row--stack { flex-direction: column; }
  .btn-row--stack .btn { width: 100%; }
}

/* ── Logo ───────────────────────────────────────────── */
/* Horizontal logo (symbol + wordmark) on the evergreen header; stacked lockup in the footer */
.site-logo { display: inline-flex; align-items: center; gap: 10px; }
.site-logo img { display: block; height: 42px; width: auto; }
.site-header__brand:hover .site-logo { opacity: 0.85; }
.site-footer__logo { display: block; width: 104px; height: auto; }
@media (max-width: 767px) {
  .site-logo { gap: 8px; }
  .site-logo img { height: 32px; }
  .site-footer__logo { width: 92px; }
}

/* ── Header / nav ─────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--deep); border-bottom: 1px solid var(--line-dark);
}
.site-header :focus-visible { outline-color: var(--sand); }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter); max-width: 1440px; margin-inline: auto;
}
.site-header__brand { text-decoration: none; flex: none; transition: opacity .2s ease; }
.site-nav__links { display: flex; gap: 36px; }
.site-nav__links a {
  position: relative; display: block; padding-block: 6px;
  font: 500 15px/1.2 var(--font-body); color: var(--sand); text-decoration: none; white-space: nowrap;
  transition: color .2s ease;
}
.site-nav__links a:hover { color: var(--white); }
.site-nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--clay-light); transform: scaleX(0); transition: transform .2s ease;
}
.site-nav__links a:hover::after, .site-nav__links a[aria-current='page']::after { transform: scaleX(1); }
.site-nav__book-mobile { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 24px; flex: none; }

.lang { display: flex; align-items: center; gap: 6px; font: 500 14px/1.4 var(--font-body); color: var(--sand); }
.lang a { color: var(--sand); text-decoration: none; padding: 4px 2px; transition: color .2s ease; }
.lang a:hover { color: var(--white); }
.lang a[aria-current] { color: var(--clay-light); text-decoration: underline; text-underline-offset: 3px; }

.menu-btn {
  display: none; background: none; border: 0; padding: 6px; margin: -6px; cursor: pointer; border-radius: 6px;
}
.menu-btn img { width: 24px; height: 24px; }

/* Collapse to the menu button when the full nav no longer fits */
@media (max-width: 1199px) {
  .menu-btn { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--deep); border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.45);
    display: none;
  }
  .site-header.is-open .site-nav { display: block; }
  .site-nav__links { flex-direction: column; gap: 0; }
  .site-nav__links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line-dark); }
  .site-nav__links a::after { left: 0; right: auto; width: 24px; bottom: 10px; }
  .site-nav__links a:hover::after { transform: scaleX(0); }
  .site-nav__links a[aria-current='page']::after { transform: scaleX(1); }
}
@media (max-width: 767px) {
  .site-header__bar { padding-block: 14px; }
  .site-header__actions { gap: 18px; }
  .site-header__book { display: none; }
  .site-nav__book-mobile { display: flex; width: 100%; margin-top: 20px; padding-block: 15px; }
}

/* ── Cards ────────────────────────────────────────────── */
.grid { display: grid; gap: var(--grid-gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1099px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
  padding: var(--card-pad); border-radius: 12px; background: var(--white);
}

.tile {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 10px; background: var(--sand);
}
.tile img { width: 28px; height: 28px; }
.tile--white { background: var(--white); }
.tile--glass { background: var(--line-dark); }
.tile--lg { width: 72px; height: 72px; }
.tile--lg img { width: 36px; height: 36px; }

/* ── Hero (404 page) ───────────────────────────────────── */
.hero { padding-block: 96px; }
.hero--center .container { align-items: center; text-align: center; gap: 32px; display: flex; flex-direction: column; }
.hero--center .display { max-width: 920px; }
.hero--center .body-lg { max-width: 600px; color: var(--muted); }
@media (max-width: 767px) { .hero--center { padding-block: 72px; } }

/* ── Home ─────────────────────────────────────────────── */
/* Welcome (hero): text on the left, photo bleeding off the right edge */
.welcome {
  display: grid; min-height: min(780px, calc(100vh - 80px));
  grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 600px) minmax(0, 600px) minmax(var(--gutter), 1fr);
}
.welcome__text {
  grid-column: 2; align-self: center; padding: 88px 64px 88px 0;
  display: flex; flex-direction: column; gap: 24px; align-items: flex-start;
}
.welcome__hello { font: italic 300 30px/1.1 var(--font-serif); color: var(--clay); }
.welcome .body-lg { max-width: 520px; color: var(--muted); }
.welcome .btn-row { margin-top: 8px; }
.welcome__photo { grid-column: 3 / 5; position: relative; margin: 0; min-height: 520px; }
.welcome__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 48% 35%; background: var(--sand);
  border-top-left-radius: 220px;
}
.nameplate {
  position: absolute; left: 32px; bottom: 32px; display: flex; flex-direction: column; gap: 2px;
  padding: 16px 22px; border-radius: 4px; background: rgba(247, 242, 235, 0.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nameplate__name { font: 450 19px/1.3 var(--font-display); color: var(--deep); }
.nameplate__meta { font: 500 12px/1.5 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 1099px) {
  .welcome { grid-template-columns: var(--gutter) minmax(0, 1.1fr) minmax(0, 0.9fr) 0; }
  .welcome__text { padding-right: 40px; }
  .welcome__photo img { border-top-left-radius: 160px; }
}
@media (max-width: 767px) {
  .welcome { grid-template-columns: var(--gutter) minmax(0, 1fr) var(--gutter); min-height: 0; }
  .welcome__text { grid-column: 2; padding: 48px 0 40px; gap: 24px; }
  .welcome__hello { font-size: 26px; }
  .welcome .btn-row { align-self: stretch; }
  .welcome__photo { grid-column: 1 / -1; min-height: 460px; }
  .welcome__photo img { border-top-left-radius: 96px; object-position: 48% 30%; }
  .nameplate { left: var(--gutter); right: var(--gutter); bottom: 20px; }
}

/* Credentials row under the hero */
.creds { border-bottom: 1px solid var(--line); }
/* Items take the width of their content; the two gaps between them are equal (1fr each)
   and the dividers sit in the middle of each gap, so the space on both sides of a line matches. */
.creds__row { display: grid; grid-template-columns: auto minmax(48px, 1fr) auto minmax(48px, 1fr) auto; }
.creds__row > li { grid-row: 1; display: flex; gap: 16px; align-items: flex-start; padding-block: 40px; }
.creds__row > li:nth-child(1) { grid-column: 1; }
.creds__row > li:nth-child(2) { grid-column: 3; }
.creds__row > li:nth-child(3) { grid-column: 5; }
.creds__row::before, .creds__row::after { content: ''; grid-row: 1; justify-self: center; width: 1px; background: var(--line); }
.creds__row::before { grid-column: 2; }
.creds__row::after { grid-column: 4; }
/* About: longer descriptions wrap instead of stretching their item, so the gaps stay generous */
.section .creds__row li > div { max-width: 290px; }
.creds__row li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.creds__row strong { font: 450 21px/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--deep); }
.creds__row span:not(.creds__icon) { font-size: 14px; line-height: 1.45; color: var(--muted); }
.creds__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--sand); }
.creds__icon img { width: 22px; height: 22px; }
.theme-sand .creds__icon { background: var(--paper); }
@media (max-width: 1099px) {
  .creds__row > li { padding-block: 28px; }
  /* About credentials stack as a list on tablets; three columns are too narrow for the Spanish titles */
  .section .creds__row { grid-template-columns: 1fr; }
  .section .creds__row > li { grid-column: 1; grid-row: auto; }
  .section .creds__row > li + li { border-top: 1px solid var(--line); }
  .section .creds__row::before, .section .creds__row::after { display: none; }
}
@media (max-width: 599px) {
  .creds__row { grid-template-columns: 1fr; }
  .creds__row > li:nth-child(n) { grid-column: 1; grid-row: auto; padding-block: 22px; }
  .creds__row > li + li { border-top: 1px solid var(--line); }
  .creds__row::before, .creds__row::after { display: none; }
}

/* Section heading with a link on the right */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.section-head .heading { max-width: 720px; }
.section-head .heading .body-lg { max-width: none; }

/* Services: uneven grid of clickable cards */
.bento { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: minmax(250px, auto); gap: var(--grid-gap); }
.bento__item { display: flex; }
.bento__item--feature { grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }
.service {
  position: relative; flex: 1; display: flex; flex-direction: column; gap: 24px;
  padding: 36px; border-radius: 12px; text-decoration: none; color: var(--muted);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 28px 48px -28px rgba(38, 54, 48, 0.55); }
.service__text { display: flex; flex-direction: column; gap: 8px; padding-right: 8px; }
.service__text .h3 { display: block; }
.service__go {
  position: absolute; top: 28px; right: 28px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white);
}
.service__go img { width: 18px; height: 18px; transition: transform .2s ease; }
.service:hover .service__go img { transform: rotate(-45deg); }

.service--deep { background: var(--deep); color: var(--sand); }
.service--deep .h3 { color: var(--white); }
.service--deep .service__go { background: var(--line-dark); }
.service--sand { background: var(--sand); }
.service--clay { background: var(--clay); color: var(--white); }
.service--clay .h3 { color: var(--white); }
.service--clay .service__go { background: var(--sand); }
.service--row { flex-direction: row; align-items: center; padding-right: 104px; }
.service--row .service__go { top: 50%; margin-top: -22px; }
.bento__item--feature .service__text { margin-top: auto; }
.bento__item--feature .h3 { font-size: 32px; line-height: 1.15; }
.bento__item--feature .service__text > span:last-child { font-size: var(--fs-body-lg); max-width: 340px; }

@media (max-width: 1099px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .bento__item--feature { grid-row: auto; grid-column: span 2; }
  .bento__item--feature .service { min-height: 300px; }
}
@media (max-width: 767px) {
  .bento { grid-template-columns: 1fr; }
  .bento__item--feature, .bento__item--wide { grid-column: auto; }
  .bento__item--feature .service { min-height: 280px; }
  .bento__item--feature .h3 { font-size: 26px; }
  .service { padding: 28px; }
  .service--row { flex-direction: column; align-items: flex-start; padding-right: 28px; }
  .service--row .service__go { top: 24px; margin-top: 0; }
  .service__go { top: 24px; right: 24px; }
}

/* IRS letter band: quote on the left, reassurance + button on the right */
.letter { padding-block: 112px; }
/* Left column hugs its content and the divider has 48px on both sides, so short headings don't leave a gap */
.letter__row { display: grid; grid-template-columns: fit-content(56%) minmax(0, 1fr); gap: 48px; align-items: center; }
.letter__quote { position: relative; font-size: 48px; line-height: 1.12; color: var(--white); max-width: 620px; }
.letter__quote::before {
  /* The opening mark sits in the flow just above the quote: the box is trimmed to the
     glyph's height so the gap below it is a deliberate margin, not empty em-box space. */
  content: '“'; display: block; height: 0.36em; margin-bottom: 0.24em; overflow: visible;
  font: italic 400 120px/1 var(--font-serif); color: var(--clay-light);
}
.letter__side {
  display: flex; flex-direction: column; gap: 28px; align-items: flex-start;
  padding-left: 48px; border-left: 1px solid var(--line-dark);
  font-size: var(--fs-body-lg); line-height: 1.6; color: var(--sand);
}
@media (max-width: 899px) {
  .letter__row { grid-template-columns: 1fr; gap: 40px; }
  .letter__quote { max-width: none; }
  .letter__side { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 767px) {
  .letter { padding-block: 72px; }
  .letter__quote { font-size: 34px; }
  .letter__quote::before { font-size: 96px; }
  .letter__side .btn { width: 100%; }
  .letter__row { text-align: center; }
  .letter__side { align-items: center; }
}

/* Duo: sticky intro on the left, list on the right (Why GMF, services, story) */
.section > .duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.duo__intro .h2 { max-width: 441px; }
.duo__intro { position: sticky; top: 128px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.duo__intro .btn { margin-top: 8px; }
.rows { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows li { display: flex; gap: 32px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.rows li > div { display: flex; flex-direction: column; gap: 8px; }
.rows .h3 { font-size: 22px; }
.rows p { color: var(--muted); }
.rows__num { flex: none; width: 56px; font: italic 400 44px/1 var(--font-serif); color: var(--clay); }
@media (max-width: 899px) {
  .section > .duo { grid-template-columns: 1fr; gap: 40px; }
  .duo__intro { position: static; }
}
@media (max-width: 767px) {
  .rows li { gap: 20px; padding-block: 24px; }
  .rows .h3 { font-size: 19px; }
  .rows__num { width: 40px; font-size: 34px; }
  .duo__intro .btn { width: 100%; }
}

/* Testimonials: middle card sits lower */
@media (min-width: 1100px) {
  .stagger { align-items: start; }
  .stagger > :nth-child(2) { margin-top: 56px; }
}

/* Closing invitation: navy panel with a personal contact card */
.invite {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center;
  padding: 72px; border-radius: 16px; background: var(--clay);
}
.invite__text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; width: 100%; max-width: 490px; }
.invite__text .h2 { color: var(--white); max-width: 560px; }
.invite__text .body-lg { color: var(--on-clay); max-width: 452px; margin-bottom: 10px; }
.invite__card {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 32px; border-radius: 12px; background: var(--glass); color: var(--on-clay);
}
.invite__face {
  width: 88px; height: 88px; border-radius: 50%; margin-bottom: 8px; border: 3px solid var(--sand);
  background: var(--line-dark) url('/assets/img/gabriel.jpg') 46% 17% / 350% no-repeat;
}
.invite__name { font: italic 400 30px/1.2 var(--font-serif); color: var(--white); }
.invite__link { display: inline-flex; align-items: center; gap: 10px; color: var(--on-clay); text-decoration: none; overflow-wrap: anywhere; }
.invite__link img { flex: none; filter: brightness(0) invert(1); opacity: 0.85; }
.invite__link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .invite { grid-template-columns: 1fr; padding: 56px 40px; gap: 40px; }
}
@media (max-width: 767px) {
  .invite { padding: 44px 24px; border-radius: 20px; }
  .invite__card { padding: 24px 16px; }
  .invite__link { font-size: 15px; }
  .invite__text .btn { width: 100%; }
  .invite { text-align: center; }
  .invite__text, .invite__card { align-items: center; }
  .invite__text { margin-inline: auto; }
}

/* ── Testimonials ─────────────────────────────────────── */
.testimonial { gap: 16px; transition: transform .2s ease, box-shadow .2s ease; }
.theme-sand .testimonial:hover { transform: translateY(-4px); box-shadow: 0 28px 48px -28px rgba(38, 54, 48, 0.35); }
.testimonial__mark { font: italic 400 var(--fs-callout)/1.25 var(--font-serif); color: var(--clay); }
.testimonial blockquote p { color: var(--deep); }
.testimonial figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.testimonial figcaption strong { font-weight: 500; line-height: 1.4; }
.testimonial figcaption span { color: var(--gray); line-height: 1.5; }

/* ── Closing section wrapper ───────────────────────────── */
.cta { padding-block: 96px; }
@media (max-width: 767px) { .cta { padding-block: 56px; } }

/* ── Inner pages ──────────────────────────────────────── */
/* Page hero: heading on the left, a supporting element on the right */
.page-hero { padding-block: 96px 88px; border-bottom: 1px solid var(--line); }
.page-hero__row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 80px; align-items: end; }
.page-hero__text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.page-hero__text .body-lg { max-width: 560px; color: var(--muted); }
.page-hero__text .btn { margin-top: 8px; }
.page-hero__note { max-width: 490px; color: var(--muted); }
.page-hero__icon { width: 48px; height: 48px; }
.page-hero--deep { background: var(--deep); border-bottom: 0; }
.page-hero--deep .page-hero__row { align-items: center; }
.page-hero--deep .display { color: var(--white); }
.page-hero--deep .page-hero__text .body-lg, .page-hero--deep .page-hero__note { color: var(--sand); }
.page-hero--deep .display em, .theme-deep .h2 em { color: var(--clay-light); }
@media (max-width: 899px) {
  .page-hero__row { grid-template-columns: 1fr; gap: 48px; align-items: start; }
}
@media (max-width: 767px) {
  .page-hero { padding-block: 56px; }
  .page-hero__text .btn { width: 100%; }
}

/* "On this page" index (Services hero) */
.jump { display: flex; flex-direction: column; }
.jump__label { font: 500 var(--fs-eyebrow)/1.4 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; }
.jump a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 18px; border-top: 1px solid var(--line);
  font: 400 22px/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--deep); text-decoration: none;
}
.jump a:last-child { border-bottom: 1px solid var(--line); }
.jump a img { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .2s ease; }
.jump a:hover { color: var(--clay); }
.jump a:hover img { transform: rotate(90deg) translateX(3px); }

/* Quote card (Tax Resolution hero) */
.quote-card { position: relative; margin: 0; padding: 44px 48px; border-radius: 12px; background: var(--sand); }
.quote-card::before {
  /* Same trick as the IRS band: trim the mark's box to the glyph so the gap below it
     matches the gap between the quote and the caption. */
  content: '“'; display: block; height: 0.36em; margin: 0 0 24px -0.04em; overflow: visible;
  font: italic 300 110px/1 var(--font-serif); color: var(--clay);
}
.quote-card .callout { color: var(--deep); font-size: 32px; }
.quote-card figcaption { margin-top: 24px; font: 500 14px/1.4 var(--font-body); color: var(--muted); }
@media (max-width: 767px) {
  .quote-card { padding: 32px 28px; }
  .quote-card::before { font-size: 92px; }
  .quote-card .callout { font-size: 26px; }
}

/* About: arched photo hero (shares the welcome layout) */
.welcome--about .welcome__photo img { object-position: 50% 30%; }
/* About: a little more room so "Melendez Fernandez" stays on one line under "Meet Gabriel" */
@media (min-width: 1100px) { .welcome--about .welcome__text { padding-right: 32px; } }
/* On phones the About heading scales with the screen so "Melendez Fernandez" fits on one line */
@media (max-width: 767px) { .welcome--about .display { font-size: min(var(--fs-display), 10.5vw); } }

/* About: story with a large lead paragraph */
.story { display: flex; flex-direction: column; gap: 20px; color: var(--muted); }
.story p:first-child { font: 300 28px/1.4 var(--font-display); letter-spacing: -0.01em; color: var(--deep); }
@media (max-width: 767px) { .story p:first-child { font-size: 23px; } }

/* About: timeline */
.timeline { border-top: 1px solid var(--line); }
.timeline > li { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-block: 36px; border-bottom: 1px solid var(--line); }
.timeline__date { font: italic 300 28px/1.15 var(--font-serif); color: var(--clay); }
.timeline__body { display: flex; flex-direction: column; gap: 8px; max-width: 680px; }
.timeline__body p { color: var(--muted); }
@media (max-width: 767px) {
  .timeline > li { grid-template-columns: 1fr; gap: 10px; padding-block: 28px; }
  .timeline__date { font-size: 22px; }
}

/* About: values on evergreen */
/* Same equal-gap layout as the credentials: items hug their content (max 340px), dividers centered in equal gaps */
.values { display: grid; grid-template-columns: auto minmax(48px, 1fr) auto minmax(48px, 1fr) auto; }
.values > li { grid-row: 1; display: flex; flex-direction: column; gap: 14px; padding-block: 8px; max-width: 340px; }
.values > li:nth-child(1) { grid-column: 1; }
.values > li:nth-child(2) { grid-column: 3; }
.values > li:nth-child(3) { grid-column: 5; }
.values::before, .values::after { content: ''; grid-row: 1; justify-self: center; width: 1px; background: var(--line-dark); }
.values::before { grid-column: 2; }
.values::after { grid-column: 4; }
.values .h3 { font: italic 300 34px/1.1 var(--font-serif); color: var(--white); }
.values p { color: var(--sand); }
.values .creds__icon { background: var(--line-dark); }
@media (max-width: 899px) {
  .values { grid-template-columns: 1fr; }
  .values > li:nth-child(n) { grid-column: 1; grid-row: auto; max-width: none; padding: 28px 0; border-top: 1px solid var(--line-dark); }
  .values > li:first-child { border-top: 0; padding-top: 0; }
  .values::before, .values::after { display: none; }
}

/* Credentials row used inside a section (About) */
.section .creds__row li { padding-block: 8px; }

/* Steps: numbered, with a rule above each */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; gap: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.steps__num { font: italic 300 52px/1 var(--font-serif); color: var(--clay); margin-bottom: 12px; }
.steps p { color: var(--muted); }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* Tax Resolution: issues grid */
.issues { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; padding: 0; list-style: none; }
.issues li { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-block: 36px; border-top: 1px solid var(--line); }
.issues p { color: var(--muted); }
.issues li > .creds__icon { margin-bottom: 6px; }
.issues__cta {
  align-self: start; margin-top: 24px; padding: 32px !important; border: 0 !important;
  border-radius: 12px; background: var(--clay); color: var(--on-clay);
}
.issues__cta .h3 { color: var(--white); }
.issues__cta p { color: var(--on-clay); }
.issues__cta .text-link { color: var(--white); margin-top: 12px; }
@media (max-width: 1099px) { .issues { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .issues { grid-template-columns: 1fr; } .issues li { padding-block: 28px; } }

/* FAQ */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 88px; align-items: start; }
.split__aside .lede a { color: var(--clay-dark); font-weight: 500; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 24px; cursor: pointer; list-style: none;
  font: 450 20px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 20px; height: 20px;
  background: url('/assets/icons/plus.svg') center / 20px no-repeat;
}
.faq[open] summary::after { background-image: url('/assets/icons/minus.svg'); }
.faq summary:hover { color: var(--clay); }
.faq__answer { padding-bottom: 24px; margin-top: -8px; max-width: 640px; color: var(--muted); }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 767px) { .faq summary { font-size: 18px; } }

/* ── Contact ──────────────────────────────────────────── */
.contact { padding-block: 88px 112px; }
.contact__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.contact__intro { display: flex; flex-direction: column; gap: 24px; }
.contact__intro .body-lg { color: var(--muted); }
.contact__details { margin-top: 16px; border-top: 1px solid var(--line); }
.contact__details li { display: flex; gap: 16px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.contact__details li > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact__details .label { font: 500 12px/1.4 var(--font-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact__details a, .contact__details p { color: var(--deep); text-decoration: none; overflow-wrap: anywhere; }
.contact__details a:hover { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.contact__details .creds__icon { width: 44px; height: 44px; }
.contact__details .creds__icon img { width: 20px; height: 20px; }
.contact__note { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: 8px; background: var(--sand); font-size: 15px; line-height: 1.5; color: var(--deep); }
.contact__note img { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.contact__note span { flex: 1; min-width: 0; }

/* Booking calendar (Google Calendar appointment schedule, embedded) */
.booking {
  min-width: 0; display: flex; flex-direction: column; gap: 20px;
  padding: 48px; border-radius: 12px; background: var(--white);
  box-shadow: 0 32px 64px -40px rgba(38, 54, 48, 0.35);
}
.booking__lead { color: var(--muted); max-width: 560px; }
.booking__zone { color: var(--muted); margin-top: -8px; }
.booking__frame { display: block; width: 100%; height: 880px; border: 0; border-radius: 8px; background: var(--paper); }
.booking__open { align-self: flex-start; }
.booking__soon { padding: 24px; border-radius: 8px; background: var(--sand); }
.booking__soon a { color: var(--deep); font-weight: 600; white-space: nowrap; }
.booking__note { max-width: 460px; color: var(--gray); }

@media (max-width: 1099px) {
  .contact__row { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 767px) {
  .contact { padding-block: 48px 72px; }
  .booking { padding: 28px 20px; }
  .booking__frame { height: 820px; }
}

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--deep); color: var(--sand); padding: 72px 0 32px; font-size: 14px; line-height: 1.5; }
.site-footer .container { display: flex; flex-direction: column; gap: 48px; }
/* Columns size to their content and share the leftover space evenly, so the gaps between them match. */
.site-footer__top { display: flex; justify-content: space-between; gap: 48px; }
.site-footer__brand { flex: none; width: 340px; display: flex; flex-direction: column; gap: 16px; }
.site-footer__col { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 14px; }
.site-footer__heading { font: 600 13px/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact img { flex: none; margin-top: 2px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap;
  padding-top: 48px; border-top: 1px solid var(--line-dark);
}
@media (max-width: 1099px) {
  .site-footer__top { flex-wrap: wrap; gap: 40px 48px; }
  .site-footer__brand { width: 100%; max-width: 420px; }
}
@media (max-width: 767px) {
  .site-footer { padding: 56px 0 28px; }
  .site-footer .container { gap: 36px; }
  .site-footer__top { flex-direction: column; gap: 36px; }
  .site-footer__heading { font-size: 12px; }
  .site-footer__bottom { flex-direction: column; padding-top: 36px; }
}

/* ── Entrance animations ───────────────────────────────── */
/* site.js tags elements with data-reveal and adds .is-in when they scroll into view.
   Only active when <html> has .js (set before paint), so no-JS visitors see everything.
   Uses the individual `translate`/`scale` properties so it never fights hover transforms. */
:root { --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1); --reveal-step: 90ms; }
.js [data-reveal] {
  opacity: 0; translate: 0 24px;
  transition: opacity 0.8s var(--reveal-ease), translate 0.8s var(--reveal-ease);
  transition-delay: calc(var(--reveal-i, 0) * var(--reveal-step));
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* Eyebrow labels: the clay rule draws in from the left as the label arrives */
.js .eyebrow[data-reveal]::before { scale: 0 1; transform-origin: left; transition: scale 0.7s var(--reveal-ease) 0.15s; }
.js .eyebrow[data-reveal].is-in::before { scale: 1 1; }

/* Hero photo: wipes up into view while the image settles from a slight zoom,
   then the name plate rises in */
.js .welcome__photo[data-reveal] { opacity: 1; translate: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--reveal-ease) 0.15s; }
.js .welcome__photo[data-reveal].is-in { clip-path: inset(0 0 0 0); }
.js .welcome__photo[data-reveal] img { scale: 1.08; transition: scale 1.6s var(--reveal-ease) 0.15s; }
.js .welcome__photo[data-reveal].is-in img { scale: 1; }
.js .welcome__photo[data-reveal] .nameplate { opacity: 0; translate: 0 12px; transition: opacity 0.6s var(--reveal-ease) 0.9s, translate 0.6s var(--reveal-ease) 0.9s; }
.js .welcome__photo[data-reveal].is-in .nameplate { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal]::before, .js .welcome__photo[data-reveal] img, .js .welcome__photo[data-reveal] .nameplate { opacity: 1 !important; translate: none !important; scale: none !important; clip-path: none !important; }
}

/* ── Utilities ────────────────────────────────────────── */
.center { text-align: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
