/* Legacy Tower LLC — site styles */
:root {
  --navy: #13233F;
  --navy-2: #1C3157;
  --navy-3: #0C182D;
  --white: #FBF8F2;
  --paper: #F4EFE4;
  --gold: #C9A96A;       /* accents on navy */
  --gold-ink: #8A6A2E;   /* gold text on light backgrounds (AA) */
  --ink: #13233F;
  --muted: #4A5468;
  --line: #E3DCCD;
  --on-navy: #D9DEE8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19,35,63,.06), 0 8px 24px rgba(19,35,63,.08);
  --max: 1160px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; max-width: 68ch; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--muted); }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 100; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,242,.94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.brand-text small { display: block; font-family: var(--sans); font-weight: 500; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--navy); font: 600 .9rem var(--sans); cursor: pointer; align-items: center; gap: 8px; }
.nav-toggle-bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { bottom: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--navy); font-weight: 500; font-size: .95rem; border-radius: 8px; }
.site-nav a:hover { background: var(--paper); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-nav .nav-cta a { background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 999px; margin-left: 8px; }
.site-nav .nav-cta a:hover { background: var(--navy-2); color: var(--white); }
.site-nav .nav-cta a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--gold); border-radius: 999px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 20px; gap: 2px; }
  .site-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); background: var(--paper); }
  .site-nav .nav-cta a { margin: 10px 0 0; text-align: center; }
  .js .site-nav:not(.is-open) { display: none; }
}
/* Without JS, keep mobile nav visible */
@media (max-width: 960px) { html:not(.js) .site-nav { display: block; position: static; box-shadow: none; } html:not(.js) .nav-toggle { display: none; } html:not(.js) .header-inner { flex-wrap: wrap; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D6B87C; color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); color: var(--white); }
.btn-ghost-light { border-color: rgba(251,248,242,.6); color: var(--white); }
.btn-ghost-light:hover { background: rgba(251,248,242,.1); color: var(--white); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
@media (max-width: 480px) { .btn-row .btn { width: 100%; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-paper { background: var(--paper); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy p, .section-navy .lead { color: var(--on-navy); }
.section-navy a:not(.btn) { color: var(--gold); }
.eyebrow { display: inline-block; font: 600 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 14px; }
.section-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 24px; }
.center .rule { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 10%, rgba(201,169,106,.16), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--white); padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero .lead { color: var(--on-navy); }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold); margin-bottom: 18px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.page-hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--white); padding: clamp(56px, 8vw, 96px) 0; }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-hero .lead { color: var(--on-navy); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* Figures */
.figure { margin: 0; position: relative; }
.figure .art { border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); background: var(--navy-2); }
.figure-light .art { box-shadow: var(--shadow); background: var(--paper); }
.concept-label { position: absolute; left: 14px; top: 14px; background: rgba(12,24,45,.85); color: var(--white); font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(201,169,106,.6); }
.figure figcaption { font-size: .85rem; margin-top: 12px; color: var(--muted); }
.hero .figure figcaption, .page-hero .figure figcaption { color: var(--on-navy); }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .card-art { margin: -28px -28px 24px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.card .more::after { content: "→"; color: var(--gold-ink); transition: transform .15s; }
.card .more:hover::after { transform: translateX(3px); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }
.card-plain { background: transparent; box-shadow: none; }
.section-navy .card { background: var(--navy-2); border-color: rgba(201,169,106,.25); box-shadow: none; }
.section-navy .card p { color: var(--on-navy); }
.section-navy .card h3 { color: var(--white); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* Lists */
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23C9A96A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.section-navy .check-list li::before { background-color: var(--navy-3); }

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .95rem; font-weight: 500; }

/* Pillars / connect */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(201,169,106,.35); border-radius: var(--radius); overflow: hidden; }
.pillar { padding: 32px; border-right: 1px solid rgba(201,169,106,.35); }
.pillar:last-child { border-right: 0; }
.pillar .num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.pillar h3 { color: var(--white); }
.split .pillars { grid-template-columns: 1fr; }
.split .pillar { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; border-right: 0; border-bottom: 1px solid rgba(201,169,106,.35); padding: 24px 28px; }
.split .pillar:last-child { border-bottom: 0; }
.split .pillar .num { grid-row: span 2; margin: 0; }
.split .pillar h3 { margin-bottom: 4px; }
.split .pillar p { margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .pillar { border-right: 0; border-bottom: 1px solid rgba(201,169,106,.35); } .pillar:last-child { border-bottom: 0; } }

.quote-block { font-family: var(--serif); font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.35; max-width: 30ch; margin: 0 auto; text-align: center; }
.quote-block span { color: var(--gold); }

/* Values */
.value { border-top: 3px solid var(--gold); padding-top: 22px; }
.value p { color: var(--muted); }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 64px; min-height: 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); color: var(--navy); font: 600 1.1rem var(--serif); display: grid; place-items: center; background: #fff; }
.steps strong { display: block; font-family: var(--serif); font-size: 1.15rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); border-radius: 22px; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(201,169,106,.35); box-shadow: 0 0 0 40px rgba(201,169,106,.05); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--on-navy); margin-bottom: 0; }
.cta-band .btn-row { margin-top: 0; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

.note { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 18px 20px; font-size: .95rem; color: var(--muted); }
.note strong { color: var(--ink); }

/* Form */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field .req { color: var(--gold-ink); }
.field .hint { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: var(--white); border: 1.5px solid #CFC6B3; border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(201,169,106,.45); }
.field [aria-invalid="true"] { border-color: #A3271F; }
.field .error { color: #A3271F; font-size: .88rem; margin-top: 6px; display: none; }
.field .error.show { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 20px; border-radius: 12px; padding: 16px 18px; display: none; }
.form-status.show { display: block; }
.form-status.success { background: #EAF4EC; border: 1px solid #9CC7A5; color: #1E4D2B; }
.form-status.error { background: #FBEDEC; border: 1px solid #E0A9A4; color: #7A1D17; }
.form-status.info { background: #F6F0E2; border: 1px solid var(--gold); color: var(--ink); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* Footer */
.site-footer { background: var(--navy-3); color: var(--on-navy); padding: 64px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer .brand { color: var(--white); }
.site-footer .brand-text small { color: var(--gold); }
.site-footer h2 { font: 600 .8rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(217,222,232,.15); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.disclaimer { font-size: .82rem; line-height: 1.6; color: #AEB6C6; max-width: none; margin-top: 18px; }

/* WordPress additions */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.entry-content > * { max-width: 760px; }
.entry-content img { border-radius: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
