/* Hearth & Honey Bakery — SAMPLE / demo site
   Warm cream / cocoa / amber — welcoming bakery kit */

:root {
  --cream: #f7f1e8;
  --cream-dark: #efe6d8;
  --paper: #fffaf3;
  --cocoa: #4a3428;
  --cocoa-soft: #6b4f3f;
  --amber: #c47a2c;
  --amber-light: #e8b86a;
  --line: #d4c4b0;
  --sample: #8b4513;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 720px;
  --max-wide: 960px;
  --font: "Georgia", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sticky-h: 3.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--cocoa);
  background: var(--cream);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--sticky-h) + 0.75rem);
}

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

a {
  color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cocoa);
}

/* SAMPLE banner */
.sample-banner {
  background: var(--cocoa);
  color: var(--cream);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
}

.sample-banner strong {
  color: var(--amber-light);
}

/* Header / nav */
.site-header {
  background: var(--paper);
  border-bottom: 2px solid var(--line);
  padding: 1rem 1.25rem 0.75rem;
}

.brand {
  text-align: center;
  margin-bottom: 0.75rem;
}

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

.brand h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.brand .tagline {
  margin: 0.2rem 0 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--cocoa-soft);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  padding-bottom: 0.25rem;
}

.nav a {
  color: var(--cocoa);
  text-decoration: none;
  padding: 0.4rem 0.35rem;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--amber);
  color: var(--amber);
}

/* Main */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.main-wide {
  max-width: none;
  padding: 0 0 2.5rem;
}

.main-wide > .section-pad,
.main-wide > .instagram-cta {
  max-width: var(--max-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.page-title {
  font-size: 1.85rem;
  font-weight: normal;
  margin: 0 0 1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.page-intro {
  text-align: center;
  color: var(--cocoa-soft);
  font-size: 0.95rem;
  margin-top: -0.35rem;
  margin-bottom: 1.35rem;
}

.section-lead {
  margin: -0.35rem 0 1.1rem;
  color: var(--cocoa-soft);
  font-size: 0.95rem;
}

/* Hero with photo */
.hero {
  text-align: center;
  padding: 1.5rem 1rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
}

.hero-photo {
  position: relative;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  background: var(--cocoa);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 2.5rem 1.35rem 2rem;
  background: linear-gradient(
    to top,
    rgba(42, 28, 20, 0.88) 0%,
    rgba(42, 28, 20, 0.55) 55%,
    rgba(42, 28, 20, 0.2) 100%
  );
  color: var(--cream);
  text-align: center;
}

.hero-kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin: 0 0 0.5rem;
}

.hero-photo h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: normal;
  color: #fffaf3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-photo .promise {
  margin: 0 auto 1.25rem;
  max-width: 32em;
  color: rgba(247, 241, 232, 0.92);
}

.hero-meta {
  margin: 1.15rem 0 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--amber-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.65rem;
}

.hero-meta a {
  color: var(--amber-light);
}

.hero h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: normal;
}

.hero .promise {
  margin: 0 auto 1.25rem;
  max-width: 28em;
  color: var(--cocoa-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--amber);
  color: #fff;
  padding: 0.7rem 1.25rem;
  min-height: 48px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid var(--amber);
  cursor: pointer;
  line-height: 1.2;
}

.btn:hover {
  background: var(--cocoa);
  border-color: var(--cocoa);
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  color: var(--amber);
  border: 2px solid var(--amber);
}

.btn-outline:hover {
  background: var(--amber);
  color: #fff;
}

.btn-light {
  background: var(--cream);
  color: var(--cocoa);
  border-color: var(--cream);
}

.btn-light:hover {
  background: #fff;
  color: var(--cocoa);
  border-color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(247, 241, 232, 0.85);
}

.btn-outline-light:hover {
  background: rgba(247, 241, 232, 0.15);
  color: #fff;
  border-color: #fff;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.cta-row {
  margin-bottom: 1.5rem;
}

.cta-row-inline {
  justify-content: flex-start;
  margin-bottom: 0;
  margin-top: 0.75rem;
}

/* Sections */
.section {
  margin-bottom: 2rem;
}

.section-pad {
  margin-top: 2.25rem;
  margin-bottom: 2.25rem;
}

