/* ============================================================
   O'DELL FAMILY IMMIGRATION LAW — styles.css
   PRIMARY   Forest Green  #228B22
   SECONDARY Emerald Green #50C878
   ACCENT    Gold          #A5733A
   Fonts: Playfair Display (headings) + Source Sans 3 (body)
   ============================================================ */

/* ── CUSTOM PROPERTIES ───────────────────────────────────── */
:root {
  /* ─ Forest Green — primary (buttons, borders, active) ─ */
  --forest:        #228B22;
  --forest-dark:   #1a6b1a;
  --forest-deeper: #145214;
  --forest-pale:   #e8f5e8;
  --forest-mid:    #2da82d;

  /* ─ Emerald — secondary (glows, highlights, CTAs) ─ */
  --green:         #50C878;
  --green-dark:    #3daf60;
  --green-deeper:  #228B22;   /* alias to forest for body link use */
  --green-pale:    #e8f5e8;   /* same as forest-pale */
  --green-mid:     #44bb6a;

  /* ─ Deep darks ─ */
  --dark:          #0C1A0C;
  --dark-mid:      #112611;
  --dark-light:    #1c3c1c;
  --dark-nav:      #0e200e;

  /* ─ Gold accent ─ */
  --gold:          #A5733A;
  --gold-light:    #C49050;
  --gold-dark:     #7a5220;
  --gold-pale:     #faf0dc;

  /* ─ Neutrals ─ */
  --cream:         #f6faf6;
  --cream-mid:     #e8f2e8;
  --white:         #ffffff;
  --border:        #cde4cd;
  --text:          #0f1f0f;
  --text-muted:    #446044;

  /* ─ Shadows ─ */
  --shadow-sm:  0 2px 8px  rgba(12,26,12,.1);
  --shadow-md:  0 6px 24px rgba(12,26,12,.15);
  --shadow-lg:  0 16px 48px rgba(12,26,12,.2);

  /* ─ Misc ─ */
  --radius:     8px;
  --radius-lg:  14px;
  --transition: 0.25s ease;
  --container:  1180px;
  --header-h:   72px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400; line-height: 1.7;
  color: var(--text); background: var(--white); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--forest); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--dark); }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .container { padding: 0 2rem; } }

