/* =========================================================
   W.R. Johnston Capital — Design System
   Tokens taken from the reference theme (Poppins/Prata,
   blue + navy). Edit here to rebrand the whole site.
   ========================================================= */
:root {
  --font-body:    "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif:   "Prata", Georgia, "Times New Roman", serif;
  --font-display: "Work Sans", var(--font-body);

  --ink:        #323232;   /* body text */
  --ink-strong: #1a1a1a;   /* headings */
  --accent:     #1080fe;   /* primary blue */
  --accent-2:   #3ec3ff;   /* light cyan */
  --accent-pale:#d6ecff;   /* icon square accent */
  --navy:       #003E7E;   /* logo navy */

  --bg:        #ffffff;
  --bg-tint:   #f4fbff;    /* very light blue panel */
  --line:      #e6edf3;
  --muted:     #6b7580;

  --maxw: 1180px;
  --gutter: 24px;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(16, 128, 254, 0.10);
  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); font-size: 16px; }
body { margin: 0; font-family: var(--font-body); font-weight: 300; color: var(--ink); background: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { opacity: .72; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.25; margin: 0; color: var(--ink-strong); }
p { margin: 0 0 1rem; }

.topbar { height: 5px; background: var(--accent); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section { padding: 96px 0; }
.section-title { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: 1rem; }
.rule { display: block; width: 68px; height: 3px; background: var(--accent); margin: 18px 0 44px; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* Placeholder image blocks (swap for real photos) */
.img-ph {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius);
  background: linear-gradient(135deg, #e8f3ff, #cfe6fb);
  border: 1px solid var(--line); overflow: hidden;
}
.img-ph.tall { aspect-ratio: 4 / 5; }
.img-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.img-ph::after {
  content: attr(data-label); position: absolute; inset: 0;
  display: grid; place-items: center; color: #7aa7d4; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 500; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; padding: 15px 34px; border-radius: var(--radius); cursor: pointer; border: 1.5px solid transparent; transition: all .2s ease; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0c6fe0; color: #fff; opacity: 1; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

/* Text wordmark logo */
.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--navy); color: #fff; font-family: var(--font-serif); font-size: .9rem; border-radius: 4px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.05rem; letter-spacing: .03em; color: var(--navy); }
.logo-text small { font-family: var(--font-display); font-weight: 900; font-size: .55rem; letter-spacing: .34em; color: var(--muted); margin-top: 5px; }
.logo-light .logo-text strong { color: #fff; }
.logo-light .logo-text small { color: rgba(255,255,255,.6); }

.nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a { color: #1a1a1a; font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.nav-list a:hover { color: var(--accent); opacity: 1; }
.nav-list a[aria-current="page"] { color: var(--accent); }

.has-dropdown > a::after { content: "▾"; font-size: .8em; margin-left: 5px; color: var(--muted); }
.dropdown { position: absolute; top: 170%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); list-style: none; margin: 0; padding: 8px; min-width: 215px; opacity: 0; visibility: hidden; transition: all .2s ease; z-index: 10; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; top: 125%; }
.dropdown li a { display: block; padding: 10px 14px; border-radius: 4px; font-size: .72rem; }
.dropdown li a:hover { background: var(--bg-tint); opacity: 1; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink-strong); transition: .3s; }

/* ---------- Hero (full-bleed video, centered) ---------- */
.hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 460px; height: 58vh; max-height: 620px; overflow: hidden; color: #fff; text-align: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,30,55,.42), rgba(10,30,55,.55)); }
.hero-inner { position: relative; z-index: 2; max-width: 820px; }
.hero-title { color: #fff; font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.1; margin-bottom: 18px; }
.hero-sub { font-size: 1.15rem; font-weight: 300; color: rgba(255,255,255,.92); max-width: 620px; margin: 0 auto; }

/* ---------- Tabs section ---------- */
.section-tabs { background: #fff; }
.tabs-heading { max-width: 640px; }
.tabs { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.tab-nav { display: flex; flex-direction: column; background: var(--bg-tint); border-radius: var(--radius); padding: 10px 8px; }
.tab-btn { position: relative; text-align: left; font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--ink); background: transparent; border: 0; border-left: 3px solid transparent; padding: 16px 20px; cursor: pointer; transition: all .2s ease; line-height: 1.4; }
.tab-btn:hover { color: var(--accent); }
.tab-btn.is-active { color: var(--accent); font-weight: 500; border-left-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .35s ease; }
.tab-panel .img-ph { margin-bottom: 28px; }
.tab-panel h3 { font-size: 1.6rem; margin-bottom: 14px; }
.tab-panel p { color: var(--ink); max-width: 620px; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Two-column (about) ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col-text h2 { margin-bottom: 20px; }
.two-col-text p { color: var(--ink); }

/* ---------- CTA band ---------- */
.band { background: linear-gradient(120deg, #06244a, #001528); color: #fff; }
.band-title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 20px; }
.band-sub { color: rgba(255,255,255,.82); font-size: 1.12rem; font-weight: 300; max-width: 660px; margin: 0 auto 34px; }

/* ---------- Icon columns (services) ---------- */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.icon-col h3 { font-size: 1.45rem; margin: 22px 0 12px; }
.icon-col p { color: var(--muted); font-size: .98rem; }
.icon-wrap { position: relative; display: inline-block; color: var(--accent); }
.icon-wrap::before { content: ""; position: absolute; top: -8px; right: -12px; width: 26px; height: 26px; background: var(--accent-pale); border-radius: 3px; z-index: -1; }

/* ---------- Footer ---------- */
.site-footer { background: #071a30; color: rgba(255,255,255,.78); padding: 60px 0 26px; }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-col p { margin: 0 0 6px; font-size: .92rem; }
.footer-contact { text-align: right; }
.footer-logo { display: flex; justify-content: center; }
.site-footer a { color: var(--accent-2); }
.site-footer a:hover { color: #fff; opacity: 1; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 28px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.footer-nav a { color: rgba(255,255,255,.8); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.copyright { font-size: .82rem; color: rgba(255,255,255,.5); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav { position: fixed; inset: calc(var(--header-h) + 5px) 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 24px; box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .3s ease; }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 14px 4px; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 8px 16px; min-width: auto; }
  .tabs { grid-template-columns: 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col .img-ph.tall { aspect-ratio: 16 / 10; }
  .icon-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .icon-wrap::before { right: auto; left: 50%; transform: translateX(14px); }
  .footer-top { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer-contact { text-align: center; }
  .section { padding: 68px 0; }
}

/* =========================================================
   Inner pages
   ========================================================= */
.page-banner { position: relative; background: linear-gradient(120deg, #06244a, #001528); color: #fff; padding: 96px 0 72px; text-align: center; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 100% 0%, rgba(16,128,254,.35), transparent 60%); pointer-events: none; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: 14px; }
.page-banner p { color: rgba(255,255,255,.82); font-weight: 300; max-width: 640px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.breadcrumb a { color: var(--accent-2); }
.breadcrumb span { color: rgba(255,255,255,.4); }

.prose p { color: var(--ink); margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.eyebrow { font-family: var(--font-display); font-weight: 900; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }

/* Founder block */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.founder .img-ph { aspect-ratio: 3 / 4; }
.founder h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 6px; }
.founder .role { font-family: var(--font-display); font-weight: 900; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }

/* Feature list (digital assets) */
.feature-list { display: grid; gap: 28px; margin-top: 8px; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature .num { font-family: var(--font-serif); font-size: 1.6rem; color: var(--accent); line-height: 1; }
.feature h3 { font-size: 1.3rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.stat .figure { font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3rem); color: var(--navy); line-height: 1; }
.stat .label { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.contact-aside .contact-row { margin-bottom: 26px; }
.contact-aside .contact-label { display: block; font-family: var(--font-display); font-weight: 900; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.contact-aside p { margin: 0; color: var(--ink); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .82rem; font-weight: 500; color: var(--ink); margin-bottom: 7px; letter-spacing: .02em; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body); font-size: .95rem; font-weight: 300; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(16,128,254,.12); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.form-status { margin-top: 14px; font-size: .92rem; font-weight: 500; color: var(--accent); min-height: 1.2em; }

@media (max-width: 920px) {
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .founder .img-ph { aspect-ratio: 4 / 3; max-width: 360px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-banner { padding: 72px 0 56px; }
}
