/* ============================================================
   KI SOLUTIONS — shared stylesheet (styles.css)
   Used by every page. Edit colors/fonts here once and the whole
   site updates. Per-page image slots live in each HTML file.
   ============================================================ */

/* ---- Palette & tokens ---- */
:root {
  --cream:        #e7e1d6;   /* main page background */
  --cream-deep:   #ddd6c9;   /* alternating sections / footer */
  --cream-soft:   #efeae1;   /* lighter panels */
  --lavender:     #c7c2d1;   /* contact / consultation section bg */
  --lavender-btn: #d6d2da;   /* "Shop All" / "Get a Quote" buttons */
  --brown:        #4e3826;   /* solid dark buttons */
  --brown-hover:  #3c2b1c;
  --heading:      #6e4a2c;   /* warm brown headings + nav */
  --text:         #7a6a55;   /* body copy */
  --ink:          #2c2018;   /* darkest text */
  --hero-text:    #f4efe7;   /* light text over media */
  --quote-text:   #463f50;
  --line:         rgba(110,74,44,0.22);
  --line-soft:    rgba(110,74,44,0.14);

  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Hanken Grotesk', sans-serif;

  --maxw: 1280px;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0 0 1rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 1.1rem 2.6rem;
  border-radius: 999px;
  border: none; cursor: pointer;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.btn-brown { background: var(--brown); color: var(--hero-text); }
.btn-brown:hover { background: var(--brown-hover); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(44,32,24,0.22); }
.btn-lavender { background: var(--lavender-btn); color: var(--quote-text); }
.btn-lavender:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(70,63,80,0.25); }

/* ============================================================
   HEADER / NAV
   Default = dark text (for light-background pages).
   Add class "over-media" = light text + overlays a hero image.
   ============================================================ */
.site-header { position: relative; z-index: 60; padding-block: 1.6rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--display); font-weight: 500; font-size: 1.45rem; color: var(--heading); letter-spacing: 0.01em; }
.nav { display: flex; gap: clamp(1.4rem, 3.5vw, 3.2rem); }
.nav a {
  color: var(--heading);
  font-weight: 500; font-size: 1.02rem; opacity: 0.9;
  padding-bottom: 2px;
  transition: opacity .2s ease;
}
.nav a:hover { opacity: 1; }
.nav a.active { opacity: 1; border-bottom: 1.5px solid currentColor; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--heading); margin: 5px 0; border-radius: 2px; transition: .3s; }

.site-header.over-media { position: absolute; inset: 0 0 auto 0; }
.site-header.over-media .brand,
.site-header.over-media .nav a { color: var(--hero-text); }
.site-header.over-media .nav-toggle span { background: var(--hero-text); }

/* ============================================================
   HERO (media background)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: stretch;
  color: var(--hero-text);
  background-size: cover; background-position: center;
}
.hero .wrap { width: 100%; }

/* Banner-style hero (shorter image band, e.g. Course / Ventures) */
.hero-band {
  position: relative;
  min-height: 62vh;
  background-size: cover; background-position: center;
}

/* ============================================================
   GENERIC SECTION + SPLIT LAYOUTS
   ============================================================ */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--soft { background: var(--cream-soft); }
.section--deep { background: var(--cream-deep); }
.section--lavender { background: var(--lavender); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split--text-left { align-items: start; }
.eyebrow { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; }
.h-xl { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.h-lg { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.h-md { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.lead { font-size: 1.06rem; max-width: 46ch; }
.media {
  border-radius: 4px;
  background-size: cover; background-position: center;
  box-shadow: 0 30px 60px -34px rgba(44,32,24,0.4);
}
.media--tall { min-height: clamp(360px, 60vh, 680px); }
.media--square { aspect-ratio: 1/1; }
.media--wide { aspect-ratio: 16/9; }
.full-media {
  width: 100%;
  aspect-ratio: 21/9;
  background-size: cover; background-position: center;
}

/* ============================================================
   VENTURES — collection / product grid
   ============================================================ */
.ventures-hero { min-height: 92vh; display: flex; align-items: center; color: var(--hero-text); background-size: cover; background-position: center; }
.ventures-hero .wrap { width: 100%; display: flex; justify-content: flex-end; }
.ventures-hero .panel { max-width: 30rem; text-align: right; }
.ventures-hero h1 { color: var(--hero-text); font-weight: 500; font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: 1.4rem; }
.ventures-hero p { color: var(--hero-text); margin-bottom: 2rem; }

.filter-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: 2.4rem; border-bottom: 1px solid var(--line-soft);
}
.filter-bar button {
  background: none; border: 0; cursor: pointer;
  font-family: var(--body); font-size: 1.02rem; color: var(--text);
  padding-bottom: 4px; transition: color .2s ease;
}
.filter-bar button:hover { color: var(--heading); }
.filter-bar button.active { color: var(--heading); border-bottom: 1.5px solid var(--heading); }

.product-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 4rem);
}
.product-card .thumb { aspect-ratio: 16/10; border-radius: 3px; background-size: cover; background-position: center; }
.product-card h3 { font-family: var(--display); font-weight: 500; color: var(--heading); font-size: 1.4rem; margin: 1.1rem 0 0.35rem; }
.product-card .price { color: var(--text); font-size: 0.98rem; }
.product-card.is-hidden { display: none; }

/* ============================================================
   COURSE
   ============================================================ */
.course-intro { text-align: center; padding-block: clamp(3.5rem, 8vw, 7rem); }
.course-intro h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 400; margin-bottom: 1.4rem; }
.course-intro p { font-size: 1.15rem; max-width: 52ch; margin: 0 auto 2.4rem; }

