/* ===========================
   Dee's Crumb Co. — Stylesheet
   =========================== */

/* Tenorite font stack — loads from system if installed, self-host .woff2
   files in /fonts/ to guarantee cross-browser delivery                   */
@font-face {
  font-family: 'Tenorite';
  src: local('Tenorite'),
       url('fonts/Tenorite.woff2') format('woff2'),
       url('fonts/Tenorite.woff')  format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Sprite Graffiti — display font for the hero headline, self-hosted in /fonts/ */
@font-face {
  font-family: 'Sprite Graffiti';
  src: url('fonts/SpriteGraffiti-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sprite Graffiti Shadow';
  src: url('fonts/SpriteGraffiti-Shadow.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* DCC brand palette */
  --pink:       #C41E6A;   /* deep crimson-rose — primary brand */
  --pink-dk:    #8B0F4A;   /* darker rose — hover states         */
  --hot:        #FF0099;   /* neon hot pink — accent pop          */
  --lime:       #CCFF00;   /* chartreuse — highlight accent       */
  --navy:       #0D1E42;   /* deep navy — footer / dark sections  */
  --charcoal:   #3A3A3A;   /* dark body text                      */
  --black:      #0A000A;   /* near-black                          */
  --white:      #FFFFFF;
  --blush:      #FCEEF5;   /* light pink background (was cream)   */
  --rose-soft:  #F2D8E4;   /* soft section bg (was warm)          */
  --muted:      #7A4A60;   /* muted text on light backgrounds     */
  --shadow:     0 4px 24px rgba(196,30,106,0.12);
  --radius:     12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Tenorite', 'Trebuchet MS', 'Gill Sans MT', Arial, sans-serif;
  background: transparent;
  color: var(--charcoal);
  line-height: 1.7;
}

/* Fixed site-wide background image — stays put while content scrolls.
   Uses a fixed pseudo-element (works on mobile, unlike
   background-attachment: fixed). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('hero-bg5.png') center / cover no-repeat;
  background-color: var(--blush); /* fallback while image loads */
}
/* Light readability veil over the fixed image */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(252, 238, 245, 0.60);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section tag */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hot);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: #16306b;
  border-color: #16306b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,30,66,0.35);
}
.btn-primary:hover {
  background: var(--pink-dk);
  border-color: var(--pink-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,30,106,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(252,238,245,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196,30,106,0.14);
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 72px;
  width: auto;
  display: block;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--pink); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  /* dark translucent band over the fixed image so white text reads */
  background: rgba(10, 0, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  position: relative;
  border-bottom: 4px solid var(--pink);
}
.hero-inner {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-content { flex: 1; }
.hero-content h1 {
  font-family: 'Sprite Graffiti Shadow', 'Sprite Graffiti', 'Tenorite', 'Trebuchet MS', cursive, sans-serif;
  font-size: clamp(3.2rem, 7vw, 5rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--lime);
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-mascot {
  flex-shrink: 0;
  width: 340px;
}
.hero-mascot img {
  width: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 8px 40px rgba(196,30,106,0.5));
}

.hero-badge {
  position: absolute;
  bottom: 52px;
  right: 48px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
  color: var(--white);
  z-index: 1;
}
.hero-badge span { display: block; font-size: 0.72rem; opacity: 0.75; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-badge strong { font-size: 1.1rem; color: var(--lime); }

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: transparent;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.about-text h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: var(--black);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; }
.stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 2px solid var(--rose-soft);
}
.stat strong { display: block; font-size: 2rem; color: var(--pink); font-weight: 700; }
.stat span { font-size: 0.85rem; color: var(--muted); }

.mascot-about {
  width: 100%;
  max-width: 380px;
  border-radius: 24px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 28px rgba(196,30,106,0.25));
}

.about-photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(196,30,106,0.22);
}

/* ===== MENU ===== */
.menu {
  padding: 100px 0;
  background: transparent;
  text-align: center;
}
.menu h2 {
  font-size: 2.4rem;
  color: var(--black);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Pricing tiers */
.pricing-tiers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--white);
  border: 2px solid var(--pink);
  border-radius: 16px;
  padding: 20px 36px;
  margin-bottom: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.tier { text-align: center; }
.tier strong { display: block; font-size: 1.15rem; color: var(--pink); font-weight: 700; }
.tier span { font-size: 0.9rem; color: var(--muted); }
.tier-divider { font-size: 1.4rem; color: rgba(196,30,106,0.25); font-weight: 300; }
.menu-minimum {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 40px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  text-align: left;
}
.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 3px solid transparent;
  overflow: hidden;
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(196,30,106,0.16);
  border-top-color: var(--pink);
}
/* Cards with a photo go edge-to-edge at the top */
.menu-card.has-img { padding: 0; }
.menu-card.has-img .menu-card-body { padding: 24px 28px 28px; }
.menu-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--rose-soft);
}
.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.menu-card.has-img:hover .menu-card-img img { transform: scale(1.05); }
.menu-card-emoji { font-size: 2.4rem; margin-bottom: 14px; }
.menu-card h3 { font-size: 1.1rem; color: var(--black); margin-bottom: 8px; font-weight: 700; }
.menu-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