.section { padding: 5rem 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--forest { background: var(--forest); color: var(--white); }
.section--forest h2, .section--forest h3 { color: var(--white); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-header h2 { margin-top: 0.5rem; }

/* ── SKIP LINK ───────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--green); color: var(--dark);
  padding: .5rem 1rem; border-radius: var(--radius);
  font-weight: 700; z-index: 9999; transition: top .2s;
}
.skip-link:focus { top: 1rem; color: var(--dark); }

/* ── SCROLL PROGRESS ─────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--forest);
  z-index: 9998; transition: width .1s linear;
}

/* ── SITE HEADER ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: transparent; }

.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 1rem; }

/* ── SITE LOGO ───────────────────────────────────────────── */
/*
  LOGO_FINAL.png has a black background.
  We wrap it in a small dark pill so it reads cleanly
  on the white header without floating as a hard square.
*/
.site-logo {
  display: inline-flex; align-items: center;
  flex-shrink: 0; text-decoration: none; line-height: 1;
}
.site-logo__img {
  height: 56px; width: auto; display: block;
  object-fit: contain; border-radius: 10px;
  background: var(--forest); padding: 4px;
}

/* Footer logo — larger, no extra padding needed */
.footer-logo-wrap {
  display: inline-flex; align-items: center;
  background: var(--forest); border-radius: var(--radius);
  padding: 6px; margin-bottom: 0.75rem;
}
.footer-logo-wrap .site-logo__img {
  height: 60px; width: auto; padding: 0; background: transparent;
}

/* ── MAIN NAV ────────────────────────────────────────────── */
.main-nav { display: none; }
@media (min-width: 960px) {
  .main-nav { display: flex; align-items: center; gap: 0.1rem; margin-left: auto; }
  .main-nav a {
    font-size: 0.88rem; font-weight: 600; letter-spacing: 0.03em;
    padding: 0.4rem 0.7rem; border-radius: var(--radius);
    color: var(--dark); transition: color var(--transition), background var(--transition);
  }
  .main-nav a:hover, .main-nav a[aria-current="page"] {
    color: var(--forest); background: var(--forest-pale);
  }
}

/* ── LANGUAGE TOGGLE ─────────────────────────────────────── */
.lang-switch {
  position: relative; display: inline-flex; align-items: center;
  background: var(--cream); border: 1.5px solid var(--forest);
  border-radius: 2rem; padding: 3px; gap: 0; flex-shrink: 0;
}
.lang-switch__pill {
  position: absolute; top: 3px; left: 3px;
  width: calc(50% - 3px); height: calc(100% - 6px);
  background: var(--forest); border-radius: 2rem;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1); pointer-events: none;
}
.lang-switch[data-active="es"] .lang-switch__pill { transform: translateX(100%); }
.lang-switch__btn {
  position: relative; z-index: 1; padding: 0.3rem 0.9rem;
  border: none; background: transparent;
  font-family: 'Source Sans 3', sans-serif; font-size: 0.8rem;
  font-weight: 800; letter-spacing: 0.07em; border-radius: 2rem;
  color: var(--text-muted); transition: color 0.2s; min-width: 36px;
}
.lang-switch__btn.is-active { color: var(--white); }
.drawer-lang .lang-switch { background: var(--cream-mid); }
.lang-float { position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 800; display: none; }
.lang-float.is-visible { display: inline-flex; }
.lang-float .lang-switch { background: var(--dark); border-color: var(--green); box-shadow: var(--shadow-md); }
.lang-float .lang-switch__btn { color: rgba(255,255,255,.6); }
.lang-float .lang-switch__btn.is-active { color: var(--dark); }
.lang-float .lang-switch__pill { background: var(--forest); }

/* ── NAV CTA ─────────────────────────────────────────────── */
.nav-cta { display: none; }
@media (min-width: 960px) {
  .nav-cta {
    display: inline-flex; align-items: center; padding: 0.55rem 1.2rem;
    background: var(--forest); color: var(--white) !important;
    font-weight: 700; font-size: 0.88rem; border-radius: var(--radius);
    white-space: nowrap; flex-shrink: 0;
    transition: background var(--transition), transform var(--transition);
  }
  .nav-cta:hover { background: var(--forest-dark); transform: translateY(-1px); color: var(--white) !important; }
}

/* ── NAV TOGGLE ──────────────────────────────────────────── */
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 8px;
  background: transparent; border: none; margin-left: auto; flex-shrink: 0;
}
.nav-toggle span { display: block; height: 2px; background: var(--dark); border-radius: 2px; transition: transform .25s, opacity .2s; }
.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); }
@media (min-width: 960px) { .nav-toggle { display: none; } }

/* ── MOBILE NAV DRAWER ───────────────────────────────────── */
.nav-drawer {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 850; padding: 1.5rem 1.25rem;
  overflow-y: auto; transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 0.25rem;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer ul { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-drawer a {
  display: block; padding: 0.85rem 1rem; font-size: 1.1rem; font-weight: 600;
  color: var(--dark); border-radius: var(--radius); border-bottom: 1px solid var(--border);
}
.nav-drawer a:hover { background: var(--forest-pale); color: var(--forest); }
.drawer-phone {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem;
  padding: 1rem; background: var(--dark); color: var(--white) !important;
  border-radius: var(--radius); font-weight: 700; font-size: 1.1rem; justify-content: center;
}
.drawer-phone svg { color: var(--green); }
.drawer-cta {
  display: block; margin-top: 0.75rem; padding: 0.9rem;
  background: var(--forest); color: var(--white) !important;
  font-weight: 700; font-size: 1rem; text-align: center; border-radius: var(--radius);
}
.drawer-lang {
  margin-top: 1.5rem; display: flex; align-items: center; gap: 0.75rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.drawer-lang span { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
@media (min-width: 960px) { .nav-drawer { display: none; } }

/* ── HERO SECTION ────────────────────────────────────────── */
/*
  globe_1.jpeg used as background: portrait 1800×2000, shows North America.
  Dark forest overlay keeps text readable and the green palette coherent.
*/
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(12,26,12,.92) 0%, rgba(28,60,28,.88) 50%, rgba(12,26,12,.94) 100%),
    url('assets/img/globe_1.jpeg') center center / cover no-repeat;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; padding-top: var(--header-h);
}

/* Subtle emerald shimmer layer */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 25%, rgba(80,200,120,.08) 0%, transparent 60%),
    radial-gradient(ellipse 35% 40% at 15% 80%, rgba(165,115,58,.06) 0%, transparent 60%);
}

