/* ═══════════════════════════════════════════
   Windsor Advising Group — Site 2
   Dark-forward industrial theme
   ═══════════════════════════════════════════ */

:root {
  /* Brand blues — drawn from the logo gradient */
  --blue-deep:  #2b4ad8;
  --blue:       #4b7bff;
  --blue-light: #6db8ff;
  --blue-glow:  rgba(75, 123, 255, 0.18);

  /* Surfaces */
  --bg:         #0b1120;
  --bg-raised:  #111b2e;
  --bg-card:    #15203a;
  --bg-light:   #f5f7fb;

  /* Text */
  --text:       #e8edf5;
  --text-dim:   #8896ac;
  --text-dark:  #1a2540;
  --text-muted-dark: #5b6a82;

  /* Borders & misc */
  --line:       rgba(255,255,255,0.07);
  --line-light: #d9e3ef;
  --radius:     16px;
  --radius-lg:  24px;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }

.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

/* ── Header ─────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11,17,32,0.7);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  background: rgba(11,17,32,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.header__logo img { height: 34px; width: auto; }
.header__nav {
  display: flex; align-items: center; gap: 32px;
}
.header__nav a {
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  transition: color 0.2s ease;
}
.header__nav a:hover { color: var(--text); }
.header__cta {
  padding: 8px 20px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s var(--ease);
}
.header__cta:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* Burger */
.header__burger {
  display: none; background: none; border: none; padding: 10px;
  flex-direction: column; gap: 6px;
}
.header__burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 1px; transition: transform 0.3s ease, opacity 0.3s ease;
}
.header__burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.header__burger.open span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ── Hero ───────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-top: 72px;
}
.hero__bg {
  position: absolute; inset: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,17,32,0.82) 0%, rgba(11,17,32,0.55) 40%, rgba(11,17,32,0.88) 100%),
    linear-gradient(135deg, rgba(43,74,216,0.15) 0%, transparent 50%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 720px;
  padding: 20px 0 80px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero__badge {
  width: min(340px, 70vw); height: auto; margin-bottom: 60px; margin-top: -60px;
  filter: drop-shadow(0 0 40px rgba(75,123,255,0.25));
}
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}
.hero__sub {
  margin-top: 24px;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  line-height: 1.7;
  text-align: center;
}
.hero__actions {
  display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap;
  justify-content: center;
}

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px;
  border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 8px 28px rgba(75,123,255,0.25);
}
.btn--primary:hover { background: var(--blue-deep); box-shadow: 0 12px 36px rgba(75,123,255,0.35); }
.btn--ghost {
  border-color: rgba(255,255,255,0.2); color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.06); }

/* ── Metrics bar ────────────────────────── */
.metrics {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metrics__row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
}
.metric {
  padding: 36px 32px; text-align: center;
  background: var(--bg-raised);
}
.metric__value {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem; font-weight: 800; color: var(--blue-light);
  letter-spacing: -0.02em;
}
.metric__label {
  display: block; margin-top: 6px;
  font-size: 13px; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 500;
}

/* ── Sections (shared) ──────────────────── */
.section { padding: 100px 0; }
.section__head {
  max-width: 620px; margin-bottom: 56px;
}
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue-light);
  margin-bottom: 12px;
}
.section__head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.035em;
}
.section__sub {
  margin-top: 16px; color: var(--text-dim); max-width: 520px;
  line-height: 1.7;
}

/* ── Services ───────────────────────────── */
.services { background: var(--bg); }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.svc {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.svc:hover {
  transform: translateY(-4px);
  border-color: rgba(75,123,255,0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(75,123,255,0.08);
}
.svc__num {
  display: inline-block; padding: 6px 12px;
  border-radius: 8px; background: var(--blue-glow);
  color: var(--blue-light); font-size: 13px; font-weight: 700;
  margin-bottom: 20px;
}
.svc h3 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 10px;
  line-height: 1.3;
}
.svc p { color: var(--text-dim); font-size: 0.9375rem; line-height: 1.7; }

/* ── Portfolio / Gallery ────────────────── */
.portfolio {
  background: var(--bg-light);
  color: var(--text-dark);
}
.portfolio .kicker { color: var(--blue-deep); }
.portfolio .section__sub { color: var(--text-muted-dark); }
.gallery__main {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 16 / 9;
  background: #dbe7f4;
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}
.gallery__main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.35s ease;
}
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 12px;
  border: none; background: rgba(255,255,255,0.9);
  color: var(--text-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s var(--ease);
  backdrop-filter: blur(8px);
}
.gallery__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery__arrow--prev { left: 16px; }
.gallery__arrow--next { right: 16px; }
.gallery__counter {
  position: absolute; bottom: 16px; right: 16px;
  padding: 6px 14px; border-radius: 8px;
  background: rgba(0,0,0,0.5); color: #fff;
  font-size: 13px; font-weight: 600;
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}
.gallery__strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 10px; margin-top: 14px;
}
.gallery__strip button {
  padding: 0; border: 2px solid transparent; background: transparent;
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
.gallery__strip button:hover { transform: scale(1.04); }
.gallery__strip button img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery__strip button.active {
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(75,123,255,0.18);
}

/* ── Portfolio Video ────────────────────── */
.portfolio-video {
  margin-top: 64px;
}
.portfolio-video .kicker {
  margin-bottom: 20px;
}
.portfolio-video__wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0f1a;
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}
.portfolio-video__wrap video {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
}