.progress { max-width: 880px; margin: 3rem auto 0; }
.progress-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text); margin-bottom: 0.6rem; }
.progress-track { height: 4px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--brown); border-radius: 4px; }

.chapters { max-width: 980px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; display: grid; gap: 1.4rem; }
.chapter { background: var(--cream-soft); border-radius: 10px; overflow: hidden; }
.chapter-head {
  width: 100%; text-align: left; cursor: pointer; background: none; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.6rem 1.8rem; font-family: var(--body);
}
.chapter-head h2 { font-family: var(--display); font-weight: 500; color: var(--heading); font-size: 1.5rem; }
.chapter-head .meta { font-size: 0.82rem; color: var(--text); margin-top: 0.3rem; }
.chapter-head .chev { transition: transform .3s ease; color: var(--heading); }
.chapter.open .chapter-head .chev { transform: rotate(180deg); }
.chapter-body { display: none; padding: 0 1.8rem 0.6rem; }
.chapter.open .chapter-body { display: block; }
.lesson { display: flex; gap: 1.2rem; padding: 1.2rem 0; border-top: 1px solid var(--line-soft); align-items: flex-start; }
.lesson .l-thumb { flex: 0 0 84px; height: 60px; border-radius: 6px; background-size: cover; background-position: center; background-color: var(--cream-deep); }
.lesson h3 { font-family: var(--display); font-weight: 500; color: var(--heading); font-size: 1.12rem; margin-bottom: 0.3rem; }
.lesson p { font-size: 0.92rem; margin: 0 0 0.3rem; }
.lesson .dur { font-size: 0.8rem; color: var(--text); }

/* ============================================================
   ACCORDION (FAQ + About)
   ============================================================ */
.accordion { display: grid; }
.acc-item { border-top: 1px solid var(--line); }
.acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; cursor: pointer; background: none; border: 0; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; font-family: var(--display); font-weight: 500;
  color: var(--heading); font-size: clamp(1.1rem, 2vw, 1.4rem);
}
.acc-head .pm { flex: 0 0 auto; font-weight: 400; font-size: 1.6rem; line-height: 1; transition: transform .25s ease; }
.acc-item.open .acc-head .pm { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-item.open .acc-body { max-height: 600px; }
.acc-body p { padding-bottom: 1.5rem; font-size: 0.98rem; max-width: 60ch; }

/* ============================================================
   FORMS
   ============================================================ */
.field { margin-bottom: 1.6rem; }
.field > label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.55rem; font-size: 1.02rem; }
.field .req { color: var(--text); font-weight: 400; font-size: 0.85rem; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.name-row .sub { font-size: 0.82rem; color: var(--text); margin-bottom: 0.45rem; display: block; }
input[type=text], input[type=email], textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: transparent; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 0.95rem 1.15rem; transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { border-radius: 22px; min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(78,56,38,0.12); }
.checkbox-row { display: flex; align-items: center; gap: 0.6rem; margin: -0.4rem 0 1.6rem; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--brown); }
.form-status { margin-top: 1rem; font-size: 0.95rem; min-height: 1.2em; }

/* ============================================================
   SOCIAL STRIP (Contact)
   ============================================================ */
.social-block { text-align: center; }
.social-block h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 400; margin-bottom: clamp(2.4rem, 5vw, 3.5rem); }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: clamp(2.4rem, 5vw, 3.5rem); }
.social-grid .tile { aspect-ratio: 1/1; border-radius: 3px; background-size: cover; background-position: center; box-shadow: 0 20px 40px -30px rgba(44,32,24,0.4); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--cream-deep); padding-block: clamp(3.5rem, 7vw, 6rem); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-brand { font-family: var(--display); color: var(--heading); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; }
.footer-brand small { display: block; font-family: var(--body); font-size: 0.9rem; color: var(--text); margin-top: 0.9rem; font-weight: 400; }
.footer-contact { font-family: var(--display); color: var(--heading); font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 500; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; right: var(--pad); left: var(--pad);
    flex-direction: column; gap: 0;
    background: rgba(28,20,14,0.97); border-radius: 16px; padding: 0.5rem 0;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: .25s ease; backdrop-filter: blur(6px);
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a, .site-header.over-media .nav a { color: var(--hero-text); padding: 0.95rem 1.4rem; opacity: 0.95; }
  .nav a.active { border-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }

  .split { grid-template-columns: 1fr; }
  .media--tall { min-height: 340px; }
  .ventures-hero .wrap { justify-content: center; }
  .ventures-hero .panel { text-align: center; }
  .full-media { aspect-ratio: 16/10; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .name-row { grid-template-columns: 1fr; }
}
