/* ============================================================
   Cobalt Cypress LLC — cobaltcypress.com
   Design system: CC brand tokens
   No frameworks. CSS Grid + Flexbox only.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Custom Properties ───────────────────────────────────────── */
:root {
  --color-navy:  #17396C;
  --color-blue:  #2459A7;
  --color-light: #5D97E1;
  --color-brown: #584F43;
  --color-drift: #7E7668;
  --color-moss:  #9EA98E;
  --color-sage:  #CAD2C6;
  --color-bg:    #F8F9FC;
  --color-white: #FFFFFF;
  --color-text:  #1A2130;
  --color-muted: #5A6478;

  --font-primary: 'Inter', 'Arial', sans-serif;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --shadow: 0 2px 16px rgba(23, 57, 108, 0.10);
  --shadow-md: 0 4px 24px rgba(23, 57, 108, 0.14);

  --max-width: 1160px;
  --section-pad: 80px 24px;
  --section-pad-sm: 48px 24px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ── Utilities ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--color-muted); max-width: 72ch; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 12px;
}
.hero .section-label {
  color: var(--color-light);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}
.btn-primary:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}
.btn-secondary:hover {
  background: var(--color-blue);
  color: var(--color-white);
  text-decoration: none;
}
.btn-white {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: var(--color-sage);
  border-color: var(--color-sage);
  text-decoration: none;
}
.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-white);
  text-decoration: none;
}
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ── Nav ─────────────────────────────────────────────────────── */
.site-nav {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.nav-logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--color-white); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--color-white); font-weight: 600; }
.nav-cta { flex-shrink: 0; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-white);
}
.nav-toggle svg { display: block; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 96px 24px 80px;
  text-align: center;
}
.hero h1 { color: var(--color-white); margin-bottom: 20px; }
.hero .btn-primary {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}
.hero .btn-primary:hover {
  background: var(--color-sage);
  border-color: var(--color-sage);
  color: var(--color-navy);
  text-decoration: none;
}
.hero .subhead {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,0.84);
  max-width: 60ch;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Section headings ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { margin: 0 auto; max-width: 58ch; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  background: #EBF2FB;
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { color: var(--color-white); }
.card h3 { color: var(--color-navy); margin-bottom: 10px; }
.card p  { color: var(--color-muted); max-width: unset; }

/* ── Product Spotlight ───────────────────────────────────────── */
.product-spotlight {
  padding: var(--section-pad);
  background: var(--color-white);
}
.product-card {
  background: linear-gradient(135deg, var(--color-bg) 0%, #e8eef8 100%);
  border: 1px solid rgba(36, 89, 167, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.product-badge {
  display: inline-block;
  background: var(--color-blue);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.product-card h2 { margin-bottom: 12px; }
.product-card p  { margin-bottom: 24px; }
.product-card-visual {
  background: var(--color-navy);
  border-radius: var(--border-radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.875rem;
  font-style: italic;
}

/* ── Value Props ─────────────────────────────────────────────── */
.value-props {
  padding: var(--section-pad);
  background: var(--color-bg);
}
.value-props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* ── CTA Band ────────────────────────────────────────────────── */
.cta-band {
  padding: 80px 24px;
  background: var(--color-navy);
  text-align: center;
}
.cta-band h2 { color: var(--color-white); margin-bottom: 12px; }
.cta-band p  { color: rgba(255,255,255,0.75); margin: 0 auto 32px; }

/* ── Page Header (interior pages) ───────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--color-navy) 0%, #1e4a8a 100%);
  padding: 64px 24px;
  text-align: center;
}
.page-header h1 { color: var(--color-white); margin-bottom: 12px; }
.page-header p   { color: rgba(255,255,255,0.8); max-width: 60ch; margin: 0 auto; }

/* ── Team ────────────────────────────────────────────────────── */
.team-section {
  padding: var(--section-pad);
  background: var(--color-white);
}
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
}
.team-card {
  background: var(--color-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-card-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--color-sage);
}
.team-card-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-moss) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-size: 0.8125rem;
  font-weight: 500;
}
.team-card-body {
  padding: 32px;
}
.team-card-body h3 { color: var(--color-navy); margin-bottom: 4px; }
.team-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.team-card-bio {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: unset;
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact-section {
  padding: var(--section-pad);
  background: var(--color-bg);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p  { margin-bottom: 24px; }
.contact-detail  { display: flex; flex-direction: column; gap: 12px; }
.contact-detail a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-blue);
  font-weight: 500;
  text-decoration: none;
}
.contact-detail a:hover { text-decoration: underline; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #D0D8E8;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(36, 89, 167, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-optional {
  font-size: 0.8125rem;
  color: var(--color-drift);
  font-weight: 400;
  margin-left: 4px;
}
.consent-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  background: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 16px;
  border: 1px solid #D0D8E8;
}
.consent-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-blue);
}
.consent-group label {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-muted);
  cursor: pointer;
}
.form-legal-note {
  font-size: 0.75rem;
  color: var(--color-drift);
  line-height: 1.5;
  margin-top: 12px;
}
.form-legal-note a { color: var(--color-blue); }
.form-submit-row { margin-top: 24px; }

/* ── Products page ───────────────────────────────────────────── */
.products-section {
  padding: var(--section-pad);
  background: var(--color-bg);
}

/* ── Legal pages ─────────────────────────────────────────────── */
.legal-page {
  padding: 64px 24px;
  background: var(--color-white);
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.375rem;
  margin: 40px 0 12px;
  color: var(--color-navy);
}
.legal-content h3 {
  font-size: 1.0625rem;
  margin: 28px 0 8px;
  color: var(--color-navy);
}
.legal-content p  {
  color: var(--color-muted);
  max-width: unset;
  margin-bottom: 16px;
  line-height: 1.75;
}
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content ul li {
  color: var(--color-muted);
  margin-bottom: 6px;
  line-height: 1.65;
}
.legal-content a { color: var(--color-blue); }
.legal-placeholder {
  display: inline-block;
  background: #FFF3CD;
  border: 1px solid #FFBE00;
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #856404;
}
.legal-effective {
  font-size: 0.875rem;
  color: var(--color-drift);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E2E8F2;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 24px 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  max-width: 28ch;
}
.footer-col h4 {
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--color-white); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-bottom-left {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.footer-bottom-left a { color: rgba(255,255,255,0.7); }
.footer-bottom-left a:hover { color: var(--color-white); }
.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-legal-links a:hover { color: var(--color-white); }

.stats-strip {
  background: #112d56;
  padding: 28px 24px;
}
.stats-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stats-strip .stat-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-light);
  line-height: 1;
  margin-bottom: 6px;
}
.stats-strip .stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .product-card-visual { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  :root { --section-pad: 56px 20px; }
  .hero { padding: 72px 20px 60px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-navy);
    padding: 16px 24px 24px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 99;
  }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .nav-cta .btn-mobile-show { display: inline-flex; }
  .value-props-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }
}
