/* =================================================================
   Legacy Real Estate Institute — Design System
   Modern, premium navy + gold theme inspired by the reference,
   tuned for a real-estate education brand.
   ================================================================= */

:root {
  /* Brand palette */
  --navy-900: #081428;
  --navy-800: #0b1d3a;
  --navy-700: #112a52;
  --navy-600: #1b3a6b;
  --navy-500: #2a4d82;
  --gold-500: #c9a14a;
  --gold-400: #d9b860;
  --gold-300: #e7cd8a;

  /* Neutrals */
  --ink:      #16203a;
  --slate:    #4a5673;
  --muted:    #6b7693;
  --line:     #e5e8f0;
  --paper:    #f6f8fc;
  --white:    #ffffff;

  /* Effects */
  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 18px 50px -20px rgba(11, 29, 58, 0.35);
  --shadow-sm:0 8px 24px -12px rgba(11, 29, 58, 0.25);
  --ease:     cubic-bezier(.21,.6,.35,1);

  /* Type */
  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.bg-paper { background: var(--paper); }
.bg-navy  { background: var(--navy-800); color: #d9e1f2; }
.center   { text-align: center; }
.grid { display: grid; gap: 28px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--navy-800); letter-spacing: -0.01em; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p  { color: var(--slate); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-500);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); }
.center .eyebrow::before { display: none; }

.section-head { max-width: 680px; margin: 0 auto 56px; }
.section-head p { margin-top: 14px; font-size: 1.06rem; }
.lead { font-size: 1.15rem; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--navy-900); box-shadow: 0 14px 30px -12px rgba(201,161,74,.7); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(201,161,74,.85); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--navy-800); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--navy-800); transform: translateY(-3px); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }

/* =================================================================
   HEADER
   ================================================================= */
.promo-bar { background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); color: var(--navy-900); font-weight: 600; font-size: .9rem; }
.promo-bar .container { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 24px; text-align: center; }
.promo-bar svg { flex: none; }
.promo-bar strong { background: var(--navy-900); color: var(--gold-300); padding: 3px 11px; border-radius: 6px; letter-spacing: .04em; }

.topbar {
  background: var(--navy-900); color: #b7c4dc;
  font-size: .85rem; letter-spacing: .01em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { color: #cdd8ec; transition: color .2s; }
.topbar a:hover { color: var(--gold-400); }
.topbar__left { display: flex; gap: 22px; }
.topbar__left span { display: inline-flex; align-items: center; gap: 7px; }
.topbar__socials { display: flex; gap: 14px; }
.topbar__socials svg { width: 15px; height: 15px; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center; color: var(--gold-400);
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
  box-shadow: inset 0 0 0 1px rgba(201,161,74,.4);
}
.brand__icon { width: 46px; height: 46px; object-fit: contain; flex: none; }
.footer__logo { display: inline-block; }
.footer__logo img { height: 42px; width: auto; max-width: 100%; }
.brand__text { line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--navy-800); }
.brand__sub  { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-500); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 16px; border-radius: 8px;
  font-weight: 500; font-size: .96rem; color: var(--slate);
  transition: color .2s;
}
.nav a:hover { color: var(--navy-800); }
.nav a.active { color: var(--navy-800); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px;
  height: 2px; background: var(--gold-500); border-radius: 2px;
}
.nav__secondary { display: none; }