/* ── Two-column grid ──────────────────────────────────────── */
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; align-items: center;
  padding: 4rem 0; width: 100%;
}
@media (min-width: 800px) {
  .hero__grid {
    grid-template-columns: 1fr auto;
    gap: 4rem; padding: 5rem 0;
    min-height: calc(100vh - var(--header-h));
  }
}

/* ── Text column ──────────────────────────────────────────── */
.hero__content { position: relative; z-index: 2; max-width: 620px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin-bottom: 1rem;
}
.hero__eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--green); }

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero__lead { font-size: 1.1rem; color: rgba(255,255,255,.78); max-width: 540px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero__phone {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--gold-light); font-weight: 700; font-size: 1.1rem;
}
.hero__phone:hover { color: var(--white); }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1);
}
.hero__trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: rgba(255,255,255,.65); font-weight: 600;
}
.hero__trust-item svg { color: var(--green); flex-shrink: 0; }

/* ── Logo panel (right column) ────────────────────────────
   LOGO_FINAL.png has a black background — card is dark to match.
   Gold border + glow complements the logo's gold scales.
*/
.hero__logo-panel {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero__logo-frame {
  background: var(--forest);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  box-shadow:
    0 0 0 1.5px rgba(165,115,58,.5),
    0 8px 40px rgba(0,0,0,.4),
    0 0 60px rgba(165,115,58,.12);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
  max-width: 420px; width: 100%;
}
.hero__logo-frame:hover {
  box-shadow:
    0 0 0 2px rgba(165,115,58,.8),
    0 16px 56px rgba(0,0,0,.5),
    0 0 80px rgba(165,115,58,.2);
  transform: translateY(-4px);
}
.hero__logo-img { width: 100%; max-width: 100%; height: auto; display: block; border-radius: 0; }
.hero__logo-tagline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--white);
  text-align: center; margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--forest-deeper);
  width: 100%;
}

@media (max-width: 799px) {
  .hero__logo-panel { order: -1; }
  .hero__logo-frame { padding: 0; max-width: 280px; overflow: hidden; }
  .hero__logo-img { max-width: 230px; }
}

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: calc(var(--header-h) + 3.5rem) 0 3.5rem;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(80,200,120,.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin: 0.5rem 0 1rem; }
.page-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 580px; margin: 0; }

/* ── STATUS HERO (thanks / 404) ──────────────────────────── */
.status-hero {
  background: var(--dark); min-height: 70vh;
  display: flex; align-items: center; padding-top: var(--header-h); text-align: center;
}
.status-hero h1 { color: var(--white); margin-bottom: 1rem; }
.status-hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; max-width: 520px; margin: 0 auto 1.5rem; }
.status-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; font-size: 2rem; color: var(--white);
}

/* ── PHOTO BAND ───────────────────────────────────────────
   Full-width cinematic image sections with dark overlay + centered text.
   Used between content sections to break the page visually.
*/
.photo-band {
  position: relative;
  min-height: 380px;
  display: flex; align-items: center;
  overflow: hidden;
}
.photo-band::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(12,26,12,.88) 0%, rgba(34,139,34,.7) 60%, rgba(12,26,12,.85) 100%);
  z-index: 1;
}
.photo-band__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-attachment: fixed; background-position: center;
}
/* Disable parallax on mobile (performance + Safari compat) */
@media (max-width: 768px) { .photo-band__bg { background-attachment: scroll; } }

.photo-band .container { position: relative; z-index: 2; text-align: center; padding: 4rem 2rem; }
.photo-band h2 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.photo-band p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 640px; margin: 0 auto 2rem; }

