/* =========================================
   NAVBAR
========================================= */


* {
  max-width: 100%;
}

html,
body {
  background: var(--white);
  overflow-x: hidden;
}

.landing-nav {

  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background: var(--co-900);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 14px 24px;

  min-height: 72px;

  box-shadow: 0 2px 12px rgba(28, 8, 0, .3);

}


/* =========================================
   LOGO
========================================= */

.cophild-logo {

  display: flex;
  align-items: center;
  gap: 12px;

  cursor: pointer;

  flex-shrink: 0;
}


.logo-icon {

  width: 46px;
  height: 46px;

  border-radius: 50%;

  background: linear-gradient(135deg,
      #C8941A,
      #f0b938);

  display: flex;
  align-items: center;
  justify-content: center;

  color: #1b0701;

  font-weight: 900;
  font-size: 22px;
}


.logo-name {

  color: white;

  font-size: 24px;
  font-weight: 800;

  letter-spacing: -1px;
}


.logo-name span {
  color: #C8941A;
}


.logo-sub {

  color: rgba(255, 255, 255, .65);

  font-size: 11px;

  margin-top: 2px;
}


/* =========================================
   MENU AREA
========================================= */

.landing-nav-menu {

  display: flex;
  align-items: center;
  gap: 24px;
}


/* =========================================
   NAV LINKS
========================================= */

.landing-nav-links {

  display: flex;
  align-items: center;
  gap: 8px;

  flex-wrap: wrap;
}


.landing-nav-links a {

  color: rgba(255, 255, 255, .78);

  font-size: 14px;
  font-weight: 600;

  padding: 10px 14px;

  border-radius: 12px;

  transition: .25s ease;
}


.landing-nav-links a:hover {

  background: rgba(255, 255, 255, .08);

  color: white;
}


/* =========================================
   ACTIONS
========================================= */

.landing-nav-actions {

  display: flex;
  align-items: center;
}


/* =========================================
   MOBILE TOGGLE
========================================= */

.mobile-toggle {

  display: none;

  border: none;

  background: transparent;

  color: white;

  font-size: 28px;

  cursor: pointer;
}

.hero {
  background: var(--co-900);
  padding: 80px 40px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -220px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 148, 26, .12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;

  gap: 50px;

  align-items: center;

  perspective: 1800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200, 148, 26, .15);
  border: 1px solid rgba(200, 148, 26, .3);
  color: var(--gold-400);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, .8);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
}

.hero-stat-num span {
  color: var(--gold-400);
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  margin-top: 6px;
}

.cert-mockup {

  position: relative;

  background: var(--white);

  border-radius: var(--r-xl);

  box-shadow:
    0 30px 60px rgba(0,0,0,.24),
    0 10px 30px rgba(200,148,26,.08);

  overflow: hidden;

  border: 2px solid rgba(200,148,26,.24);

  transform-style: preserve-3d;

  transition: transform .18s ease,box-shadow .25s ease;
  will-change: transform;
  cursor: pointer;
   animation: floatingCard 5s ease-in-out infinite;
}


/* LIGHT GLOW */
.cert-mockup::before{

  content:"";

  position:absolute;

  inset:-2px;

  background:
    radial-gradient(
      circle at var(--x, 50%) var(--y, 50%),
      rgba(255,255,255,.55),
      transparent 35%
    );

  opacity:0;

  transition:opacity .25s ease;

  pointer-events:none;

  z-index:2;
}


/* GOLD EDGE GLOW */
.cert-mockup::after{

  content:"";

  position:absolute;

  inset:0;

  border-radius:inherit;

  background:
    linear-gradient(
      135deg,
      rgba(200,148,26,.22),
      transparent 30%,
      transparent 70%,
      rgba(200,148,26,.14)
    );

  opacity:.5;

  pointer-events:none;
}


/* HOVER FEEL */
.cert-mockup:hover{

  box-shadow:
    0 45px 90px rgba(0,0,0,.34),
    0 20px 40px rgba(200,148,26,.18);
}


