/* =============================================
   Happy Toast Bakery & Kitchen — Stylesheet
   ============================================= */

:root {
  --yellow: #F2C12E;
  --yellow-dark: #d4a820;
  --brown: #3b2a1a;
  --cream: #fdf8f0;
  --white: #ffffff;
  --grey-light: #f5f5f5;
  --grey-mid: #e0e0e0;
  --grey-text: #666666;
  --font-main: 'Georgia', serif;
  --font-sans: system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --radius: 8px;
}

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

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 2px solid var(--yellow);
  z-index: 100;
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--brown);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--yellow-dark); }

/* ---- HERO ---- */
.hero {
  background: var(--yellow);
  padding: 5rem 1.5rem;
  text-align: center;
}
.hero-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown);
  opacity: 0.7;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-main);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  color: var(--brown);
  margin-bottom: 0.25rem;
}
.hero h2 {
  font-family: var(--font-main);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: normal;
  font-style: italic;
  color: var(--brown);
  margin-bottom: 1.5rem;
}
.hero p {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  color: var(--brown);
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid var(--brown);
}
.btn-primary { background: var(--brown); color: var(--white); }
.btn-primary:hover { background: #5a3f28; border-color: #5a3f28; }
.btn-secondary { background: transparent; color: var(--brown); }
.btn-secondary:hover { background: var(--brown); color: var(--white); }

/* ---- SECTIONS ---- */
section { padding: 5rem 1.5rem; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-main);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--brown);
  margin-bottom: 1.5rem;
}

/* ---- ABOUT ---- */
#about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 420px; object-fit: cover; }
.about-text p { color: var(--grey-text); margin-bottom: 1rem; font-size: 1.05rem; }
.stats { display: flex; gap: 2.5rem; margin-top: 2rem; }
.stat-value {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--brown);
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--grey-text); }

/* ---- MENU ---- */
#menu { background: var(--white); }
.menu-tabs { display: flex; gap: 0.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.55rem 1.4rem;
  border: 2px solid var(--grey-mid);
  border-radius: 99px;
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--brown);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--brown);
}
.menu-panel { display: none; }
.menu-panel.active { display: block; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.menu-category h3 {
  font-family: var(--font-main);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--yellow);
}
.menu-item { display: flex; justify-content: space-between; align-items: baseline; padding: 0.4rem 0; border-bottom: 1px solid var(--grey-light); }
.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-size: 0.95rem; }
.menu-item-price { font-weight: 700; color: var(--brown); white-space: nowrap; margin-left: 1rem; }
.menu-note { margin-top: 2rem; font-size: 0.9rem; color: var(--grey-text); font-style: italic; }

/* ---- CATERING ---- */
#catering { background: var(--cream); }
.catering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.catering-img { border-radius: var(--radius); overflow: hidden; }
.catering-img img { width: 100%; height: 420px; object-fit: cover; }
.catering-text p { color: var(--grey-text); margin-bottom: 1.5rem; font-size: 1.05rem; }
.catering-list { list-style: none; margin-bottom: 2rem; }
.catering-list li { padding: 0.4rem 0; padding-left: 1.5rem; position: relative; color: var(--grey-text); }
.catering-list li::before { content: '✓'; position: absolute; left: 0; color: var(--yellow-dark); font-weight: bold; }

/* ---- VISIT ---- */
#visit { background: var(--white); }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.hours-table tr { border-bottom: 1px solid var(--grey-light); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 0.6rem 0; font-size: 0.95rem; }
.hours-table td:first-child { font-weight: 600; width: 40%; }
.hours-table td:last-child { color: var(--grey-text); }
.hygiene-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.contact-icon { font-size: 1.2rem; line-height: 1.4; }
.contact-label { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.2rem; }
.contact-value { color: var(--grey-text); font-size: 0.95rem; }
.contact-value a { color: var(--brown); text-decoration: underline; }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.social-links a {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--brown);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.social-links a:hover { background: var(--brown); color: var(--white); }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 1.5rem; }
.map-embed iframe { width: 100%; height: 280px; border: none; }

/* ---- FOOTER ---- */
footer {
  background: var(--brown);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
}
footer a { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .about-grid, .catering-grid, .visit-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-img img, .catering-img img { height: 280px; }
  .stats { gap: 1.5rem; }
  .hero { padding: 3.5rem 1.5rem; }
  section { padding: 3.5rem 1.5rem; }
}
@media (max-width: 480px) {
  .nav-links { display: none; }
}