.section h2 {
  font-size: 1.35rem;
  font-weight: normal;
  margin: 0 0 0.75rem;
  color: var(--cocoa);
  border-left: 4px solid var(--amber);
  padding-left: 0.6rem;
}

.instagram-cta {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--cream-dark);
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
}

.instagram-cta p {
  margin: 0 0 0.75rem;
}

.cta-note {
  margin-top: 0.75rem !important;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--cocoa-soft);
}

/* Photo strip */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.photo-strip figure {
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-strip figcaption {
  font-family: var(--sans);
  font-size: 0.8rem;
  padding: 0.55rem 0.7rem 0.7rem;
  color: var(--cocoa-soft);
}

/* Feature cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.feature-card-body {
  padding: 0.9rem 1rem 1.1rem;
  flex: 1;
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: normal;
}

.feature-card p {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--cocoa-soft);
}

.feature-card a {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.review-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
}

.review-card p {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
}

.review-card footer {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--cocoa-soft);
}

/* About story photos */
.story-photo {
  margin: 0 0 1.35rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.story-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.story-photo figcaption {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--cocoa-soft);
  padding: 0.55rem 0.85rem 0.75rem;
}

.story-photo-secondary {
  margin-top: 1.5rem;
}

.craft-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
}

.craft-list li {
  font-family: var(--sans);
  font-size: 0.92rem;
  padding: 0.4rem 0 0.4rem 1.1rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

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

.craft-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--amber);
}

/* Menu photos + cards */
.menu-photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.menu-photo-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.menu-section {
  margin-bottom: 1.75rem;
}

.menu-section h2 {
  font-size: 1.3rem;
  text-align: center;
  border-left: none;
  padding-left: 0;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.4rem;
}

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

.menu-item {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.menu-item.has-thumb {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.menu-thumb {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--cream-dark);
}

.menu-item-body {
  min-width: 0;
}

.menu-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.menu-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: normal;
}

.menu-item p {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--cocoa-soft);
}

.price {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--amber);
  white-space: nowrap;
  font-weight: 600;
}

.tags {
  margin-top: 0.4rem !important;
}

.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--cream-dark);
  color: var(--cocoa-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.35rem;
}

.tag-bestseller {
  background: rgba(196, 122, 44, 0.18);
  color: var(--amber);
  font-weight: 600;
}

/* Teasers (news / events) */
.teaser-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.teaser {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.85rem;
}

.teaser time {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--amber);
  display: block;
  margin-bottom: 0.25rem;
}

.teaser h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: normal;
}

.teaser p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cocoa-soft);
}

.teaser .price-note {
  margin-top: 0.4rem;
  font-family: var(--sans);
  color: var(--amber);
}

.teaser .event-body {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.load-error {
  background: #fde8e0;
  border: 1px solid #e0a090;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.load-error code {
  font-size: 0.85em;
}

/* About / hours / contact */
.prose p {
  margin: 0 0 1rem;
}

.tip {
  font-size: 0.9rem;
  color: var(--cocoa-soft);
  margin: 0.75rem 0 0;
}

.palette-note {
  background: var(--paper);
  border: 1px dashed var(--line);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.palette-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.swatch {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.hours-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  max-width: 22rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.contact-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.contact-block p {
  margin: 0 0 0.75rem;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.map-link {
  display: inline-flex;
}

.map-embed {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

/* Sticky mobile CTA bar */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0));
  background: rgba(255, 250, 243, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.sticky-cta .btn {
  flex: 1;
  max-width: 10rem;
  min-height: 46px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--cocoa);
  color: var(--cream-dark);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  padding: 1.35rem 1rem;
  margin-top: auto;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: var(--amber-light);
}

.site-footer .demo-note {
  margin: 0.65rem 0 0;
  opacity: 0.85;
  font-size: 0.75rem;
}

@media (max-width: 720px) {
  .photo-strip,
  .card-grid,
  .review-grid,
  .menu-photo-row {
    grid-template-columns: 1fr;
  }

  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }

  .photo-strip figure:last-child {
    grid-column: 1 / -1;
  }

  .hero-photo {
    min-height: 26rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .brand h1 {
    font-size: 1.4rem;
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }

  .photo-strip figure:last-child {
    grid-column: auto;
  }

  .menu-item.has-thumb {
    grid-template-columns: 4.5rem 1fr;
  }

  .menu-thumb {
    width: 4.5rem;
    height: 4.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
