:root {
  --navy: #1f1c57;
  --navy-deep: #15133d;
  --gold: #e6bb18;
  --gold-light: #f7dc67;
  --ink: #202238;
  --muted: #5e6377;
  --cream: #fffaf0;
  --mist: #f4f6fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(31, 28, 87, .12);
  --radius: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1140px, calc(100% - 2.5rem)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: linear-gradient(90deg, rgba(21,19,61,.96), rgba(31,28,87,.76)), url("assets/images/agencyadvantage-login-bg.jpg") center 44% / cover; border-bottom: 3px solid var(--gold); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: nowrap; }
.brand { display: block; line-height: 0; }
.brand img { width: 204px; height: auto; border-radius: .2rem; }
.site-nav { display: flex; align-items: center; gap: .35rem; }
.site-nav { flex-wrap: nowrap; white-space: nowrap; }
.site-nav a { padding: .55rem .8rem; text-decoration: none; color: white; font-weight: 700; font-size: .92rem; border-radius: 999px; }
.site-nav a.cta { background: transparent; color: white; padding-inline: 1rem; }
.site-nav a:hover { background: rgba(255,255,255,.18); color: white; }
.site-nav a.active, .site-nav a.active:hover { background: var(--gold); color: var(--navy-deep); }
.menu-toggle { display: none; border: 0; background: var(--navy); color: white; border-radius: .7rem; padding: .55rem .7rem; font-size: 1.2rem; }
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero-grid { min-height: 560px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 3rem; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 800; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0 0 1rem; letter-spacing: -.035em; }
.hero h1 { color: var(--white); font-size: clamp(2.8rem, 5vw, 5rem); max-width: 640px; }
.hero p { color: #e0e2f0; max-width: 560px; font-size: 1.12rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.15rem; padding: .85rem 1.25rem; border-radius: 999px; background: var(--gold); color: var(--navy-deep); text-decoration: none; font-weight: 800; border: 2px solid transparent; }
.button:hover { background: var(--gold-light); transform: translateY(-1px); }
.button.secondary { background: transparent; border-color: rgba(255,255,255,.45); color: white; margin-left: .5rem; }
.hero-media { position: relative; min-height: 400px; }
.hero-media img { width: 100%; height: 440px; object-fit: cover; border-radius: 1.7rem 1.7rem 0 1.7rem; box-shadow: 22px 22px 0 var(--gold); }

.section { padding: 5.5rem 0; }
.section.alt { background: var(--mist); }
.section.gold { background: var(--gold); }
.section-heading { max-width: 710px; margin-bottom: 2.5rem; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.section-heading p { color: var(--muted); font-size: 1.08rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card { padding: 1.7rem; border: 1px solid rgba(31,28,87,.1); border-radius: var(--radius); background: white; box-shadow: 0 8px 25px rgba(31,28,87,.05); }
.card h3 { font-size: 1.35rem; margin-top: 1rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 1rem; background: var(--gold); color: var(--navy); font-size: 1.4rem; font-weight: 900; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split img { width: 100%; max-height: 430px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.check-list li { position: relative; padding: .45rem 0 .45rem 1.8rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
.page-hero { background: linear-gradient(115deg, var(--navy) 0%, #2d2a76 100%); color: white; padding: 5rem 0; }
.page-hero h1 { color: white; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.page-hero p { max-width: 680px; color: #e5e6f4; font-size: 1.1rem; }
.prose { max-width: 850px; }
.prose h2 { margin-top: 2.7rem; }
.prose p, .prose li { color: var(--muted); }
.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; align-items: stretch; }
.partner { min-height: 140px; padding: 1rem; display: grid; place-items: center; background: white; border-radius: 1rem; border: 1px solid rgba(31,28,87,.1); }
.partner img { width: 180px; height: 76px; max-width: 100%; object-fit: contain; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; align-items: start; }
.contact-card, .form-card { padding: 2rem; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-item { margin: 1.4rem 0; }
.contact-item strong { display: block; color: var(--navy); }
.regulatory-disclosure { margin-top: 1.25rem; padding: 1.15rem 1.25rem; border-left: 4px solid var(--gold); border-radius: .65rem; background: #fff9df; color: var(--navy-deep); font-size: .9rem; }
.regulatory-disclosure strong { display: block; margin-bottom: .25rem; color: var(--navy); }
.contact-item a { color: var(--navy); font-weight: 700; text-decoration-thickness: 2px; text-decoration-color: var(--gold); }
label { display: block; margin-bottom: 1rem; color: var(--navy); font-weight: 700; }
input, textarea { width: 100%; margin-top: .35rem; padding: .85rem 1rem; border: 1px solid #d4d7e4; border-radius: .7rem; font: inherit; color: var(--ink); background: #fbfcff; }
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid rgba(230,187,24,.25); border-color: var(--gold); }
.form-status { margin-top: 1rem; font-weight: 700; }
.form-status.success { color: #137243; }
.form-status.error { color: #9d2424; }
.site-footer { padding: 3rem 0 1.5rem; background: var(--navy-deep); color: #dfe1f0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.site-footer h3 { color: var(--gold); font-size: 1rem; }
.site-footer a { color: white; text-decoration: none; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.copyright { padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: #aeb1c8; display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 1060px) {
  .nav-wrap { min-height: 70px; }
  .brand img { width: 182px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: .8rem 1.25rem 1.2rem; background: var(--navy-deep); border-bottom: 1px solid rgba(255,255,255,.2); flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a { text-align: center; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { padding: 4rem 0 5rem; }
  .hero-media { min-height: auto; margin-top: 1rem; }
  .hero-media img { height: 300px; box-shadow: 12px 12px 0 var(--gold); }
  .cards { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { flex-direction: column; }
}