/* ── Team ───────────────────────────────── */
.team { background: var(--bg); }
.team__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.member {
  cursor: pointer;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(26,41,128,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex; flex-direction: column;
  padding: 0;
  text-align: left;
}
.member:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(26,41,128,0.14);
}
.member__photo {
  width: 100%; aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 0;
  border: none;
  margin: 0;
}
.member__photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  display: block;
}
.member__photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-raised), var(--bg-card));
  color: var(--blue-light); font-weight: 800; font-size: 2rem;
  letter-spacing: 0.06em;
}
.member__info {
  padding: 14px 16px 10px;
  flex: 1; display: flex; flex-direction: column;
}
.member h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: #fff; }
.member__role {
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue-light); margin-bottom: 10px;
}
.member__divider {
  height: 1px; background: var(--line); margin-bottom: 10px;
}
.member__hint {
  font-size: 0.75rem; color: var(--blue-light);
  font-weight: 600; letter-spacing: 0.04em;
  padding: 8px 16px 12px;
  text-transform: uppercase;
}

/* ── Contact ────────────────────────────── */
.contact {
  background: var(--bg-light);
  color: var(--text-dark);
}
.contact .kicker { color: var(--blue-deep); }
.contact__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.contact h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.035em;
}
.contact__text {
  margin-top: 16px; color: var(--text-muted-dark); line-height: 1.7;
}
.contact__card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.contact__logo {
  width: 160px; margin: 0 auto 32px;
}
.contact__details { display: flex; flex-direction: column; gap: 20px; }
.contact__row { }
.contact__label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 6px;
}
.contact__row a {
  color: var(--blue-light); font-weight: 600;
  word-break: break-word;
  transition: color 0.2s ease;
}
.contact__row a:hover { color: #fff; }
.contact__row address { color: var(--text-dim); line-height: 1.6; }

/* ── Footer ─────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer__inner {
  padding: 48px 0;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px; text-align: center;
}
.footer__brand img { height: 48px; opacity: 0.8; }
.footer__nav { display: flex; gap: 28px; }
.footer__nav a {
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  transition: color 0.2s ease;
}
.footer__nav a:hover { color: var(--text); }
.footer__legal { font-size: 13px; color: rgba(255,255,255,0.25); }

/* ── Modal ──────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal__dialog {
  position: relative;
  width: min(1060px, calc(100% - 32px));
  max-height: calc(100vh - 8vh);
  margin: 4vh auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  overflow-y: auto;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.25s ease;
}
.modal.open .modal__dialog {
  transform: translateY(0) scale(1); opacity: 1;
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-raised);
  color: var(--text-dim); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.modal__close:hover { background: var(--bg-card); }
.modal__body {
  display: grid; grid-template-columns: 380px 1fr;
  gap: 44px; align-items: start;
}
.modal__photo-wrap img,
.modal__placeholder {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.modal__placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-raised), var(--bg-card));
  color: var(--blue-light); font-weight: 800; font-size: 3.5rem;
  letter-spacing: 0.06em;
}
.modal__copy h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem; font-weight: 800; line-height: 1.1;
  margin-bottom: 6px;
}
.modal__copy .member__role { font-size: 16px; }
.modal__bio { margin-top: 20px; color: var(--text-dim); line-height: 1.7; font-size: 1.05rem; }

/* ── Reveal animation ───────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__strip { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 40px; }
  .wrap { width: calc(100% - 32px); }

  .header__nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 24px; gap: 16px;
    background: rgba(11,17,32,0.96);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
  }
  .header__nav.open { display: flex; }
  .header__nav a { font-size: 16px; padding: 6px 0; }
  .header__cta { align-self: center; min-width: 150px; padding: 12px 28px; text-align: center; }
  .header__burger { display: flex; }

  .hero { min-height: 90vh; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__badge { margin-top: 0px; }
  .hero__mark { width: 56px; }

  .metrics__row { grid-template-columns: 1fr; }
  .metric { padding: 24px 20px; }

  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }

  .services__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__strip { grid-template-columns: repeat(3, 1fr); }

  .contact__inner { grid-template-columns: 1fr; gap: 32px; }

  .modal__body { grid-template-columns: 1fr; }
  .modal__photo-wrap { max-width: 260px; }
  .modal__dialog { padding: 24px; }
  .modal__bio { padding-bottom: 80px; }
}

@media (max-width: 480px) {
  .team__grid { grid-template-columns: 1fr; }
  .gallery__strip { grid-template-columns: repeat(3, 1fr); }
}
