/* =========================================
   MARGARTE'S MUNCHIES — Main Stylesheet
   ========================================= */

:root {
  --yellow:    #FFD166;
  --pink:      #FF6B9D;
  --teal:      #06D6A0;
  --orange:    #FF9A3C;
  --purple:    #9B5DE5;
  --cream:     #FFF8F0;
  --brown:     #5C3D2E;
  --dark:      #2D1B10;
  --text:      #3D2B1F;
  --text-muted:#7A5C4A;
  --white:     #FFFFFF;

  --font-display: 'Pacifico', cursive;
  --font-body:    'Nunito', sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;

  --shadow-sm: 0 2px 8px rgba(45,27,16,.08);
  --shadow-md: 0 6px 24px rgba(45,27,16,.12);
  --shadow-lg: 0 12px 40px rgba(45,27,16,.16);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--brown);
  font-weight: 800;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.section-tag.light {
  background: rgba(255,255,255,.25);
  color: var(--white);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  line-height: 1.2;
}
h2 em { color: var(--pink); font-style: normal; }

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 12px 0 40px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: 99px;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--pink); color: var(--white); }
.btn-outline  { background: transparent; color: var(--white); border: 2.5px solid var(--white); }
.btn-white    { background: var(--white); color: var(--brown); }
.btn-sm       { padding: 10px 20px; font-size: .85rem; }

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 68px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brown);
}
.nav-logo span { color: var(--pink); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--pink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brown);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  padding-top: 68px;
  background: linear-gradient(135deg, #FFF0E0 0%, #FFE4F0 50%, #E0F7F4 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding-left: 80px;
  padding-right: 80px;
  position: relative;
  overflow: hidden;
}

.hero-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .35;
}
.shape-1 { width: 500px; height: 500px; background: var(--yellow); top: -200px; left: -150px; }
.shape-2 { width: 350px; height: 350px; background: var(--pink); bottom: -100px; right: 100px; }
.shape-3 { width: 250px; height: 250px; background: var(--teal); top: 40%; left: 45%; }

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