/* Specific photo band backgrounds */
.photo-band--constitution .photo-band__bg {
  background-image: url('assets/img/we_the_people.jpeg');
  background-position: center top;
}
.photo-band--flag .photo-band__bg {
  background-image: url('assets/img/page_from_passport.jpeg');
  background-position: center center;
}
.photo-band--globe .photo-band__bg {
  background-image: url('assets/img/globe_2.jpeg');
  background-position: center center;
}

/* ── IMAGE MOSAIC ─────────────────────────────────────────
   3-up photo grid for the "documents" section on homepage.
   Shows the immigration journey: foreign passport → green card → citizenship.
*/
.photo-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) { .photo-mosaic { grid-template-columns: repeat(3, 1fr); } }

.photo-mosaic__item {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
}
.photo-mosaic__item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
.photo-mosaic__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-mosaic__item:hover img { transform: scale(1.04); }
.photo-mosaic__item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,26,12,.55) 0%, transparent 50%);
}
.photo-mosaic__caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
  padding: 0.75rem 1rem; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--green);
}

/* ── EYEBROW LABELS ──────────────────────────────────────── */
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--forest); font-family: 'Source Sans 3', sans-serif;
}
.eyebrow--light  { color: var(--green); }
.eyebrow--gold   { color: var(--gold); }
.eyebrow--bar { display: flex; align-items: center; gap: 0.6rem; }
.eyebrow--bar::before { content: ''; display: inline-block; width: 24px; height: 2px; background: currentColor; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.75rem; font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem; font-weight: 700; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }

/* Primary — forest green */
.btn--green, .btn--gold, .btn--primary {
  background: var(--forest); color: var(--white); border-color: var(--forest);
}
.btn--green:hover, .btn--gold:hover, .btn--primary:hover {
  background: var(--forest-dark); border-color: var(--forest-dark); color: var(--white);
}

/* Emerald CTA — now matches forest green for consistency */
.btn--emerald {
  background: var(--forest); color: var(--white); border-color: var(--forest);
}
.btn--emerald:hover { background: var(--forest-dark); border-color: var(--forest-dark); color: var(--white); }

/* Dark */
.btn--dark, .btn--navy {
  background: var(--dark); color: var(--white); border-color: var(--dark);
}
.btn--dark:hover, .btn--navy:hover {
  background: var(--dark-light); border-color: var(--dark-light); color: var(--white);
}

/* Outline variants */
.btn--outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn--outline:hover { background: var(--dark); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }
.btn--outline-green { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--outline-green:hover { background: var(--forest); color: var(--white); }

/* ── SERVICE CARDS ───────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-top: 3px solid var(--forest); border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 48px; height: 48px; background: var(--forest-pale); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest); margin-bottom: 1rem;
}
.card h2, .card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--dark); }
.card p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.65; }
.card__link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.88rem; font-weight: 700; color: var(--forest); margin-top: 1rem;
}
.card__link:hover { color: var(--dark); }

/* ── VALUES / PILLARS ────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 600px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm); border-left: 3px solid var(--forest);
}
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.pillars-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .pillars-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }

.pillar { text-align: center; padding: 2rem 1.5rem; }
.pillar__icon {
  width: 56px; height: 56px; background: rgba(80,200,120,.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; color: var(--green);
}
.pillar h3 { font-size: 1rem; color: var(--white); margin-bottom: 0.5rem; }
.pillar p { font-size: 0.88rem; color: rgba(255,255,255,.6); margin: 0; }

/* ── ABOUT GRID ──────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 800px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-text h2 { margin: 0.5rem 0 1rem; }
.about-text p { color: var(--text-muted); }

/* ── SERVICE SECTION PHOTOS ───────────────────────────────
   Replaces SVG placeholder in I-130 / I-485 / I-751 sections.
   Portrait frame, subtle shadow, forest wash at bottom.     */
.service-photo {
  width: 100%; max-width: 420px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
  aspect-ratio: 3 / 4;
}
.service-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  display: block; transition: transform 0.6s ease;
}
.service-photo--landscape { aspect-ratio: 3 / 2; max-width: 100%; }
.service-photo:hover img { transform: scale(1.03); }
.service-photo::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(to top, rgba(12,26,12,.42), transparent);
  pointer-events: none;
}

