/* ═══════════════════════════════════════════════════════════════
   SILVER TSUNAMI ADVISORS — Global Stylesheet
   Palette: White bg · Navy #1F3864 · Gold #B8860B · Blue #2E5FA3
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Cinzel:wght@400;600;700&family=Josefin+Sans:wght@200;300;400;600&display=swap');

:root {
  --navy:      #1F3864;
  --navy-deep: #141f3a;
  --blue:      #2E5FA3;
  --gold:      #B8860B;
  --gold-lt:   #d4a017;
  --gold-pale: #fdf3dc;
  --white:     #ffffff;
  --off-white: #f8f6f2;
  --gray-lt:   #f2f2f2;
  --gray:      #e0e0e0;
  --text:      #2a2a2a;
  --text-mid:  #555555;
  --shadow:    0 4px 24px rgba(31,56,100,0.10);
  --shadow-lg: 0 12px 48px rgba(31,56,100,0.16);
  --radius:    4px;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

.eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 80px;
}

.nav-logo-cell {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--navy);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.nav-logo-cell img {
  width: 130px;
  height: auto;
}

.nav-tabs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-tabs-row2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.nav-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
  min-height: 40px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.nav-tab:last-child { border-right: none; }
.nav-tab:hover { background: rgba(184,134,11,0.18); color: var(--gold-lt); }
.nav-tab.active { background: rgba(184,134,11,0.22); color: var(--gold-lt); font-weight: 600; }

/* ── HERO BANNER ────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--navy);
  color: white;
  padding: 80px 40px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46,95,163,0.3) 0%, transparent 60%),
              linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, transparent 100%);
  pointer-events: none;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 { color: white; margin-bottom: 1rem; }
.hero .eyebrow { color: var(--gold-lt); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 680px; }

.hero-rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1.2rem 0;
}

/* ── PAGE WRAPPER ───────────────────────────────────────────── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy); color: white; }
.section-navy h2, .section-navy h3 { color: white; }
.section-navy p { color: rgba(255,255,255,0.85); }
.section-navy .eyebrow { color: var(--gold-lt); }

.section-header { margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }

/* ── GOLD CALLOUT ───────────────────────────────────────────── */
.callout-gold {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  padding: 1.4rem 1.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout-gold p { margin: 0; font-style: italic; color: #5c4500; font-size: 1rem; }

.callout-blue {
  background: #eaf1fb;
  border-left: 4px solid var(--blue);
  padding: 1.4rem 1.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.callout-blue p { margin: 0; font-style: italic; color: var(--navy); font-size: 1rem; }

/* ── CARDS GRID ─────────────────────────────────────────────── */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--gray);
  border: 1.5px solid var(--gray);
}

.cards-3 .card {
  background: white;
  padding: 2rem 1.8rem;
  transition: box-shadow var(--transition);
}

.cards-3 .card:hover { box-shadow: var(--shadow); }

.card-header {
  background: var(--navy);
  color: white;
  padding: 0.9rem 1.5rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* ── STAT BLOCKS ────────────────────────────────────────────── */
.stat-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.stat-block {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

.stat-num {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-top: 0.2rem;
}

/* ── STEPS TABLE ────────────────────────────────────────────── */
.steps-list { display: flex; flex-direction: column; gap: 0; }

.step-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  border: 1px solid var(--gray);
  border-top: none;
}

.step-row:first-child { border-top: 1px solid var(--gray); }

.step-num {
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.step-row:nth-child(even) .step-num { background: var(--blue); }

.step-body {
  padding: 1rem 1.4rem;
  background: white;
}

.step-row:nth-child(even) .step-body { background: var(--off-white); }

/* ── TWO-COL TABLE ──────────────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; }

.info-table tr:nth-child(odd) td { background: var(--off-white); }
.info-table tr:nth-child(even) td { background: white; }

.info-table td {
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--gray);
  font-size: 0.93rem;
  vertical-align: top;
}

.info-table td:first-child {
  font-weight: 600;
  color: var(--navy);
  width: 36%;
  white-space: nowrap;
}

/* ── BULLET LIST ────────────────────────────────────────────── */
.sta-list { list-style: none; padding: 0; margin: 1rem 0; }

.sta-list li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gray-lt);
}

.sta-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-gold {
  background: var(--gold);
  color: white;
}

.btn-gold:hover { background: var(--gold-lt); color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184,134,11,0.3); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover { background: var(--gold); color: white; }

.btn-navy {
  background: var(--navy);
  color: white;
}

.btn-navy:hover { background: var(--blue); color: white; transform: translateY(-2px); }

/* ── HORIZONTAL RULE ────────────────────────────────────────── */
.hr-gold {
  border: none;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 2rem 0;
}

.hr-gray { border: none; height: 1px; background: var(--gray); margin: 2rem 0; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 56px 40px 32px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-lt);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.footer-tagline { font-size: 0.85rem; line-height: 1.65; }

.footer-col h4 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.footer-col ul li a { color: rgba(255,255,255,0.7); }
.footer-col ul li a:hover { color: var(--gold-lt); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-disclaimer {
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  flex: 1;
}

.footer-disclaimer strong { color: rgba(255,255,255,0.6); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* ── IMAGE HELPERS ──────────────────────────────────────────── */
.img-full { width: 100%; height: 320px; object-fit: cover; display: block; }
.img-hero { width: 100%; height: 460px; object-fit: cover; display: block; }
.img-card { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; }

/* photo + text split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* ── CONTACT FORM ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
}

.form-group { margin-bottom: 1.4rem; }

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  background: white;
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,95,163,0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.contact-info-block {
  background: var(--navy);
  color: white;
  padding: 2.4rem;
  border-radius: var(--radius);
}

.contact-info-block h3 { color: white; margin-bottom: 1.4rem; }

.contact-info-item {
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.contact-info-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.contact-info-item .label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 0.3rem;
}

.contact-info-item a { color: rgba(255,255,255,0.85); }
.contact-info-item a:hover { color: var(--gold-lt); }

/* ── UNSPLASH PLACEHOLDER IMAGES ────────────────────────────── */
/* We use picsum.photos with deterministic seeds for consistent imagery */

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-inner { grid-template-columns: 120px 1fr; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; gap: 1rem; }
  .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-tabs-row, .nav-tabs-row2 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 52px 20px; }
  .page-wrap { padding: 0 20px; }
  .section { padding: 48px 0; }
}
