/* =============================================================
   Marks Bakery — Main Stylesheet
   Shared across all pages
   ============================================================= */

/* ── CSS VARIABLES ── */
:root {
  --crimson: #6B0F1A;
  --crimson-dark: #4A0B12;
  --forest: #1E3A2F;
  --forest-light: #2D5240;
  --cream: #F5ECD7;
  --cream-dark: #EAD9BC;
  --warm-white: #FAF6EE;
  --tan: #C9A97A;
  --brown: #7A4F2D;
  --text-dark: #2A1A0E;
  --text-med: #5C3D22;
  --gold: #B8892A;
}

/* ── RESET & BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Libre Baskerville', Georgia, serif;
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ── HEADER (desktop two-row) ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}

/* Row 1: logo bar */
.header-brand {
  background: var(--forest);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem 0.8rem;
  gap: 0.5rem;
}

.header-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-brand img {
  height: 130px;
  width: auto;
}

.header-tagline {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(201,169,122,0.75);
}

/* Row 2: nav strip */
.header-nav {
  background: var(--forest-light);
  border-top: 1px solid rgba(201,169,122,0.3);
  border-bottom: 3px solid var(--tan);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  gap: 0;
}

.header-nav a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dark);
  text-decoration: none;
  padding: 0 1.8rem;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.header-nav a:hover {
  color: var(--tan);
  background: rgba(255,255,255,0.05);
}

/* vertical separators between nav links */
.header-nav a + a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(201,169,122,0.45);
}

/* hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--forest);
  border-bottom: 3px solid var(--tan);
  z-index: 99;
  flex-direction: column;
  padding: 0.5rem 0 1rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dark);
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid rgba(201,169,122,0.15);
  transition: color 0.2s, background 0.2s;
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--tan); background: rgba(255,255,255,0.04); }

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--crimson);
  color: var(--cream);
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  border: 2px solid var(--crimson);
  transition: all 0.2s;
  display: inline-block;
  white-space: nowrap;
}

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

.btn-outline {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--forest);
  padding: 0.9rem 2.2rem;
  text-decoration: none;
  border: 2px solid var(--forest);
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--forest);
  color: var(--cream);
}

/* ── SECTION BASE ── */
section { scroll-margin-top: 195px; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tan);
  display: block;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--crimson);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.section-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--tan);
  margin: 0.8rem auto;
  font-size: 0.9rem;
}

.section-rule::before,
.section-rule::after {
  content: '';
  height: 1px;
  width: 60px;
  background: var(--tan);
}

/* ── FOOTER ── */
footer {
  background: var(--text-dark);
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 3px solid var(--crimson);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--cream);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-logo span { color: var(--tan); }

.footer-est {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,236,215,0.4);
  margin-bottom: 1.5rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(245,236,215,0.35);
}

/* ── SOCIAL ICONS ── */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--cream-dark);
  background: var(--cream);
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 0;
}

.social-icon-btn:hover { border-color: var(--tan); background: var(--cream-dark); transform: translateY(-2px); }
.social-icon-btn svg { width: 26px; height: 26px; }

/* ── HERO ── */
.hero {
  margin-top: 195px;
  background: var(--cream);
  border-top: 3px solid var(--tan);
  border-bottom: 3px solid var(--tan);
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.hero-storefront {
  display: block;
  width: 50%;
  height: auto;
  margin: 0 auto;
  padding-top: 0.5rem;
}

/* hero — no overlay buttons on any version */
.hero-content { display: contents; }

/* ── ABOUT BANNER ── */
.about-strip {
  background: var(--forest);
  padding: 3.5rem 2rem;
  text-align: center;
}

.about-strip p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--cream);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.about-strip .est {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tan);
  margin-top: 1.2rem;
}

/* ── MENU ── */
.menu-section {
  padding: 6rem 2rem;
  background: var(--warm-white);
  max-width: 1200px;
  margin: 0 auto;
}

.menu-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.menu-cat {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  position: relative;
  padding: 2.2rem 1.8rem 2rem;
}

.menu-cat::before {
  content: '';
  position: absolute;
  top: 8px; left: 8px; right: -8px; bottom: -8px;
  background: var(--cream-dark);
  z-index: -1;
}

.menu-cat-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.8rem;
}

.menu-cat-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--forest);
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--tan);
  display: block;
}

/* desktop: menu-cat-header is transparent — title handles its own border */
.menu-cat-header { display: block; }

