/* ===== Custom Properties ===== */
:root {
  --moon-pink: #F7AFC4;
  --chocolate-brown: #4B2A23;
  --warm-beige: #F3E0D6;
  --soft-cream: #FFF7F0;
  --dark-cocoa: #2F1A16;
  --accent-gold: #D6A15C;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark-cocoa);
  background: var(--warm-beige);
  line-height: 1.6;
}

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

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

/* ===== Utility ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--moon-pink);
  color: var(--dark-cocoa);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('images/MoonsBake_HERO_01.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(47, 26, 22, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}

.hero-logo {
  width: 240px;
  margin: 0 auto 1.5rem;
  border-radius: 20%;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--soft-cream);
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--warm-beige);
  margin-bottom: 2rem;
  font-style: italic;
}

/* ===== Navigation ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--chocolate-brown);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 0;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--soft-cream);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  color: var(--warm-beige);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--moon-pink);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--soft-cream);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--chocolate-brown);
    padding: 1rem 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links li {
    text-align: center;
    padding: 0.65rem 0;
  }
}

/* ===== Sections ===== */
.section {
  padding: 4rem 0;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--chocolate-brown);
  text-align: center;
  margin-bottom: 0.25rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-gold);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--dark-cocoa);
  opacity: 0.8;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Product Card ===== */
.product-card {
  background: var(--soft-cream);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(75, 42, 35, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.section-alt .product-card {
  background: #fff;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(75, 42, 35, 0.14);
}

.card-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--chocolate-brown);
  margin-bottom: 0.4rem;
}

.card-body p {
  font-size: 0.93rem;
  color: var(--dark-cocoa);
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.price {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-gold);
}

.badge {
  display: inline-block;
  background: var(--accent-gold);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== About ===== */
.about-container {
  max-width: 720px;
  text-align: center;
}

.about-content p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--chocolate-brown);
  margin-top: 1rem;
}

/* ===== Instagram Feed ===== */
.instagram-feed-wrap {
  max-height: 600px;
  overflow-y: auto;
  border-radius: 16px;
}

/* ===== Footer ===== */
.footer {
  background: var(--chocolate-brown);
  color: var(--warm-beige);
  padding: 4rem 0 2rem;
}

.footer .section-title {
  color: var(--soft-cream);
}

.footer .section-title::after {
  background: var(--moon-pink);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-form {
  width: 100%;
  max-width: 480px;
}

/* ===== Contact Form ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.contact-form label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(243, 224, 214, 0.3);
  border-radius: 10px;
  background: rgba(255, 247, 240, 0.08);
  color: var(--soft-cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(243, 224, 214, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--moon-pink);
}

.contact-form .btn {
  margin-top: 0.75rem;
  align-self: flex-start;
}

.form-success {
  margin-top: 1rem;
  color: var(--moon-pink);
  font-weight: 600;
}

/* ===== Social / Copyright ===== */
.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--moon-pink);
  font-weight: 500;
  transition: opacity 0.3s;
}

.instagram-link:hover {
  opacity: 0.8;
}

.copyright {
  font-size: 0.85rem;
  opacity: 0.6;
  text-align: center;
}