/* ── BIO GRID (attorney page) ────────────────────────────── */
.bio-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 800px) { .bio-grid { grid-template-columns: 340px 1fr; } }

.bio-photo {
  aspect-ratio: 3/4; background: var(--cream-mid); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--border);
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.bio-text h2 { margin: 0.5rem 0 1rem; }
.bio-text h3 {
  font-size: 1rem; color: var(--forest); margin-bottom: 0.75rem;
  text-transform: uppercase; letter-spacing: .08em;
  font-family: 'Source Sans 3', sans-serif; font-weight: 700;
}
.credentials-list {
  display: flex; flex-direction: column; gap: 0.5rem; margin: 1.25rem 0;
  padding: 1.25rem; background: var(--forest-pale); border-radius: var(--radius);
  border-left: 3px solid var(--forest);
}
.credentials-list li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.93rem; color: var(--text);
}
.credentials-list li::before { content: '✦'; color: var(--forest); font-size: 0.7rem; margin-top: 0.2rem; flex-shrink: 0; }

/* ── FAQ ACCORDION ───────────────────────────────────────── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-category {
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700;
  color: var(--dark); margin: 1.75rem 0 0.25rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold); letter-spacing: .01em;
}
.faq-category:first-child { margin-top: 0; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.25rem 1.5rem; background: transparent; border: none;
  text-align: left; font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--dark);
  cursor: pointer; transition: background var(--transition);
}
.faq-question:hover { background: var(--forest-pale); }
.faq-item.is-open .faq-question { background: var(--dark); color: var(--white); }
.faq-question__icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest-pale); display: flex; align-items: center; justify-content: center;
  color: var(--forest); transition: background var(--transition), transform 0.3s, color var(--transition);
  font-size: 1rem; line-height: 1;
}
.faq-item.is-open .faq-question__icon { background: var(--forest); color: var(--white); transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(.4,0,.2,1); }
.faq-answer__inner {
  padding: 1rem 1.5rem 1.5rem; font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.75; border-top: 1px solid var(--border);
}
.faq-answer__inner p:last-child { margin-bottom: 0; }

/* ── CONTACT LAYOUT ──────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 380px; } }
.contact-sidebar { background: var(--dark); color: var(--white); border-radius: var(--radius-lg); padding: 2rem; }
.contact-sidebar h2 { color: var(--white); font-size: 1.3rem; margin-bottom: 0.75rem; }
.contact-sidebar h3 { color: var(--green); font-size: 0.9rem; text-transform: uppercase; letter-spacing: .07em; margin: 1.5rem 0 0.5rem; font-family: 'Source Sans 3', sans-serif; font-weight: 700; }
.contact-sidebar p { font-size: 0.93rem; color: rgba(255,255,255,.7); }
.contact-phone {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.25rem; font-weight: 700; color: var(--green) !important; margin: 1rem 0;
}
.contact-phone:hover { color: var(--white) !important; }
.remote-notice {
  background: var(--forest-pale); border: 1px solid rgba(34,139,34,.2);
  border-left: 3px solid var(--forest); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-bottom: 2rem; font-size: 0.9rem; color: var(--text);
}
.remote-notice strong { color: var(--dark); display: block; margin-bottom: 0.25rem; }

/* ── FORM ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.form-group label { font-size: 0.88rem; font-weight: 700; color: var(--dark); letter-spacing: 0.02em; }
.form-group label span { color: var(--forest); }
.form-group input, .form-group textarea, .form-group select {
  padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif; font-size: 0.95rem; color: var(--text);
  background: var(--white); width: 100%; appearance: none; -webkit-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(34,139,34,.1);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form-check-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem 0.75rem; margin-top: 0.25rem;
}
@media (min-width: 560px) { .form-check-grid { grid-template-columns: repeat(3, 1fr); } }
.form-check {
  display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
  font-size: 0.9rem; color: var(--text); line-height: 1.3;
}
.form-check input[type="checkbox"] {
  width: 1.1rem; height: 1.1rem; accent-color: var(--forest);
  cursor: pointer; flex-shrink: 0;
  appearance: auto; -webkit-appearance: auto;
}
.ohnohoney { display: none !important; }

/* ── INSIGHT CARDS ───────────────────────────────────────── */
.insight-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .insight-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .insight-grid { grid-template-columns: repeat(3, 1fr); } }
.insight-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.insight-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.insight-card__bar { height: 3px; background: var(--forest); }
.insight-card__body { padding: 1.5rem; }
.insight-card__tag { font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); display: block; margin-bottom: 0.5rem; }
.insight-card h2 a, .insight-card h3 a { color: var(--dark); }
.insight-card h2 a:hover, .insight-card h3 a:hover { color: var(--forest); }
.insight-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  padding: 5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(80,200,120,.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin: 0.5rem 0 1rem; }
.cta-banner p { color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto 2rem; }
.cta-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.3rem; font-weight: 700; color: var(--green); margin-bottom: 1.25rem; text-decoration: none;
}
.cta-phone:hover { color: var(--white); }

