/* ===============================
   KindWave Collective - Unified Styles
   Goal: reusable + tight layout on all pages, no !important hacks
   =============================== */

/* --- Base --- */
:root{
  --ink: #083857;
  --blue: #0D6FB8;
  --sky: #3FA9F5;
  --bg-top: #E6F7FB;
  --bg-bot: #B8E3F4;
  --card: rgba(255,255,255,0.72);
}

*{ box-sizing: border-box; }

html, body{
  width: 100%;
  overflow-x: hidden; /* prevents accidental horizontal scroll */
}

body{
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, var(--bg-top), var(--bg-bot));
  color: var(--ink);
  text-align: center;
}

/* --- Hero + Wave (shared) --- */
.hero{
  position: relative;
  overflow: hidden;         /* clip wave edges cleanly */
  padding: 14px 18px 50px;  /* tight but still comfortable */
}

.hero-content{
  position: relative;
  z-index: 2;               /* always above the wave */
  max-width: 820px;
  margin: 0 auto;
}

.hero h1{
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--ink);
}

.hero p{
  font-size: 1.05rem;
  margin: 0 0 18px;
}

/* ---- Unified wave component ---- */
.wave{
  position: absolute;
  z-index: 1;
  pointer-events: none;
  display: block;

  /* overscan so edges never look "square" */
  left: 50%;
  width: 120vw;
  max-width: none;
  transform: translateX(-50%);

  height: 160px;
}

/* content above wave */
.hero-content,
.hero h1,
.hero p{
  position: relative;
  z-index: 2;
}

/* bottom wave (index) */
.wave--bottom{
  bottom: -20px;
}

/* top wave (product) - flip so it looks like a real top wave */
.wave--top{
  top: -20px;
  transform: translateX(-50%) scaleY(-1);
}

/* Product page uses top wave (same SVG, different anchoring) */
body.product-body .hero{
  padding: 16px 18px 10px;
}

body.product-body .wave{
  top: -18px;
  bottom: auto;
  height: 180px;
}

/* --- Buttons (shared) --- */
.btn, .product-btn{
  display: inline-block;
  padding: 10px 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.08s ease, background-color 0.2s ease;
}

.btn:hover, .product-btn:hover{ background: var(--ink); transform: translateY(-1px); }

.btn-secondary{
  display: inline-block;
  padding: 9px 18px;
  background: var(--sky);
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}
.btn-secondary:hover{ background: var(--blue); color: #fff; }

/* --- Sections / cards (shared) --- */
.section{
  padding: 0 14px;
}

.intro{
  font-size: 1rem;
  margin: 0 0 16px;
}

.card{
  max-width: 420px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.card h3{ margin: 0 0 10px; }

/* Images */
img{ max-width: 100%; height: auto; }

/* Featured section product images: explicitly enforce consistent square thumbnails */
#featured .card .product-image{
  width: clamp(140px, 45vw, 190px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Home card image: responsive square container for consistent sizing */
body:not(.product-body) .card .product-image{
  width: clamp(140px, 45vw, 190px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Product page main card image */
body.product-body .product-image{ max-width: 200px; }

/* --- Product page layout --- */
body.product-body .product-hero{
  padding: 8px 12px 6px;
}

body.product-body .product-hero > p{
  margin: 0 0 10px;
  font-size: 1rem;
}

.product-section{
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 18px 10px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.product-section h2{
  margin: 14px 0 8px;
}

.product-list{
  list-style: none;
  text-align: left;
  max-width: 380px;
  margin: 12px auto 10px;
  padding-left: 0;
}



/* --- About page sizing --- */
@media (min-width: 900px){
  body.about-body .section .card{
    max-width: 760px;
  }

  body.about-body .product-list{
    max-width: 520px;
  }
}

body.about-body .card p{
  text-align: left;
}

body.about-body .product-list{
  max-width: none;
  text-align: left;
  list-style: disc;
  padding-left: 22px;
}

body.about-body .product-list li{
  margin: 6px 0;
  line-height: 1.4;
}

body.about-body .card .centered-cta{
  text-align: center;
}
/* Logo block */
.logo-link{
  display: inline-block;
  margin: 10px auto 0;
  text-decoration: none;
}

.logo-large{
  display: block;
  width: min(260px, 70vw);
  height: auto; /* uses SVG viewBox; no clipping */
  margin: 0 auto;
}

/* --- Footer (shared) --- */
.site-footer{
  padding: 14px 14px 16px;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 10px;
  text-align:center;
  color:#4a6b78;
  padding-bottom:10px;
}

.site-footer p{
  margin: 6px 0;
}

.site-footer a{
  color: var(--ink);
  text-decoration: underline;
  margin: 0 6px;
}

/* --- Mobile tightening --- */
@media (max-width: 768px){
  .hero{ padding: 10px 14px 40px; }
  body.product-body .hero{ padding: 10px 14px 6px; }

  .hero h1{ font-size: 2.05rem; }
  .hero p{ font-size: 0.98rem; margin-bottom: 12px; }

  .wave{
    height: 130px;
    left: -18%;
    width: 136%;
    bottom: -14px;
  }

  body.product-body .wave{
    top: -20px;
    height: 150px;
  }

  .card{ padding: 12px; }
  .card .product-image{ max-width: 165px; }
  body.product-body .product-image{ max-width: 175px; }

  .product-btn{
    width: 100%;
    max-width: 320px;
    padding: 12px 18px;
  }
}

