/*
 * styles-landing-flavors.css
 * Self-contained CSS for Landing – All Flavors template.
 * Covers: nav, hero, flavor wall grid, try-them-all band, footer, mobile CTA.
 * No Bootstrap dependency — standalone landing page.
 */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --font-heading: 'Nunito', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --yellow: #f5c518;
  --yellow-bright: #ffc72d;
  --yellow-deep: #c08c00;
  --yellow-eye: #986f00;
  --yellow-warm: #ffd426;
  --ink: #130d00;
  --ink-2: #1a1510;
  --ink-3: #140f0a;
  --body-1: #261a00;
  --body-1-warm: #402d00;
  --body-2: #635e57;
  --cream: #fff7ea;
  --cream-light: #ffefd5;
  --border-light: #e9e1d8;
  --border-mid: #cdc5bd;
  --border-brown: #88754f;
  --white: #ffffff;
  --footer-text: #d9d1c7;
  --footer-meta: #b2a899;
  --footer-divider: #40382e;
  --footer-soc-bg: #261f1a;
  --radius: 16px;
  --radius-lg: 24px;
  --pill: 200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--body-1);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}
p { margin: 0; }

/* ── Layout ── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--pill);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #ffe070; color: var(--body-1); border: 0 none; }
.btn-primary:hover { background: #000; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2a1d05; }
.btn-outline-light {
  background: transparent;
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.7);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); }
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 18px; line-height: 28px; }
.btn .btn-text { padding: 0 8px; display: inline-flex; align-items: center; }

/* ── Announcement Bar ── */
.announcement {
  background: var(--ink-3);
  color: var(--yellow);
  text-align: center;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.3px;
}

/* ── Nav ── */
.nav {
  background: var(--white);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-height: 51px;
  padding: 0 40px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  height: 51px;
}
.nav-logo img {
  height: 51px;
  width: auto;
  object-fit: contain;
}
.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 96px 0 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  background-color: var(--ink-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,0.62) 0%, rgba(20,15,10,0.66) 45%, rgba(20,15,10,0.88) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: 68px;
  line-height: 74px;
  color: var(--white);
  font-weight: 800;
  max-width: 16ch;
}
.hero h1 .accent { color: var(--yellow-bright); }
.hero-sub {
  color: var(--cream);
  font-size: 19px;
  line-height: 30px;
  font-weight: 500;
  max-width: 620px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Section base ── */
.section { padding: 96px 0; }
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}
.section-eyebrow {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--yellow-eye);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.section-title {
  font-size: 52px;
  line-height: 60px;
  color: var(--ink);
}
.section-sub {
  font-size: 17px;
  line-height: 26px;
  color: var(--body-2);
  max-width: 640px;
}

/* ── Flavors Section ── */
.flavors-section {
  background:
    radial-gradient(60% 60% at 50% -4%, rgba(255,199,64,0.30) 0%, rgba(255,199,64,0) 62%),
    linear-gradient(180deg, #fff7e6 0%, #fffdf9 60%, #ffffff 100%);
}

/* ── Flavor Wall Grid ── */
.flavor-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.flavor-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 10px 26px rgba(19,13,0,0.12);
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s ease;
}
.flavor-wall.in-view .flavor-card {
  opacity: 1;
  transform: none;
  transition-delay: calc(min(var(--i), 11) * 0.045s);
}
.flavor-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.flavor-card:hover { box-shadow: 0 22px 44px rgba(19,13,0,0.22); }
.flavor-card:hover img { transform: scale(1.07); }

/* Card with no image – keep square proportions */
.flavor-card.no-image {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: flex-end;
}
.flavor-card.no-image .flavor-name {
  position: relative;
  padding: 20px 14px;
  font-size: 18px;
  background: none;
}

.flavor-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 32px 14px 13px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
}

/* ── Try Them All Band ── */
.tryall {
  /*background: var(--ink-3);*/
  background-image: url('/wp-content/themes/gotchatheme/assets/images/bowl-yellow-bg-img.png');
  color: var(--ink-3);
  padding: 84px 0;
}
.tryall-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}
.tryall-copy { max-width: 620px; }
.tryall-copy h2 { color: var(--ink-3); font-size: 40px; line-height: 46px; }
.tryall-copy h2 .accent { color: #ffffff; }
.tryall-copy p { color: var(--ink); font-size: 17px; line-height: 27px; margin-top: 14px; }
.tryall-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  background: var(--ink-3);
  color: var(--footer-text);
  padding: 80px 0 40px;
}
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.footer-top { display: flex; gap: 64px; align-items: flex-start; flex-wrap: wrap; }
.footer-logo { width: 160px; flex-shrink: 0; }
.footer-logo img { width: 160px; height: auto; display: block; }
.footer-brand { width: 340px; display: flex; flex-direction: column; gap: 24px; }
.footer-brand h2 { font-family: var(--font-heading); font-weight: 800; font-size: 32px; color: var(--yellow-warm); }
.footer-brand p { font-size: 14px; line-height: 20px; color: var(--footer-text); }
.footer-brand p + p { margin-top: 16px; }
.socials { display: flex; gap: 12px; }
.social-circle {
  width: 40px; height: 40px;
  background: var(--footer-soc-bg);
  border: 1px solid var(--footer-divider);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--yellow-warm);
  transition: background .15s, color .15s;
}
.social-circle:hover { background: var(--yellow-warm); color: var(--ink); }
.social-circle svg { width: 18px; height: 18px; display: block; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 20px; }
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--yellow-warm); margin: 0; }
.footer-col a { color: var(--footer-text); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--yellow-warm); }
.footer-divider { width: 100%; height: 1px; background: var(--footer-divider); margin: 48px 0 0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--footer-meta); flex-wrap: wrap; gap: 16px;
  padding-top: 24px;
}
.footer-bottom-links { display: flex; gap: 24px; }

/* ── Sticky Mobile CTA ── */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 18px rgba(19,13,0,0.12);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-cta .btn { flex: 1; padding: 13px 12px; font-size: 15px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hero h1 { font-size: 56px; line-height: 62px; }
  .section-title { font-size: 44px; line-height: 52px; }
  .flavor-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tryall-inner { flex-direction: column; align-items: flex-start; }
  .footer { padding: 72px 0 40px; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 88px; min-height: 520px; }
  .hero h1 { font-size: 40px; line-height: 46px; }
  .hero-sub { font-size: 16px; line-height: 25px; }
  .section-title { font-size: 34px; line-height: 42px; }
  .flavor-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .flavor-name { font-size: 14px; padding: 26px 12px 11px; }
  .tryall { padding: 56px 0; }
  .tryall-copy h2 { font-size: 30px; line-height: 36px; }
  .footer { padding: 56px 0 32px; }
  .footer-top { gap: 32px; }
  .footer-brand { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 460px) {
  .container { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .footer-inner { padding: 0 20px; }
  .nav-logo img { height: 42px; }
  .hero h1 { font-size: 34px; line-height: 40px; }
  .flavor-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .flavor-card { opacity: 1 !important; transform: none !important; transition: box-shadow 0.25s ease; }
}

/* ── Mobile: prevent horizontal overflow on narrow devices (360 px) ──────── */
html { overflow-x: hidden; }