/* ===== GALLERY ===== (removed) */

/* ===== ORDER ===== */
.order {
  padding: 100px 0;
  background: transparent;
  text-align: center;
}
.order h2 {
  font-size: 2.4rem;
  color: var(--black);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.heading-pink { color: var(--pink) !important; }
.heading-navy { color: var(--navy) !important; }
.order > .container > p {
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.order-form {
  background: var(--white);
  border-radius: 20px;
  padding: 48px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid rgba(196,30,106,0.20);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--blush);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(196,30,106,0.12);
  background: var(--white);
}
.form-group input.error,
.form-group select.error { border-color: #c0392b; }
.order-form .btn { margin-top: 12px; width: 100%; text-align: center; }

/* Required asterisk */
.req { color: var(--pink); }
.field-note { font-size: 0.82rem; color: var(--muted); margin: 4px 0 10px; }

/* Flavour picker — dropdown + qty row */
.flavour-add-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.flavour-add-row select {
  flex: 1;
  min-width: 200px;
  padding: 11px 14px;
  border: 1.5px solid rgba(196,30,106,0.20);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--blush);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.flavour-add-row select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(196,30,106,0.12);
  background: var(--white);
}
.btn-add-flavour {
  padding: 11px 20px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-add-flavour:hover { background: #16306b; }

/* Add-ons */
.optional { font-weight: 400; color: var(--muted); font-size: 0.85em; }
.addon-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.addon-item { }
.addon-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 14px 16px;
  border: 1.5px solid #f0d4e0;
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.addon-label:hover { border-color: var(--navy); }
.addon-label input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }
.addon-text { font-size: 0.92rem; color: var(--charcoal); line-height: 1.4; }
.addon-text strong { color: var(--navy); }
.addon-price {
  display: inline-block;
  margin-left: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  white-space: nowrap;
}

/* Added flavours list */
.flavour-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flavour-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(196,30,106,0.06);
  border: 1px solid rgba(196,30,106,0.18);
  border-radius: 8px;
  padding: 10px 14px;
}
.flavour-emoji { font-size: 1.2rem; flex-shrink: 0; }
.flavour-name { flex: 1; font-size: 0.9rem; font-weight: 600; color: var(--charcoal); }
.flavour-list-qty { font-size: 0.88rem; font-weight: 700; color: var(--pink); white-space: nowrap; }
.flavour-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.flavour-remove:hover { color: #c0392b; }

.qty-control { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.qty-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background: transparent;
  color: var(--pink);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
}
.qty-btn:hover { background: var(--pink); color: var(--white); }
.qty-value { min-width: 24px; text-align: center; font-weight: 700; font-size: 0.92rem; color: var(--charcoal); }
.flavour-error {
  display: none;
  font-size: 0.85rem;
  color: #c0392b;
  margin-top: 6px;
}
.flavour-error.visible { display: block; }
.order-total {
  margin-top: 8px;
  font-weight: 700;
  color: var(--pink);
  font-size: 0.92rem;
  min-height: 1.3em;
}
.order-addons { color: var(--navy); font-weight: 700; }
.addon-rate { font-weight: 400; color: var(--muted); font-size: 0.85em; }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px;
  background: #e8f5e9;
  border-radius: 8px;
  color: #2e7d32;
  font-size: 0.95rem;
  text-align: center;
}
.form-success.visible { display: block; }

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: transparent;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-grid > div {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact h2 {
  font-size: 2.2rem;
  color: var(--black);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.contact h3 {
  font-size: 1.4rem;
  color: var(--black);
  margin-bottom: 12px;
  font-weight: 700;
}
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { font-size: 0.95rem; color: var(--muted); }
.contact-list li strong { color: var(--charcoal); margin-right: 6px; }
.contact-list a { color: var(--pink); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.social-links p { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
  padding: 10px 20px;
  background: var(--pink);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s;
}
.social-btn:hover { background: var(--pink-dk); transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer {
  background: rgba(13, 30, 66, 0.88); /* translucent navy over fixed image */
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 48px 24px;
  border-top: 4px solid var(--pink);
}
.footer-mascot {
  width: 160px;
  margin: 0 auto 16px;
  opacity: 0.92;
}
.footer-logo {
  height: 70px;
  width: auto;
  margin: 0 auto 12px;
  display: block;
}
.footer strong { color: var(--white); }
.footer-copy { font-size: 0.85rem; margin-top: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(252,238,245,0.98);
    padding: 20px 24px 28px;
    border-bottom: 1px solid rgba(196,30,106,0.14);
    gap: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero-badge { display: none; }
  .hero-inner { flex-direction: column; text-align: center; gap: 36px; }
  .hero-buttons { justify-content: center; }
  .hero-mascot { width: 220px; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
  .mascot-about { max-width: 260px; }

  .form-row { grid-template-columns: 1fr; }
  .order-form { padding: 28px 20px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .stats { gap: 24px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
