/* ==========================================================================
   CloudStar.LA — Brand system per CloudStar Brand Guidelines
   Poppins · #47D7AC electric green · black / white / gray palette
   ========================================================================== */

:root {
  --green: #47D7AC;        /* PANTONE 3385C */
  --green-deep: #2fbf93;
  --black: #000000;
  --ink: #111111;
  --gray: #808080;
  --light: #E6E6E6;
  --off: #F7F7F7;
  --white: #FFFFFF;
  --radius: 16px;
  --wrap: 1120px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.green { color: var(--green); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.lede { font-size: 1.1rem; color: var(--gray); max-width: 640px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-green { background: var(--green); color: var(--black); }
.btn-green:hover { background: var(--green-deep); color: var(--black); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ---------- Header (black, per packaging) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.brand:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: 26px; }

.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--white);
}
.site-nav a:hover { color: var(--green); text-decoration: none; }
.site-nav a.active { color: var(--green); font-weight: 600; }
.site-nav .btn { padding: 10px 24px; font-size: 0.92rem; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 190px;
  text-align: center;
}

.hero h1 { color: var(--white); margin: 16px 0 20px; }
.hero .hero-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
}
.hero .lede { color: #b5b5b5; margin: 0 auto 36px; }

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* asterisk "stars" — logomark motif twinkling in the black sky */
.star {
  position: absolute;
  width: 16px; height: 16px;
  background-image: url("../images/logomark-green.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.5;
  animation: twinkle 4s ease-in-out infinite;
  pointer-events: none;
}
.star.star-dim { filter: grayscale(1) brightness(3); opacity: 0.18; }
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 0.7; transform: scale(1.05) rotate(12deg); }
}

/* drifting cloud bank at the base of the hero */
.cloud-bank { position: absolute; left: 0; right: 0; bottom: -2px; height: 150px; pointer-events: none; }
.cloud-bank svg { position: absolute; bottom: 0; height: 100%; width: 200%; left: 0; }
.cloud-bank .drift-back { opacity: 0.22; animation: drift 90s linear infinite; }
.cloud-bank .drift-front { animation: drift 55s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* trust row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  padding: 24px;
  background: var(--white);
  border-bottom: 1px solid var(--light);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--black);
}
.trust-row span::before { content: "✱"; color: var(--green); font-weight: 700; margin-right: 8px; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section-alt { background: var(--off); }
.section-night { background: var(--black); color: var(--white); }
.section-night h2 { color: var(--white); }
.section-night p { color: #b5b5b5; }

.section-head { text-align: center; margin-bottom: 46px; }
.section-head .lede { margin: 12px auto 0; }

/* category tiles */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative;
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  padding: 30px 20px 24px;
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease;
  color: var(--black);
  font-weight: 700;
  font-size: 1.02rem;
}
.tile::before {
  content: "";
  display: block;
  width: 30px; height: 30px;
  margin: 0 auto 12px;
  background-image: url("../images/logomark.png");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.18s ease;
}
.tile:hover { border-color: var(--green); transform: translateY(-4px); text-decoration: none; }
.tile:hover::before { transform: rotate(22deg); }
.tile small { display: block; font-weight: 400; color: var(--gray); margin-top: 3px; font-size: 0.82rem; }

/* difference cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  padding: 34px 28px;
}
.card h3 { margin: 14px 0 10px; }
.card p { color: var(--gray); font-size: 0.95rem; }
.card .card-mark {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .card-mark img { width: 26px; height: 26px; }

/* zone chips */
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--black);
}

/* brand strip */
.brand-strip {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gray);
}
.brand-strip strong { color: var(--black); font-weight: 700; }

/* CTA band */
.cta-band { text-align: center; padding: 90px 0; }
.cta-band .promo { display: inline-block; margin-top: 22px; font-size: 0.95rem; color: #b5b5b5; }
.cta-band .promo code {
  background: rgba(71, 215, 172, 0.12);
  border: 1.5px dashed var(--green);
  border-radius: 8px;
  padding: 3px 10px;
  font-family: var(--font);
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 66px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.page-hero .lede { color: #b5b5b5; margin: 14px auto 0; }

/* ---------- Shop ---------- */

.menu-shell { padding: 30px 0 80px; }
.menu-note { text-align: center; color: var(--gray); font-size: 0.92rem; margin-bottom: 18px; }
.menu-note strong { color: var(--green-deep); }
#meadow-menu { min-height: 70vh; }

/* ---------- Delivery ---------- */

.zone-table-wrap {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
}
table.zone-table { width: 100%; border-collapse: collapse; }
.zone-table th, .zone-table td { padding: 14px 22px; text-align: left; border-bottom: 1px solid var(--light); }
.zone-table th {
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 3px solid var(--green);
}
.zone-table tr:last-child td { border-bottom: none; }
.zone-table td:last-child { color: var(--gray); font-variant-numeric: tabular-nums; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 0.94rem; }

.info-callout {
  max-width: 680px;
  margin: 40px auto 0;
  background: var(--off);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  font-size: 0.96rem;
}

/* ---------- About ---------- */

.prose { max-width: 720px; margin: 0 auto; }
.prose p { margin-bottom: 22px; }
.prose em { color: var(--green-deep); font-style: normal; font-weight: 600; }
.prose .drop { font-size: 1.3rem; font-weight: 600; color: var(--black); line-height: 1.5; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.18s ease;
}
.faq-item.open { border-color: var(--green); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 20px 26px;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--black);
}
.faq-q::after {
  content: "✱";
  font-size: 1.1rem;
  color: var(--green);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a-inner { padding: 0 26px 22px; color: var(--gray); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.contact-card {
  background: var(--white);
  border: 2px solid var(--light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}
.contact-card .card-mark { margin: 0 auto 16px; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card a { font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer { background: var(--black); color: #b5b5b5; padding: 60px 0 40px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer .brand img { height: 34px; }
.site-footer h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b5b5b5; }
.site-footer a:hover { color: var(--green); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 28px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------- Age gate ---------- */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.age-gate-card {
  background: var(--white);
  border-radius: 24px;
  max-width: 460px;
  width: 100%;
  padding: 44px 40px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.age-gate-card img { width: 150px; margin: 0 auto 20px; }
.age-gate-card h2 { margin-bottom: 12px; font-size: 1.5rem; }
.age-gate-card p { color: var(--gray); margin-bottom: 28px; font-size: 0.95rem; }
.age-gate-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

body.gated { overflow: hidden; }

/* ---------- Motion & responsive ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .steps-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--black);
    display: none;
    padding: 8px 0 20px;
    border-bottom: 2px solid var(--green);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 28px; }
  .site-nav .btn { margin: 10px 28px 0; text-align: center; }
  .hero { padding: 76px 0 165px; }
  .section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .tile-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { padding: 22px 12px 18px; }
  .brand img { height: 24px; }
}