/* Dropdown menus */
.nav-group { position: relative; }
.nav-group__top { display: inline-flex; align-items: center; gap: 5px; padding: 10px 16px; border-radius: 8px; font-weight: 500; font-size: .96rem; color: var(--slate); cursor: pointer; }
.nav-group__top:hover, .nav-group__top.active { color: var(--navy-800); }
.nav-group__top.active { font-weight: 600; }
.nav-group .caret { display: inline-flex; transition: transform .25s var(--ease); }
.nav-group .caret svg { transform: rotate(90deg); width: 13px; height: 13px; }
.nav-group:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 0; transform: translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); padding: 14px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 60;
}
/* invisible hover bridge across the gap so the menu doesn't close mid-move */
.dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 16px; }
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
/* Locations sits further right — anchor its panel to the right edge so it never runs off-screen */
.nav-group--end .dropdown { left: auto; right: 0; }
.dropdown__grid { display: grid; grid-template-columns: 1fr; gap: 2px; min-width: 220px; }
.nav-group--end .dropdown__grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px 6px; }
.dropdown__grid a { padding: 10px 14px; border-radius: 9px; font-size: .92rem; font-weight: 500; color: var(--slate); white-space: nowrap; }
.dropdown__grid a:hover { background: var(--paper); color: var(--navy-800); }
.dropdown__all { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 8px; padding: 11px; border-radius: 9px; background: var(--navy-800); color: #fff !important; font-weight: 600; font-size: .9rem; }
.dropdown__all:hover { background: var(--navy-700); }
.dropdown__all svg { width: 14px; height: 14px; }

.header__cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 5px auto; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(201,161,74,.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #e7eefb;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 86px; padding-bottom: 90px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px;
  padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--gold-300);
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold-400); font-style: italic; }
.hero__sub { margin: 22px 0 32px; font-size: 1.18rem; color: #c3d0e8; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 38px; margin-top: 46px; flex-wrap: wrap; }
.hero__stat .num { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--gold-400); }
.hero__stat .lbl { font-size: .85rem; color: #aebbd6; letter-spacing: .03em; }

/* Hero visual: photo + overlapping card */
.hero__visual { position: relative; }
.hero__photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.14); aspect-ratio: 4 / 3.4;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__card {
  position: absolute; left: -28px; bottom: -28px; width: min(330px, 86%);
  background: rgba(13, 28, 56, .82); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 24px; backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.hero__card h3 { color: #fff; font-family: var(--sans); font-size: 1.05rem; margin-bottom: 18px; }
.hero__progress { margin-bottom: 20px; }
.hero__progress .row { display: flex; justify-content: space-between; font-size: .9rem; color: #c3d0e8; margin-bottom: 8px; }
.hero__bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; }
.hero__bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); }
.hero__chip {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 12px;
  background: rgba(255,255,255,.07); border-radius: var(--radius-sm); font-size: .92rem; color: #dbe5f7;
}
.hero__chip .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(201,161,74,.18); color: var(--gold-300); display: grid; place-items: center; flex: none; }
.hero__chip .ico svg { width: 20px; height: 20px; }

/* trust strip */
.trust { border-top: 1px solid rgba(255,255,255,.08); }
.trust .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding: 22px 24px; }
.trust span { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; color: #b7c4dc; }
.trust svg { width: 18px; height: 18px; color: var(--gold-400); }

/* =================================================================
   CARDS / FEATURES / PROGRAMS
   ================================================================= */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

/* Program card with photo header */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card--media:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,20,40,.5), transparent 55%); }
.card__media .card__icon { position: absolute; left: 20px; bottom: -26px; margin: 0; z-index: 2; box-shadow: var(--shadow-sm); }
.card__body { padding: 38px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 10px; }
.card__body .card__link { margin-top: auto; }

.card__icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center; color: var(--navy-700);
  background: linear-gradient(150deg, #fbf6ea, #f1e6c9);
}
.card__icon svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card__link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 600; color: var(--navy-700); font-size: .92rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }

/* feature (icon left) */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon { flex: none; width: 50px; height: 50px; border-radius: 12px; background: var(--navy-800); color: var(--gold-400); display: grid; place-items: center; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 5px; }
.feature p { font-size: .95rem; }

/* =================================================================
   PROCESS / STEPS
   ================================================================= */
