/* Theme */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #424242;
  --border: #e5e7eb;
  --accent: #ffd100; /* warm yellow */
  --accent-dark: #e6bb00;
  --contrast: #000000;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Tahoma', Segoe UI, Helvetica, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
p {
  font-size: 20px;
}

img { max-width: 100%; display: inline-block; }

/* Utilities */
.container { width: min(1120px, 92%); margin-inline: auto; }
.flex { display: flex; gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.center { text-align: center; }
.center-y { align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.m-top-lg { margin-top: 2rem; }
.m-bottom-xs { margin-bottom: .5rem; }
.m-bottom-md { margin-bottom: 1.25rem; }

.h1 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; margin: 0 0 .75rem; font-weight: 800; }
.h2 { font-size: clamp(2.4rem, 3.0vw, 3.0rem); line-height: 1.2; margin: 0 0 .5rem; font-weight: 800; }
.h3 { font-size: 1.5rem; margin: 0 0 .5rem; font-weight: 700; }
.h4 { font-size: 1.6rem; margin: 0 0 .25rem; font-weight: 700; }
.lead { font-size: 1.4rem; color: var(--muted); margin: 24px 0;}

/* Topbar */
.topbar {
  background: #0f0f10;
  color: #fff;
  font-size: .925rem;
}
.topbar .btn--contrast { color: #fff; border-color: #333; }
.topbar .container { padding: .5rem 0; }

/* Header */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.header .container { padding: .85rem 0; }
.logo { font-weight: 800; display: inline-flex; align-items: center; gap: .5rem; max-width: 330px; }
.logo__mark { display:inline-grid; place-items:center; width: 36px; height: 36px; border-radius: 8px; background: var(--accent); color: var(--contrast); }
.logo__text { letter-spacing: .2px; }
.nav { display: none; gap: 1rem; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; opacity: .85; }
.nav a:hover { opacity: 1; }
.header__cta { display: none; }

@media (min-width: 1200px) {
  .nav { display: flex; }
  .header__cta { display: block; }
}

/* Buttons */
.btn {
  appearance: none; 
  border: 0; 
  border-radius: 10px; 
  padding: 1.0rem 1.2rem; 
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer; 
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease; 
  box-shadow: 0 2px 0 rgba(0,0,0,0.12);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(0,0,0,0.12) inset; }
.btn--primary { background: var(--accent); color: #000; font-size: 1.2rem;}
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { background: transparent; border: 2px solid #111; color: #111; }
.btn--ghost { background: transparent; border: 2px solid var(--border); color: #111; }
.btn--sm { padding: .45rem .7rem; font-size: .9rem; border-radius: 8px; }
.btn--xl { padding: 1.1rem 1.4rem; font-size: 1.125rem; }
.btn--full { width: 100%; }

/* Sections */
.section { padding: 60px 0; }
.section--alt { background: #f1f1f1; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--black { background: #0f0f10; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);}
.section--black .section__head { color: white !important;}

.section__head { text-align: center; max-width: 780px; margin: 0 auto 2rem; }
.section__head p { margin: .25rem 0 0; }

/* Hero */
.hero { padding: 48px 0; }
.hero__ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin: 2rem 0; }
.trustbadges { display: flex; gap: .75rem; align-items: center; opacity: .85; }
.trustbadges img { border: none; border-radius: 8px; padding: .4rem .6rem; background: #fff; max-width: 160px; margin: 0px 20px;}
/* keep badges in a single line */
.trustbadges { flex-wrap: nowrap; }

.vsl__frame { position: relative; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: #fff; width: 100%; max-width: 720px; margin-inline: auto; }
.vsl__placeholder { display: grid; place-items: center; aspect-ratio: 16/9; background: linear-gradient(135deg, #fff9d6, #fff); color: #1f2937; text-align: center; }
.vsl__frame iframe { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }

/* VSL Overlay Elements for Vimeo player */
#video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: none;
  background-color: rgba(0, 0, 0, 0.6);
  background-size: cover;
  background-position: center;
  transition: background-color 0.3s ease;
}

#loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #FFFFFF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
  display: block;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#unmute-title {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  z-index: 2;
  display: none;
}

#play-button {
  width: 88px;
  height: 88px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* Pass clicks through to the overlay */
  border: 6px solid white;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  animation: pulse 1.5s infinite ease-in-out;
}

#play-button::after {
  content: '';
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent white;
  margin-left: 6px;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 15px rgba(0,0,0,0.3); }
  50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(0,0,0,0.5); }
  100% { transform: scale(0.95); box-shadow: 0 0 15px rgba(0,0,0,0.3); }
}

/* Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
  .vsl__frame { padding-top: 56.25%; }
  .vsl__frame iframe, .vsl__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
}
.vsl__placeholder .playbtn { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow); margin-bottom: .5rem; }
.caption { font-size: .95rem; color: var(--muted); margin-top: .75rem; }

/* Cards & Stats */
.cards .card { 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: 14px; 
  padding: 1.5rem; 
  box-shadow: var(--shadow); 
}
.card {
  text-align: center;
}
.card--lined { border: 2px solid #111; }
.card__icon {
  display: flex;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.stats { align-items: stretch; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; text-align: center; box-shadow: var(--shadow); }
.stat__value { font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
.stat__label { color: var(--muted); font-size: 1.1rem; }
.stat__icon {
  display: flex;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

/* Quotes */
.quotes .quote { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); }
/* New testimonials layout */
.testimonials-list { display: grid; gap: 2.0rem; }
.testimonial-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.0rem;
  align-items: center;
}
.testimonial-row--reverse .testimonial-media { order: 2; }
.testimonial-row--reverse .testimonial-content { order: 1; }
/* When reversed, keep media (column 2) narrower than text */
.testimonial-row--reverse { grid-template-columns: 1.2fr 0.8fr; }

.testimonial-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: #fff;
}

.testimonial-content .quote {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.quote__author { 
  margin-top: .75rem; 
  color: var(--muted); 
  font-weight: 600; 
  display: flex; 
  align-items: center; 
  gap: .6rem; 
}
.quote__author .quote__image {
  width: 80px;
  height: 80px;
  margin: 0;
  display: inline-block;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.quote__image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--accent);
}

/* CTA section */
.cta { background: #0f0f10; color: #fff; border-top: 8px solid var(--accent); }
.cta .h2 { color: #fff; }
.cta p { color: #e5e7eb; }
.cta .subtext { margin-top: .5rem; font-size: .9rem; color: #d1d5db; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 1.25rem 0; background: #fff; }
.footer a { color: var(--text); text-decoration: none; margin-right: .875rem; opacity: .85; }
.footer a:hover { opacity: 1; }
.footer__copy { color: var(--muted); font-size: .95rem; }

/* Form */
.form__row { display: grid; gap: .35rem; margin-bottom: .85rem; }
.form__row label { font-weight: 700; font-size: .95rem; }
.form__row input { padding: .75rem .85rem; border-radius: 10px; border: 1px solid var(--border); font-size: 1rem; }
.form__row input:focus { outline: 2px solid var(--accent); border-color: #111; }
.form__note { margin-top: .6rem; font-size: .875rem; color: var(--muted); }

/* Responsive */
.mobile-only {display: none;}
.desktop-only {display: block;}

@media (max-width: 1280px) {
  .grid-2 { grid-template-columns: 1fr; }
  /* reduce spacing in hero */
  .hero .grid-2 { gap: 0.50rem; }
  /* ensure media remains below copy */
  .hero__media { order: initial; }

  /* center hero text and CTAs */
  .hero__copy, .hero__copy .h1, .hero__copy .lead { text-align: center; }
  .hero__ctas { justify-content: center; margin-top: 20px;}

  /* center headings inside boxes */
  .cards .card h3 { text-align: center; }

  /* keep trust badges on one line by scaling logos (no wrap) */
  .trustbadges { flex-wrap: nowrap; justify-content: center; }
  .trustbadges img { max-width: clamp(80px, 22vw, 140px); margin: 0 8px; padding: .3rem .4rem; }

  /* show mobile version */
  .mobile-only {display: block;}
  .desktop-only {display: none;}
}
@media (max-width: 1000px) { 
  /* Testimonials: stack on mobile */
  .testimonial-row { grid-template-columns: 1fr; }
  .testimonial-row .testimonial-media, .testimonial-row .testimonial-content { order: initial; }
  .testimonial-media { max-width: 780px; margin: 0 auto; }

  footer .container {display: block;}
  .logo {max-width: 240px; margin: 0 auto; display: block;}
  .lead {margin: 10px 0; font-size: 1.2rem;}
  .footer__copy {text-align: center;}
}

@media (max-width: 800px) { 
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 24px 0; }
  .header .container { justify-content: center; padding-bottom: 0px;}
  .header {border: 0px !important;}

  /* resizing */
  .logo {max-width: 220px; margin: 0 auto; }
  .lead {margin: 10px 0; font-size: 1.05rem;}
}
