/* =========================================================
   HOFFENMER — BOC-3 LANDING PAGE
   Token-driven stylesheet. Colors/fonts centralized in :root
   for fast future adjustments.
   ========================================================= */

:root {
  /* ---- Brand palette (sampled from supplied flat design) ---- */
  --navy:            #0f6693;   /* primary brand blue — bars, cards, nav CTA */
  --navy-dark:        #0b4e70;   /* hover / depth */
  --blue-accent:      #1a7fb5;   /* headline accent ("Nationwide") */
  --red-accent:       #bd5650;   /* phone number accent */
  --ink:              #1c1f22;   /* near-black headline text */
  --body-text:        #6b7178;   /* paragraph gray */
  --body-text-light:  #eef2f5;   /* paragraph gray on dark bg */
  --line:             #e3e7ea;
  --gray-block:       #d9dbdd;   /* decorative panel / button fill */
  --gray-block-light: #eceeef;
  --surface:          #ffffff;
  --footer-bg:        #f7f8f9;

  /* ---- Type ----
     Avenir is served live via this Adobe Fonts (Typekit) kit — no local-
     install fallback needed. The kit publishes it under the family name
     "avenir-lt-pro" (weights 200–800, roman + italic), not "Avenir". */
  --font-display: 'avenir-lt-pro', sans-serif;
  --font-body:    'Lato', sans-serif;

  /* ---- Layout ---- */
  --wrap: 1280px;
  --header-h: 92px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.22,.68,.36,1);
  --dur: .8s;
}

/* ---------------------------------------------------------
   Reset
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background-color: var(--surface);
  background-image: url('../assets/bg-streaks-opt.jpg');
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
p { margin: 0; }
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--blue-accent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 16px 34px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-dark);
  box-shadow: 0 10px 24px -8px rgba(15,102,147,.55);
}

.btn-light {
  background: var(--gray-block);
  color: var(--navy);
  border-color: #9aa0a5;
}
.btn-light:hover {
  background: var(--surface);
  box-shadow: 0 10px 20px -10px rgba(0,0,0,.35);
}

.btn-pill-phone {
  background: #fff;
  color: var(--red-accent);
  border-color: #1c1f22;
  font-weight: 700;
  letter-spacing: .06em;
}
.btn-pill-phone:hover {
  box-shadow: 0 10px 20px -10px rgba(0,0,0,.35);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(0,0,0,.4);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo { display: flex; align-items: center; }
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.main-nav a { position: relative; padding: 6px 2px; }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--blue-accent);
  transition: right .25s var(--ease);
}
.main-nav a:hover::after { right: 0; }

.nav-cta { margin-left: 8px; padding: 13px 26px; font-size: .85rem; }

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

/* ---------------------------------------------------------
   Hero  (matches the cropped hero reference exactly:
   nav + map + headline + subline — nothing more)
   --------------------------------------------------------- */
.hero { padding-top: 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  align-items: center;
  gap: 40px;
  min-height: 0;
}
.hero-map img { width: 100%; height: auto; }

.eyebrow {
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  text-align: center;
}
.eyebrow strong { font-weight: 800; }

.hero-copy h1 {
  font-size: clamp(2.85rem, 5vw, 4.05rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-shadow: 2px 3px 0 rgba(0,0,0,.12);
  text-align: center;
}
.hero-copy h1 .accent {
  color: var(--blue-accent);
  display: inline-block;
}

.hero-subline {
  margin-top: 44px;
  padding-bottom: 40px;
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

/* ---------------------------------------------------------
   CTA bar
   --------------------------------------------------------- */
.cta-bar { background: var(--navy); }
.cta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-block: 34px;
}
.cta-bar-text {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .015em;
  line-height: 1.45;
}
.cta-bar-actions { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------------------------------------------------------
   About / "What is a BOC-3?"
   --------------------------------------------------------- */
.about {
  position: relative;
  padding-block: 96px;
  overflow: hidden;
}
.about-decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 22%;
  height: 68%;
  background: var(--gray-block-light);
}
.about-inner { position: relative; }
.about h2 {
  text-align: center;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  color: var(--navy);
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 48px;
}
.about-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 65px;
}
.about-icon img { width: 100%; height: auto; display: block; }
.about-text {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--body-text);
  text-align: justify;
  max-width: 780px;
}
.about-text strong { color: var(--ink); }
.about-text a { color: var(--blue-accent); text-decoration: underline; text-underline-offset: 3px; }
.about-text a:hover { color: var(--navy-dark); }