.cert-mockup:hover::before{
  opacity:1;
}

.cert-top{
  transform:translateZ(40px);
}

.cert-body{
  transform:translateZ(55px);
}

.cert-chips{
  transform:translateZ(65px);
}

.cert-progress{
  transform:translateZ(50px);
}

.hero-stat-num{
  transform:translateZ(30px);
}

@keyframes floatingCard{

  0%{
    transform:
      translateY(0px)
      rotateX(0deg)
      rotateY(0deg);
  }

  50%{
    transform:
      translateY(-10px)
      rotateX(1deg)
      rotateY(-1deg);
  }

  100%{
    transform:
      translateY(0px)
      rotateX(0deg)
      rotateY(0deg);
  }

}

.cert-top {
  background: var(--co-900);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-body {
  padding: 30px;
}

.cert-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--co-900);
  margin-bottom: 6px;
  
   background:
    linear-gradient(
      135deg,
      var(--co-900),
      var(--gold-600)
    );
  transform:translateZ(70px);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.cert-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.cert-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cert-chip {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--co-200);
  color: var(--co-700);
  font-weight: 600;
}

.cert-divider {
  height: 1px;
  background: var(--gray-100);
  margin-bottom: 18px;
}

.cert-progress {
  height: 6px;
  background: var(--gray-100);
  border-radius: var(--r-full);
  overflow: hidden;
}

.cert-progress-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  border-radius: var(--r-full);
}

.section {
  padding: 80px 40px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  color: var(--co-900);
  margin-bottom: 12px;
  line-height: 1.12;
}

.section-sub {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

.features {
  background: var(--gray-50);
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--gray-200);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-lg);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--co-900);
}

.feature-card:nth-child(2)::before {
  background: var(--gold-500);
}

.feature-card:nth-child(3)::before {
  background: var(--maroon);
}

.feature-card:nth-child(4)::before {
  background: var(--co-600);
}

.feature-card:nth-child(5)::before {
  background: var(--gold-600);
}

.feature-card:nth-child(6)::before {
  background: var(--maroon);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--r-lg);
  background: var(--co-50);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--co-900);
  margin-bottom: 18px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--co-900);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.75;
}

.cohorts {
  background: var(--white);
}

.cohorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.cohort-card {
  background: var(--co-900);
  border-radius: var(--r-lg);
  padding: 26px;
  color: var(--white);
  transition: var(--transition);
}

.cohort-card:hover {
  transform: translateY(-3px);
  background: var(--co-800);
}

.cohort-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 14px;
}

.cohort-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cohort-detail {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  line-height: 1.7;
}

.how {
  background: var(--co-50);
}

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

.step {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 30px 22px;
  text-align: center;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: var(--gold-400);
  background: var(--co-900);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--co-900);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.contact {
  background: var(--gray-50);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-card {
  background: var(--white);
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-200);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--co-900);
  margin-bottom: 14px;
}

.contact-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list span {
  display: block;
  font-size: 14px;
  color: var(--gray-700);
}

.contact-list strong {
  color: var(--co-900);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-900);
  font-size: 14px;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  padding: 14px 26px;
  border-radius: var(--r-full);
  border: none;
  background: var(--gold-500);
  color: var(--co-900);
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--gold-400);
}

.cta {
  background: var(--co-900);
  padding: 80px 40px;
  text-align: center;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, .68);
  margin-bottom: 32px;
}

footer {
  background: var(--co-950);
  padding: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.footer-links a {
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, .85);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, .35);
}

.privacy-hero {
  padding: 80px 40px 40px;
}

.privacy-inner {
  max-width: 960px;
  margin: 0 auto;
}

.privacy-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  color: var(--co-900);
  margin-bottom: 16px;
}

.privacy-hero p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.8;
}

.privacy-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 30px;
  margin-top: 24px;
}

.privacy-section:not(:first-child) {
  margin-top: 28px;
}

.privacy-section h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--co-900);
  margin-bottom: 12px;
}

.privacy-section p,
.privacy-section ul {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.8;
}

