/* =============================================
   MONTELIMAR BREAD CO. — styles.css
   Warm artisan aesthetic. Edit freely.
   ============================================= */

/* ---- GOOGLE FONTS (self-hosted via @import from Google, no JS) ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Lora:ital,wght@0,400;0,500;1,400&family=Jost:wght@300;400;500&display=swap');

/* ---- VARIABLES ---- */
:root {
  --cream:        #f5f0e8;
  --parchment:    #ede5d4;
  --warm-tan:     #c9a97a;
  --dark-tan:     #a07d52;
  --espresso:     #2a1f14;
  --dark-brown:   #3d2b1a;
  --rust:         #8b3e1e;
  --rust-light:   #c4561e;
  --text-dark:    #2a1f14;
  --text-mid:     #5c4433;
  --text-light:   #8c7260;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Jost', system-ui, sans-serif;

  --max-w:        1140px;
  --section-pad:  6rem 1.5rem;
  --radius:       4px;
  --shadow:       0 4px 24px rgba(42,31,20,0.10);
  --shadow-lg:    0 8px 48px rgba(42,31,20,0.18);
}

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

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--espresso);
}
h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 1.2rem; }
h3 { font-size: 1.25rem; font-weight: 400; margin-bottom: 0.5rem; }
p  { color: var(--text-mid); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.75rem;
}
.section-intro {
  max-width: 600px;
  color: var(--text-mid);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: all 0.22s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--rust);
  color: var(--cream);
  border-color: var(--rust);
}
.btn-primary:hover {
  background: var(--rust-light);
  border-color: var(--rust-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245,240,232,0.55);
}
.btn-ghost:hover {
  background: rgba(245,240,232,0.12);
  border-color: var(--cream);
}
.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  background: transparent;
  border: 1.5px solid var(--dark-tan);
  color: var(--dark-tan);
  border-radius: var(--radius);
  margin-top: 0.75rem;
  display: inline-block;
  transition: all 0.2s;
}
.btn-sm:hover {
  background: var(--dark-tan);
  color: var(--cream);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(42,31,20,0.96);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1) !important;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1) !important;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(139,62,30,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 20%, rgba(160,125,82,0.25) 0%, transparent 50%),
    linear-gradient(160deg, #1e1208 0%, #2a1a0e 40%, #3d2418 100%);
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-tan);
  margin-bottom: 1.5rem;
}
.hero-title {
  color: var(--cream);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  margin-bottom: 1.75rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.hero-title em {
  font-style: italic;
  color: var(--warm-tan);
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245,240,232,0.72);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245,240,232,0.35);
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   SECTIONS (shared)
   ============================================= */
.section {
  padding: var(--section-pad);
}
.section:nth-child(even) { background: var(--parchment); }

/* =============================================
   ABOUT
   ============================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text h2 { margin-top: 0.5rem; }
.about-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-card {
  background: var(--cream);
  border: 1px solid rgba(160,125,82,0.2);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow);
}
.about-card-icon { font-size: 1.6rem; margin-bottom: 0.2rem; }
.about-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--espresso);
}
.about-card p {
  font-size: 0.92rem;
  color: var(--text-mid);
  margin: 0;
}

/* =============================================
   MENU / OFFERINGS
   ============================================= */
.offerings { background: var(--espresso) !important; }
.offerings .section-label { color: var(--warm-tan); }
.offerings h2 { color: var(--cream); }
.offerings .section-intro { color: rgba(245,240,232,0.65); }
.offerings .menu-note { color: rgba(245,240,232,0.5); font-size: 0.85rem; margin-top: 2.5rem; }
.offerings .menu-note a { color: var(--warm-tan); text-decoration: underline; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.menu-category {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,122,0.18);
  border-radius: 6px;
  padding: 2rem;
}
.menu-cat-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--warm-tan);
  border-bottom: 1px solid rgba(201,169,122,0.2);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.menu-list { display: flex; flex-direction: column; gap: 1.1rem; }
.menu-list li { display: flex; flex-direction: column; gap: 0.1rem; }
.menu-item-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--cream);
  font-weight: 500;
}
.menu-item-desc {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.4;
}