/* ---------------------------------------------------------
   FAQ cards + photo
   --------------------------------------------------------- */
.faq-photo { padding-block: 40px 100px; }
.faq-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  align-items: stretch;
  padding-inline: 32px;
}
@media (min-width: 961px) {
  .faq-photo-grid {
    grid-template-columns: minmax(300px, 440px) 1fr;
    padding-left: max(32px, calc((100% - var(--wrap)) / 2 + 32px));
    padding-right: 0;
  }
}
.faq-cards {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
  z-index: 2;
  margin-right: -46px;
}
.faq-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 10px 14px 30px -14px rgba(4,15,26,.45);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.faq-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 24px 40px -16px rgba(15,102,147,.6);
}
.faq-card h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: .01em;
}
.faq-card p {
  font-size: .98rem;
  line-height: 1.7;
  color: var(--body-text-light);
  text-align: justify;
}
.faq-card p u { text-decoration-color: rgba(255,255,255,.6); }
.faq-card p strong { color: #fff; }

.faq-photo-frame {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  margin-block: -40px;
}
.faq-photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.faq-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,14,26,.55), rgba(6,14,26,.72)),
    linear-gradient(120deg, rgba(6,20,35,.35), rgba(6,20,35,0) 50%);
}
.faq-glass-card {
  position: absolute;
  inset: 12% 25%;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  padding: 40px;
}
.faq-glass-card p {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.7;
  text-align: justify;
  max-width: 95%;
  letter-spacing: 1.2px;
}
.faq-glass-card a {
  color: var(--red-accent);
  text-underline-offset: 3px;
  transition: color .2s ease;
  font-weight: 800;
}
.faq-glass-card a:hover,
.faq-glass-card a:focus {
  color: var(--blue-accent);
}

/* ---------------------------------------------------------
   Bottom CTA / photo
   --------------------------------------------------------- */
.cta-photo {
  position: relative;
  isolation: isolate;
  padding-block: 90px;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.cta-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4,10,18,.66), rgba(4,10,18,.8));
}
.cta-photo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}
.cta-photo-phonecard {
  background: rgba(255,255,255,.94);
  border-radius: var(--radius-lg);
  padding: 22px 44px;
  color: var(--ink);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.cta-photo-hours {
  font-size: .82rem;
  letter-spacing: .03em;
  color: var(--body-text);
  margin-bottom: 6px;
}
.cta-photo-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: .05em;
  color: var(--red-accent);
}
.cta-photo h2 {
  color: #fff;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  max-width: 900px;
}
.cta-photo-btn { padding: 17px 42px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  padding-block: 72px 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-phone { text-align: center; }
.footer-label { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.footer-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--ink);
  letter-spacing: .04em;
}
.footer-number:hover { color: var(--navy); }
.footer-hours { font-size: .9rem; color: var(--body-text); margin-top: 2px; }

.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.footer-brand .logo { align-items: center; text-align: center; }
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .92rem;
  font-weight: 600;
}
.footer-nav a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.footer-nav a:hover { color: var(--navy); }

