/* CarterBio Website System
   Typeface: Inter via Google Fonts. Download from https://fonts.google.com/specimen/Inter if self-hosting.
*/

:root {
  --cb-primary: #2F5D50;
  --cb-primary-dark: #1F3D2B;
  --cb-primary-soft: #2A4A3A;
  --cb-accent: #77A377;
  --cb-accent-light: #B6D9B6;
  --cb-dark: #0F1216;
  --cb-dark-2: #151A1F;
  --cb-dark-3: #1A1F23;
  --cb-light: #F4F6F7;
  --cb-light-2: #E8ECEA;
  --cb-text: #111111;
  --cb-muted: #5F6B66;
  --cb-muted-light: #AEB8B3;
  --cb-white: #FFFFFF;
  --cb-border-dark: rgba(255,255,255,0.12);
  --cb-border-light: rgba(15,18,22,0.12);

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 24px 70px rgba(0,0,0,0.24);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  color: var(--cb-text);
  background: var(--cb-light);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Typography */
.eyebrow,
.logo-strapline {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, .h1 {
  font-family: var(--font-sans);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 650;
  font-style: normal;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-sans);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 650;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
}
h3, .h3 {
  font-family: var(--font-sans);
  font-size: clamp(23px, 2.3vw, 30px);
  font-weight: 620;
  font-style: normal;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0;
}
.lead {
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.small { font-size: 14px; line-height: 1.5; }
.text-muted { color: var(--cb-muted); }
.text-muted-light { color: var(--cb-muted-light); }
.text-accent { color: var(--cb-accent); }
.text-primary { color: var(--cb-primary); }

/* Layout */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}
.section { padding: 96px 0; }
.section-compact { padding: 64px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Logo */
.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  width: fit-content;
}

.logo-main {
  display: flex;
  align-items: flex-end;
  gap: 0;
  position: relative;
}

.logo-carter {
  width: 178px;
  height: auto;
  margin-bottom: 5px;
  position: relative;
  z-index: 2;
}

.logo-suffix {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--cb-primary);
  margin-left: -14px; /* pulls Bio under the R tail */
  transform: translateY(-3px); /* fine vertical alignment */
  position: relative;
  z-index: 1;
}

.logo-strapline {
  display: block;
  width: 100%;
  margin-top: 2px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cb-accent);
}

/* Header */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 28px 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--cb-accent-light); }

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--cb-primary);
  color: var(--cb-white);
  border-color: var(--cb-primary);
}
.btn-primary:hover {
  background: var(--cb-accent);
  border-color: var(--cb-accent);
  color: var(--cb-dark);
}
.btn-outline-dark {
  background: transparent;
  color: var(--cb-white);
  border-color: rgba(255,255,255,0.42);
}
.btn-outline-dark:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.72);
}
.btn-outline-light {
  background: transparent;
  color: var(--cb-primary);
  border-color: var(--cb-primary);
}
.btn-outline-light:hover {
  background: var(--cb-primary);
  color: var(--cb-white);
}

/* Hero */
.hero {
  min-height: 760px;
  color: var(--cb-white);
  background:
    radial-gradient(circle at 80% 20%, rgba(119,163,119,0.20), transparent 34%),
    linear-gradient(90deg, rgba(15,18,22,0.95), rgba(15,18,22,0.72) 48%, rgba(47,93,80,0.45)),
    url("https://images.unsplash.com/photo-1512621776951-a57141f2eefd?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 150px 0 96px;
}
.hero-content { max-width: 760px; }
.hero .eyebrow { color: var(--cb-accent-light); margin-bottom: 22px; }
.hero h1 span { color: var(--cb-accent); }
.hero .lead {
  max-width: 610px;
  color: rgba(255,255,255,0.84);
  margin: 26px 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Feature strip */
.feature-strip {
  background: var(--cb-light);
  border-bottom: 1px solid var(--cb-border-light);
}
.feature-card {
  padding: 34px 18px;
}
.feature-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--cb-primary);
}
.feature-card h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feature-card p { margin: 0; color: var(--cb-muted); font-size: 14px; }

