/* ============================================================
   NAQUA CAPITAL — Meridian Design System
   ============================================================ */

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

:root {
  --navy:       #003361;
  --navy-deep:  #001e3c;
  --navy-mid:   #012a50;
  --teal:       #0b92b7;
  --teal-dark:  #0880a0;
  --gold:       #c8a96e;
  --gold-muted: rgba(200,169,110,.15);
  --blue-light: #86b0cb;
  --blue-pale:  #e8f3f8;
  --blue-muted: #d0e6f0;
  --cream:      #faf7f2;
  --white:      #ffffff;
  --off-white:  #f8fafb;
  --text:       #1a1f2e;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --border:     #e2ecf1;
  --radius:     4px;
  --radius-lg:  14px;
  --shadow-sm:  0 1px 3px rgba(0,51,97,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,51,97,.12), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 12px 40px rgba(0,51,97,.16);
  --shadow-teal: 0 8px 28px rgba(11,146,183,.25);
  --teal-glow:  rgba(11,146,183,.2);
  --nav-h:      72px;
  --t:          0.25s ease;
  --t-slow:     0.55s cubic-bezier(0.16, 1, 0.3, 1);
  --max-w:      1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  flex-shrink: 0;
}

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Sections ── */
.section {
  padding: 96px 0;
}
.section-sm {
  padding: 64px 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
  transition: all var(--t);
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 1.5px solid var(--navy);
}
.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border: 1.5px solid var(--teal);
}
.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border: 1.5px solid var(--gold);
  font-weight: 600;
}
.btn-gold:hover {
  background: #b8975a;
  border-color: #b8975a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,169,110,.35);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
}
.nav.scrolled, .nav.solid {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: .02em;
  transition: color var(--t);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transition: transform var(--t);
  transform-origin: left;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--navy);
  transition: all var(--t);
}

/* ── Ticker Strip ── */
.ticker-strip {
  background: var(--navy-deep);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(200,169,110,.2);
  border-bottom: 1px solid rgba(200,169,110,.1);
}
.ticker-inner {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-inner:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.ticker-item .ticker-sep {
  color: var(--gold);
  opacity: .7;
  font-size: 14px;
}
.ticker-item strong {
  color: var(--gold);
  font-weight: 600;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 64px;
  background: var(--navy-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(11,146,183,.22) 0%, transparent 60%),
    linear-gradient(135deg, #001e3c 0%, #012a50 50%, #0b92b7 100%);
  opacity: .7;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { background: linear-gradient(90deg, var(--gold), var(--teal)); }
.page-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  color: var(--white);
  margin-top: 16px;
}
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.7;
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--navy-deep);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(200,169,110,.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: rgba(255,255,255,.04);
  padding: 32px 40px;
  position: relative;
  transition: background var(--t);
}
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transition: transform var(--t-slow);
  transform-origin: left;
}
.stat-item:hover { background: rgba(255,255,255,.07); }
.stat-item:hover::before { transform: scaleX(1); }
.stat-item h3 {
  font-size: 36px;
  color: var(--white);
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.stat-item p {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-top: 4px;
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ── Team Cards ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--t), transform var(--t);
}
.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  display: block;
}
.team-info {
  padding: 24px;
}
.team-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold-muted);
  color: var(--gold);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
  border: 1px solid rgba(200,169,110,.3);
}
.team-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.team-role {
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 14px;
}
.team-bio {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(200,169,110,.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(200,169,110,.7);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
  transition: color var(--t);
}
.footer-col a:hover { color: var(--white); }
.footer-col address {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.8;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12.5px;
}
.footer-bottom a { color: rgba(255,255,255,.4); margin-left: 20px; }
.footer-bottom a:hover { color: var(--white); }

/* ── Fade-in animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(0.16, 1, 0.3, 1), transform .6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Stagger grid children ── */
.stagger-grid > *:nth-child(1) { transition-delay: 0ms; }
.stagger-grid > *:nth-child(2) { transition-delay: 80ms; }
.stagger-grid > *:nth-child(3) { transition-delay: 160ms; }
.stagger-grid > *:nth-child(4) { transition-delay: 240ms; }
.stagger-grid > *:nth-child(5) { transition-delay: 320ms; }
.stagger-grid > *:nth-child(6) { transition-delay: 400ms; }

/* ── Hero entrance animation ── */
@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-animate {
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-animate-1 { animation-delay: 100ms; }
.hero-animate-2 { animation-delay: 220ms; }
.hero-animate-3 { animation-delay: 340ms; }
.hero-animate-4 { animation-delay: 460ms; }
.hero-animate-5 { animation-delay: 580ms; }

/* ── Right panel slide-in ── */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.slide-in-right {
  animation: slideInRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 300ms both;
}

/* ── Form ── */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11,146,183,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .stats-grid { grid-template-columns: 1fr; gap: 1px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links, .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-animate, .slide-in-right { animation: none; }
  .ticker-inner { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
