/* ============================================================
   AMI Realty & Finance, Inc. - Site Stylesheet
   Plain CSS, no build step. Organized top to bottom:
   1. Design tokens (CSS variables)
   2. Base / reset
   3. Utilities (container, buttons, section shells)
   4. Header + navigation (transparent -> solid, dropdowns, mobile)
   5. Hero
   6. Section-specific styles
   7. Forms
   8. Footer
   9. Toast, focus states, reduced motion
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colors (exact values from brand spec) */
  --navy: #001028;          /* primary background */
  --navy-deep: #000a1a;     /* footer / darker panels */
  --gold: #B78658;          /* primary gold */
  --gold-light: #C89060;    /* gold highlight on dark backgrounds */
  --gold-dark: #8A5E2A;     /* gold for TEXT on light backgrounds (WCAG AA) */
  --white: #FFFFFF;

  /* Supporting neutrals */
  --ink: #1C2536;           /* body text on white */
  --ink-soft: #4A5568;      /* secondary text on white */
  --mist: #F7F5F1;          /* warm off-white alt background */
  --line-dark: rgba(255, 255, 255, 0.14);  /* hairlines on navy */
  --line-light: rgba(0, 16, 40, 0.12);     /* hairlines on white */

  /* Typography */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --header-h: 76px;
  --radius: 6px;
  --speed: 150ms;           /* standard instant-feel feedback */
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }

/* Skip link: visually hidden until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Utilities ---------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; }

/* Alternating section themes: white <-> navy with gold accents */
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: var(--gold-light); }
.section--white { background: var(--white); }
.section--white h2 { color: var(--navy); }

/* Small gold eyebrow label above section headings */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.section--white .eyebrow { color: var(--gold-dark); }
.section--navy .eyebrow { color: var(--gold-light); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.82); }
.section--white .section-head p { color: var(--ink-soft); }

/* Thin gold rule used under headings */
.gold-rule {
  width: 56px; height: 2px; border: 0;
  background: var(--gold);
  margin: 1.2rem 0 1.4rem;
}
.section-head--center .gold-rule { margin-left: auto; margin-right: auto; }

/* Buttons: instant, subtle feedback only (150ms color/border shift) */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--speed), border-color var(--speed), color var(--speed);
}
/* Primary CTA: solid gold with navy text */
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); color: var(--navy); }
.btn--outline-light { border-color: rgba(255,255,255,0.6); color: var(--white); background: transparent; }
.btn--outline-light:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn--outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline-dark:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

/* Buttons that are links inside themed sections: the `.section--navy a`
   and `a { }` link-color rules outrank the button classes above, so
   these higher-specificity rules restore the intended button text colors. */
.section--navy .btn--gold, .section--white .btn--gold { color: var(--navy); }
.section--navy .btn--gold:hover, .section--white .btn--gold:hover { color: var(--navy); }
.section--navy .btn--outline-light { color: var(--white); }
.section--navy .btn--outline-light:hover { color: var(--gold-light); }
.section--white .btn--outline-dark { color: var(--navy); }
.section--white .btn--outline-dark:hover { color: var(--gold-dark); }

/* "Explore" text link with arrow, used as each section's CTA */
.explore {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color var(--speed), border-color var(--speed);
}
.explore::after { content: " \2192"; }  /* right arrow */
.section--white .explore { color: var(--gold-dark); }
.section--white .explore:hover { color: var(--navy); }
.section--navy .explore { color: var(--gold-light); }
.section--navy .explore:hover { color: var(--white); }

/* Generic card grid */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line-light);
  border-top: 2px solid var(--gold);
  background: var(--white);
  transition: border-color var(--speed), box-shadow var(--speed);
}
.card:hover { box-shadow: 0 2px 14px rgba(0, 16, 40, 0.08); }
.section--navy .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-dark);
  border-top-color: var(--gold);
}
.section--navy .card:hover { border-color: rgba(255,255,255,0.3); box-shadow: none; }
.card h3 { margin-top: 0.25rem; }
.card p { font-size: 0.97rem; }
.section--navy .card p { color: rgba(255,255,255,0.8); }
.section--white .card p { color: var(--ink-soft); }

/* ---------- 4. Header + navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  /* Motion is reserved for state changes: hide/show + color change */
  transition: background-color 250ms, box-shadow 250ms, transform 250ms;
}
/* Solid state once scrolled past the hero */
.site-header.is-solid {
  background: var(--navy);
  box-shadow: 0 1px 0 var(--line-dark);
}
/* Hidden state while scrolling down */
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* logo | centered nav | phone */
  align-items: center;
  gap: 3rem;   /* breathing room between the logo block and the nav */
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-left: 0.8rem;
  white-space: nowrap;   /* two lines controlled by the <br> in the markup */
}
@media (max-width: 520px) { .brand-text { display: none; } }

/* Centered primary nav */
.primary-nav { justify-self: center; }
.primary-nav > ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-item { position: relative; }