/* ── LEGAL CONTENT ───────────────────────────────────────── */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { font-size: 1.2rem; margin: 2.5rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content li { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; }
.legal-content a { color: var(--dark); text-decoration: underline; }

/* ── SITE FOOTER ─────────────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { font-size: 0.88rem; margin-top: 0.75rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-phone {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--green) !important; font-weight: 700; font-size: 1rem; margin-top: 0.75rem;
}
.footer-phone:hover { color: var(--white) !important; }
.footer-nav__title { font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.9rem; color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding: 1.5rem 0;
  display: flex; flex-direction: column; gap: 0.75rem;
}
@media (min-width: 800px) { .footer-bottom { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.footer-disclaimer { font-size: 0.8rem; color: rgba(255,255,255,.32); line-height: 1.6; max-width: 680px; margin: 0; }
.footer-copyright { font-size: 0.8rem; color: rgba(255,255,255,.28); white-space: nowrap; margin: 0; }
.footer-adv { font-size: 0.78rem; color: rgba(80,200,120,.5); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 0.5rem; }

/* ── BACK TO TOP ─────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 700;
  width: 44px; height: 44px; background: var(--dark); color: var(--green);
  border: 1.5px solid var(--forest); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-md);
}
.back-to-top.is-visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-2px); }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
[data-reveal] { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal="up"]    { transform: translateY(28px); }
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="fade"]  { transform: none; }
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.45s; }
[data-delay="5"] { transition-delay: 0.6s; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .photo-band__bg { background-attachment: scroll !important; }
  .lang-switch__pill { transition: none !important; }
}

/* ── PAGE TRANSITIONS ────────────────────────────────────── */
.page-enter { opacity: 0; }
.page-enter.is-ready { opacity: 1; transition: opacity 0.35s ease; }
.page-transition-out { opacity: 0; transition: opacity 0.22s ease; }

/* ── CLIENT JOURNEY TIMELINE ─────────────────────────────
   Vertical stepped timeline on mobile, alternating left/right
   on desktop. The connector line grows in via IntersectionObserver
   (triggered by .is-visible on the section). Each card slides
   in from the side when it enters the viewport via data-reveal.
   ──────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Vertical spine behind all items */
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;                        /* aligns with marker center */
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

/* Animated fill line — grows downward as page scrolls */
.timeline::after {
  content: '';
  position: absolute;
  left: 28px;
  top: 28px;
  width: 2px;
  height: 0%;
  background: var(--forest);
  z-index: 1;
  transition: height 1.6s cubic-bezier(.4,0,.2,1);
}
/* Trigger fill when section enters viewport */
.timeline.is-active::after { height: calc(100% - 56px); }

@media (min-width: 960px) {
  .timeline::before,
  .timeline::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ── Individual timeline item ────────────────────────────── */
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 1.5rem;
  padding-bottom: 2.5rem;
  z-index: 2;
}
.timeline__item--last { padding-bottom: 0; }

@media (min-width: 960px) {
  /* Alternating layout: odd items left, even items right */
  .timeline__item {
    grid-template-columns: 1fr 56px 1fr;
    gap: 0;
    align-items: start;
  }

  /* Odd: card left, marker center, empty right */
  .timeline__item:nth-child(odd) .timeline__marker  { grid-column: 2; grid-row: 1; }
  .timeline__item:nth-child(odd) .timeline__card    { grid-column: 1; grid-row: 1; text-align: right; padding-right: 2rem; }

  /* Even: empty left, marker center, card right */
  .timeline__item:nth-child(even) .timeline__marker { grid-column: 2; grid-row: 1; }
  .timeline__item:nth-child(even) .timeline__card   { grid-column: 3; grid-row: 1; padding-left: 2rem; }

  /* Mirror icon alignment on odd cards */
  .timeline__item:nth-child(odd) .timeline__card .timeline__icon { margin-left: auto; margin-right: 0; }
  .timeline__item:nth-child(odd) .timeline__card h3,
  .timeline__item:nth-child(odd) .timeline__card p { text-align: right; }
}

/* ── Marker (number bubble + connector line stub) ────────── */
.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  z-index: 3;
}