/* Content sections */
.split {
  align-items: center;
}
.section-title { max-width: 760px; margin-bottom: 42px; }
.section-title .eyebrow { color: var(--cb-primary); margin-bottom: 14px; }
.card {
  background: var(--cb-white);
  border: 1px solid var(--cb-border-light);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: 0 18px 50px rgba(15,18,22,0.08);
}
.card-dark {
  background: linear-gradient(145deg, var(--cb-dark-2), #10201B);
  color: var(--cb-white);
  border: 1px solid var(--cb-border-dark);
  box-shadow: var(--shadow-soft);
}
.card-dark p { color: var(--cb-muted-light); }
.media-card {
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(47,93,80,0.08), rgba(15,18,22,0.15)),
    url("https://images.unsplash.com/photo-1490645935967-10de6ba17061?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

/* Dark band */
.dark-band {
  background: var(--cb-dark);
  color: var(--cb-white);
}
.dark-band .section-title .eyebrow { color: var(--cb-accent); }
.dark-band .section-title p { color: var(--cb-muted-light); }
.service-card {
  background: var(--cb-dark-2);
  border: 1px solid var(--cb-border-dark);
  border-radius: var(--radius-md);
  padding: 30px;
}
.service-card h3 { margin: 16px 0 10px; }
.service-card p { color: var(--cb-muted-light); margin: 0; }

/* CTA */
.cta {
  background:
    radial-gradient(circle at 18% 42%, rgba(47,93,80,0.26), transparent 42%),
    linear-gradient(110deg, rgba(15,18,22,0.94), rgba(15,18,22,0.72) 48%, rgba(47,93,80,0.72)),
    url("assets/carterbio-cta-athlete.jpg");

  background-size: cover;
  background-position: right center;
  color: var(--cb-white);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: block;
}

.cta h2 span {
  color: var(--cb-accent);
}

.cta p { color: rgba(255,255,255,0.78); }

.cta-actions {
  margin-top: 24px;
}

/* Footer */
.footer {
  background: var(--cb-dark);
  color: var(--cb-white);
  padding: 42px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.footer p {
  color: var(--cb-muted-light);
  margin: 10px 0 0;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .cta { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .hero { min-height: 680px; }
  .section { padding: 72px 0; }
  .cta { padding: 38px; }
}

@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 32px)); }

  /* Give logo/nav a darker backing on mobile */
  .site-header {
    padding: 16px 0;
    background: linear-gradient(
      180deg,
      rgba(15,18,22,0.92),
      rgba(15,18,22,0.72)
    );
    backdrop-filter: blur(6px);
  }

  /* Make Bio more legible on mobile */
  .logo-suffix {
    color: var(--cb-accent);
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  }

  .logo-carter {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
  }

  .logo-strapline {
    color: var(--cb-accent-light);
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
  }

  .hero { padding-top: 130px; min-height: 640px; }
  .hero-actions .btn { width: 100%; }
  .nav {
    align-items: flex-start;
    gap: 14px;
  }

  .nav-links {
    flex-shrink: 0;
  }

  .nav-links .btn {
    width: auto;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.1;
    white-space: nowrap;
    border-radius: 8px;
  }

  /* tighter feature strip on mobile */
  .feature-strip.section-compact {
    padding: 34px 0;
  }

  .feature-strip .grid {
    gap: 18px;
  }

  .feature-card {
    padding: 22px 0;
    border-bottom: 1px solid rgba(15,18,22,0.08);
  }

  .feature-card:last-child {
    border-bottom: 0;
  }

  .feature-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
  }

  .feature-card h3 {
    margin-bottom: 6px;
  }

  .feature-card p {
    max-width: 32ch;
  }
  
  .footer {
    padding: 34px 0;
  }

  .footer-inner {
    align-items: flex-start;
    gap: 24px;
  }  
}

@media (max-width: 380px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links .btn {
    width: auto;
    min-height: 42px;
    padding: 10px 16px;
    font-size: 15px;
  }

  .logo-carter {
    width: 150px;
  }

  .logo-suffix {
    font-size: 36px;
    margin-left: -18px;
  }

  .logo-strapline {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-align: center;
  }

  .hero {
    padding-top: 190px;
  }
}