:root {
  --bg: #070707;
  --bg-soft: #0b0b0b;
  --panel: #121212;
  --panel-2: #161616;
  --card: rgba(17, 17, 17, 0.82);
  --gold: #B68A3A;
  --gold-soft: #D1AE6C;
  --text: #f7f7f7;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(182, 138, 58, 0.26);
  --line-soft: rgba(255, 255, 255, 0.06);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --container: min(1240px, calc(100% - 40px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: var(--container); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(7, 7, 7, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.header-row {
  min-height: 88px;
  display: grid;
  grid-template-columns: 320px 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand { display: block; width: 100%; }
.brand-logo { display: block; width: 100%; height: auto; }
.site-nav { display: flex; justify-content: center; gap: 30px; }
.site-nav a { color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 500; }
.site-nav a:hover { color: var(--gold-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.02); color: rgba(255,255,255,.8); font-size: .8rem; white-space: nowrap;
}
.apply-btn {
  padding: 13px 22px; border-radius: 999px;
  background: linear-gradient(135deg, #D1AE6C 0%, #B68A3A 52%, #6F5322 100%);
  color: #111; font-weight: 800; white-space: nowrap;
}
.menu-toggle { display: none; background: none; border: 0; padding: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 28px; height: 2px; margin: 6px 0; background: var(--gold); }

.section { padding: 94px 0; }
.eyebrow-pill, .section-tag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(182,138,58,.12); color: var(--gold-soft); font-size: .74rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 24px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 800; letter-spacing: .02em; transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, #f8e8aa 0%, #d4af37 55%, #a47415 100%); color: #111; }
.btn-dark { background: rgba(255,255,255,.02); color: #fff; }
.intro-block { text-align: center; }
.narrow { max-width: 760px; }
.intro-block h2, .section-head h2, .numbers-copy h2, .founder-copy h2, .final-cta h2, .apply-intro h1 {
  margin: 18px 0 0; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02;
}
.intro-block p, .section-head p, .numbers-copy p, .final-cta p, .apply-intro p { color: var(--muted); line-height: 1.85; }
.mini-divider { width: 82px; height: 4px; margin: 24px auto; border-radius: 999px; background: var(--gold); }

.hero-section {
  position: relative; overflow: hidden; min-height: 920px;
  padding: 84px 0 70px;
  background:
    radial-gradient(circle at 80% 18%, rgba(182,138,58,.09), transparent 18%),
    radial-gradient(circle at 16% 82%, rgba(154,115,48,.06), transparent 14%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}
.hero-with-image .hero-bg-image {
  position: absolute; inset: 0; background-size: cover; background-position: center center; opacity: .48; transform: scale(1.02);
}
.hero-image-fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,5,5,.9) 0%, rgba(5,5,5,.76) 34%, rgba(5,5,5,.46) 60%, rgba(5,5,5,.66) 100%);
}
.hero-grid-overlay {
  position: absolute; inset: auto 0 0 0; height: 210px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.25) 100%);
}
.hero-ring {
  position: absolute; border: 1px solid rgba(182,138,58,.16); border-radius: 50%; pointer-events: none;
}
.hero-ring-1 { width: 620px; height: 620px; right: -150px; top: 120px; }
.hero-ring-2 { width: 460px; height: 460px; left: -190px; bottom: 46px; }
.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center;
}
.hero-copy { padding-top: 88px; max-width: 720px; }
.hero-copy h1 { margin: 22px 0 18px; font-size: clamp(3.6rem, 7vw, 5.9rem); line-height: .94; letter-spacing: -.04em; }
.hero-copy h1 span { color: var(--gold); }
.hero-text { margin: 0; color: var(--muted); line-height: 1.86; font-size: 1.05rem; max-width: 700px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 22px; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,.86); font-size: .94rem; }
.hero-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat-card, .feature-card, .process-card, .program-card, .review-card, .numbers-cards div {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.012));
  border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.stat-card {
  position: relative; min-height: 174px; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end;
}
.stat-card::before, .feature-card::before, .program-card::before, .process-card::before, .review-card::before {
  content: ""; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none; border: 1px solid rgba(255,255,255,.025);
}
.stat-icon {
  width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(182,138,58,.12); color: var(--gold); font-size: .95rem;
}
.stat-card strong { font-size: 2.45rem; line-height: 1; }
.stat-card span { color: var(--muted); margin-top: 8px; }
.stat-card-copy strong {
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: .02em;
  max-width: 180px;
}
.stat-card-copy span {
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.feature-card {
  position: relative; grid-column: 1 / -1; border-radius: 22px; padding: 22px; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center;
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(182,138,58,.14); color: var(--gold);
}
.feature-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.hero-scroll { position: relative; z-index: 1; margin-top: 42px; text-align: center; color: rgba(255,255,255,.64); font-size: .92rem; }

.image-gallery-section { background: #090909; }
.imagery-grid { display: grid; grid-template-columns: 1.35fr .85fr .85fr; gap: 18px; }
.imagery-card {
  position: relative; overflow: hidden; min-height: 360px; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.imagery-card.wide { min-height: 420px; }
.imagery-card img { width: 100%; height: 100%; object-fit: cover; }
.imagery-card::after, .photo-card::after, .apply-visual-card::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.82) 100%);
}
.imagery-overlay, .apply-visual-caption {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2;
}
.apply-visual-caption {
  padding: 18px 18px 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(6,6,6,.12), rgba(6,6,6,.62));
  backdrop-filter: blur(4px);
}
.imagery-overlay span, .photo-card-badge, .apply-visual-caption span {
  display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(182,138,58,.16); border: 1px solid rgba(182,138,58,.28);
  color: var(--gold-soft); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.imagery-overlay h3, .apply-visual-caption h3 {
  margin: 14px 0 0; font-size: 1.4rem; line-height: 1.25;
}
.apply-visual-caption h3 {
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,.55);
}
.imagery-overlay.compact h3 { font-size: 1.12rem; }

