/* Sweet Treat Factory - shared styles */
:root {
  --cream: #fff9f1;
  --white: #ffffff;
  --ink: #3a2a2a;
  --muted: #7a6565;
  --red: #c8102e;
  --red-dark: #9c0b23;
  --pink: #ff5c8a;
  --pink-light: #ffe3ec;
  --pink-soft: #fff0f5;
  --border: #f3d9c8;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  color: var(--red);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--red); }

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--pink-light);
  box-shadow: 0 2px 10px rgba(200, 16, 46, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--red);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.brand span { color: var(--pink); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-left: auto;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 2px;
}

.main-nav a:hover, .main-nav a.active { color: var(--red); }

.header-phone {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover { color: var(--red); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  border: 2px solid var(--red);
  text-align: center;
}

.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn.small { padding: 7px 16px; font-size: 0.95rem; }

.btn.outline {
  background: var(--white);
  color: var(--red);
}

.btn.outline:hover { background: var(--pink-light); }

.btn.pink { background: var(--pink); border-color: var(--pink); }
.btn.pink:hover { background: var(--red); border-color: var(--red); }

/* Hero */
.hero {
  position: relative;
  background: var(--pink-light);
}

.hero img.hero-photo {
  display: block;
  width: min(1180px, 94%);
  height: auto;
  margin: 22px auto 0;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(58, 42, 42, 0.14);
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(58, 42, 42, 0.16);
  padding: 26px;
  margin: -70px auto 0;
  position: relative;
  max-width: 760px;
  text-align: center;
}

.hero-card .tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 0.4em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 16px 0 6px;
}

.today-hours {
  display: inline-block;
  background: var(--pink-soft);
  border: 1px solid var(--pink-light);
  border-radius: 999px;
  padding: 6px 16px;
  font-weight: 600;
  margin-top: 8px;
}

.open-now { color: #1d7a3a; }
.closed-now { color: var(--red); }

/* Sections */
.section { padding: 44px 0 8px; }
.section.center { text-align: center; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 20px 0 30px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(58, 42, 42, 0.06);
}

.card img { height: 200px; width: 100%; object-fit: cover; }
.card .card-body { padding: 16px 18px 20px; }
.card .card-body p { margin-bottom: 0; color: var(--muted); }

/* Gift card strip */
.gift-strip {
  background: var(--pink-light);
  border-top: 3px solid var(--pink);
  border-bottom: 3px solid var(--pink);
  margin: 40px 0 0;
  padding: 34px 0;
}

.gift-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.gift-strip img {
  width: 340px;
  max-width: 100%;
  border-radius: var(--radius);
}

.gift-strip .gift-text { flex: 1 1 300px; }

.promo-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Menu */
.menu-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 0 0 24px;
  box-shadow: 0 3px 12px rgba(58, 42, 42, 0.05);
}

.menu-list { list-style: none; margin: 0; padding: 0; }

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.menu-list li:last-child { border-bottom: none; }

.menu-item-name { font-weight: 600; }
.menu-item-note { display: block; font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.menu-price { font-weight: 800; color: var(--red); white-space: nowrap; text-align: right; }

.menu-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 26px 0 34px;
}

.menu-photos img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }

/* Feature rows (candy page) */
.feature {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 24px;
  box-shadow: 0 3px 12px rgba(58, 42, 42, 0.05);
}

.feature img {
  width: 380px;
  max-width: 100%;
  border-radius: var(--radius);
}

.feature .feature-text { flex: 1 1 280px; }
.feature .price-line { font-weight: 800; color: var(--red); font-size: 1.1rem; }

/* Hours table */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(58, 42, 42, 0.06);
}

.hours-table th, .hours-table td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--pink-light);
}

.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table tr.today th, .hours-table tr.today td { background: var(--pink-light); font-weight: 800; }

.map-embed {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: var(--radius);
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin: 22px 0 30px;
}

.visit-photo { border-radius: var(--radius); margin: 0 0 34px; width: 100%; }

/* Page intro */
.page-intro { padding: 36px 0 4px; text-align: center; }
.page-intro p { max-width: 640px; margin-left: auto; margin-right: auto; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #ffe9d9;
  margin-top: 50px;
  padding: 34px 0 26px;
}

.site-footer a { color: #ffb3c2; }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 44px;
}

.footer-grid h3 { color: var(--white); margin-bottom: 0.35em; }
.footer-grid p { margin-bottom: 0.35em; }
.footer-bottom { margin-top: 22px; font-size: 0.9rem; color: #cbb3ab; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  .hero img.hero-photo { height: auto; margin-top: 14px; }
  .hero-card { margin-top: -40px; padding: 20px; }
  .header-inner { gap: 6px 12px; }
  .main-nav { margin-left: 0; order: 3; width: 100%; }
  .header-phone { margin-left: auto; }
  .gift-strip img { width: 100%; }
  .feature img { width: 100%; }
}