.timeline__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  transition: background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.35s;
}

/* Number fills with forest green when card comes into view */
.timeline__item.is-visible .timeline__num {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
  box-shadow: 0 0 0 5px rgba(34,139,34,.12);
}

/* The short stub line between number and next card — mobile only */
.timeline__line {
  flex: 1;
  width: 2px;
  background: transparent; /* spine is drawn by ::before pseudo */
  min-height: 1rem;
}

/* ── Card ────────────────────────────────────────────────── */
.timeline__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.timeline__card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(34,139,34,.25);
  transform: translateY(-2px);
}

/* Accent top border grows in on .is-visible */
.timeline__card::before {
  content: '';
  position: absolute;
  top: -1px; left: 16px; right: 16px;
  height: 3px;
  background: var(--forest);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1) 0.2s;
}
.timeline__item.is-visible .timeline__card::before { transform: scaleX(1); }

/* ── Icon inside card ────────────────────────────────────── */
.timeline__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--forest-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  margin-bottom: 0.75rem;
  transition: background 0.3s, color 0.3s;
}
.timeline__item.is-visible .timeline__icon {
  background: var(--forest);
  color: var(--white);
}

.timeline__card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}
.timeline__card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .timeline::after         { transition: none !important; }
  .timeline__card::before  { transition: none !important; transform: scaleX(1) !important; }
  .timeline__num           { transition: none !important; }
  .timeline__icon          { transition: none !important; }
  .timeline__card          { transition: none !important; }
}

/* ── UTILITY ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-green  { color: var(--green); }
.text-forest { color: var(--forest); }
.text-gold   { color: var(--gold); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.gold-rule { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0; }
.gold-rule::before, .gold-rule::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--forest), transparent);
}

/* ── FOCUS VISIBLE ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.btn:focus-visible,
.nav-cta:focus-visible {
  outline-color: var(--gold);
}
.skip-link:focus-visible {
  outline-color: #fff;
}

/* ── FORM ERROR MESSAGES ────────────────────────────────── */
.form-error {
  display: none;
  font-size: 0.82rem;
  color: #b91c1c;
  margin-top: 0.25rem;
  line-height: 1.4;
}
.form-group.has-error .form-error {
  display: block;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #b91c1c;
}
.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: none;
}
.form-status[data-form-status="success"] {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.form-status[data-form-status="error"] {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── PRINT STYLESHEET ───────────────────────────────────── */
@media print {
  header, footer, nav, .back-to-top, .scroll-progress,
  .nav-toggle, .nav-drawer, .lang-switch, .nav-cta,
  .photo-band, .cta-banner, button, .btn {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    font-family: "Source Sans 3", "Source Sans Pro", sans-serif;
  }
  body::before {
    content: "O'Dell Family Immigration Law, PLLC | (860) 751-1622 | attorneyodell@protonmail.com";
    display: block;
    text-align: center;
    margin-bottom: 1em;
    font-weight: bold;
    font-size: 11pt;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #444;
  }
  a[href^="tel:"]::after,
  a[href^="mailto:"]::after,
  a[href^="#"]::after {
    content: "";
  }
  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  h1, h2, h3 {
    page-break-after: avoid;
  }
}