.menu-items { list-style: none; }

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px dotted rgba(122,79,45,0.3);
  gap: 0.5rem;
}

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

.item-name {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.item-desc {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-med);
  display: block;
}

.item-price {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--crimson);
  white-space: nowrap;
}

.menu-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-med);
}

/* ── CATERING ── */
.catering-section {
  padding: 5rem 2rem;
  background: var(--warm-white);
  text-align: center;
}

.catering-inner {
  max-width: 700px;
  margin: 0 auto;
}

.catering-inner p {
  font-size: 1.05rem;
  color: var(--text-med);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.catering-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
}

.cater-feat {
  padding: 1.5rem 1rem;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
}

.cater-feat-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }

.cater-feat-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
}

/* ── CUSTOM ORDER FORM ── */
.order-form-section {
  padding: 5rem 2rem;
  background: var(--cream);
}

.order-form-inner {
  max-width: 800px;
  margin: 0 auto;
}

.order-form-note {
  font-size: 0.92rem;
  color: var(--text-med);
  line-height: 1.7;
  font-style: italic;
  margin-top: 0.5rem;
}

.order-form-embed {
  margin-top: 2rem;
  padding: 2.5rem 2rem;
  border: 2px solid var(--tan);
  background: var(--warm-white);
  text-align: center;
}

.order-form-cta-text {
  font-size: 0.95rem;
  color: var(--text-med);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ── ORDER NOTE ── */
.order-note {
  background: var(--forest);
  padding: 2rem;
  text-align: center;
}

.order-note p {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dark);
}

.order-note strong { color: var(--tan); }

/* ── HOURS & CONTACT ── */
.info-section {
  padding: 6rem 2rem;
  background: var(--cream);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.info-card { text-align: center; }

/* desktop: info-card-header is transparent — title handles its own border */
.info-card-header { display: block; }

.info-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--crimson);
}

.info-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--tan);
}

.hours-list { list-style: none; }

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px dotted rgba(122,79,45,0.25);
}

.hours-row:last-child { border-bottom: none; }

.hours-day { color: var(--text-med); }
.hours-time { font-weight: 700; color: var(--text-dark); }
.hours-closed { color: var(--crimson); font-weight: 700; }

.contact-details { list-style: none; }

.contact-item {
  padding: 0.7rem 0;
  font-size: 0.92rem;
  border-bottom: 1px dotted rgba(122,79,45,0.25);
  color: var(--text-dark);
  line-height: 1.5;
}

.contact-item:last-child { border-bottom: none; }

.contact-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tan);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-item a { color: var(--crimson); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo-img  { animation: fadeUp 0.6s ease both 0.1s; }
.hero-cta-group { animation: fadeUp 0.6s ease both 0.35s; }

/* ── RESPONSIVE: tablet ── */
@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE: mobile ── */
@media (max-width: 700px) {
  .site-header { position: static; }
  .hero { margin-top: 0; }
  .hero-storefront { width: 88%; }

  .header-tagline {
    white-space: nowrap;
    font-size: min(2.2vw, 0.68rem);
    letter-spacing: 0.1em;
  }

  /* Menu category cards: icon inline with title */
  .menu-cat-icon {
    display: inline;
    font-size: 1.4rem;
    margin-bottom: 0;
    margin-right: 0.5rem;
    vertical-align: middle;
  }

  .menu-cat-title {
    display: inline;
    vertical-align: middle;
  }

  .menu-cat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--tan);
  }

  .menu-cat-header .menu-cat-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  /* Info cards: icon inline with title */
  .info-icon {
    display: inline;
    font-size: 1.3rem;
    margin-bottom: 0;
    margin-right: 0.4rem;
    vertical-align: middle;
  }

  .info-card-title {
    display: inline;
    vertical-align: middle;
  }

  .info-card-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--tan);
    justify-content: center;
  }

  .info-card-header .info-card-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  /* General layout */
  .menu-categories    { grid-template-columns: 1fr; }
  .catering-features  { grid-template-columns: 1fr 1fr; }
  .info-grid          { grid-template-columns: 1fr; }
  .section-title      { font-size: 1.7rem; }
  .menu-section       { padding: 3rem 1rem; }
  .info-section       { padding: 3rem 1rem; }
  .catering-section   { padding: 3rem 1rem; }
  .order-form-section { padding: 3rem 1rem; }
  .order-form-btn     { white-space: normal; word-break: break-word; }
}

@media (min-width: 701px) {
  .nav-hamburger { display: none; }
  .nav-mobile    { display: none !important; }
}