.steps { grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__n { font-family: var(--serif); font-size: 3rem; font-weight: 700; color: var(--gold-300); line-height: 1; }
.bg-navy .step__n { color: var(--gold-400); opacity: .85; }
.step h3 { margin: 12px 0 8px; }
.step p { font-size: .96rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; right: -14px; width: 28px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-300) 0 6px, transparent 6px 12px);
}
.bg-navy .step p { color: #b7c4dc; }

/* =================================================================
   COURSE CATALOG
   ================================================================= */
.cat { margin-bottom: 52px; }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--line); }
.cat__head h3 { font-size: 1.5rem; }
.cat__head .count { font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.course-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.course {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.course:hover { border-color: var(--gold-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.course__main { min-width: 0; }
.course__name { font-weight: 600; color: var(--navy-800); }
.course__meta { font-size: .85rem; color: var(--muted); margin-top: 3px; }
.course__right { text-align: right; flex: none; }
.course__price { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--navy-800); }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: #f1e6c9; color: #8a6d24; margin-bottom: 6px; }
.tag--best { background: var(--navy-800); color: var(--gold-300); }
.cat__steps { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; color: var(--navy-700); font-size: .95rem; }
.cat__steps:hover { color: var(--gold-500); }
.cat__steps svg { flex: none; }
.notice-box { max-width: 900px; margin: 28px auto 0; background: var(--navy-700); border: 2px solid var(--gold-500); border-radius: var(--radius-sm); padding: 20px 26px; color: #fff; font-size: 1rem; line-height: 1.6; text-align: center; }
.notice-box strong { color: var(--gold-300); }

/* =================================================================
   TESTIMONIALS
   ================================================================= */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; position: relative; }
.quote__stars { color: var(--gold-500); letter-spacing: 2px; margin-bottom: 14px; }
.quote p { color: var(--ink); font-size: 1.02rem; line-height: 1.7; }
.quote__person { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote__avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: var(--gold-300); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); box-shadow: inset 0 0 0 2px var(--gold-300); }
.quote__name { font-weight: 700; color: var(--navy-800); font-size: .98rem; }
.quote__role { font-size: .85rem; color: var(--muted); }

/* =================================================================
   ACCORDION (FAQ)
   ================================================================= */
.accordion { max-width: 820px; margin: 0 auto; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 14px; background: var(--white); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.acc-item.open { box-shadow: var(--shadow-sm); border-color: var(--gold-400); }
.acc-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; text-align: left; font-weight: 600; font-size: 1.05rem; color: var(--navy-800); }
.acc-q .plus { flex: none; width: 26px; height: 26px; position: relative; }
.acc-q .plus::before, .acc-q .plus::after { content: ""; position: absolute; background: var(--gold-500); border-radius: 2px; transition: transform .3s var(--ease); }
.acc-q .plus::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.acc-q .plus::after  { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.acc-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-a p { padding: 0 24px 24px; color: var(--slate); }

/* =================================================================
   CTA BANNER
   ================================================================= */
.cta {
  background: linear-gradient(140deg, rgba(11,29,58,.94), rgba(27,58,107,.88)), url("../img/cta-bg.jpg") center/cover no-repeat;
  border-radius: 26px; padding: 64px; text-align: center; position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(201,161,74,.3), transparent 70%); top: -120px; right: -80px; }

/* About story image */
.story-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.story-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; aspect-ratio: 1 / 1; }
.story-img__badge {
  position: absolute; left: 22px; bottom: 22px; background: rgba(13,28,56,.86); backdrop-filter: blur(10px);
  color: #fff; padding: 16px 20px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.16);
}
.story-img__badge .num { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-400); line-height: 1; }
.story-img__badge .lbl { font-size: .82rem; color: #c3d0e8; margin-top: 4px; }
.cta h2 { color: #fff; position: relative; }
.cta p { color: #c3d0e8; max-width: 560px; margin: 16px auto 30px; position: relative; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* =================================================================
   PAGE HERO (inner pages)
   ================================================================= */
.page-hero { background: linear-gradient(160deg, rgba(8,20,40,.93), rgba(17,42,82,.82)), url("../img/cta-bg.jpg") center/cover no-repeat; color: #fff; padding: 70px 0 64px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 26px 26px; opacity: .5; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c3d0e8; max-width: 620px; margin-top: 14px; font-size: 1.1rem; }
.crumbs { font-size: .85rem; color: #93a4c4; margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold-400); }
.crumbs span { color: var(--gold-400); }

/* =================================================================
   FORMS
   ================================================================= */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-800); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .98rem; color: var(--ink); background: #fbfcfe; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(201,161,74,.15); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 10px; }

.alert { padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; font-size: .96rem; }
.alert--ok  { background: #e8f6ee; color: #1d6b3d; border: 1px solid #b9e3c9; }
.alert--err { background: #fdecec; color: #9a2222; border: 1px solid #f3c2c2; }

.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.info-row { display: flex; gap: 15px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row .ico { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--navy-800); color: var(--gold-400); display: grid; place-items: center; }
.info-row .ico svg { width: 21px; height: 21px; }
.info-row .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.info-row .val { font-weight: 600; color: var(--navy-800); }

/* =================================================================
   SERVICE / LOCATION DETAIL PAGES
   ================================================================= */
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.detail__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 30px; aspect-ratio: 16 / 7.5; }
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail h2 { margin: 36px 0 14px; font-size: 1.7rem; }
.detail h2:first-child { margin-top: 0; }
.detail p + p { margin-top: 14px; }

.rich-list { list-style: disc; padding-left: 22px; margin: 10px 0 4px; color: var(--slate); }
.rich-list > li { margin: 8px 0; }
.rich-list ul { list-style: circle; padding-left: 22px; margin: 6px 0; }
.rich-list ul li { margin: 5px 0; }
.rich-list strong { color: var(--navy-800); }

/* CE requirements comparison (Sales Agents vs Broker) */
.ce-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0 8px; }
.ce-col { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.ce-col__head { padding: 22px; text-align: center; color: #fff; }
.ce-col__head h3 { color: #fff; margin: 0; font-family: var(--sans); font-size: 1.3rem; }
.ce-col__head p { color: rgba(255,255,255,.85); margin-top: 4px; font-size: .9rem; }
.ce-col__head--agent { background: #1565c0; }
.ce-col__head--broker { background: #262626; }
.ce-col__rows li { padding: 14px 18px; text-align: center; font-size: .95rem; color: var(--slate); border-bottom: 1px solid var(--line); }
.ce-col__rows li:nth-child(even) { background: var(--paper); }
.ce-col__foot { padding: 18px; text-align: center; margin-top: auto; }
.btn--dark { background: #262626; color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-3px); box-shadow: var(--shadow); }
@media (max-width: 640px) { .ce-compare { grid-template-columns: 1fr; } }
.rich-list a { color: var(--navy-800); text-decoration: underline; text-decoration-color: var(--gold-400); }

.checklist { margin-top: 6px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; color: var(--ink); }
.checklist li svg { flex: none; color: var(--gold-500); margin-top: 3px; }

.sidebar-card { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.fact-row { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.fact-row:last-of-type { border-bottom: 0; }
.fact-row .k { color: var(--muted); }
.fact-row .v { font-weight: 600; color: var(--navy-800); text-align: right; }
.sidebar-steps { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--navy-700); text-align: center; line-height: 1.3; }
.sidebar-steps:hover { color: var(--gold-500); }
.sidebar-steps svg { flex: none; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill { padding: 8px 15px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--navy-700); transition: border-color .2s, transform .2s; }
a.pill:hover { border-color: var(--gold-400); transform: translateY(-2px); }

.loc-grid { grid-template-columns: repeat(3, 1fr); }
.loc-card { display: flex; flex-direction: column; gap: 6px; }
.loc-card .loc-card__city { display: flex; align-items: center; gap: 10px; }
.loc-card .badge-hq { font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--navy-800); color: var(--gold-300); }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; gap: 32px; }
  .sidebar-card { position: static; }
  .loc-grid { grid-template-columns: 1fr; }
}

/* =================================================================
   ABOUT / FOUNDER (homepage)
   ================================================================= */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.about-main .about-side { margin-top: 30px; }
.about-photo { position: sticky; top: 100px; align-self: start; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; aspect-ratio: 4 / 5; }
.about-founder { background: var(--white); }
.about-founder__head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.about-founder__avatar {
  width: 68px; height: 68px; border-radius: 16px; flex: none;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  color: var(--gold-300); display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(201,161,74,.4);
}
.about-founder__role { color: var(--gold-500); font-weight: 600; font-size: .92rem; margin-top: 3px; }
.about-founder .tag { margin: 2px 0 0; }
.about-side h3 { font-size: 1.4rem; margin-bottom: 12px; }
.about-side > p { margin-bottom: 16px; }
.about-side .checklist li { color: var(--slate); }
.about-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 20px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold-500); border-radius: 10px; font-size: .95rem; color: var(--slate); line-height: 1.6; }
.about-note svg { flex: none; color: var(--gold-500); margin-top: 3px; }
.about-side .checklist a { color: var(--navy-800); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold-400); text-underline-offset: 3px; transition: color .2s; }
.about-side .checklist a:hover { color: var(--gold-500); }

/* Credential badges */
.badges { margin: 0; text-align: center; }

/* Credential cards (Certifications & Professional Affiliations) */
.creds { align-items: stretch; }
.cred-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.cred-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cred-card img { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.cred-card__label { font-weight: 600; color: var(--navy-800); font-size: 1rem; line-height: 1.4; margin-top: auto; }
.badges__label { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--gold-500); margin-bottom: 28px; }
.badges__row { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
.badges__row img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.badges__row img:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow); }
@media (max-width: 760px) {
  .badges { margin: 0; }
  .badges__row { gap: 16px; }
  .badges__row img { width: 88px; height: 88px; }
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-photo { position: static; order: -1; }
  .about-photo img { aspect-ratio: 4 / 3; }
}

/* =================================================================
   TEAM BIOS (About page)
   ================================================================= */
.bio { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; }
.bio + .bio { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.bio__photo { position: sticky; top: 100px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.bio__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; aspect-ratio: 4 / 5; }
.bio__monogram { aspect-ratio: 4 / 5; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); color: var(--gold-300); font-family: var(--serif); font-weight: 700; font-size: 4.2rem; letter-spacing: .04em; }
.bio__name { font-size: 1.9rem; margin-bottom: 4px; }
.bio__role { color: var(--gold-500); font-weight: 600; font-size: .96rem; margin-bottom: 20px; }
.bio__body p + p { margin-top: 15px; }
.bio__quote { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.55; color: var(--navy-800); border-left: 3px solid var(--gold-500); padding-left: 18px; margin: 0 0 20px; }
.bio__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.bio__stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.bio__stat .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-500); font-weight: 700; }
.bio__stat .v { font-weight: 600; color: var(--navy-800); margin-top: 5px; font-size: .95rem; line-height: 1.45; }

@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; gap: 28px; }
  .bio__photo { position: static; max-width: 320px; }
  .bio__stats { grid-template-columns: 1fr; }
  .bio + .bio { margin-top: 44px; padding-top: 44px; }
}