.nav-btn {
  appearance: none;
  background: none;
  border: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: color var(--speed);
}
.nav-btn:hover { color: var(--gold-light); }
.nav-btn .caret {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.6rem;
  vertical-align: 2px;
}

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--navy);
  border: 1px solid var(--line-dark);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--speed), visibility var(--speed);
}
/* Invisible hover "bridge" so the menu survives the cursor crossing
   the gap between the trigger and the panel */
.dropdown::before {
  content: "";
  position: absolute;
  top: -14px; left: 0; right: 0;
  height: 14px;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
}
.dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  transition: background-color var(--speed), color var(--speed);
}
.dropdown a:hover { background: rgba(183, 134, 88, 0.15); color: var(--gold-light); }

/* Header phone (right side, desktop only) */
.header-phone {
  justify-self: end;
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color var(--speed);
}
.header-phone:hover { color: var(--gold-light); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
  justify-self: end;
}
.nav-toggle .bar {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform var(--speed), opacity var(--speed);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-phone { display: none; }
  .nav-toggle { display: block; }

  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    border-top: 1px solid var(--line-dark);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
    padding: 1rem 0 2rem;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { flex-direction: column; gap: 0; }
  .nav-btn { width: 100%; text-align: left; padding: 1rem 1.5rem; }

  /* On mobile, dropdowns become simple accordions */
  .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    border: 0;
    border-left: 2px solid var(--gold);
    border-radius: 0;
    margin: 0 1.5rem;
    display: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .dropdown::before { display: none; }
  .nav-item.is-open .dropdown { display: block; }
  .nav-item:hover .dropdown { display: none; }        /* hover doesn't apply on mobile */
  .nav-item.is-open:hover .dropdown { display: block; }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;    /* photo section spans exactly one screen */
  min-height: 100svh;
  display: flex;
  align-items: flex-start;   /* content pinned to the first screen, photo runs on below */
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

/* Rotating photos: stacked, cross-dissolved by toggling .is-active.
   The stack extends 90% above the hero: the scroll parallax in main.js
   moves the photo at 1/10 of scroll speed, so by the time
   the hero leaves the screen the photo has shifted down by 90% of the
   hero's height, and that overscan is what keeps edges from showing. */
.hero-slides { position: absolute; inset: -90% 0 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 7000ms ease;   /* the cross-dissolve */
}
.hero-slide.is-active { opacity: 1; }

/* Cursor + scroll parallax: transform is driven every frame by main.js
   (mouse drift is smoothed there, so no CSS transition here). */
.hero-slides {
  transform: scale(1.06);
  will-change: transform, filter;
  /* Photos load crisp, then ease into a soft permanent blur that lifts
     the headline off the imagery. Starts after a 1.2s clear moment. */
  animation: hero-blur 3s ease-in-out 0.5s forwards;
}
@keyframes hero-blur {
  from { filter: blur(0); }
  to   { filter: blur(3.5px); }
}

/* Navy scrim so headline text always passes contrast over any photo */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 16, 40, 0.6) 0%,
    rgba(0, 16, 40, 0.45) 45%,
    rgba(0, 16, 40, 0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 5rem 1.5rem 2rem;
  /* center the text within the FIRST screenful of the extended hero */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Hero text sits over photos: text shadows + a touch more size make the
   gold lines read clearly even against bright sky */
.hero-content .eyebrow,
.hero-content h1,
.hero-sub,
.hero-years {
  text-shadow: 0 1px 4px rgba(0, 10, 26, 0.65), 0 2px 18px rgba(0, 10, 26, 0.45);
}
.hero-content .eyebrow {
  color: var(--gold-light);
  font-size: 0.95rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin: 0 auto 2.2rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-years {
  margin-top: 2.75rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--gold-light);
}

/* ---------- 6. Section-specific ---------- */

/* Services: one-team value prop banner */
.one-team {
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  background: var(--mist);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.one-team p { margin: 0; max-width: 640px; color: var(--ink-soft); }
.one-team strong { color: var(--navy); }

/* Two-column feature layout (Buy, About) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* Checklist styling used in Buy/Sell copy */
.check-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.8rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 9px; height: 9px;
  background: var(--gold);
  transform: rotate(45deg);   /* small gold diamond bullet */
}
.section--navy .check-list li { color: rgba(255,255,255,0.85); }
.section--white .check-list li { color: var(--ink-soft); }

/* Portrait frames (Nathan / Hung) */
.portrait {
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  overflow: hidden;
  background: var(--navy-deep);
}
.portrait svg, .portrait img { width: 100%; height: auto; display: block; }

/* Loan program cards with "?" explainer panels (native <details>) */
.loan-card h3 { font-size: 1.25rem; }
.loan-card details { margin-top: 0.75rem; }
.loan-card summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
}
.loan-card summary::-webkit-details-marker { display: none; }
.loan-card summary .q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  font-size: 0.8rem;
}
.loan-card details[open] summary { color: var(--white); }
.loan-card details p {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  border-left: 2px solid var(--gold);
  padding-left: 0.9rem;
}

