/* ============================================================
   Krafted Kava — Home page template
   Mobile-first, responsive. Single stylesheet.
   ============================================================ */

:root {
  --pink: #e8447a;
  --pink-dark: #cf2f64;
  --ink: #1d1a17;
  --text: #4a4540;
  --cream: #f3ead9;
  --cream-2: #ece1cc;
  --brown: #271912;
  --brown-2: #34241b;
  --gold: #e0a32b;
  --maxw: 1440px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: #15100c; }

body {
  /* The whole site is contained and centered; full-bleed sections cap here too,
     so backgrounds and spacing stay controlled on wide screens. */
  margin: 0 auto;
  max-width: 1440px;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
  position: relative;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 40px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-pink:hover { background: var(--pink-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: rgba(255, 255, 255, 0.9); color: var(--ink); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ---------------- Section titles ---------------- */
.section-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--ink);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  margin: 0 0 8px;
}
.section-title.light { color: #fff; }
.section-title .leaf { display: inline-block; height: 0.7em; width: auto; vertical-align: middle; margin: 0 16px; }
.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 19px;
  color: var(--text);
  font-size: 0.98rem;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: relative;
  z-index: 50;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 120px;
  position: relative;
  border: solid 1px #fde3cd;
}
.brand { display: flex; align-items: center; line-height: 1; }
.brand img { height: 104px; width: auto; display: block; filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.3)); }
.footer-logo { height: 175px; width: auto; margin-bottom: 16px; margin-left: 44px; }
.brand-name {
  font-family: "Anton", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand-name.light { color: #fff; }
.brand-accent { color: var(--pink); }
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--pink); }
.main-nav a.is-active { border-bottom-color: #fff; }
.nav-icons { display: flex; gap: 10px; }
.icon-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}
.icon-btn:hover { color: var(--pink); }

/* burger */
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  /* The 4 bottles + scenery are baked into HeroBG.jpg; text overlays the left.
     Pulled up behind the frosted nav (which overlays the extended top sky). */
  background: url("Images/HeroBG.jpg") right top / cover no-repeat;
  color: #fff;
  margin-top: -120px;
}
.hero-inner {
  display: flex;
  align-items: center;
  min-height: 540px;
  padding-top: 150px;
  padding-bottom: 40px;
}
.hero-copy { max-width: 500px; margin-left: 20px; }
.hero-script {
  font-family: "Pacifico", cursive;
  color: var(--pink);
  font-size: clamp(2rem, 8vw, 3.4rem);
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  line-height: 1;
}
.hero-title {
  font-family: "Anton", sans-serif;
  font-size: clamp(3rem, 13vw, 6rem);
  line-height: 0.92;
  margin: 4px 0 14px;
  color: #ffffff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.3);
}
.hero-lead {
  font-size: 1.05rem;
  font-weight: 500;
  max-width: 430px;
  margin: 0 0 24px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}
.badge-ic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 0.9rem;
}
/* (hero bottles are part of HeroBG.jpg — no overlay element) */

/* ============================================================
   TWO-UP (APP + SHOP)
   ============================================================ */
.twoup { display: grid; grid-template-columns: 1fr; }
.twoup-panel {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.app-panel {
  background-image: linear-gradient(to right, rgba(18, 42, 24, 0.86) 0%, rgba(18, 42, 24, 0.64) 55%, rgba(18, 42, 24, 0.5) 100%), url("Images/AppDownloadBG.jpg");
  color: #fff;
}
.shop-panel {
  /* box + bottle + flowers are baked into ShopOnlineBG.jpg on the right;
     a left cream scrim lightens the text side and leaves the product crisp. */
  background-image: linear-gradient(to right, rgba(255, 244, 233, 0.95) 0%, rgba(255, 244, 233, 0.6) 36%, rgba(255, 244, 233, 0) 58%), url("Images/ShopOnlineBG.jpg");
  color: var(--ink);
}
.panel-pad { padding: 48px 28px; max-width: 560px; margin: 0 auto; width: 100%; }
.shop-panel .panel-pad { margin: 0; max-width: 470px; }
.panel-head {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  line-height: 1.05;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: 0.01em;
}
.panel-head.dark { color: var(--ink); }
.panel-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin: 22px 0 10px;
}
.check-list { list-style: none; margin: 0 0 24px; padding: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; font-weight: 500; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pink);
  font-weight: 800;
}
.store-badges { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; }
.store-badges a { flex: 1 1 220px; }
.store-badges img { width: 100%; height: auto; display: block; }
.app-phone { display: flex; justify-content: center; padding: 0 28px 40px; }
.app-phone img { max-height: 360px; width: auto; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.45)); }
.shop-tag { color: var(--pink); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 16px; font-size: 0.85rem; }

