/* ============================================
   Chayada — Authentic Thai Flavors
   ============================================ */

:root {
  --cream: #f6efdc;
  --cream-dark: #ece0c2;
  --green: #1e3d2f;
  --green-light: #2e5744;
  --gold: #c9a227;
  --gold-light: #e0c05e;
  --chili: #b8402e;
  --ink: #26221b;
  --ink-soft: #5c554a;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 61, 47, 0.12);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.06em;
}

.brand-name span {
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--cream);
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201, 162, 39, 0.14), transparent 60%),
    var(--cream);
  color: var(--ink);
  padding: 5.5rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #9c7d1d;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  color: var(--green);
}

.hero p {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  font-size: 1.13rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

.hero-grid p {
  margin-left: 0;
}

.hero-grid .hero-actions {
  justify-content: flex-start;
}

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.2rem;
  }
  .hero-grid p {
    margin: 0 auto 2.2rem;
  }
  .hero-grid .hero-actions {
    justify-content: center;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--green);
}

.btn-gold:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}

.btn-outline {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(30, 61, 47, 0.08);
}

.btn-green {
  background: var(--green);
  color: var(--cream);
}

.btn-green:hover {
  background: var(--green-light);
  box-shadow: 0 8px 20px rgba(30, 61, 47, 0.3);
}

.btn-outline-green {
  border-color: var(--green);
  color: var(--green);
  background: transparent;
}

.btn-outline-green:hover {
  background: rgba(30, 61, 47, 0.07);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

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

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--cream-dark);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--chili);
  margin-bottom: 0.7rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--green);
  margin-bottom: 0.8rem;
}

.section-head p {
  color: var(--ink-soft);
}

/* ---------- Product grid ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 38px rgba(30, 61, 47, 0.18);
}

.product-card-img {
  aspect-ratio: 1 / 1;
  background: var(--cream-dark);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 0.45rem;
}

.product-card-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.1rem;
}

.product-card-body .card-link {
  font-weight: 600;
  color: var(--chili);
  text-decoration: none;
  font-size: 0.97rem;
}

.product-card-body .card-link:hover {
  text-decoration: underline;
}

/* ---------- Product detail page ---------- */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4rem 0;
}

@media (max-width: 820px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.product-detail-img {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-detail-info .section-kicker {
  margin-bottom: 0.4rem;
}

.product-detail-info h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  color: var(--green);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.product-detail-info .lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

.product-detail-info ul {
  margin: 0 0 1.8rem 1.2rem;
  color: var(--ink-soft);
}

.product-detail-info li {
  margin-bottom: 0.4rem;
}

.product-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.availability-note {
  background: var(--cream-dark);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.availability-note strong {
  color: var(--green);
}

/* ---------- Story page ---------- */

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.story-block:last-child {
  margin-bottom: 0;
}

.story-block.reverse .story-text {
  order: -1;
}

@media (max-width: 820px) {
  .story-block,
  .story-block.reverse {
    grid-template-columns: 1fr;
  }
  .story-block.reverse .story-text {
    order: 0;
  }
}

.story-text h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.story-text p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.story-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---------- Where to buy ---------- */

.buy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.buy-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.buy-card .buy-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--green);
}

.buy-card .buy-icon svg {
  width: 26px;
  height: 26px;
}

.buy-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.buy-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.3rem;
}

.buy-card address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.93rem;
  margin-bottom: 1.3rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--cream-dark);
  color: var(--ink);
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid rgba(30, 61, 47, 0.08);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.8rem;
  color: var(--green);
}

.cta-band p {
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}

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

.site-footer {
  background: var(--green);
  color: rgba(250, 246, 238, 0.75);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  color: var(--gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 0.9rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

.footer-grid a {
  color: rgba(250, 246, 238, 0.75);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--gold-light);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 238, 0.15);
  padding-top: 1.4rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(250, 246, 238, 0.5);
}

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

.page-hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(201, 162, 39, 0.14), transparent 60%),
    var(--cream);
  color: var(--ink);
  text-align: center;
  padding: 3.5rem 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--green);
}

.page-hero p {
  max-width: 560px;
  margin: 0.8rem auto 0;
  color: var(--ink-soft);
}

/* ---------- Tag chips ---------- */

.chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.chip {
  background: var(--green);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
}

.product-card .chips {
  margin-bottom: 0.9rem;
}

.product-card .chip {
  font-size: 0.72rem;
  padding: 0.25rem 0.75rem;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  padding: 1.2rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--green);
  text-decoration: underline;
}