.process-section { background: #0b0b0b; border-top: 1px solid var(--line-soft); }
.process-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-card { position: relative; min-height: 238px; border-radius: 22px; padding: 26px; }
.process-card span {
  display: inline-flex; width: 54px; height: 54px; border-radius: 50%; align-items: center; justify-content: center;
  background: rgba(182,138,58,.12); color: var(--gold); font-weight: 800; margin-bottom: 20px;
}
.process-card h3 { margin: 0 0 10px; font-size: 1.28rem; }
.process-card p { margin: 0; color: var(--muted); line-height: 1.8; }

.programs-section { background: #090909; }
.section-head { max-width: 860px; margin-bottom: 42px; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program-card { position: relative; min-height: 322px; border-radius: 24px; padding: 26px; }
.program-card h3 { margin: 0 0 12px; font-size: 1.5rem; }
.program-card p { color: var(--muted); line-height: 1.8; min-height: 98px; }
.program-card ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.program-card li { padding: 8px 12px; border-radius: 999px; background: rgba(182,138,58,.1); color: var(--gold-soft); font-size: .84rem; }
.program-card a { color: var(--gold-soft); font-weight: 800; }
.program-card.featured { border-color: rgba(182,138,58,.38); background: linear-gradient(180deg, rgba(182,138,58,.09), rgba(255,255,255,.01)); }

.numbers-section { background: #0d0d0d; }
.numbers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.numbers-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.numbers-cards div { border-radius: 22px; padding: 28px; }
.numbers-cards strong { display: block; font-size: 2rem; line-height: 1.1; }
.numbers-cards span { display: block; margin-top: 8px; color: var(--muted); }

.reviews-section { background: #080808; }
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.review-card { position: relative; border-radius: 22px; padding: 24px; }
.review-card p { margin: 0 0 22px; line-height: 1.85; }
.review-card strong { display: block; margin-bottom: 6px; }
.review-card span { color: var(--muted); font-size: .92rem; }

.founders-section { background: #0b0b0b; }
.founders-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: center; }
.founder-visual {
  min-height: 540px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(circle at center, rgba(182,138,58,.16), transparent 24%), linear-gradient(180deg, #111 0%, #0b0b0b 100%);
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card-badge {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
}
.founder-copy blockquote {
  margin: 24px 0; padding-left: 20px; border-left: 3px solid var(--gold); color: var(--muted); line-height: 1.9; font-size: 1.06rem;
}
.founder-names { margin: 0; font-size: 1.3rem; font-weight: 800; }
.founder-title { margin: 8px 0 24px; color: var(--muted); }
.founder-cityscape {
  min-height: 540px;
  padding: 0;
  background: linear-gradient(180deg, #0f1013 0%, #090909 100%);
}
.founder-cityscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder-cityscape::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.42) 100%);
  pointer-events: none;
}
@media (max-width: 1080px) {
  .founder-cityscape {
    min-height: 420px;
  }
}
@media (max-width: 640px) {
  .founder-cityscape {
    min-height: 340px;
  }
}

.final-cta-section { background: #090909; }
.final-cta { max-width: 860px; text-align: center; margin: 0 auto; }

.site-footer { border-top: 1px solid var(--line-soft); background: #050505; padding: 28px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-weight: 800; margin-bottom: 8px; }
.site-footer p { margin: 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: rgba(255,255,255,.84); }

.apply-body { background: linear-gradient(180deg, #f5f2eb 0%, #f8f7f4 100%); color: #111; }
.apply-header { background: #0c0c0c; border-bottom: 1px solid rgba(182,138,58,.2); }
.apply-header-row { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.apply-brand { width: min(100%, 320px); }
.apply-header-meta { display: flex; gap: 16px; color: rgba(255,255,255,.86); font-size: .9rem; }
.apply-main { padding: 52px 0 88px; }
.apply-hero-grid {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 26px; align-items: stretch; margin-bottom: 28px;
}
.apply-intro {
  max-width: 760px; margin: 0 auto 28px; text-align: center;
}
.apply-intro-left {
  margin: 0; max-width: none; text-align: left; background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 26px; padding: 34px;
  box-shadow: 0 16px 44px rgba(0,0,0,.08); display: flex; flex-direction: column; justify-content: center;
}
.apply-tag { color: #9A7330; background: rgba(182,138,58,.12); }
.apply-intro h1 { color: #111; }
.apply-intro p { color: #5b5b5b; }
.apply-contact-row { margin-top: 18px; display: flex; justify-content: flex-start; gap: 18px; flex-wrap: wrap; color: #6a6a6a; font-weight: 500; }
.apply-hero-visuals { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.apply-visual-card {
  position: relative; overflow: hidden; border-radius: 26px; min-height: 320px; box-shadow: 0 16px 44px rgba(0,0,0,.14);
}
.apply-visual-card.main { min-height: 360px; }
.apply-visual-card img { width: 100%; height: 100%; object-fit: cover; }
.apply-visual-card.small .apply-visual-caption h3 { margin-top: 10px; font-size: 1rem; }
.apply-visual-caption.compact h3 { display: none; }

.form-shell {
  max-width: 1040px; margin: 0 auto; border-radius: 26px; background: #fff; padding: 28px; color: #111;
  box-shadow: 0 16px 44px rgba(0,0,0,.12); border: 1px solid rgba(0,0,0,.05);
}
.form-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.form-step { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: #f4f4f4; color: #777; }
.form-step span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e8e8e8; font-weight: 800; }
.form-step.active { background: rgba(182,138,58,.13); color: #111; }
.form-step.active span { background: var(--gold); color: #111; }
.progress-track { height: 8px; background: #ececec; border-radius: 999px; margin: 18px 0 28px; overflow: hidden; }
.progress-fill { width: 25%; height: 100%; background: linear-gradient(90deg, #D1AE6C 0%, #B68A3A 100%); transition: width .25s ease; }
.application-form h2 { margin: 0 0 22px; font-size: 2rem; color: #111; }
.form-page { display: none; }
.form-page.active { display: block; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.application-form label { display: block; margin-bottom: 16px; }
.application-form label span { display: block; margin-bottom: 8px; font-weight: 600; color: #222; }
.application-form input, .application-form select, .application-form textarea {
  width: 100%; border: 1px solid #ddd; border-radius: 16px; padding: 14px 16px; background: #fff; color: #111; outline: none;
}
.application-form input:focus, .application-form select:focus, .application-form textarea:focus {
  border-color: rgba(182,138,58,.8); box-shadow: 0 0 0 3px rgba(182,138,58,.14);
}
.application-form textarea { min-height: 140px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 18px; }
.form-actions.between { justify-content: space-between; gap: 16px; }
.review-box { padding: 22px; border-radius: 20px; background: #f5efe6; border: 1px solid rgba(182,138,58,.25); margin-bottom: 18px; }
.review-box p { margin-top: 0; color: #444; line-height: 1.8; }
.review-box ul { margin: 0; padding-left: 18px; color: #5b5b5b; line-height: 1.8; }
.checkbox-row { display: flex !important; align-items: flex-start; gap: 12px; }
.checkbox-row input { width: auto; margin-top: 3px; }
.checkbox-row span { margin-bottom: 0 !important; font-weight: 500 !important; color: #444 !important; }
.form-status { min-height: 22px; color: #8a6617; font-weight: 600; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1260px) {
  .header-row { grid-template-columns: 300px 1fr; }
  .header-actions { display: none; }
}
@media (max-width: 1080px) {
  .hero-grid, .numbers-grid, .founders-grid, .apply-hero-grid { grid-template-columns: 1fr; }
  .imagery-grid { grid-template-columns: 1fr 1fr; }
  .imagery-card.wide { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { padding-top: 24px; }
  .hero-section { min-height: auto; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; justify-self: end; }
  .header-row { grid-template-columns: 230px auto; }
  .site-nav {
    position: absolute; top: 88px; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 22px 20px; background: #0b0b0b; border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .hero-cards, .numbers-cards, .form-steps, .two-col, .apply-hero-visuals { grid-template-columns: 1fr; }
  .apply-header-meta { display: none; }
  .apply-brand, .brand { width: 250px; }
  .apply-intro-left { text-align: center; }
  .apply-contact-row { justify-content: center; }
}
@media (max-width: 640px) {
  :root { --container: min(100% - 28px, 1240px); }
  .section { padding: 74px 0; }
  .hero-section { padding: 74px 0 68px; }
  .hero-copy h1 { font-size: 3rem; }
  .hero-copy { padding-top: 10px; }
  .imagery-grid, .process-grid, .program-grid, .reviews-grid { grid-template-columns: 1fr; }
  .form-shell, .apply-intro-left { padding: 20px; }
  .form-actions.between { flex-direction: column; }
  .footer-row { align-items: flex-start; }
}


.brand-image {
  max-width: 285px;
}
.brand {
  display: flex;
  align-items: center;
}
.brand-logo-image {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.52) saturate(0.88) hue-rotate(-8deg) brightness(0.96) contrast(1.05) drop-shadow(0 0 10px rgba(182,138,58,.10));
}
.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
}
.footer-logo-image {
  width: 220px;
  height: auto;
  filter: sepia(0.52) saturate(0.88) hue-rotate(-8deg) brightness(0.96) contrast(1.05);
}
.merged-apply-section {
  background: linear-gradient(180deg, #0a0a0a 0%, #0e0e0e 100%);
  border-top: 1px solid var(--line-soft);
}
.merged-apply-head {
  max-width: 860px;
  margin-bottom: 34px;
}
.merged-apply-head p {
  color: var(--muted);
}
.merged-apply-hero {
  margin-bottom: 24px;
}
.merged-apply-hero .apply-intro-left {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.merged-apply-hero .apply-intro h1,
.merged-apply-hero .apply-intro p,
.merged-apply-hero .apply-contact-row,
.merged-apply-hero .apply-intro-left,
.merged-apply-hero .application-form h2 {
  color: var(--text);
}
.merged-apply-hero .apply-intro p,
.merged-apply-hero .apply-contact-row {
  color: var(--muted);
}
.merged-apply-hero .apply-tag {
  color: var(--gold-soft);
  background: rgba(182,138,58,.12);
}
.merged-form-shell {
  background: rgba(255,255,255,.985);
}
@media (max-width: 860px) {
  .brand-image {
    max-width: 200px;
  }
  .footer-logo-image {
    width: 180px;
  }
}


/* === royal property refresh === */
body::before {
  content: "";
  position: fixed;
  inset: -20% auto auto -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(182,138,58,.11) 0%, rgba(182,138,58,0) 70%);
  pointer-events: none;
  z-index: 0;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(209,174,108,.75) 20%, rgba(182,138,58,.95) 50%, rgba(209,174,108,.75) 80%, transparent 100%);
}
.apply-btn, .btn-gold {
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(111,83,34,.34), inset 0 1px 0 rgba(255,255,255,.2);
}
.apply-btn::before, .btn-gold::before {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -28%;
  width: 34%;
  transform: rotate(18deg) translateX(0);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  opacity: 0;
  transition: transform .7s ease, opacity .35s ease;
}
.apply-btn:hover::before, .btn-gold:hover::before {
  opacity: 1;
  transform: rotate(18deg) translateX(360%);
}
.hero-section {
  background:
    radial-gradient(circle at 82% 20%, rgba(209,174,108,.16), transparent 21%),
    radial-gradient(circle at 18% 80%, rgba(154,115,48,.08), transparent 18%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}
.hero-with-image .hero-bg-image {
  opacity: .62;
  background-position: center 36%;
}
.hero-image-fade {
  background: linear-gradient(90deg, rgba(5,5,5,.9) 0%, rgba(5,5,5,.68) 32%, rgba(5,5,5,.28) 58%, rgba(5,5,5,.58) 100%);
}
.hero-copy h1,
.section-head h2,
.intro-block h2,
.numbers-copy h2,
.founder-copy h2,
.final-cta h2 {
  text-shadow: 0 10px 35px rgba(111,83,34,.16);
}
.hero-benefits span,
.program-card li,
.imagery-overlay span,
.photo-card-badge,
.section-tag,
.eyebrow-pill {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 25px rgba(111,83,34,.14);
}
.stat-card, .feature-card, .process-card, .program-card, .review-card, .numbers-cards div, .property-intro-card, .property-type-card {
  overflow: hidden;
}
.stat-card::after, .feature-card::after, .process-card::after, .program-card::after, .review-card::after, .numbers-cards div::after, .property-intro-card::after, .property-type-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(209,174,108,.10) 0%, rgba(209,174,108,0) 42%, rgba(255,255,255,.02) 100%);
}
.premium-property-section {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(182,138,58,.12), transparent 18%),
    radial-gradient(circle at 86% 10%, rgba(209,174,108,.08), transparent 18%),
    linear-gradient(180deg, #090909 0%, #0b0b0b 100%);
}
.royal-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  pointer-events: none;
  opacity: .5;
}
.royal-orb-left {
  width: 260px;
  height: 260px;
  left: -90px;
  top: 120px;
  background: radial-gradient(circle, rgba(182,138,58,.22), rgba(182,138,58,0) 72%);
}
.royal-orb-right {
  width: 320px;
  height: 320px;
  right: -100px;
  bottom: 100px;
  background: radial-gradient(circle, rgba(209,174,108,.18), rgba(209,174,108,0) 72%);
}
.property-head {
  position: relative;
  max-width: 920px;
  margin-bottom: 30px;
}
.property-head h2 {
  max-width: 900px;
}
.property-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.property-intro-card {
  position: relative;
  min-height: 205px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.038), rgba(255,255,255,.015));
  box-shadow: var(--shadow);
}
.property-intro-card span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(182,138,58,.24);
  background: rgba(182,138,58,.12);
  color: var(--gold-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.property-intro-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.25;
}
.property-intro-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
}
.property-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.property-type-card {
  position: relative;
  min-height: 390px;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.property-type-card:hover {
  transform: translateY(-4px);
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 26px 64px rgba(0,0,0,.42);
}
.property-type-featured {
  grid-column: span 2;
  min-height: 460px;
}
.property-type-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-type-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.78) 100%);
  z-index: 1;
}
.property-type-overlay {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}
.property-type-overlay span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(182,138,58,.28);
  background: rgba(182,138,58,.16);
  color: var(--gold-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.property-type-overlay h3 {
  margin: 14px 0 10px;
  font-size: 1.4rem;
  line-height: 1.25;
}
.property-type-overlay p {
  margin: 0;
  color: rgba(255,255,255,.84);
  line-height: 1.72;
}
.property-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}
.property-points li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(209,174,108,.24);
  color: #f2e7c8;
  font-size: .8rem;
  font-weight: 700;
}
@media (max-width: 1080px) {
  .property-intro-grid,
  .property-types-grid {
    grid-template-columns: 1fr 1fr;
  }
  .property-type-featured {
    grid-column: 1 / -1;
  }
}
@media (max-width: 860px) {
  .property-intro-grid,
  .property-types-grid {
    grid-template-columns: 1fr;
  }
  .property-type-featured {
    min-height: 410px;
  }
  .property-type-card {
    min-height: 360px;
  }
}


/* === ultra luxury royal refresh === */
:root {
  --gold-rich: #c7a35a;
  --gold-deep: #8e6428;
  --gold-pale: #e3c98f;
  --shadow-royal: 0 28px 80px rgba(0,0,0,.42);
}
body {
  background:
    radial-gradient(circle at 20% 0%, rgba(199,163,90,.06), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(143,100,40,.05), transparent 24%),
    linear-gradient(180deg, #050505 0%, #090909 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: auto -10% -18% auto;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(199,163,90,.09), rgba(199,163,90,0) 72%);
  pointer-events: none;
  z-index: 0;
}
.site-header {
  background: linear-gradient(180deg, rgba(8,8,8,.95) 0%, rgba(10,10,10,.88) 100%);
  box-shadow: 0 18px 36px rgba(0,0,0,.22);
}
.brand-logo-image,
.footer-logo-image {
  filter: sepia(0.5) saturate(0.92) hue-rotate(-8deg) brightness(.98) contrast(1.08) drop-shadow(0 0 12px rgba(199,163,90,.12));
}
.site-nav a,
.footer-links a,
.header-chip {
  position: relative;
}
.site-nav a {
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
}
.site-nav a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s ease;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}
.site-nav a:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
}
.hero-section::before,
.final-cta-section::before,
.merged-apply-section::before,
.founders-section::before,
.reviews-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,0) 22%, rgba(227,201,143,.03) 60%, rgba(255,255,255,0) 100%);
}
.hero-copy h1,
.section-head h2,
.intro-block h2,
.numbers-copy h2,
.founder-copy h2,
.final-cta h2,
.application-form h2,
.apply-intro h1,
.property-intro-card h3,
.property-type-overlay h3,
.program-card h3,
.review-card strong {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: .01em;
}
.hero-copy h1 {
  font-size: clamp(4rem, 7vw, 6.2rem);
  line-height: .9;
  font-weight: 700;
}
.hero-copy h1 span {
  background: linear-gradient(180deg, #ead9aa 0%, #d5b16a 42%, #9a7330 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.section-head h2,
.intro-block h2,
.numbers-copy h2,
.founder-copy h2,
.final-cta h2,
.application-form h2,
.apply-intro h1 {
  font-weight: 600;
}
.hero-text,
.section-head p,
.intro-block p,
.numbers-copy p,
.review-card p,
.program-card p,
.feature-card p,
.process-card p,
.founder-copy blockquote,
.apply-intro p,
.property-intro-card p,
.property-type-overlay p {
  color: rgba(255,255,255,.76);
}
.section-tag,
.eyebrow-pill,
.hero-benefits span,
.property-intro-card span,
.property-type-overlay span,
.photo-card-badge,
.program-card li,
.header-chip {
  background: linear-gradient(180deg, rgba(199,163,90,.16), rgba(142,100,40,.08));
  border-color: rgba(199,163,90,.24);
  color: #e7d3a1;
}
.apply-btn,
.btn-gold {
  background: linear-gradient(135deg, #ead7a1 0%, #c7a35a 45%, #8e6428 100%);
  color: #120e09;
  box-shadow: 0 18px 42px rgba(100,67,24,.38), inset 0 1px 0 rgba(255,255,255,.26), inset 0 -8px 14px rgba(116,83,36,.2);
}
.apply-btn:hover,
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(100,67,24,.42), inset 0 1px 0 rgba(255,255,255,.3), inset 0 -8px 14px rgba(116,83,36,.24);
}
.btn-dark {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-color: rgba(227,201,143,.18);
}
.stat-card,
.feature-card,
.process-card,
.program-card,
.review-card,
.numbers-cards div,
.property-intro-card,
.property-type-card,
.apply-visual-card,
.form-shell,
.merged-apply-hero .apply-intro-left {
  box-shadow: var(--shadow-royal);
  border-color: rgba(199,163,90,.22);
}
.stat-card,
.feature-card,
.process-card,
.program-card,
.review-card,
.numbers-cards div,
.property-intro-card,
.form-shell,
.merged-apply-hero .apply-intro-left,
.apply-visual-card,
.property-type-card {
  position: relative;
}
.stat-card::before,
.feature-card::before,
.process-card::before,
.program-card::before,
.review-card::before,
.numbers-cards div::before,
.property-intro-card::before,
.form-shell::before,
.merged-apply-hero .apply-intro-left::before,
.apply-visual-card::before,
.property-type-card .property-type-overlay::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  pointer-events: none;
}
.property-type-card .property-type-overlay::before {
  left: 0;
  right: 0;
  top: -18px;
}
.stat-card:hover,
.feature-card:hover,
.process-card:hover,
.program-card:hover,
.review-card:hover,
.numbers-cards div:hover,
.property-intro-card:hover,
.apply-visual-card:hover {
  transform: translateY(-4px);
  transition: transform .28s ease, box-shadow .28s ease;
  box-shadow: 0 34px 86px rgba(0,0,0,.48);
}
.hero-ring,
.royal-orb,
.hero-grid-overlay {
  animation: slowFloat 10s ease-in-out infinite;
}
.hero-ring-2,
.royal-orb-right {
  animation-duration: 13s;
}
.stat-card,
.program-card,
.review-card,
.property-type-card,
.apply-visual-card {
  animation: softRise .9s ease both;
}
.reveal.visible {
  animation: revealRise .8s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes slowFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes softRise {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-1px); }
  100% { transform: translateY(0px); }
}
@keyframes revealRise {
  0% { opacity: 0; transform: translateY(30px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@property --shine-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 125deg;
}
.program-card::after,
.review-card::after,
.property-intro-card::after,
.property-type-card::before,
.apply-visual-card::after,
.form-shell::after {
  background:
    linear-gradient(var(--shine-angle), rgba(227,201,143,.10) 0%, rgba(227,201,143,0) 32%, rgba(255,255,255,.03) 100%);
  animation: sheenMove 8s linear infinite;
}
@keyframes sheenMove {
  0% { --shine-angle: 125deg; }
  50% { --shine-angle: 145deg; }
  100% { --shine-angle: 125deg; }
}
.mini-divider,
.site-header::after {
  box-shadow: 0 0 24px rgba(199,163,90,.26);
}
.progress-fill {
  background: linear-gradient(90deg, #e4cb92 0%, #c7a35a 50%, #8e6428 100%);
  box-shadow: 0 0 18px rgba(199,163,90,.28);
}
.form-step.active {
  background: linear-gradient(180deg, rgba(199,163,90,.18), rgba(199,163,90,.08));
}
.form-step.active span {
  background: linear-gradient(180deg, #e4cb92 0%, #c7a35a 100%);
}
.site-footer {
  background: linear-gradient(180deg, #050505 0%, #070707 100%);
}
.footer-brand-wrap p {
  color: rgba(255,255,255,.72);
}
@media (max-width: 860px) {
  .site-nav a {
    font-size: .82rem;
  }
  .hero-copy h1 {
    font-size: 3.2rem;
  }
}


/* === standalone apply page === */
.standalone-apply-main {
  background: linear-gradient(180deg, #070707 0%, #0b0b0b 100%);
  min-height: 100vh;
}
.standalone-apply-hero {
  margin-bottom: 28px;
}
.standalone-apply-copy {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(199,163,90,.22);
  box-shadow: var(--shadow-royal, 0 28px 80px rgba(0,0,0,.42));
}
.standalone-apply-copy h1,
.standalone-apply-copy p,
.standalone-apply-copy .apply-contact-row {
  color: var(--text);
}
.standalone-apply-copy p,
.standalone-apply-copy .apply-contact-row {
  color: var(--muted);
}
.standalone-form-shell {
  background: rgba(255,255,255,.985);
  margin-bottom: 40px;
}


/* === bilingual frontend controls === */
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid rgba(199,163,90,.22); background: rgba(255,255,255,.04); }
.lang-toggle a { padding: 8px 12px; border-radius: 999px; color: rgba(255,255,255,.74); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lang-toggle a.active { background: linear-gradient(135deg, rgba(234,215,161,.22), rgba(199,163,90,.22)); color: #f7e6b6; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.nav-lang-toggle { margin-left: 8px; }
.apply-lang-toggle { margin-left: 6px; }
.form-status.success { color: #2a7a36; }
.form-status.error { color: #a33c3c; }
@media (max-width: 1260px) { .header-actions { display: none; } .site-nav { gap: 20px; flex-wrap: wrap; } }
@media (max-width: 860px) { .apply-header-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; } .nav-lang-toggle { margin-left: 0; } .site-nav .lang-toggle { width: 100%; justify-content: flex-start; } }


/* 2026 responsive branding and header/apply fixes */
.header-row {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 22px;
  flex-wrap: wrap;
  padding: 14px 0;
}
.brand,
.brand-image {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-image { max-width: none; }
.brand-logo-image {
  width: clamp(110px, 13vw, 170px);
  max-width: 170px;
  flex: 0 0 auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.brand-text strong {
  font-size: clamp(.95rem, 1.25vw, 1.1rem);
  line-height: 1.1;
  letter-spacing: .02em;
}
.brand-text small {
  color: rgba(255,255,255,.62);
  font-size: .68rem;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-nav {
  flex: 1 1 420px;
  min-width: 0;
  justify-content: center;
  gap: 18px 24px;
  flex-wrap: wrap;
}
.header-actions {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.header-chip { min-height: 44px; white-space: normal; }
.header-chip span { overflow-wrap: anywhere; word-break: break-word; }
.apply-header-row {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 22px;
  flex-wrap: wrap;
  padding: 14px 0;
}
.apply-header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-left: auto;
}
.apply-brand { width: auto; max-width: 100%; }
.apply-intro-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 18px 0 14px;
  border-radius: 20px;
  border: 1px solid rgba(182,138,58,.18);
  background: linear-gradient(180deg, rgba(182,138,58,.08), rgba(182,138,58,.03));
  max-width: 100%;
}
.apply-brand-mark {
  width: clamp(96px, 20vw, 132px);
  max-width: 132px;
  height: auto;
  flex: 0 0 auto;
  filter: sepia(0.52) saturate(0.88) hue-rotate(-8deg) brightness(0.96) contrast(1.05) drop-shadow(0 0 10px rgba(182,138,58,.10));
}
.apply-intro-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.apply-intro-brand-copy strong {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.1;
}
.apply-intro-brand-copy span {
  color: #6a6a6a;
  font-size: .72rem;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.apply-contact-row {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.apply-contact-row a,
.apply-contact-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  color: #444;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  text-align: center;
}
.apply-contact-row a { font-weight: 600; }
.apply-contact-row a[href^="mailto:"] { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 1260px) {
  .header-row { align-items: flex-start; }
  .site-nav { order: 3; flex: 1 1 100%; justify-content: flex-start; }
  .header-actions { justify-content: flex-end; }
}
@media (max-width: 860px) {
  .brand, .brand-image, .apply-brand { gap: 10px; }
  .brand-logo-image { width: clamp(98px, 28vw, 132px); max-width: 132px; }
  .brand-text small { letter-spacing: .08em; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-row { position: relative; align-items: center; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    background: #0b0b0b;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    z-index: 1001;
  }
  .site-nav.open { display: flex; }
  .header-actions { flex: 1 1 100%; justify-content: stretch; }
  .header-chip, .apply-btn { flex: 1 1 100%; justify-content: center; }
  .apply-header-row { align-items: flex-start; }
  .apply-header-meta { width: 100%; margin-left: 0; justify-content: flex-start; }
  .apply-intro-left { text-align: left; }
  .apply-intro-brand { width: 100%; }
  .apply-contact-row { justify-content: flex-start; }
  .apply-contact-row a, .apply-contact-row span { width: 100%; }
}
@media (max-width: 640px) {
  .brand-text strong { font-size: .92rem; }
  .brand-text small { font-size: .62rem; }
  .site-header, .apply-header { overflow: visible; }
  .header-row, .apply-header-row { gap: 12px; }
  .apply-intro-brand { flex-direction: column; align-items: flex-start; }
  .apply-intro-brand-copy span { letter-spacing: .08em; }
}

/* ===== SINGLE-LINE HEADER FIX ===== */
/* Forces brand, nav, and actions onto one horizontal line.
   Overrides earlier flex-wrap rules that were causing logo/nav overlap. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 7, 7, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  overflow: visible;
}

.site-header .header-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  min-height: 76px !important;
  padding: 10px 0 !important;
  width: 100%;
}

/* Brand block (logo + text) — fixed compact size, never grows */
.site-header .brand,
.site-header .brand-image {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  max-width: 260px !important;
  min-width: 0;
}

.site-header .brand-logo-image {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-header .brand-text {
  display: flex !important;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}

.site-header .brand-text strong {
  font-size: 0.92rem !important;
  line-height: 1.15 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.site-header .brand-text small {
  font-size: 0.58rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.1em !important;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav — center, single line, compact spacing */
.site-header .site-nav {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 18px !important;
  min-width: 0;
  order: initial !important;
  position: static !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}

.site-header .site-nav > a {
  font-size: 0.82rem !important;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255,255,255,0.85);
  padding: 4px 2px;
}

.site-header .site-nav > a:hover { color: var(--gold-soft); }

/* Inline language toggle inside the nav */
.site-header .lang-toggle.nav-lang-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  flex: 0 0 auto;
}

.site-header .lang-toggle.nav-lang-toggle a {
  padding: 5px 12px !important;
  font-size: 0.72rem !important;
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header .lang-toggle.nav-lang-toggle a.active {
  background: linear-gradient(135deg, #D1AE6C 0%, #B68A3A 60%, #6F5322 100%);
  color: #111;
}

/* Right actions — keep on the same line, never wrap */
.site-header .header-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0;
}

.site-header .header-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 7px 12px !important;
  min-height: 36px !important;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.82);
  font-size: 0.74rem !important;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header .header-chip span {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.site-header .apply-btn {
  padding: 9px 18px !important;
  font-size: 0.82rem !important;
  border-radius: 999px;
  white-space: nowrap !important;
  flex: 0 0 auto;
}

/* Hide hamburger on desktop */
.site-header .menu-toggle { display: none !important; }

/* --- Responsive collapse points --- */

/* Medium screens: hide the email chip first to save space */
@media (max-width: 1280px) {
  .site-header .header-chip[href^="mailto:"] { display: none !important; }
  .site-header .site-nav { gap: 14px !important; }
  .site-header .site-nav > a { font-size: 0.78rem !important; }
}

/* Smaller desktops: also hide the phone chip, keep nav + Apply button */
@media (max-width: 1100px) {
  .site-header .header-chip { display: none !important; }
  .site-header .brand-text small { display: none; }
}

/* Tablet: collapse nav into hamburger menu */
@media (max-width: 920px) {
  .site-header .header-row { min-height: 64px !important; }
  .site-header .menu-toggle {
    display: block !important;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
    order: 99;
  }
  .site-header .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--gold);
  }
  .site-header .site-nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 18px !important;
    background: #0b0b0b !important;
    border: 1px solid var(--line) !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: var(--shadow) !important;
    z-index: 1001;
  }
  .site-header .site-nav.open { display: flex !important; }
  .site-header .site-nav > a { font-size: 0.95rem !important; padding: 6px 4px; }
  .site-header .lang-toggle.nav-lang-toggle { align-self: flex-start; }
  .site-header .apply-btn { padding: 8px 14px !important; font-size: 0.78rem !important; }
}

@media (max-width: 520px) {
  .site-header .brand-logo-image { width: 42px !important; height: 42px !important; }
  .site-header .brand-text strong { font-size: 0.82rem !important; }
  .site-header .apply-btn { padding: 7px 12px !important; font-size: 0.74rem !important; }
}
/* ===== END SINGLE-LINE HEADER FIX ===== */

/* ===== SINGLE-LINE APPLY-PAGE HEADER FIX ===== */
.apply-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 7, 7, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  overflow: visible;
}

.apply-header .apply-header-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  min-height: 72px !important;
  padding: 10px 0 !important;
  width: 100%;
}

.apply-header .brand,
.apply-header .brand-image,
.apply-header .apply-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  max-width: 280px !important;
  width: auto !important;
  min-width: 0;
}

.apply-header .brand-logo-image {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  object-fit: contain;
  flex: 0 0 auto;
}

.apply-header .brand-text {
  display: flex !important;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}

.apply-header .brand-text strong {
  font-size: 0.92rem !important;
  line-height: 1.15 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apply-header .brand-text small {
  font-size: 0.58rem !important;
  line-height: 1.2 !important;
  letter-spacing: 0.1em !important;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apply-header .apply-header-meta {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
}

.apply-header .apply-header-meta > span {
  font-size: 0.74rem !important;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
}

.apply-header .lang-toggle.apply-lang-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  flex: 0 0 auto;
}

.apply-header .lang-toggle.apply-lang-toggle a {
  padding: 5px 12px !important;
  font-size: 0.72rem !important;
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apply-header .lang-toggle.apply-lang-toggle a.active {
  background: linear-gradient(135deg, #D1AE6C 0%, #B68A3A 60%, #6F5322 100%);
  color: #111;
}

@media (max-width: 900px) {
  .apply-header .apply-header-meta > span { display: none !important; }
  .apply-header .brand-text small { display: none; }
}

@media (max-width: 520px) {
  .apply-header .brand-logo-image { width: 42px !important; height: 42px !important; }
  .apply-header .brand-text strong { font-size: 0.82rem !important; }
}
/* ===== END SINGLE-LINE APPLY-PAGE HEADER FIX ===== */


/* ===== HIDE BRAND SUBTITLE/TEXT NEXT TO LOGO ===== */
/* Per request: header should show ONLY logo + menu + contact + Apply button. */
.site-header .brand-text,
.apply-header .brand-text {
  display: none !important;
}

/* Tighten the brand block now that only the logo image remains */
.site-header .brand,
.site-header .brand-image,
.apply-header .brand,
.apply-header .brand-image,
.apply-header .apply-brand {
  gap: 0 !important;
  max-width: none !important;
}

/* Slightly larger logo image since it now stands alone */
.site-header .brand-logo-image,
.apply-header .brand-logo-image {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
}

@media (max-width: 520px) {
  .site-header .brand-logo-image,
  .apply-header .brand-logo-image {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
  }
}
/* ===== END HIDE BRAND SUBTITLE/TEXT ===== */

/* ===== COMPACT PROFESSIONAL HEADER REFINEMENT ===== */
/* Reduces overall header height, tightens spacing, and ensures perfect
   single-line alignment across desktop and mobile. */

/* --- Compact header bar --- */
.site-header,
.apply-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(7, 7, 7, 0.95);
}

.site-header .header-row,
.apply-header .apply-header-row {
  min-height: 60px !important;
  padding: 6px 0 !important;
  gap: 14px !important;
  align-items: center !important;
}

/* --- Brand: smaller, perfectly centered logo --- */
.site-header .brand,
.site-header .brand-image,
.apply-header .brand,
.apply-header .brand-image,
.apply-header .apply-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

.site-header .brand-logo-image,
.apply-header .brand-logo-image {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
}

/* --- Nav: tighter spacing, refined typography --- */
.site-header .site-nav {
  gap: 22px !important;
  align-items: center !important;
}

.site-header .site-nav > a {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 4px 0 !important;
  line-height: 1 !important;
  color: rgba(255,255,255,0.82) !important;
  transition: color 0.2s ease;
}

.site-header .site-nav > a:hover { color: var(--gold-soft) !important; }

/* --- Language toggle: smaller pill --- */
.site-header .lang-toggle.nav-lang-toggle,
.apply-header .lang-toggle.apply-lang-toggle {
  padding: 2px !important;
  gap: 2px !important;
  border-color: rgba(255,255,255,0.10) !important;
  background: rgba(255,255,255,0.025) !important;
}

.site-header .lang-toggle.nav-lang-toggle a,
.apply-header .lang-toggle.apply-lang-toggle a {
  padding: 4px 10px !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.06em !important;
  line-height: 1 !important;
}

/* --- Right-side actions: compact chips and CTA --- */
.site-header .header-actions {
  gap: 6px !important;
  align-items: center !important;
}

.site-header .header-chip {
  padding: 6px 11px !important;
  min-height: 32px !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  gap: 5px !important;
  border-color: rgba(255,255,255,0.10) !important;
  background: rgba(255,255,255,0.025) !important;
  color: rgba(255,255,255,0.82) !important;
}

.site-header .apply-btn {
  padding: 8px 16px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  min-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* --- Apply-page meta strip (Encryption / No Hard Credit Pull) --- */
.apply-header .apply-header-meta {
  gap: 12px !important;
}

.apply-header .apply-header-meta > span {
  font-size: 0.7rem !important;
  letter-spacing: 0.03em !important;
  color: rgba(255,255,255,0.7) !important;
}

/* --- Smooth responsive collapse --- */

/* Hide email chip first to save space */
@media (max-width: 1280px) {
  .site-header .header-chip[href^="mailto:"] { display: none !important; }
  .site-header .site-nav { gap: 18px !important; }
}

/* Hide phone chip on smaller laptops */
@media (max-width: 1080px) {
  .site-header .header-chip { display: none !important; }
  .site-header .site-nav { gap: 16px !important; }
  .site-header .site-nav > a { font-size: 0.74rem !important; }
}

/* Tablet: hamburger menu */
@media (max-width: 900px) {
  .site-header .header-row,
  .apply-header .apply-header-row {
    min-height: 54px !important;
    padding: 4px 0 !important;
  }
  .site-header .brand-logo-image,
  .apply-header .brand-logo-image {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
  }
  .site-header .menu-toggle {
    padding: 4px !important;
    margin-left: auto !important;
  }
  .site-header .menu-toggle span {
    width: 22px !important;
    height: 2px !important;
    margin: 4px 0 !important;
  }
  .site-header .apply-btn {
    padding: 7px 14px !important;
    font-size: 0.72rem !important;
    min-height: 30px !important;
  }
  .apply-header .apply-header-meta > span { display: none !important; }
  .apply-header .apply-header-meta { gap: 8px !important; }
}

/* Mobile */
@media (max-width: 520px) {
  .site-header .header-row,
  .apply-header .apply-header-row {
    min-height: 50px !important;
    padding: 4px 0 !important;
    gap: 10px !important;
  }
  .site-header .brand-logo-image,
  .apply-header .brand-logo-image {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
  }
  .site-header .apply-btn {
    padding: 6px 12px !important;
    font-size: 0.68rem !important;
    min-height: 28px !important;
  }
  .apply-header .lang-toggle.apply-lang-toggle a {
    padding: 3px 8px !important;
    font-size: 0.62rem !important;
  }
}
/* ===== END COMPACT PROFESSIONAL HEADER REFINEMENT ===== */

/* ===== HEADER REBUILD V2 — Large Visible Logo + Everything Fits ===== */
/* New wordmark-style logo is wider than tall. Layout updated to:
   - Display logo prominently (clear at 150-180px width)
   - Re-show brand text? NO (user wants logo only)
   - Compact nav, contact, and CTA so the row fits on one line at all desktop sizes */

.site-header,
.apply-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 7, 7, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(182, 138, 58, 0.18);
  overflow: visible;
}

.site-header .header-row,
.apply-header .apply-header-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 84px !important;
  padding: 10px 0 !important;
  width: 100%;
}

/* --- Logo block: PROMINENT, wide wordmark --- */
.site-header .brand,
.site-header .brand-image,
.apply-header .brand,
.apply-header .brand-image,
.apply-header .apply-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 220px !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

.site-header .brand-logo-image,
.apply-header .brand-logo-image {
  width: auto !important;
  height: 64px !important;
  max-height: 64px !important;
  max-width: 200px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  filter: none !important;
}

/* Brand subtitle remains hidden */
.site-header .brand-text,
.apply-header .brand-text {
  display: none !important;
}

/* --- Nav: tight, compact, all 5 links + lang toggle on one line --- */
.site-header .site-nav {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  min-width: 0;
  position: static !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}

.site-header .site-nav > a {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 4px 0 !important;
  line-height: 1 !important;
  color: rgba(255,255,255,0.85) !important;
  white-space: nowrap !important;
  transition: color 0.2s ease;
}

.site-header .site-nav > a:hover { color: var(--gold-soft) !important; }

/* Language toggle inside nav */
.site-header .lang-toggle.nav-lang-toggle,
.apply-header .lang-toggle.apply-lang-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 2px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
  flex: 0 0 auto !important;
}

.site-header .lang-toggle.nav-lang-toggle a,
.apply-header .lang-toggle.apply-lang-toggle a {
  padding: 4px 9px !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  border-radius: 999px;
  color: rgba(255,255,255,0.72) !important;
}

.site-header .lang-toggle.nav-lang-toggle a.active,
.apply-header .lang-toggle.apply-lang-toggle a.active {
  background: linear-gradient(135deg, #D1AE6C 0%, #B68A3A 60%, #6F5322 100%) !important;
  color: #111 !important;
}

/* --- Right side: contact chips + Apply Now --- */
.site-header .header-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  min-width: 0;
}

.site-header .header-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 6px 11px !important;
  min-height: 34px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.84) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.site-header .header-chip span {
  white-space: nowrap !important;
  overflow: visible !important;
  word-break: keep-all !important;
}

.site-header .apply-btn {
  padding: 9px 18px !important;
  min-height: 36px !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  border-radius: 999px;
  white-space: nowrap !important;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Apply-page meta strip */
.apply-header .apply-header-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
}

.apply-header .apply-header-meta > span {
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  color: rgba(255,255,255,0.72) !important;
  white-space: nowrap !important;
}

.site-header .menu-toggle { display: none !important; }

/* --- Responsive breakpoints --- */

/* Below 1300px: hide email chip */
@media (max-width: 1300px) {
  .site-header .header-chip[href^="mailto:"] { display: none !important; }
  .site-header .site-nav { gap: 14px !important; }
  .site-header .site-nav > a { font-size: 0.72rem !important; }
}

/* Below 1120px: hide phone chip too */
@media (max-width: 1120px) {
  .site-header .header-chip { display: none !important; }
  .site-header .site-nav { gap: 14px !important; }
}

/* Below 980px: collapse nav into hamburger */
@media (max-width: 980px) {
  .site-header .header-row,
  .apply-header .apply-header-row {
    min-height: 72px !important;
  }
  .site-header .brand-logo-image,
  .apply-header .brand-logo-image {
    height: 52px !important;
    max-height: 52px !important;
    max-width: 170px !important;
  }
  .site-header .menu-toggle {
    display: block !important;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
    margin-left: auto !important;
    order: 99;
  }
  .site-header .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--gold);
  }
  .site-header .site-nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 18px !important;
    background: #0b0b0b !important;
    border: 1px solid rgba(182, 138, 58, 0.18) !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5) !important;
    z-index: 1001;
  }
  .site-header .site-nav.open { display: flex !important; }
  .site-header .site-nav > a {
    font-size: 0.88rem !important;
    padding: 6px 4px !important;
  }
  .site-header .lang-toggle.nav-lang-toggle { align-self: flex-start; }
  .site-header .apply-btn {
    padding: 8px 14px !important;
    font-size: 0.72rem !important;
    min-height: 32px !important;
  }
  .apply-header .apply-header-meta > span { display: none !important; }
  .apply-header .apply-header-meta { gap: 8px !important; }
}

/* Mobile */
@media (max-width: 560px) {
  .site-header .header-row,
  .apply-header .apply-header-row {
    min-height: 64px !important;
    padding: 8px 0 !important;
    gap: 10px !important;
  }
  .site-header .brand-logo-image,
  .apply-header .brand-logo-image {
    height: 44px !important;
    max-height: 44px !important;
    max-width: 150px !important;
  }
  .site-header .apply-btn {
    padding: 7px 12px !important;
    font-size: 0.66rem !important;
    min-height: 28px !important;
  }
  .apply-header .lang-toggle.apply-lang-toggle a {
    padding: 3px 8px !important;
    font-size: 0.58rem !important;
  }
}
/* ===== END HEADER REBUILD V2 ===== */

/* ===== HEADER V3 — MUCH LARGER LOGO + STICKY ACROSS ALL SECTIONS ===== */
/* The new PFS logo (with monogram + 3-line wordmark) is roughly square-ish.
   To make it visually prominent and clearly readable, we use a taller header
   bar and a much larger logo image. */

/* Make the header bar taller to accommodate the larger logo */
.site-header,
.apply-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1100 !important;
  background: rgba(7, 7, 7, 0.97) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(182, 138, 58, 0.22) !important;
  overflow: visible !important;
  /* Force opaque so background never bleeds through on apply pages */
  isolation: isolate;
}

.site-header .header-row,
.apply-header .apply-header-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  min-height: 120px !important;
  padding: 12px 0 !important;
  width: 100%;
}

/* --- LOGO: MUCH LARGER --- */
.site-header .brand,
.site-header .brand-image,
.apply-header .brand,
.apply-header .brand-image,
.apply-header .apply-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

.site-header .brand-logo-image,
.apply-header .brand-logo-image {
  width: auto !important;
  height: 100px !important;
  max-height: 100px !important;
  max-width: 130px !important;
  min-width: 100px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  filter: none !important;
}

/* Keep brand subtitle hidden */
.site-header .brand-text,
.apply-header .brand-text {
  display: none !important;
}

/* --- Nav: balanced for the larger header --- */
.site-header .site-nav {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  min-width: 0;
  position: static !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}

.site-header .site-nav > a {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 4px 0 !important;
  line-height: 1 !important;
  color: rgba(255,255,255,0.85) !important;
  white-space: nowrap !important;
  transition: color 0.2s ease;
}

.site-header .site-nav > a:hover { color: var(--gold-soft) !important; }

/* Language toggle inside nav */
.site-header .lang-toggle.nav-lang-toggle,
.apply-header .lang-toggle.apply-lang-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 2px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
  flex: 0 0 auto !important;
}

.site-header .lang-toggle.nav-lang-toggle a,
.apply-header .lang-toggle.apply-lang-toggle a {
  padding: 5px 10px !important;
  font-size: 0.64rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  border-radius: 999px;
  color: rgba(255,255,255,0.72) !important;
}

.site-header .lang-toggle.nav-lang-toggle a.active,
.apply-header .lang-toggle.apply-lang-toggle a.active {
  background: linear-gradient(135deg, #D1AE6C 0%, #B68A3A 60%, #6F5322 100%) !important;
  color: #111 !important;
}

/* --- Right side: contact chips + Apply Now --- */
.site-header .header-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  min-width: 0;
}

.site-header .header-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 7px 12px !important;
  min-height: 36px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.84) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.site-header .header-chip span {
  white-space: nowrap !important;
  overflow: visible !important;
  word-break: keep-all !important;
}

.site-header .apply-btn {
  padding: 10px 20px !important;
  min-height: 38px !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  border-radius: 999px;
  white-space: nowrap !important;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Apply-page meta strip */
.apply-header .apply-header-meta {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
}

.apply-header .apply-header-meta > span {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  color: rgba(255,255,255,0.75) !important;
  white-space: nowrap !important;
}

.site-header .menu-toggle { display: none !important; }

/* --- CRITICAL: Ensure parent containers do NOT block sticky behavior --- */
/* On the apply pages, certain wrapper containers can have overflow:hidden
   or transform/filter properties that break position:sticky. Force them
   to allow sticky positioning. */
html, body {
  overflow-x: clip !important;
  overflow-y: visible !important;
}

body > main,
body > .apply-page,
.apply-page,
main {
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  contain: none !important;
}

/* Make sure no section/container above the fold has overflow:hidden that
   would clip the sticky header */
.apply-hero-section,
.apply-form-section,
section {
  overflow: visible !important;
}

/* --- Responsive breakpoints --- */

@media (max-width: 1300px) {
  .site-header .header-chip[href^="mailto:"] { display: none !important; }
  .site-header .site-nav { gap: 16px !important; }
  .site-header .site-nav > a { font-size: 0.74rem !important; }
}

@media (max-width: 1120px) {
  .site-header .header-chip { display: none !important; }
  .site-header .site-nav { gap: 14px !important; }
}

@media (max-width: 980px) {
  .site-header .header-row,
  .apply-header .apply-header-row {
    min-height: 92px !important;
  }
  .site-header .brand-logo-image,
  .apply-header .brand-logo-image {
    height: 76px !important;
    max-height: 76px !important;
    max-width: 100px !important;
    min-width: 76px !important;
  }
  .site-header .menu-toggle {
    display: block !important;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
    margin-left: auto !important;
    order: 99;
  }
  .site-header .menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    margin: 5px 0;
    background: var(--gold);
  }
  .site-header .site-nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 18px !important;
    background: #0b0b0b !important;
    border: 1px solid rgba(182, 138, 58, 0.18) !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5) !important;
    z-index: 1101;
  }
  .site-header .site-nav.open { display: flex !important; }
  .site-header .site-nav > a {
    font-size: 0.9rem !important;
    padding: 6px 4px !important;
  }
  .site-header .lang-toggle.nav-lang-toggle { align-self: flex-start; }
  .site-header .apply-btn {
    padding: 9px 16px !important;
    font-size: 0.74rem !important;
    min-height: 34px !important;
  }
  .apply-header .apply-header-meta > span { display: none !important; }
  .apply-header .apply-header-meta { gap: 8px !important; }
}

@media (max-width: 560px) {
  .site-header .header-row,
  .apply-header .apply-header-row {
    min-height: 76px !important;
    padding: 8px 0 !important;
    gap: 10px !important;
  }
  .site-header .brand-logo-image,
  .apply-header .brand-logo-image {
    height: 60px !important;
    max-height: 60px !important;
    max-width: 80px !important;
    min-width: 60px !important;
  }
  .site-header .apply-btn {
    padding: 7px 13px !important;
    font-size: 0.68rem !important;
    min-height: 30px !important;
  }
  .apply-header .lang-toggle.apply-lang-toggle a {
    padding: 4px 8px !important;
    font-size: 0.6rem !important;
  }
}
/* ===== END HEADER V3 ===== */

/* ===== APPLY INTRO READABILITY + LOGO FIX ===== */
/* Issue 1: Section text was dark on dark background — make all readable in white. */
/* Issue 2: .apply-brand-mark had a sepia filter that was making the new logo look brownish. */

/* Force-white text throughout the apply intro card */
.apply-intro,
.apply-intro-left,
.standalone-apply-copy {
  color: #ffffff !important;
}

.apply-intro h1,
.apply-intro-left h1,
.standalone-apply-copy h1 {
  color: #ffffff !important;
}

.apply-intro p,
.apply-intro-left p,
.standalone-apply-copy p {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* Brand pill (small logo card) - keep dark background but make text readable */
.apply-intro-brand {
  border: 1px solid rgba(182, 138, 58, 0.35) !important;
  background: linear-gradient(180deg, rgba(182, 138, 58, 0.12), rgba(182, 138, 58, 0.05)) !important;
}

.apply-intro-brand-copy strong {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.apply-intro-brand-copy span {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* Remove the sepia/hue filter that was tinting the logo */
.apply-brand-mark {
  filter: none !important;
  width: clamp(80px, 15vw, 110px) !important;
  max-width: 110px !important;
  height: auto !important;
}

/* Contact row — readable pill buttons on dark */
.apply-contact-row a,
.apply-contact-row span,
.standalone-apply-copy .apply-contact-row a,
.standalone-apply-copy .apply-contact-row span {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.apply-contact-row a:hover {
  background: rgba(182, 138, 58, 0.18) !important;
  border-color: rgba(182, 138, 58, 0.45) !important;
}

/* Pre-Qualification tag — keep gold but readable */
.apply-tag,
.standalone-apply-copy .apply-tag {
  color: #E0BD7B !important;
  background: rgba(182, 138, 58, 0.18) !important;
  border: 1px solid rgba(182, 138, 58, 0.35) !important;
}
/* ===== END APPLY INTRO READABILITY ===== */

/* ===== HEADER V4 — Bigger Logo + More Compact Layout ===== */
/* Goal: Logo more prominent (bigger box, brighter, more presence), but
   overall header tighter so elements aren't spread out. */

/* Tighter, less spaced header bar */
.site-header,
.apply-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1100 !important;
  background: rgba(7, 7, 7, 0.97) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(182, 138, 58, 0.22) !important;
  overflow: visible !important;
  isolation: isolate;
}

.site-header .header-row,
.apply-header .apply-header-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 96px !important;
  padding: 8px 0 !important;
  width: 100%;
}

/* --- LOGO: LARGER, BRIGHTER, MORE PRESENT --- */
.site-header .brand,
.site-header .brand-image,
.apply-header .brand,
.apply-header .brand-image,
.apply-header .apply-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
}

.site-header .brand-logo-image,
.apply-header .brand-logo-image {
  width: auto !important;
  height: 130px !important;
  max-height: 130px !important;
  max-width: 170px !important;
  min-width: 130px !important;
  object-fit: contain !important;
  display: block !important;
  margin: -16px 0 !important;
  filter: drop-shadow(0 0 8px rgba(182, 138, 58, 0.25)) !important;
  transform: scale(1.05);
  transform-origin: left center;
}

/* Keep brand subtitle hidden */
.site-header .brand-text,
.apply-header .brand-text {
  display: none !important;
}

/* --- Nav: tighter spacing, closer to logo --- */
.site-header .site-nav {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  min-width: 0;
  position: static !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
}

.site-header .site-nav > a {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 4px 0 !important;
  line-height: 1 !important;
  color: rgba(255,255,255,0.85) !important;
  white-space: nowrap !important;
  transition: color 0.2s ease;
}

.site-header .site-nav > a:hover { color: var(--gold-soft) !important; }

/* Language toggle: compact pill */
.site-header .lang-toggle.nav-lang-toggle,
.apply-header .lang-toggle.apply-lang-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 2px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
  flex: 0 0 auto !important;
}

.site-header .lang-toggle.nav-lang-toggle a,
.apply-header .lang-toggle.apply-lang-toggle a {
  padding: 4px 9px !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  border-radius: 999px;
  color: rgba(255,255,255,0.72) !important;
}

.site-header .lang-toggle.nav-lang-toggle a.active,
.apply-header .lang-toggle.apply-lang-toggle a.active {
  background: linear-gradient(135deg, #D1AE6C 0%, #B68A3A 60%, #6F5322 100%) !important;
  color: #111 !important;
}

/* --- Right side: tighter spacing between chips and button --- */
.site-header .header-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  min-width: 0;
}

.site-header .header-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 10px !important;
  min-height: 32px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.84) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.site-header .header-chip span {
  white-space: nowrap !important;
  overflow: visible !important;
  word-break: keep-all !important;
}

.site-header .apply-btn {
  padding: 9px 17px !important;
  min-height: 34px !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  border-radius: 999px;
  white-space: nowrap !important;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Apply-page meta strip */
.apply-header .apply-header-meta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
}

.apply-header .apply-header-meta > span {
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  color: rgba(255,255,255,0.75) !important;
  white-space: nowrap !important;
}

.site-header .menu-toggle { display: none !important; }

/* Container can use full width on header so things aren't squished */
.site-header .container,
.apply-header .container {
  max-width: 1400px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* --- Responsive --- */
@media (max-width: 1320px) {
  .site-header .header-chip[href^="mailto:"] { display: none !important; }
  .site-header .site-nav { gap: 12px !important; }
}

@media (max-width: 1140px) {
  .site-header .header-chip { display: none !important; }
  .site-header .site-nav { gap: 12px !important; }
  .site-header .site-nav > a { font-size: 0.7rem !important; }
}

@media (max-width: 980px) {
  .site-header .header-row,
  .apply-header .apply-header-row {
    min-height: 78px !important;
  }
  .site-header .brand-logo-image,
  .apply-header .brand-logo-image {
    height: 100px !important;
    max-height: 100px !important;
    max-width: 130px !important;
    min-width: 100px !important;
    margin: -10px 0 !important;
  }
  .site-header .menu-toggle {
    display: block !important;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
    margin-left: auto !important;
    order: 99;
  }
  .site-header .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--gold);
  }
  .site-header .site-nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 18px !important;
    background: #0b0b0b !important;
    border: 1px solid rgba(182, 138, 58, 0.18) !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5) !important;
    z-index: 1101;
  }
  .site-header .site-nav.open { display: flex !important; }
  .site-header .site-nav > a {
    font-size: 0.88rem !important;
    padding: 6px 4px !important;
  }
  .site-header .lang-toggle.nav-lang-toggle { align-self: flex-start; }
  .site-header .apply-btn {
    padding: 8px 14px !important;
    font-size: 0.72rem !important;
    min-height: 32px !important;
  }
  .apply-header .apply-header-meta > span { display: none !important; }
  .apply-header .apply-header-meta { gap: 8px !important; }
}

@media (max-width: 560px) {
  .site-header .header-row,
  .apply-header .apply-header-row {
    min-height: 64px !important;
    padding: 6px 0 !important;
    gap: 8px !important;
  }
  .site-header .brand-logo-image,
  .apply-header .brand-logo-image {
    height: 80px !important;
    max-height: 80px !important;
    max-width: 100px !important;
    min-width: 80px !important;
    margin: -6px 0 !important;
  }
  .site-header .apply-btn {
    padding: 7px 12px !important;
    font-size: 0.66rem !important;
    min-height: 28px !important;
  }
  .apply-header .lang-toggle.apply-lang-toggle a {
    padding: 3px 8px !important;
    font-size: 0.58rem !important;
  }
  .site-header .container,
  .apply-header .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
/* ===== END HEADER V4 ===== */

/* ===== HEADER V5 — Logo Fully Contained, Not Cropped ===== */
/* Fix: V4 used negative margins on the logo, which caused it to clip against
   the header's bottom border. Now the header bar is tall enough to hold the
   full logo with breathing room, no negative margins, no clipping. */

.site-header,
.apply-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1100 !important;
  background: rgba(7, 7, 7, 0.97) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(182, 138, 58, 0.22) !important;
  overflow: visible !important;
  isolation: auto !important;
}

.site-header .header-row,
.apply-header .apply-header-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 130px !important;
  padding: 12px 0 !important;
  width: 100%;
  overflow: visible !important;
}

/* Logo — large, no negative margins, padded above/below so it doesn't touch the borders */
.site-header .brand,
.site-header .brand-image,
.apply-header .brand,
.apply-header .brand-image,
.apply-header .apply-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  overflow: visible !important;
}

.site-header .brand-logo-image,
.apply-header .brand-logo-image {
  width: auto !important;
  height: 110px !important;
  max-height: 110px !important;
  max-width: 150px !important;
  min-width: 110px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  filter: drop-shadow(0 0 6px rgba(182, 138, 58, 0.22)) !important;
  transform: none !important;
}

.site-header .brand-text,
.apply-header .brand-text {
  display: none !important;
}

/* Nav — tight grouping */
.site-header .site-nav {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  min-width: 0;
  position: static !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
}

.site-header .site-nav > a {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  padding: 4px 0 !important;
  line-height: 1 !important;
  color: rgba(255,255,255,0.85) !important;
  white-space: nowrap !important;
  transition: color 0.2s ease;
}

.site-header .site-nav > a:hover { color: var(--gold-soft) !important; }

.site-header .lang-toggle.nav-lang-toggle,
.apply-header .lang-toggle.apply-lang-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 2px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
  flex: 0 0 auto !important;
}

.site-header .lang-toggle.nav-lang-toggle a,
.apply-header .lang-toggle.apply-lang-toggle a {
  padding: 4px 9px !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  border-radius: 999px;
  color: rgba(255,255,255,0.72) !important;
}

.site-header .lang-toggle.nav-lang-toggle a.active,
.apply-header .lang-toggle.apply-lang-toggle a.active {
  background: linear-gradient(135deg, #D1AE6C 0%, #B68A3A 60%, #6F5322 100%) !important;
  color: #111 !important;
}

.site-header .header-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  min-width: 0;
}

.site-header .header-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 10px !important;
  min-height: 32px !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.84) !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.site-header .header-chip span {
  white-space: nowrap !important;
  overflow: visible !important;
  word-break: keep-all !important;
}

.site-header .apply-btn {
  padding: 9px 17px !important;
  min-height: 34px !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  border-radius: 999px;
  white-space: nowrap !important;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.apply-header .apply-header-meta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
}

.apply-header .apply-header-meta > span {
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.03em !important;
  color: rgba(255,255,255,0.75) !important;
  white-space: nowrap !important;
}

.site-header .menu-toggle { display: none !important; }

.site-header .container,
.apply-header .container {
  max-width: 1440px !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  overflow: visible !important;
}

/* Responsive */
@media (max-width: 1320px) {
  .site-header .header-chip[href^="mailto:"] { display: none !important; }
  .site-header .site-nav { gap: 12px !important; }
}

@media (max-width: 1140px) {
  .site-header .header-chip { display: none !important; }
  .site-header .site-nav { gap: 12px !important; }
  .site-header .site-nav > a { font-size: 0.7rem !important; }
}

@media (max-width: 980px) {
  .site-header .header-row,
  .apply-header .apply-header-row {
    min-height: 92px !important;
  }
  .site-header .brand-logo-image,
  .apply-header .brand-logo-image {
    height: 78px !important;
    max-height: 78px !important;
    max-width: 110px !important;
    min-width: 78px !important;
  }
  .site-header .menu-toggle {
    display: block !important;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
    margin-left: auto !important;
    order: 99;
  }
  .site-header .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--gold);
  }
  .site-header .site-nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    padding: 18px !important;
    background: #0b0b0b !important;
    border: 1px solid rgba(182, 138, 58, 0.18) !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5) !important;
    z-index: 1101;
  }
  .site-header .site-nav.open { display: flex !important; }
  .site-header .site-nav > a {
    font-size: 0.88rem !important;
    padding: 6px 4px !important;
  }
  .site-header .lang-toggle.nav-lang-toggle { align-self: flex-start; }
  .site-header .apply-btn {
    padding: 8px 14px !important;
    font-size: 0.72rem !important;
    min-height: 32px !important;
  }
  .apply-header .apply-header-meta > span { display: none !important; }
  .apply-header .apply-header-meta { gap: 8px !important; }
}

@media (max-width: 560px) {
  .site-header .header-row,
  .apply-header .apply-header-row {
    min-height: 76px !important;
    padding: 8px 0 !important;
    gap: 8px !important;
  }
  .site-header .brand-logo-image,
  .apply-header .brand-logo-image {
    height: 62px !important;
    max-height: 62px !important;
    max-width: 88px !important;
    min-width: 62px !important;
  }
  .site-header .apply-btn {
    padding: 7px 12px !important;
    font-size: 0.66rem !important;
    min-height: 28px !important;
  }
  .apply-header .lang-toggle.apply-lang-toggle a {
    padding: 3px 8px !important;
    font-size: 0.58rem !important;
  }
  .site-header .container,
  .apply-header .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
/* ===== END HEADER V5 ===== */

/* ===== FINAL CLEANUP V6 — Breakpoint normalization, focus rings, reduced motion, apply footer ===== */

/* --- Apply-page footer styling --- */
.site-footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.site-footer .footer-contact a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-footer .footer-contact a:hover {
  color: var(--gold-soft);
}
.site-footer .footer-legal {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.site-footer .footer-legal p {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  letter-spacing: 0.04em;
}

/* --- Keyboard focus rings (accessibility) --- */
.site-header a:focus-visible,
.apply-header a:focus-visible,
.site-footer a:focus-visible,
.site-nav > a:focus-visible,
.apply-btn:focus-visible,
.header-chip:focus-visible,
.lang-toggle a:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

/* --- Reduced motion support --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Breakpoint normalization: clean overrides at 4 consistent stops --- */
/* The earlier V1-V5 blocks used 15 different breakpoints; these final rules
   ensure consistent behavior at the 4 canonical breakpoints regardless. */

/* Large desktop: ensure no rogue rule wraps header onto two lines */
@media (min-width: 981px) {
  .site-header .header-row,
  .apply-header .apply-header-row {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
  .site-header .site-nav {
    position: static !important;
    flex-direction: row !important;
    display: flex !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
}

/* Hero copy guards against overflow on small screens */
@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: clamp(2.4rem, 9vw, 3.2rem) !important;
    line-height: 1 !important;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .hero-copy p {
    font-size: 0.95rem;
    line-height: 1.55;
  }
  .apply-intro h1 {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
    line-height: 1.05 !important;
  }
}

/* Tablet hero headline guard */
@media (min-width: 641px) and (max-width: 980px) {
  .hero-copy h1 {
    font-size: clamp(3rem, 6vw, 4.2rem) !important;
  }
  .apply-intro h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem) !important;
  }
}

/* Apply form 4-step progress: prevent label crowding on narrow widths */
@media (max-width: 760px) {
  .form-steps {
    gap: 6px !important;
  }
  .form-step,
  .form-step span,
  .form-step strong {
    font-size: 0.74rem !important;
  }
}

/* Prevent horizontal overflow site-wide */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
.container {
  max-width: min(1240px, 100% - 32px);
}

/* Apply contact row — stack on small screens for cleaner mobile */
@media (max-width: 560px) {
  .apply-contact-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .apply-contact-row a,
  .apply-contact-row span {
    width: 100% !important;
    justify-content: center !important;
  }
  .site-footer .footer-row {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .site-footer .footer-contact {
    align-items: center;
  }
}

/* Make sure the legacy align-items: flex-start rule at 1260px can't break alignment */
@media (max-width: 1260px) {
  .site-header .header-row {
    align-items: center !important;
  }
}

/* Ensure footer logo isn't tinted by old sepia filter */
.site-footer .footer-logo-image {
  filter: none !important;
  max-width: 200px;
  height: auto;
}

/* Better hover state on header chips */
.site-header .header-chip:hover {
  background: rgba(182, 138, 58, 0.12) !important;
  border-color: rgba(182, 138, 58, 0.35) !important;
  color: #fff !important;
}

/* Apply button hover */
.site-header .apply-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  transition: filter 0.2s ease, transform 0.2s ease;
}
/* ===== END FINAL CLEANUP V6 ===== */

/* ===== APPLICATION FORM V7 — Branching + Pre-Qual Score Display ===== */

/* Branch containers — invisible toggling via hidden attribute */
.application-form .branch-real-estate[hidden],
.application-form .branch-business[hidden] {
  display: none !important;
}

/* Step help text under the step heading */
.application-form .step-help {
  color: #6a6a6a;
  font-size: 0.88rem;
  margin: -8px 0 18px;
  line-height: 1.5;
}

/* Form status banner */
.application-form .form-status {
  margin-top: 16px;
  min-height: 22px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
}
.application-form .form-status:empty {
  display: none;
}
.application-form .form-status.info {
  background: rgba(182, 138, 58, 0.10);
  color: #8a6617;
  border: 1px solid rgba(182, 138, 58, 0.22);
}
.application-form .form-status.success {
  background: rgba(34, 139, 60, 0.10);
  color: #1b6b35;
  border: 1px solid rgba(34, 139, 60, 0.25);
}
.application-form .form-status.error {
  background: rgba(200, 50, 50, 0.10);
  color: #a02828;
  border: 1px solid rgba(200, 50, 50, 0.25);
}

/* Invalid field styling */
.application-form input.invalid,
.application-form select.invalid,
.application-form textarea.invalid {
  border-color: rgba(200, 50, 50, 0.55) !important;
  background: rgba(200, 50, 50, 0.03);
}

/* Pre-Qualification Score Visualization */
.prequal-preview,
.prequal-final {
  margin: 22px 0 4px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(182, 138, 58, 0.08), rgba(182, 138, 58, 0.02));
  border: 1px solid rgba(182, 138, 58, 0.22);
}

.prequal-meter,
.prequal-final {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* The circular score ring */
.prequal-ring {
  --prequal-progress: 0%;
  --prequal-color: #B68A3A;
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    conic-gradient(var(--prequal-color) calc(var(--prequal-progress)), rgba(255, 255, 255, 0.08) 0);
  transition: --prequal-progress 0.6s ease, background 0.6s ease;
}
.prequal-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #0e0e0e;
  z-index: 0;
}
.prequal-ring.large {
  width: 124px;
  height: 124px;
}

.prequal-ring .prequal-number {
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.prequal-ring.large .prequal-number {
  font-size: 2.4rem;
}
.prequal-ring .prequal-label {
  position: relative;
  z-index: 1;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* Tier-based colors */
.prequal-ring[data-tier="excellent"] { --prequal-color: #6BCB77; }
.prequal-ring[data-tier="strong"]    { --prequal-color: #B68A3A; }
.prequal-ring[data-tier="qualified"] { --prequal-color: #D1AE6C; }
.prequal-ring[data-tier="developing"]{ --prequal-color: #C68B3F; }
.prequal-ring[data-tier="review"]    { --prequal-color: #8a6617; }

/* Tier text on the side */
.prequal-summary,
.prequal-final > div:last-child {
  flex: 1 1 220px;
  min-width: 0;
}
.prequal-tier,
#prequalTierLarge {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.15;
}
.prequal-message,
#prequalMessageLarge {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* When inside the white review box on apply pages, use dark text */
.review-box .prequal-final {
  background: linear-gradient(180deg, rgba(182, 138, 58, 0.06), rgba(182, 138, 58, 0.02));
  border: 1px solid rgba(182, 138, 58, 0.28);
  margin-top: 16px;
}
.review-box .prequal-ring::before {
  background: #fff;
}
.review-box .prequal-ring .prequal-number { color: #1a1a1a; }
.review-box .prequal-ring .prequal-label { color: #7a6334; }
.review-box #prequalTierLarge { color: #1a1a1a; }
.review-box #prequalMessageLarge { color: #444; }

@media (max-width: 560px) {
  .prequal-meter,
  .prequal-final {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .prequal-ring { width: 84px; height: 84px; }
  .prequal-ring.large { width: 108px; height: 108px; }
  .prequal-ring .prequal-number { font-size: 1.6rem; }
  .prequal-ring.large .prequal-number { font-size: 2.1rem; }
}

/* Optgroup styling inside selects */
.application-form select optgroup {
  font-style: normal;
  font-weight: 700;
  color: #333;
  background: #f5f3ed;
}
.application-form select optgroup option {
  font-weight: 500;
  color: #1a1a1a;
}
/* ===== END APPLICATION FORM V7 ===== */

/* ===== CLICKABLE STEP INDICATORS V8 ===== */
/* Visual affordance for the now-clickable progress steps in the apply form */

.form-step {
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  user-select: none;
}

.form-step:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.form-step:hover span {
  background: rgba(182, 138, 58, 0.22) !important;
  border-color: rgba(182, 138, 58, 0.55) !important;
}

.form-step:focus-visible {
  outline: 2px solid var(--gold-soft, #D1AE6C);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Show a subtle "completed" check on steps the user has already passed */
.form-step:not(.active) {
  opacity: 0.78;
}
.form-step.active {
  opacity: 1;
}

/* Hint at clickability with a slight color shift */
.form-step:hover strong {
  color: var(--gold-soft, #D1AE6C);
}
/* ===== END CLICKABLE STEP INDICATORS ===== */