/* ============================================================
   FEATURED FLAVORS
   ============================================================ */
/* Featured Flavors + Benefits share one continuous background image */
.flavors-benefits {
  background: #f3e8cf url("Images/FeaturedFlavorsBG.jpg") top center / 100% auto no-repeat;
}
.flavors { padding: 10px 0; }
.flavor-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.flavor-card {
  background: linear-gradient(180deg, #fdecef 0%, #fbf4ec 100%);
  border: solid 1px #e8447a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.flavor-top { display: flex; align-items: center; gap: 12px; padding: 8px 18px; flex: 1; }
.flavor-thumb { flex: 0 0 40%; display: flex; align-items: center; justify-content: center; }
.flavor-thumb img { max-height: 220px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.18)); }
/* Photo products (JPG with a background) — rounded tile + real shadow, no PNG drop-shadow. */
.flavor-thumb.photo img { max-height: 200px; border-radius: 12px; filter: none; box-shadow: 0 8px 14px rgba(0, 0, 0, 0.22); object-fit: cover; }
.flavor-info { flex: 1; min-width: 0; }
.flavor-name {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.13);
}
.flavor-name.lava { color: #e0552f; }
.flavor-name.pina { color: #c9a23a; }
.flavor-name.pineapple { color: #e0a32b; }
.flavor-name.mocha { color: #7a4a32; }
.flavor-name.nukio { color: #2b2b2b; }
.flavor-name.powder { color: #5a3d2b; }
.powders { background: #f3e8cf url("Images/FeaturedFlavorsBG.jpg") top center / 100% auto no-repeat; padding: 40px 0 50px; }
.flavor-desc { font-size: 0.85rem; margin: 0 0 12px; color: var(--text); }
.flavor-price { font-weight: 800; color: var(--ink); font-size: 1.2rem; margin: 0; }
.flavor-btn {
  display: block;
  text-align: center;
  background: var(--pink);
  color: #fff;
  padding: 15px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: background 0.15s ease;
}
.flavor-btn:hover { background: var(--pink-dark); }

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits { padding: 10px 0 28px; }
.benefit-grid { display: grid; grid-template-columns: 1fr; gap: 34px; max-width: 1000px; margin: 0 auto; }
.benefit { text-align: center; }
.benefit-ic { width: 76px; height: 76px; margin: 0 auto 16px; display: grid; place-items: center; }
.benefit-ic img { max-height: 76px; max-width: 76px; }
.benefit h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin: 0 0 8px; }
.benefit p { font-size: 0.88rem; margin: 0; }

/* ============================================================
   FLAVOR BANNERS
   ============================================================ */
.fbanner { background-size: cover; background-position: center; color: #fff; position: relative; }
#lava-flow, #li-hing-pineapple { background-position: left center; border-top: solid 2px #fcf1dd; }
/* The bottle + scenery are baked into each banner background; this scrim keeps the
   overlaid text readable while leaving the product (far left) mostly clear. */
.fbanner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0.34) 44%, rgba(0, 0, 0, 0.12));
}
.fbanner-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 46px 20px;
  min-height: 332px;
}
.fbanner-copy { max-width: 560px; width: 100%; }
.fbanner-copy h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3.2rem);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.fbanner-copy p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 18px;
  max-width: 460px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background-size: cover; background-position: center; }
.reviews-overlay { background: rgba(20, 12, 8, 0.55); padding: 60px 0; }
.reviews-row-wrap { display: flex; align-items: center; gap: 8px; }
.reviews-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  scrollbar-width: none;
  flex: 1;
}
.reviews-row::-webkit-scrollbar { display: none; }
.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
  min-width: 280px;
  flex: 1 0 280px;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
}
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.review-card blockquote { margin: 0 0 18px; font-size: 0.95rem; color: var(--text); font-style: italic; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--pink); color: #fff;
  display: grid; place-items: center; font-weight: 700; flex-shrink: 0;
}
.rev-arrow {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.rev-arrow:hover { background: #fff; }

/* ============================================================
   BLOG
   ============================================================ */
.blog { background: #f3e8cf url("Images/FeaturedFlavorsBG.jpg") top center / 100% auto no-repeat; padding: 60px 0; }
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.blog-thumb { height: 170px; background-size: cover; background-position: center; }
.ph-green { background: linear-gradient(135deg, #3f9b6d, #2c6e4c); }
.ph-blue { background: linear-gradient(135deg, #2f7f9b, #21566e); }
.ph-gold { background: linear-gradient(135deg, #e0a32b, #c47d12); }
.blog-body { padding: 22px; }
.blog-body h3 { font-size: 1.05rem; color: var(--ink); margin: 0 0 10px; line-height: 1.3; }
.blog-body p { font-size: 0.9rem; margin: 0 0 14px; }
.read-more { color: var(--pink); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--brown); color: #cdbcae; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 50px 20px 36px;
}
.footer-brand .brand-name { display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; max-width: 320px; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brown-2);
  display: grid; place-items: center; color: #cdbcae;
}
.socials a:hover { background: var(--pink); color: #fff; }
.footer-col h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 0.88rem; }
.footer-col a:hover { color: var(--pink); }
.footer-news h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 10px; }
.footer-news p { font-size: 0.85rem; margin: 0 0 14px; }
.news-form { display: flex; gap: 8px; flex-wrap: wrap; }
.news-form input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 40px;
  border: none;
  background: var(--brown-2);
  color: #fff;
  font-family: inherit;
}
.news-form input::placeholder { color: #9b8a7c; }
.footer-bar {
  background: #1c120c;
  text-align: center;
  padding: 16px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (min-width: 700px) {
  .flavor-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .twoup { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}

/* ============================================================
   RESPONSIVE — desktop
   ============================================================ */
@media (min-width: 1000px) {
  .hero-inner { min-height: 640px; padding-top: 160px; padding-bottom: 70px; }
  .flavor-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-grid { grid-template-columns: repeat(4, 1fr); }

  /* App panel: text left, phone right (matches design) */
  .app-panel { flex-direction: row; align-items: center; }
  .app-panel .panel-pad { flex: 1; max-width: none; margin: 0; padding: 56px 2px 53px 18px; }
  .app-panel .app-phone { flex: 0 0 39%; align-items: center; justify-content: center; padding: 28px 3px 28px 0; }
  .app-panel .app-phone img { max-height: 480px; }

  /* Footer: single horizontal row — brand, 4 link columns, newsletter */
  .footer-grid { grid-template-columns: 1.6fr 0.9fr 0.9fr 0.9fr 1fr 1.7fr; align-items: start; gap: 24px; }
}

/* ============================================================
   RESPONSIVE — mobile nav
   ============================================================ */
@media (max-width: 920px) {
  .nav-burger { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 12, 8, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.25);
    transition: max-height 0.3s ease;
  }
  .nav-toggle:checked ~ .main-nav { max-height: 460px; }
  .main-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .main-nav li { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .main-nav a { display: block; padding: 15px 20px; }
  .main-nav a.is-active { border-bottom-color: transparent; color: var(--pink); }
  .nav-icons { padding: 12px 20px 18px; }
}

/* ============================================================
   Section edge borders
   ============================================================ */
.hero {
  border: solid 1px;
}
.app-panel {
  border-left: solid 1px;
}
.shop-panel {
  border-right: solid 1px white;
}
.flavors-benefits {
  border-left: solid 1px white;
  border-right: solid 1px white;
}
.fbanner-inner {
  border-left: solid 1px white;
  border-right: solid 1px white;
}
.reviews-overlay {
  border-left: solid 1px white;
  border-right: solid 1px white;
}
.site-footer {
  border-left: solid 1px white;
  border-right: solid 1px white;
}

/* ============================================================
   Hero: narrower-viewport crop (<= 1260px)
   ============================================================ */
@media (max-width: 1260px) {
  .hero {
    background: url("Images/HeroBG1260.jpg") center top / cover no-repeat;
  }
  .hero-lead {
    max-width: 600px;
  }
  .hero-copy {
    max-width: 600px;
    margin: auto;
    /* Fluid top offset: 524px @1260px → 184px @417px, clamped at both ends.
       Linear fit: 15.82px + 40.33vw (slope 340/843). */
    margin-top: clamp(184px, 15.82px + 40.33vw, 524px);
  }
}

/* ============================================================
   Hero: small-phone crop (<= 650px)
   ============================================================ */
@media (max-width: 650px) {
  .hero {
    background: url("Images/HeroBG-650.jpg") center top / cover no-repeat;
  }
}
