/* ========================================
   CPK Collective — Marketing Site Styles
   Shares brand system with dashboard
   ======================================== */

/* Fonts */
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNovaLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/Proxima Nova Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Commuter Sans';
  src: url('fonts/CommuterSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Eighties Comeback';
  src: url('fonts/EightiesComeback - Medium Condensed.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --cpk-espresso: #5A453D;
  --cpk-cream: #F7F4EF;
  --cpk-warm-white: #FDFCFA;
  --cpk-blue: #A7C7E7;
  --cpk-blue-soft: #CDDEED;
  --cpk-blue-pale: #E5EFF7;
  --cpk-blue-dark: #6A9BBD;
  --cpk-text: #3D3229;
  --cpk-text-light: #7A6F63;
  --cpk-border: #E5DDD4;
  --cpk-gold: #C4A87C;
  --serif: 'Eighties Comeback', Georgia, serif;
  --sans: 'Proxima Nova', -apple-system, sans-serif;
  --display: 'Eighties Comeback', Georgia, serif;
  --tagline: 'Commuter Sans', 'Proxima Nova', -apple-system, sans-serif;
}

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

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--cpk-text);
  background: var(--cpk-warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cpk-espresso); text-decoration: none; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 28px 0;
}

.section--blue {
  background: var(--cpk-blue);
  color: var(--cpk-espresso);
  padding: 56px 0;
}

.section--blue-feature {
  padding: 120px 0;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.section--blue-feature > .container {
  width: 100%;
}

.section--cream {
  background: var(--cpk-cream);
}

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(253,252,250,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,221,212,0.4);
  transition: background 0.3s;
}

.site-nav.nav-transparent {
  background: transparent;
  border-bottom: none;
}

.site-nav.nav-transparent .nav-links a {
  color: var(--cpk-espresso);
}

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

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

.nav-links a {
  font-family: var(--tagline);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cpk-espresso);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--cpk-blue-dark);
}

.nav-links a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-dashboard {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cpk-blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-dashboard svg {
  width: 16px;
  height: 16px;
  fill: var(--cpk-espresso);
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cpk-espresso);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  margin-top: 104px;
  height: calc(75vh - 104px);
  min-height: 480px;
  max-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
  z-index: 1;
}

/* Hero fade-up animation */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 0 24px;
}

.hero-logo {
  font-family: var(--serif);
  font-size: clamp(72px, 12vw, 140px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0;
  animation: heroFadeUp 0.9s ease-out 0.3s forwards;
}

.hero-logo img {
  height: clamp(120px, 18vw, 220px);
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--tagline);
  font-size: clamp(15px, 2.1vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  animation: heroFadeUp 0.9s ease-out 0.7s forwards;
}

.hero-pillars {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1.5px;
  opacity: 0;
  animation: heroFadeUp 0.9s ease-out 1.1s forwards;
}

/* ===== INTRO ===== */
.intro {
  padding: 56px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-text {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.7;
  text-align: left;
}

.intro-text strong {
  font-weight: 600;
}

/* ===== SERVICE CARDS (3-up grid) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  text-align: left;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  filter: grayscale(100%);
}

.service-card-body {
  padding: 20px 4px;
}

.service-card-title {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--cpk-text);
}

.service-card-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--cpk-text-light);
}

/* ===== LIFESTYLE MATCH CTA ===== */
.cta-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  justify-items: center;
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
}

.cta-left {
  text-align: center;
  max-width: 680px;
}

.cta-title {
  font-family: var(--tagline);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(18px, 2vw, 26px);
  white-space: nowrap;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.cta-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--cpk-espresso);
  margin-bottom: 24px;
}

.cta-shell {
  margin-top: 12px;
  text-align: center;
}

.cta-shell img {
  height: 80px;
  display: inline-block;
}

.cta-right {
  text-align: center;
}

.cta-heading {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 26px;
  font-weight: 400;
  font-style: normal;
  color: var(--cpk-espresso);
  margin-bottom: 8px;
}

.cta-sub {
  font-size: 17px;
  color: var(--cpk-espresso);
  opacity: 0.7;
  margin-bottom: 24px;
}

.btn-match {
  display: inline-block;
  padding: 16px 56px;
  background: rgba(253,252,250,0.92);
  color: var(--cpk-espresso);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-match:hover {
  background: white;
  color: var(--cpk-espresso);
  opacity: 1;
}

/* ===== VALUES (3-column) ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
  color: var(--cpk-espresso);
}

.value-title {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cpk-espresso);
  margin-bottom: 12px;
}

.value-divider {
  width: 28px;
  height: 28px;
  border: none;
  background: url('/CPKLogoShell_Espresso.png') center/contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin: 0 auto 20px;
}

.value-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--cpk-espresso);
}

/* ===== ABOUT PAGE ===== */
.page-header {
  text-align: center;
  padding: 140px 0 20px;
}

.page-header-title {
  font-family: var(--tagline);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--cpk-text);
}

/* Sticky scroll effect: user reads first half of Our Story normally,
   then section pins while bleed photo slides up over it.
   Desktop only — on mobile the stacked layout makes this UX awkward. */
.about-sticky-wrap {
  position: relative;
}

@media (min-width: 901px) {
  .about-story-sticky {
    position: sticky;
    top: -60vh;
    z-index: 1;
  }

  .about-story-sticky .about-split-full {
    width: 100%;
    min-height: 160vh;
  }

  .about-sticky-wrap .about-bleed-photo {
    position: relative;
    z-index: 2;
    margin-top: 0;
  }
}