/* =================================================================
   BLOG
   ================================================================= */
.blog-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.blog-tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #f1e6c9; color: #8a6d24; }
.blog-tag--light { background: rgba(255,255,255,.14); color: var(--gold-300); }
.blog-card h3 { font-size: 1.2rem; }

.post { max-width: 820px; margin: 0 auto; }
.post__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 32px; aspect-ratio: 16 / 8; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { font-size: 1.08rem; line-height: 1.75; color: var(--slate); }
.post__body h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.post__body p { margin-bottom: 16px; }
.post__body a { color: var(--navy-800); text-decoration: underline; text-decoration-color: var(--gold-400); }
.post__body h3 { font-size: 1.25rem; margin: 24px 0 10px; color: var(--navy-800); }
.post__body ul, .post__body ol { padding-left: 22px; margin-bottom: 16px; }
.post__body ul:not(.rich-list) { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li { margin: 6px 0; }
.post__body blockquote { border-left: 3px solid var(--gold-500); padding-left: 18px; margin: 0 0 16px; font-style: italic; color: var(--navy-800); }

/* =================================================================
   GOOGLE REVIEWS
   ================================================================= */
.reviews-embed { display: flex; justify-content: center; }
.reviews-fallback { max-width: 640px; margin: 0 auto; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 42px 34px; box-shadow: var(--shadow-sm); }
.reviews-fallback__summary { display: inline-flex; align-items: center; gap: 15px; text-align: left; }
.reviews-fallback__g { width: 50px; height: 50px; flex: none; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.55rem; color: #fff; background: conic-gradient(from -55deg, #4285F4 0 25%, #34A853 0 50%, #FBBC05 0 75%, #EA4335 0 100%); box-shadow: inset 0 0 0 6px #fff; }
.reviews-fallback__stars { color: #fbbc05; letter-spacing: 3px; font-size: 1.35rem; line-height: 1; }
.reviews-fallback__meta { font-size: .95rem; color: var(--slate); margin-top: 5px; }
.reviews-fallback__meta strong { color: var(--navy-800); }
.reviews-fallback__text { color: var(--slate); margin: 22px 0 26px; font-size: 1.05rem; line-height: 1.65; }

/* Google review summary bar + cards */
.greviews-bar { display: inline-flex; align-items: center; gap: 16px; margin-top: 24px; padding: 11px 12px 11px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); text-align: left; }
.greviews-bar .reviews-fallback__g { width: 40px; height: 40px; font-size: 1.2rem; box-shadow: inset 0 0 0 5px #fff; }
.greviews-bar .quote__stars { font-size: 1.05rem; letter-spacing: 2px; margin: 0; display: block; }
.greviews-bar .meta { font-size: .88rem; color: var(--slate); margin-top: 2px; }
.greviews-bar .btn { padding: 9px 18px; font-size: .88rem; }
.quote__head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.quote__head .quote__avatar { width: 46px; height: 46px; font-size: 1.15rem; }
.quote__g { width: 24px !important; height: 24px !important; font-size: .82rem !important; margin-left: auto; flex: none; box-shadow: inset 0 0 0 3px #fff; }
.quote__muted { color: var(--muted); font-style: italic; }
@media (max-width: 520px) { .greviews-bar { flex-wrap: wrap; justify-content: center; text-align: center; border-radius: 18px; } }

/* =================================================================
   FOOTER
   ================================================================= */
.footer { background: var(--navy-900); color: #a9b6d2; padding-top: 72px; }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 52px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.footer a { color: #a9b6d2; transition: color .2s; }
.footer a:hover { color: var(--gold-400); }
.footer li { margin-bottom: 11px; font-size: .95rem; }
.footer__brand p { color: #93a4c4; font-size: .95rem; margin-top: 16px; max-width: 320px; }
.footer__socials { display: flex; gap: 12px; margin-top: 20px; }
.footer__socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; }
.footer__socials a:hover { background: var(--gold-500); color: var(--navy-900); }
.footer__socials svg { width: 18px; height: 18px; }
.footer__legal-row { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0 0; display: flex; gap: 26px; flex-wrap: wrap; }
.footer__legal-row a { color: #b7c4dc; font-size: .88rem; font-weight: 600; }
.footer__legal-row a:hover { color: var(--gold-400); }
.footer__bottom { padding: 16px 0 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: #7e8db0; }

/* =================================================================
   SCROLL REVEAL
   ================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { max-width: 520px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar { font-size: .8rem; }
  .topbar__left { gap: 14px; }
  .topbar__left span:nth-child(3) { display: none; } /* hide hours */
  .topbar__socials { display: none; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    height: 100vh; width: min(82vw, 330px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 92px 0 30px; box-shadow: var(--shadow);
    transform: translateX(100%); transition: transform .35s var(--ease);
    z-index: 45; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.active::after { display: none; }
  /* dropdowns become tap-to-expand accordions inside the drawer.
     High specificity + !important so the desktop absolute styles never leak in. */
  .nav .nav-group { position: static !important; display: block; width: 100%; }
  .nav .nav-group__top { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav .nav-group .caret { display: inline-flex; }
  .nav .nav-group .caret svg { transform: rotate(90deg); }
  .nav .nav-group.open .caret { transform: rotate(180deg); }
  .nav .nav-group .dropdown {
    position: static !important; left: auto !important; right: auto !important; top: auto !important;
    transform: none !important; width: 100% !important; min-width: 0 !important;
    box-shadow: none !important; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    background: var(--paper); padding: 0; pointer-events: auto;
    opacity: 1; visibility: visible; display: none;
  }
  .nav .nav-group .dropdown::before { display: none; }
  .nav .nav-group.open .dropdown { display: block; padding: 4px 0 10px; }
  .nav .dropdown__grid { grid-template-columns: 1fr !important; gap: 0; width: 100%; }
  .nav .dropdown__grid a { padding: 11px 18px 11px 24px; font-size: .98rem; border: 0; white-space: normal; color: var(--slate); }
  .nav .dropdown__all { margin: 8px 16px 2px; }
  .nav__secondary { display: flex; flex-direction: column; }
  .nav-toggle { display: block; z-index: 46; }
  .header__cta .btn { display: none; }
  .cards-3, .cards-2, .cards-4 { grid-template-columns: 1fr; }
  .course-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .form-wrap { grid-template-columns: 1fr; gap: 28px; }
  .field--row { grid-template-columns: 1fr; }
  .cta { padding: 44px 26px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
  .hero .container { padding-top: 56px; padding-bottom: 64px; }
  .hero__stats { gap: 22px; }
  .hero__stat .num { font-size: 1.8rem; }
  /* hero card flows below the photo instead of overlapping (prevents overflow) */
  .hero__visual { max-width: 100%; }
  .hero__photo { aspect-ratio: 16 / 11; }
  .hero__card { position: static; width: auto; left: auto; bottom: auto; margin-top: 16px; }
  .page-hero { padding: 52px 0 48px; }
  .detail__media { aspect-ratio: 16 / 10; }
}