/* =============================================
   HOW TO ORDER
   ============================================= */
.order-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.order-step {
  border-top: 2px solid var(--warm-tan);
  padding-top: 1.5rem;
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--parchment);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.order-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

/* =============================================
   FIND US
   ============================================= */
.find-us { background: var(--parchment) !important; }
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 0;
}
.location-card {
  background: var(--cream);
  border: 1px solid rgba(160,125,82,0.2);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.location-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.location-card h3 { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.5rem; }
.location-address {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--rust);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.location-card p a { color: var(--rust); text-decoration: underline; }

/* ---- Markets card ---- */
.location-card--wide {
  grid-column: 1 / -1;
}
.market-intro {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.market-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.market-day {
  display: flex;
  flex-direction: column;
  background: var(--parchment);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  gap: 0.2rem;
}
.market-day-name {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rust);
}
.market-day-locations {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: var(--text-dark);
}

/* =============================================
   INSTAGRAM
   ============================================= */
.instagram-section { background: var(--dark-brown) !important; }
.instagram-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.ig-text .section-label { color: var(--warm-tan); }
.ig-text h2 { color: var(--cream); }
.ig-text p { color: rgba(245,240,232,0.65); }
.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.ig-icon { width: 18px; height: 18px; flex-shrink: 0; }
.ig-grid-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: 6px;
  overflow: hidden;
}
.ig-tile {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(201,169,122,0.08);
  position: relative;
  overflow: hidden;
}
.ig-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,169,122,0.15) 0%, transparent 60%);
}
.ig-tile--1 { background: linear-gradient(135deg, #3d1e0c, #6b3520); }
.ig-tile--2 { background: linear-gradient(135deg, #2e1a0a, #4a2e14); }
.ig-tile--3 { background: linear-gradient(135deg, #5a3018, #3d1e0c); }
.ig-tile--4 { background: linear-gradient(135deg, #4a2810, #6b3520); }
.ig-tile--5 { background: linear-gradient(135deg, #3d2210, #5a3018); }
.ig-tile--6 { background: linear-gradient(135deg, #2e1a0a, #5a3018); }

/* =============================================
   CONTACT
   ============================================= */
.contact-section { background: var(--cream) !important; }
.contact-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.contact-inner h2 { margin-bottom: 0.75rem; }
.contact-options {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: var(--parchment);
  border: 1px solid rgba(160,125,82,0.22);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  min-width: 220px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.contact-icon { font-size: 1.75rem; }
.contact-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
}
.contact-value {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--rust);
  font-weight: 500;
}

/* =============================================
   NOTICE BANNER (uncomment in HTML if needed)
   ============================================= */
.notice-banner {
  background: var(--rust);
  color: var(--cream);
  text-align: center;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.notice-banner a { color: var(--warm-tan); text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--espresso);
  color: rgba(245,240,232,0.55);
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-tagline {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--warm-tan);
  margin: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--warm-tan); }
.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(245,240,232,0.3);
  margin: 0;
  margin-top: 0.5rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .two-col,
  .menu-grid,
  .order-steps,
  .locations-grid,
  .instagram-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-aside { order: -1; }
  .ig-visual { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,15,8,0.97);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 200;
  }
  .main-nav.open a {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--cream);
  }
  .nav-toggle.open {
    position: fixed;
    top: 1.1rem; right: 1.5rem;
    z-index: 201;
    font-size: 1.8rem;
  }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .contact-options { flex-direction: column; align-items: center; }
  .contact-card { width: 100%; max-width: 360px; }
  h1 { font-size: clamp(2.8rem, 12vw, 5rem); }
}

@media (max-width: 600px) {
  :root { --section-pad: 4rem 1.25rem; }
  .menu-category, .location-card, .order-step, .about-card { padding: 1.25rem; }
  .logo-img { height: 36px; filter: brightness(0) invert(1) !important; }
  .footer-logo-img { height: 36px; filter: brightness(0) invert(1) !important; }
}

/* =============================================
   ANIMATIONS (on scroll, via JS class)
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}