.privacy-section ul {
  padding-left: 20px;
  margin-top: 12px;
}

.privacy-section li {
  margin-bottom: 10px;
}

.privacy-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 40px;
  background: var(--co-900);
}

.privacy-nav a {
  color: var(--white);
  font-weight: 600;
}

.privacy-footer {
  padding: 28px 40px;
  text-align: center;
  color: rgba(17, 24, 39, .7);
  font-size: 13px;
}


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

@media(max-width:900px) {

  .landing-nav {

    padding: 14px 18px;
  }

  .logo-sub {
    display: none;
  }

}


@media(max-width:768px) {

  .mobile-toggle {
    display: block;
  }

  .landing-nav-menu {

    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    background: #1b0701;

    border-top: 1px solid rgba(255, 255, 255, .05);

    padding: 0 20px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 20px;

    overflow: hidden;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-12px);

    max-height: 0;

    transition:
      opacity .35s ease,
      transform .35s ease,
      max-height .4s ease,
      padding .35s ease,
      visibility .35s;
  }


  /* ACTIVE STATE */
  .landing-nav-menu.active {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

    max-height: 500px;

    padding: 20px;

  }

  .landing-nav-links {

    width: 100%;

    flex-direction: column;
    align-items: flex-start;

    gap: 6px;
  }

  .landing-nav-links a {

    width: 100%;
  }

  .landing-nav-actions {

    width: 100%;
  }

  .landing-nav-actions .btn {

    width: 100%;
    text-align: center;
  }

}

@media (max-width: 760px) {
  .privacy-nav {
    padding: 20px;
  }

  .privacy-hero {
    padding: 60px 20px 20px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 640px) {
  .landing-nav {
    padding: 0 18px;
  }

  .hero {
    padding: 60px 18px 80px;
  }

  .section,
  .cta {
    padding: 60px 18px;
  }

  .footer-inner {
    padding: 0 18px;
  }
}

/* ══════════════════════════════════════════
   CONTACT FORM LOADER
══════════════════════════════════════════ */
/* Scroll lock is applied via inline position:fixed (see contact.js
   lockScroll/unlockScroll) rather than overflow:hidden — toggling
   overflow on <html>/<body> resets the scroll offset in several
   browsers, which was causing the page to jump to the top on every
   submit. This class only needs to suppress the momentary width
   reflow when the scrollbar disappears. */
body.cophild-scroll-locked {
  width: 100%;
}

.cophild-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 4, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: cophildLoaderFadeIn 0.18s ease-out;
}

.cophild-loader-overlay.cophild-loader-out {
  animation: cophildLoaderFadeOut 0.18s ease-in forwards;
}

.cophild-loader-box {
  background: linear-gradient(160deg, var(--co-900), var(--co-800));
  border: 1px solid rgba(200, 148, 26, 0.25);
  border-radius: 18px;
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: cophildLoaderPop 0.22s cubic-bezier(.34,1.56,.64,1);
}

.cophild-loader-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(224, 170, 40, 0.2);
  border-top-color: var(--gold-500);
  animation: cophildLoaderSpin 0.85s linear infinite;
  margin-bottom: 10px;
}

.cophild-loader-text {
  font-family: var(--font-heading, inherit);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  letter-spacing: 0.01em;
}

.cophild-loader-subtext {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes cophildLoaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes cophildLoaderFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cophildLoaderFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes cophildLoaderPop {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Pinned to the viewport (not the form) so the result of a send is
   visible immediately, wherever the page happens to be scrolled to —
   the inline message under the form still updates too, but this is
   what actually answers "did it work?" without scrolling back down. */
.cophild-result-banner {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 460px);
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cophild-result-banner.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cophild-result-banner.is-success {
  background: linear-gradient(135deg, #14532d, #166534);
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.cophild-result-banner.is-error {
  background: linear-gradient(135deg, #7f1d1d, #991b1b);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.cophild-result-icon {
  font-size: 15px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cophild-result-banner {
    top: 12px;
    padding: 11px 16px;
    font-size: 13px;
  }
}