/* ═══════════════════════════════════════════════════════════════════════════
   Bontiva Capital — Stylesheet
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy:        #0a1628;
  --navy-light:  #111d32;
  --navy-mid:    #162541;
  --gold:        #c9a84c;
  --gold-dim:    #b89a45;
  --white:       #f0f0f0;
  --off-white:   #d4d4d4;
  --text-muted:  #8a94a6;
  --border:      rgba(201, 168, 76, 0.15);
  --border-light:rgba(255, 255, 255, 0.08);
  --max-width:   1100px;
  --header-h:    72px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--off-white);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: var(--gold); text-decoration: none; transition: color .25s; }
a:hover { color: #ddc06a; }

::selection {
  background: var(--gold);
  color: var(--navy);
}

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: 0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: 0.015em; }
h3 { font-size: 1.25rem; letter-spacing: 0.01em; }
h4 { font-size: 1.1rem; }

p + p { margin-top: 1rem; }

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ── Layout Helpers ────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--navy-light);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header / Navigation ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .35s, box-shadow .35s;
}

.site-header--transparent {
  background: transparent;
}

.site-header--solid {
  background: rgba(10, 22, 40, 0.97);
  box-shadow: 0 1px 0 var(--border-light);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
}

.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--off-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color .25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1100;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: transform .3s, opacity .2s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-toggle.open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201,168,76,0.05) 0%, transparent 70%),
    linear-gradient(170deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
  z-index: 0;
}

/* Subtle geometric grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 2rem;
  opacity: 0.5;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Pillar Cards ──────────────────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: border-color .3s, transform .3s;
}

.pillar-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.4rem;
  color: var(--gold);
}

.pillar-card h3 {
  margin-bottom: 0.8rem;
}

.pillar-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Page Hero (interior pages) ────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  text-align: center;
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-light) 100%);
  border-bottom: 1px solid var(--border-light);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Content Sections ──────────────────────────────────────────────────── */
.content-block {
  margin-bottom: 3.5rem;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  margin-bottom: 1.25rem;
}

.content-block h3 {
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.content-block p {
  color: var(--off-white);
  font-size: 0.95rem;
}

.content-block p + p {
  margin-top: 1rem;
}

/* ── Strategy Cards ────────────────────────────────────────────────────── */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.strategy-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  transition: border-color .3s;
}

.strategy-card:hover {
  border-color: var(--border);
}

.strategy-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 1rem;
}

.strategy-card h3 {
  margin-bottom: 0.8rem;
  color: var(--white);
}

.strategy-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.strategy-note {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  border-left: 2px solid var(--gold);
  background: rgba(201, 168, 76, 0.04);
  border-radius: 0 4px 4px 0;
}

.strategy-note p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Contact Layout ────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--off-white);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--navy-mid);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color .25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%238a94a6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--navy-mid);
  color: var(--white);
}

.form-error {
  color: #e05555;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #e05555;
}

.form-group.error .form-error {
  display: block;
}

.btn-submit {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background .25s, transform .15s;
}

.btn-submit:hover {
  background: #ddc06a;
}

.btn-submit:active {
  transform: scale(0.98);
}

/* Form status messages */
.form-status {
  padding: 1rem 1.25rem;
  border-radius: 3px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: none;
}

.form-status--success {
  display: block;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #81c784;
}

.form-status--error {
  display: block;
  background: rgba(224, 85, 85, 0.1);
  border: 1px solid rgba(224, 85, 85, 0.3);
  color: #e57373;
}

/* Contact sidebar */
.contact-sidebar {
  padding: 2.5rem 2rem;
  background: var(--navy-mid);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.contact-sidebar h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.sidebar-item {
  margin-bottom: 1.25rem;
}

.sidebar-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.sidebar-item p, .sidebar-item a {
  font-size: 0.925rem;
  color: var(--off-white);
}

.sidebar-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Legal Pages ───────────────────────────────────────────────────────── */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.925rem;
  color: var(--off-white);
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 0;
}

.legal-content ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.925rem;
  color: var(--off-white);
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.legal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 0 2rem;
  background: var(--navy);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color .25s;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-disclaimer {
  max-width: 700px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pillars-grid,
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    min-height: 90vh;
    padding: calc(var(--header-h) + 2rem) 1.25rem 3rem;
  }

  .page-hero {
    padding: calc(var(--header-h) + 3rem) 0 3rem;
  }

  .footer-nav {
    gap: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }

  .pillar-card,
  .strategy-card {
    padding: 2rem 1.5rem;
  }
}

/* ── Accessibility ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  transition: top .2s;
}

.skip-link:focus {
  top: 1rem;
}