/* Full-width story split (edge to edge) */
.about-split-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.about-text-full {
  background: var(--cpk-cream);
  padding: 60px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-photo-full {
  position: relative;
  overflow: hidden;
}

.about-photo-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Full-bleed photo between sections */
.about-bleed-photo {
  width: 100%;
  overflow: hidden;
  margin: 80px 0 0 0;
}

.about-bleed-photo img {
  width: 100%;
  height: 70vh;
  max-height: 650px;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

/* Legacy split (kept for compatibility) */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

.about-text {
  background: var(--cpk-cream);
  padding: 60px 48px;
}

.about-section-title {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--cpk-text);
}

.about-body p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-sig {
  font-size: 17px;
  line-height: 1.6;
  margin-top: 24px;
}

.about-photo {
  position: relative;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-kid-photo {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  filter: grayscale(100%);
}

.about-philosophy {
  max-width: none;
  margin: 0 auto;
  width: 100%;
}

.about-philosophy h2 {
  font-family: var(--tagline);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  margin-bottom: 16px;
}

.about-philosophy p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-philosophy strong {
  font-weight: 600;
}

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

.pillar {
  text-align: center;
}

.pillar-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--cpk-espresso);
  margin: 0 0 16px;
}

.pillar-divider {
  width: 28px;
  height: 28px;
  border: none;
  background: url('/CPKLogoShell_Espresso.png') center/contain no-repeat;
  opacity: 0.75;
  margin: 0 auto 20px;
}

.pillar-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--cpk-text);
  margin: 0;
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== SERVICES PAGE ===== */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.services-page-grid .service-card-img {
  height: 600px;
}

/* ===== HOW IT WORKS (Services) ===== */
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.how-step {
  text-align: center;
}

.how-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cpk-blue-dark);
}

.how-step-icon svg {
  width: 56px;
  height: 56px;
}

.how-step-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--cpk-blue-dark);
  margin-bottom: 12px;
}

.how-step-title {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 21px;
  font-weight: 400;
  color: var(--cpk-text);
  margin-bottom: 10px;
}

.how-step-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--cpk-text-light);
}

/* ===== LIFESTYLE MATCH PAGE ===== */
.form-embed {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

/* ===== INSTAGRAM CAROUSEL ===== */
.insta-header {
  text-align: center;
  margin-bottom: 24px;
}

.insta-handle {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  color: var(--cpk-espresso);
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.2s ease;
}

.insta-handle:hover {
  color: var(--cpk-blue-dark);
}

.ig-carousel {
  position: relative;
}

.ig-viewport {
  overflow: hidden;
}

.ig-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.ig-slide {
  flex: 0 0 calc(33.333% - 14px);
  aspect-ratio: 4/5;
  overflow: hidden;
  display: block;
}

.ig-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s;
}

.ig-slide:hover img {
  opacity: 0.8;
}

.ig-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(90,69,61,0.2);
  background: rgba(255,255,255,0.9);
  color: var(--cpk-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.2s;
}

.ig-arrow:hover {
  background: white;
  border-color: var(--cpk-text-light);
}

.ig-arrow svg {
  width: 20px;
  height: 20px;
}

.ig-arrow-left { left: -22px; }
.ig-arrow-right { right: -22px; }

.btn-insta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cpk-text);
  border: 1px solid var(--cpk-text);
  padding: 12px 32px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-insta:hover {
  background: var(--cpk-espresso);
  color: white;
  border-color: var(--cpk-espresso);
}

@media (max-width: 900px) {
  .ig-slide { flex: 0 0 calc(50% - 10px); }
  .ig-arrow-left { left: 8px; }
  .ig-arrow-right { right: 8px; }
}

@media (max-width: 600px) {
  .ig-slide { flex: 0 0 100%; }
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 20px;
  font-weight: 400;
  color: var(--cpk-text);
  margin: 36px 0 12px;
}

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

.legal-content p {
  font-size: 14px;
  color: var(--cpk-text-light);
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 12px !important;
  color: var(--cpk-text-light) !important;
  font-style: normal;
  margin-bottom: 32px !important;
}

/* ===== FOOTER ===== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  font-size: 12px;
  color: var(--cpk-text-light);
  border-top: 1px solid var(--cpk-border);
}

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

.footer-links a {
  font-size: 12px;
  color: var(--cpk-text-light);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 12px;
  color: var(--cpk-text-light);
}

/* ===== SCROLL ARROW ===== */
.scroll-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(90,69,61,0.3);
  margin: 24px auto 0;
  cursor: pointer;
  transition: background 0.2s;
}

.scroll-top:hover {
  background: rgba(90,69,61,0.05);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--cpk-espresso);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .services-grid,
  .services-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .values-grid,
  .how-steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .cta-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-title {
    white-space: normal;
  }

  .about-split,
  .about-split-full {
    grid-template-columns: 1fr;
  }

  .about-photo,
  .about-photo-full {
    max-height: 400px;
  }

  .about-text-full {
    padding: 40px 24px;
  }

  .about-bleed-photo img {
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  .service-card-img,
  .services-page-grid .service-card-img {
    height: 360px;
  }

  .site-nav {
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(253,252,250,0.98);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--cpk-border);
  }

  .nav-links.open {
    display: flex;
  }

  .site-nav.nav-transparent .nav-links a {
    color: var(--cpk-espresso);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav.nav-transparent .nav-toggle span {
    background: white;
  }

  .hero {
    height: 60vh;
    min-height: 360px;
    max-height: 560px;
  }

  .section {
    padding: 40px 0;
  }

  .site-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 20px;
  }
}

@media (max-width: 600px) {
  .services-grid,
  .services-page-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-text {
    padding: 32px 24px;
  }

  .values-grid,
  .how-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .insta-embed-wrap {
    max-width: 90%;
  }

  .cta-split {
    padding: 40px 0;
  }
}