/* Mortgage calculator */
.calculator {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (max-width: 820px) { .calculator { grid-template-columns: 1fr; padding: 1.75rem; } }
.calc-fields { display: grid; gap: 1.1rem; }
.calc-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border-left: 1px solid var(--line-dark);
  padding-left: 2.5rem;
}
@media (max-width: 820px) {
  .calc-result { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-dark); padding-top: 1.75rem; }
}
.calc-payment {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--gold-light);
  line-height: 1.1;
}
.calc-label { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.calc-note { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 1.25rem; }

/* Feature card for Hung (in-house loan officer) */
.officer-card {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
}
@media (max-width: 640px) { .officer-card { grid-template-columns: 1fr; } }
.officer-card .credentials { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* Compliance strip inside Finance section */
.compliance-note {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.compliance-note svg { flex: 0 0 44px; }

/* Communities grid */
.community-card { text-align: left; }
.community-card h3 { color: var(--gold-light); }

/* Contact cards */
.contact-card .role {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}
.contact-card ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.contact-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.95rem;
}
.contact-card a { color: var(--white); text-decoration: none; }
.contact-card a:hover { color: var(--gold-light); }
.copy-btn {
  appearance: none;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--gold-light);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  transition: border-color var(--speed), color var(--speed);
}
.copy-btn:hover { border-color: var(--gold-light); }
/* Contact card variants for white sections (inner pages) */
.section--white .contact-card .role { color: var(--gold-dark); }
.section--white .contact-card li { border-color: var(--line-light); }
.section--white .contact-card a { color: var(--navy); }
.section--white .contact-card a:hover { color: var(--gold-dark); }
.section--white .copy-btn { color: var(--gold-dark); border-color: var(--line-light); }
.section--white .copy-btn:hover { border-color: var(--gold-dark); }

/* ---------- 6b. Inner-page patterns ---------- */

/* Compact navy banner at the top of every inner page */
.page-hero {
  background: linear-gradient(180deg, #041a38 0%, var(--navy) 100%);
  color: var(--white);
  padding: calc(var(--header-h) + 4.5rem) 0 4rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--white);
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
}
.page-hero .gold-rule { margin-left: auto; margin-right: auto; }

/* Numbered process steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line-light);
}
.section--navy .steps li { border-color: var(--line-dark); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
}
.section--white .steps li::before { color: var(--gold-dark); }
.steps h3 { margin-bottom: 0.35rem; font-size: 1.25rem; }
.steps p { margin: 0; }
.section--white .steps p { color: var(--ink-soft); }
.section--navy .steps p { color: rgba(255,255,255,0.8); }

/* Placeholder media block (featured listings, market updates) */
.placeholder-media {
  height: 180px;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  background:
    linear-gradient(160deg, rgba(183,134,88,0.25), rgba(0,16,40,0.05)),
    var(--mist);
  border: 1px dashed var(--line-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.section--navy .placeholder-media {
  background: linear-gradient(160deg, rgba(183,134,88,0.2), rgba(255,255,255,0.03));
  border-color: var(--line-dark);
  color: rgba(255,255,255,0.6);
}

/* Centered call-to-action band at the bottom of inner pages */
.cta-band { text-align: center; }
.cta-band .hero-ctas { margin-top: 1.5rem; }

/* ---------- 7. Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.section--navy .field label { color: rgba(255,255,255,0.85); }
.section--white .field label { color: var(--navy); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  padding: 0.75rem 0.9rem;
  border-radius: 4px;
  border: 1px solid var(--line-light);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--speed);
}
.section--navy .field input,
.section--navy .field select,
.section--navy .field textarea {
  background: rgba(255,255,255,0.07);
  border-color: var(--line-dark);
  color: var(--white);
}
.section--navy .field ::placeholder { color: rgba(255,255,255,0.45); }
/* Dropdown option lists don't inherit the translucent field background:
   without this they render white-on-white in the popup. */
.section--navy .field select option {
  background: var(--navy);
  color: var(--white);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gold); }

.form-disclaimer { font-size: 0.8rem; margin-top: 1rem; }
.section--navy .form-disclaimer { color: rgba(255,255,255,0.6); }
.section--white .form-disclaimer { color: var(--ink-soft); }

/* ---------- 8. Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 4.5rem 0 2.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer h4 {
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color var(--speed); }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand img { height: 88px; width: auto; margin-bottom: 0.75rem; }
.footer-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-top: 2rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.footer-legal p { margin-bottom: 0.9rem; }
.eho-row { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.eho-row svg { flex: 0 0 40px; }

/* ---------- 9. Toast, focus, reduced motion ---------- */

/* Floating Contact Us button, fixed bottom-right on every page */
a.contact-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;               /* under the toast (150), over content */
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0, 10, 26, 0.45);
  transition: background-color var(--speed);
}
a.contact-fab:hover { background: var(--gold-light); color: var(--navy); }
@media (max-width: 520px) {
  a.contact-fab { right: 1rem; bottom: 1rem; padding: 0.75rem 1.25rem; }
}

/* Copy-to-clipboard toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms, transform 200ms, visibility 200ms;
  z-index: 150;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Visible focus states everywhere (keyboard users) */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--white :focus-visible { outline-color: var(--gold-dark); }

/* Respect reduced motion: kill transitions, keep first hero image static */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}