/* ===========================
   COBALT POND PARTNERS
   Brand Stylesheet
   =========================== */

:root {
  --cobalt: #1B4F8A;
  --cobalt-light: #2563A8;
  --navy: #0D1B2A;
  --navy-mid: #142436;
  --gold: #C8A04A;
  --gold-hover: #D4AF5C;
  --light-bg: #F4F6F8;
  --white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-muted: #6B7280;
  --border-light: rgba(13, 27, 42, 0.08);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --max-width: 1200px;
  --section-pad: clamp(80px, 10vw, 140px);
  --side-pad: clamp(24px, 5vw, 80px);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 8px;
}

/* ===========================
   NAVIGATION
   =========================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--side-pad);
  transition: all 0.4s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--light-bg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo .logo-mark {
  width: 32px;
  height: 32px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

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

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(244, 246, 248, 0.75);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-links a:hover {
  color: var(--light-bg);
}

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

.nav-cta {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-size: 0.75rem !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--navy) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--light-bg);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  padding: 120px var(--side-pad) 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(27, 79, 138, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(200, 160, 74, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--light-bg);
  max-width: 780px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.4s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.8;
  color: rgba(244, 246, 248, 0.7);
  max-width: 580px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.8s forwards;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 160, 74, 0.25);
}

.btn-outline {
  background: transparent;
  color: rgba(244, 246, 248, 0.85);
  border: 1px solid rgba(244, 246, 248, 0.25);
}

.btn-outline:hover {
  border-color: rgba(244, 246, 248, 0.6);
  color: var(--light-bg);
}

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

.btn-cobalt:hover {
  background: var(--cobalt-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 79, 138, 0.3);
}

/* ===========================
   SECTIONS
   =========================== */

.section {
  padding: var(--section-pad) var(--side-pad);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-light { background: var(--light-bg); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); }
.section-cobalt { background: var(--cobalt); }

.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-eyebrow.on-light { color: var(--cobalt); }
.section-eyebrow.on-dark { color: var(--gold); }

.gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-title.on-light { color: var(--navy); }
.section-title.on-dark { color: var(--light-bg); }

.section-lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.8;
  max-width: 680px;
  margin-bottom: 60px;
}

.section-lead.on-light { color: var(--text-muted); }
.section-lead.on-dark { color: rgba(244, 246, 248, 0.7); }

/* ===========================
   ABOUT / 2-COL
   =========================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-dark);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
  border: 1px solid var(--border-light);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--cobalt);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===========================
   HOW IT WORKS
   =========================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.step-card {
  padding: 40px 28px;
  border: 1px solid rgba(244, 246, 248, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(200, 160, 74, 0.3);
  background: rgba(244, 246, 248, 0.03);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 20px;
  line-height: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--light-bg);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(244, 246, 248, 0.65);
}

/* ===========================
   SECTORS
   =========================== */

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.sector-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
}

.sector-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.3s ease;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.08);
}

.sector-card:hover::before {
  height: 100%;
}

.sector-icon {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--cobalt);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 79, 138, 0.08);
}

.sector-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.sector-range {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--cobalt);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.sector-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ===========================
   WHY US / VALUE PROPS
   =========================== */

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.value-item {
  padding: 36px 32px;
  border: 1px solid rgba(244, 246, 248, 0.1);
  transition: all 0.3s ease;
}

.value-item:hover {
  border-color: rgba(200, 160, 74, 0.25);
}

.value-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--light-bg);
  margin-bottom: 12px;
}

.value-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(244, 246, 248, 0.65);
}

/* ===========================
   CONTACT
   =========================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-text p {
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
  color: var(--text-dark);
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  color: var(--cobalt);
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid rgba(13, 27, 42, 0.15);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-dark);
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(27, 79, 138, 0.1);
}

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

/* ===========================
   FOOTER
   =========================== */

.footer {
  background: var(--navy);
  padding: 60px var(--side-pad) 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244, 246, 248, 0.08);
}

.footer-brand {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--light-bg);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: rgba(244, 246, 248, 0.5);
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(244, 246, 248, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.6875rem;
  color: rgba(244, 246, 248, 0.35);
  line-height: 1.6;
  max-width: 700px;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { flex-direction: column; gap: 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(13, 27, 42, 0.98);
    padding: 24px var(--side-pad) 32px;
    gap: 20px;
  }
  .nav-toggle { display: block; }

  .hero { min-height: 90vh; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }

  .steps-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .nav-inner { height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
}
