/* ==========================================================
   Di Munchies – Brownies & Bakes
   Shared stylesheet for all pages
   Theme: bright, sunny, artisanal
   ========================================================== */

:root {
  /* ----- Brighter palette ----- */
  --bg: #FFFDF7;             /* page background – warm ivory */
  --surface: #FFFFFF;        /* cards */
  --border: #F3E5D8;         /* soft warm borders */
  --section-alt: #FFF6E9;    /* subtle tint for alternating sections */

  --brown: #5C3A21;          /* navbar, footer, dark sections */
  --heading: #3D2314;        /* headings – warm espresso */
  --text: #4A3525;           /* body text */

  --accent: #E08E45;         /* primary buttons – honey gold */
  --accent-hover: #C9742B;
  --tan: #C89F7D;            /* WhatsApp button – caramel tan */
  --tan-hover: #B38867;

  --honey: #F4B976;          /* light accent for use on dark brown */
  --light-text: #F1E3D3;     /* soft text on dark brown */

  /* ----- Legacy names (keeps portfolio.html and old inline styles working) ----- */
  --choc: var(--heading);
  --cocoa: var(--brown);
  --cream: var(--bg);
  --gold: var(--honey);
  --gold-dark: var(--accent-hover);
  --white: var(--surface);

  --shadow: 0 8px 24px rgba(92, 58, 33, 0.12);
  --radius: 16px;
  --max-width: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.2;
  color: var(--heading);
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid var(--accent);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--bg);
  border-color: var(--honey);
}

.btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Secondary / WhatsApp button – caramel tan (use together with .btn) */
.btn-whatsapp {
  background: var(--tan);
  border-color: var(--tan);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: var(--tan-hover);
  border-color: var(--tan-hover);
}

/* ---------- Sticky Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--brown);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 0;
}

.logo img {
  height: 56px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--bg);
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--honey);
  border-color: var(--honey);
}

/* CSS-only mobile menu toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-label span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--honey);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--bg);
  background:
    linear-gradient(rgba(61, 35, 20, 0.68), rgba(61, 35, 20, 0.82)),
    url("images/Brownies.jpeg") center / cover no-repeat;
}

.hero h1 {
  color: var(--bg);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--honey);
}

.hero p {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--light-text);
}

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.story-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.story-text p {
  color: var(--text);
  margin-bottom: 1rem;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-hover);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.story-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid var(--surface);
}

/* ---------- Featured Bakes ---------- */
.featured {
  background: var(--section-alt);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 32px rgba(92, 58, 33, 0.2);
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  text-align: center;
}

.card-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.price {
  display: inline-block;
  background: #FFF0DC;
  color: var(--heading);
  border: 1px solid #F0D5B8;
  padding: 0.3rem 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Custom Slab Banner ---------- */
.custom-banner {
  background: var(--brown);
  color: var(--bg);
}

.banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.banner-text h2 {
  color: var(--honey);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.banner-text p {
  margin-bottom: 1.8rem;
  color: var(--light-text);
}

.banner-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--honey);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--brown);
  color: var(--bg);
  text-align: center;
  padding: 2.5rem 0;
}

.footer a.insta {
  display: inline-block;
  color: var(--honey);
  font-weight: 600;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.footer a.insta:hover {
  border-color: var(--honey);
}

.footer p {
  font-size: 0.9rem;
  color: #DCC8B3;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }

  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--brown);
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-links li {
    padding: 0.9rem 0;
    border-top: 1px solid rgba(255, 253, 247, 0.12);
  }

  .nav-toggle:checked ~ .nav-links {
    max-height: 320px;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .story-grid,
  .banner-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-img {
    order: -1;
  }

  .story-img img,
  .banner-img img {
    height: 300px;
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 75vh;
  }
}