.footer-address {
  font-style: normal;
  text-align: right;
  font-size: .92rem;
  color: var(--body-text);
  line-height: 1.6;
}
.footer-division { color: var(--body-text); }
.footer-division-sub { color: var(--ink); margin-bottom: 6px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  text-align: center;
}
.footer-disclaimer {
  max-width: 900px;
  margin-inline: auto;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--body-text);
}
.footer-copyright {
  margin-top: 18px;
  font-size: .82rem;
  color: var(--body-text);
}

/* ---------------------------------------------------------
   Scroll-reveal animation system
   --------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: transform, opacity;
}
[data-animate="left"]  { transform: translateX(-56px); }
[data-animate="right"] { transform: translateX(56px); }
[data-animate="up"]    { transform: translateY(36px); }
[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
.faq-cards [data-animate]:nth-child(2) { transition-delay: .1s; }
.faq-cards [data-animate]:nth-child(3) { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .about-decor { width: 34%; }
  .footer-address { text-align: center; }
}

@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .wrap { padding-inline: 24px; }

  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -20px rgba(0,0,0,.3);
  }
  .site-header.nav-open .nav-cta {
    display: inline-flex;
    position: absolute;
    top: calc(var(--header-h) + 160px);
    left: 24px;
  }

  .hero-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .hero-copy { order: -1; }
  .hero-copy h1 { text-align: center; }
  .hero-subline { text-align: center; margin-inline: auto; }

  .cta-bar-inner { justify-content: center; text-align: center; }
  .cta-bar-text { text-align: center; }

  .about-body { grid-template-columns: 1fr; text-align: center; }
  .about-icon { margin-inline: auto; width: 120px; }
  .about-decor { display: none; }
  .about-text { text-align: left; }

  .faq-cards { margin-right: 0; }

  .faq-photo-grid { grid-template-columns: 1fr; }
  .faq-photo-frame { min-height: 340px; order: -1; margin-block: 0; }
  .faq-glass-card { inset: 8%; padding: 26px; }

  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-address { text-align: center; }
}

@media (max-width: 560px) {
  .hero-copy h1 { font-size: 2.2rem; }
  .btn { padding: 14px 26px; font-size: .88rem; }
  .cta-bar-actions { justify-content: center; width: 100%; }
  .cta-bar-actions .btn { flex: 1; }
  .faq-photo-frame {
    min-height: 0;
    height: auto;
    overflow: visible;
  }
  .faq-photo-frame img,
  .faq-photo-overlay {
    position: relative;
    inset: auto;
    height: 220px;
    width: 100%;
  }
  .faq-photo-overlay {
    position: absolute;
    top: 0;
    height: 220px;
  }
  .faq-glass-card {
    position: relative;
    inset: auto;
    margin-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border-top: none;
    background: var(--navy-dark);
  }
  .cta-photo-phonecard { padding: 18px 28px; }
  .footer-number { font-size: 1.5rem; }
}

/* ---------------------------------------------------------
   Application modal
   Static backdrop — dismissible only via the × button, per
   the pattern used on the other Hoffenmer sites (no outside-
   click or Escape-key close).
   --------------------------------------------------------- */
.app-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 16, 26, .6);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.app-modal-backdrop.is-open {
  display: flex;
}
.app-modal {
  width: 100%;
  max-width: 960px;
  max-height: min(88vh, 900px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  animation: app-modal-in .3s var(--ease);
}
@keyframes app-modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.app-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  flex-shrink: 0;
}
.app-modal-header h2 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.app-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, transform .2s ease;
}
.app-modal-close:hover {
  background: rgba(255,255,255,.3);
  transform: scale(1.06);
}
.app-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--surface);
  position: relative;
}
.app-modal-body::before {
  content: 'Loading application…';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body-text);
  font-size: .95rem;
  pointer-events: none;
}
.app-modal-body iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border: 0;
  background: var(--surface);
}

@media (max-width: 640px) {
  .app-modal-backdrop { padding: 0; }
  .app-modal { max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .app-modal-header { padding: 18px 20px; }
  .app-modal-header h2 { font-size: 1.05rem; }
}