.hero-eyebrow {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  color: var(--dark);
  margin-bottom: 20px;
}
.hero-title span { color: var(--pink); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-btns .btn-primary { background: var(--pink); }
.hero-btns .btn-outline  { background: transparent; color: var(--brown); border-color: var(--brown); }
.hero-btns .btn-outline:hover { background: var(--brown); color: var(--white); }

/* ---- Bakery Window ---- */
.hero-illustration {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.bakery-window {
  background: var(--brown);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 100%;
}

.window-frame {
  background: #F5E6D3;
  border-radius: var(--radius-md);
  padding: 32px 24px 24px;
  border: 3px solid #D4A96A;
}

.window-shelf {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 24px 16px 12px;
  margin-bottom: 20px;
  border-bottom: 6px solid #C49A5A;
  position: relative;
}
.window-shelf::before {
  content: '';
  position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  width: 80%; height: 2px;
  background: #C49A5A;
}

.item {
  font-size: 2.8rem;
  animation: float 3s ease-in-out infinite;
}
.item:nth-child(2) { animation-delay: .4s; }
.item:nth-child(3) { animation-delay: .8s; }
.item:nth-child(4) { animation-delay: 1.2s; }
.item:nth-child(5) { animation-delay: 1.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.window-sign {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--pink);
  background: var(--yellow);
  padding: 8px 20px;
  border-radius: 99px;
  display: inline-block;
  width: 100%;
}

/* =========================================
   RIBBON
   ========================================= */
.ribbon {
  background: var(--pink);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ribbon span {
  display: inline-block;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================
   ABOUT
   ========================================= */
.about {
  padding: 100px 0;
}
.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { margin-bottom: 16px; }
.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tag {
  background: var(--cream);
  border: 2px solid var(--yellow);
  color: var(--brown);
  font-weight: 700;
  font-size: .8rem;
  padding: 5px 14px;
  border-radius: 99px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-card {
  padding: 24px;
  border-radius: var(--radius-md);
  transition: transform .2s;
}
.about-card:hover { transform: translateY(-4px); }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.about-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.about-card p  { font-size: .875rem; line-height: 1.5; }

.card-yellow { background: #FFF3CC; }
.card-pink   { background: #FFE8F2; }
.card-teal   { background: #D4F7EE; }
.card-orange { background: #FFE9D4; }

/* =========================================
   MENU
   ========================================= */
.menu {
  background: var(--white);
  padding: 100px 0;
}
.menu .container { text-align: left; }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}

.menu-category {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #F0E6DD;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
}
.category-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
}
.cat-emoji { font-size: 1.5rem; }
.cat-pastries { background: var(--orange); }
.cat-cakes    { background: var(--pink); }
.cat-cookies  { background: var(--purple); }
.cat-bread    { background: var(--teal); color: var(--dark); }
.cat-bread h3 { color: var(--dark); }

.menu-list { padding: 8px 0; }
.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid #F5EDE6;
  transition: background .15s;
}
.menu-list li:last-child { border-bottom: none; }
.menu-list li:hover { background: #FFF8F3; }

.menu-item-info strong { display: block; font-weight: 800; font-size: .95rem; }
.menu-desc { font-size: .8rem; color: var(--text-muted); }
.menu-price {
  font-weight: 800;
  font-size: .95rem;
  color: var(--pink);
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-note {
  text-align: center;
  margin-top: 32px;
  font-size: .95rem;
  color: var(--text-muted);
  background: #FFF8F0;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--yellow);
}

/* =========================================
   SPECIALS
   ========================================= */
.specials {
  padding: 100px 0;
  background: linear-gradient(180deg, #FFF0E5 0%, #FFE8F5 100%);
}
.specials .container { text-align: center; }
.specials h2 { margin-bottom: 8px; }

.specials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.special-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 20px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}
.special-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.special-card.featured {
  background: var(--pink);
  color: var(--white);
}
.special-card.featured h3,
.special-card.featured p { color: var(--white); }

.special-day {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.special-card.featured .special-day { color: rgba(255,255,255,.7); }

.special-emoji { font-size: 2.8rem; margin-bottom: 12px; }
.special-card h3 { font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.special-card p  { font-size: .875rem; color: var(--text-muted); line-height: 1.5; }

.featured-badge {
  position: absolute;
  top: -10px; right: 16px;
  background: var(--yellow);
  color: var(--brown);
  font-weight: 800;
  font-size: .7rem;
  padding: 4px 12px;
  border-radius: 99px;
}

/* =========================================
   CUSTOM ORDERS
   ========================================= */
.custom-orders {
  background: linear-gradient(135deg, var(--brown) 0%, #3D2010 100%);
  padding: 80px 0;
}
.custom-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.custom-text h2 { color: var(--white); margin-bottom: 16px; }
.custom-text p  { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 1.05rem; }

.custom-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.custom-item {
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,.15);
  transition: background .2s;
}
.custom-item:hover { background: rgba(255,255,255,.18); }

/* =========================================
   VISIT
   ========================================= */
.visit {
  padding: 100px 0;
  background: var(--cream);
}
.visit .container { text-align: left; }
.visit h2 { margin-bottom: 40px; }

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.visit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.visit-icon { font-size: 2rem; margin-bottom: 16px; }
.visit-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--dark);
}

.hours-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid #F0E6DD; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:last-child { text-align: right; }
.hours-table tr.closed td { color: var(--text-muted); }
.hours-note { font-size: .8rem; color: var(--text-muted); margin-top: 16px; font-style: italic; }

.address { font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; line-height: 1.5; }
.location-card p { color: var(--text-muted); margin-bottom: 20px; font-size: .9rem; }

.contact-methods { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  padding: 10px 16px;
  background: #FFF8F0;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.contact-method:hover { background: #FFE8D4; }
.contact-icon { font-size: 1.1rem; flex-shrink: 0; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--yellow);
  margin-bottom: 12px;
}
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer-links h4,
.footer-hours h4 {
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: .9rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-hours p { font-size: .9rem; margin-bottom: 6px; }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .hero { padding-left: 40px; padding-right: 40px; }
  .specials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    padding: 16px 32px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 100px 24px 60px;
    min-height: auto;
  }
  .hero-btns { justify-content: center; }
  .hero-sub { margin: 0 auto 32px; }
  .shape-1, .shape-2, .shape-3 { display: none; }

  .about .container { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .specials-grid { grid-template-columns: 1fr 1fr; }
  .custom-inner { grid-template-columns: 1fr; text-align: center; }
  .custom-items { grid-template-columns: 1fr 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .specials-grid { grid-template-columns: 1fr; }
  .about-cards   { grid-template-columns: 1fr; }
  .hero-title    { font-size: 3rem; }
}
