/* ═══════════════════════════════════════════════
   site.css — shared styles for all pages
   ═══════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #142033;
  --surface:   #172538;
  --navy:      #1b3150;
  --navy2:     #28446c;
  --border:    rgba(255,255,255,0.08);
  --blue:      #143099;
  --blue2:     #356fcf;
  --blue-soft: rgba(20,48,153,0.18);
  --text:      #f3f5f8;
  --muted:     #a6b4c8;
  --safe-bot:  env(safe-area-inset-bottom, 0px);
}

html { scroll-behavior: smooth; }
img { max-width: 100%; }


body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 95% 60% at 10% 0%, rgba(58,86,132,0.36) 0%, transparent 58%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(53,111,207,0.08) 0%, transparent 58%);
}

body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(53,111,207,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,111,207,0.024) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift { 0% { background-position: 0 0, 0 0; } 100% { background-position: 60px 60px, 60px 60px; } }

.site-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,32,51,0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 82px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-mark { display:flex; align-items:center; }
.nav-logo-mark { flex-shrink: 0; }
.nav-logo-mark img {
  display:block;
  max-width: 44px;
  max-height: 44px;
  width: auto;
  height: auto;
  background: transparent;
}
.nav-logo-text {
  display:flex;
  flex-direction:column;
  line-height:1;
  gap: 5px;
}
.nav-logo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-logo-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8fb6ff;
}


.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 13px; font-weight: 400;
  color: var(--muted); text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, #143099 0%, #356fcf 100%);
  color: #fff !important;
  border-radius: 50px !important;
  padding: 10px 20px !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
  box-shadow: 0 8px 24px rgba(53,111,207,0.18);
}
.nav-cta:hover { transform: scale(1.03); box-shadow: 0 0 18px rgba(36,69,207,0.35); }

.nav-phone {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 50px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-phone:hover { border-color: var(--blue2); color: #fff; background: rgba(36,69,207,0.06); }
.nav-phone svg { width: 13px; height: 13px; flex-shrink: 0; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--muted); border-radius: 2px; transition: all 0.3s; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 32px 32px;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand .footer-logo { margin-bottom: 14px; }
.footer-brand .nav-logo-mark img { max-width: 52px; max-height: 52px; width: auto; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.75; max-width: 300px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue2); margin-bottom: 14px; font-weight: 400; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px; margin: 32px auto 0;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: 12px; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }

.section { padding: 80px 32px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue2); margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px;
  background: var(--blue2); flex-shrink: 0;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.15; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 50px;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, #143099 0%, #356fcf 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(53,111,207,0.20);
}
.btn-primary:hover { transform: scale(1.03); box-shadow: 0 0 24px rgba(36,69,207,0.36); }
.btn-outline { background: transparent; color: var(--blue2); border: 1px solid var(--blue2); }
.btn-outline:hover { background: var(--blue2); color: #fff; transform: scale(1.03); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(36,69,207,0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(36,69,207,0.06);
}

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 980px) {
  .nav-inner { height: 76px; }
  .nav-logo-mark img { max-width: 40px; max-height: 40px; width: auto; }
  .nav-logo-title { font-size: 16px; }
  .nav-logo-sub { font-size: 9px; letter-spacing: 0.15em; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0; background: rgba(20,32,51,0.97); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-phone { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 56px 20px; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 0 18px; height: 70px; }
  .nav-logo-mark img { max-width: 34px; max-height: 34px; width: auto; }
  .nav-logo-title { font-size: 14px; }
  .nav-logo-sub { font-size: 8px; letter-spacing: 0.14em; }
  .nav-links { top: 72px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}


/* Performance helpers */
.section, .site-footer { content-visibility: auto; contain-intrinsic-size: 1px 720px; }
