/* =============================================
   MONTELIMAR BREAD CO. — styles.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lora:wght@400;500&family=Jost:wght@300;400;500&display=swap');

: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', serif;
  --font-body: 'Lora', serif;
  --font-ui: 'Jost', sans-serif;

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

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

html {
  scroll-behavior: smooth;
}

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 {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--espresso);
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--text-mid);
}

.section {
  padding: var(--section-pad);
}

.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rust);
  margin-bottom: 1rem;
}

/* =============================================
   HEADER
   ============================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(42,31,20,0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.main-nav {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.main-nav a:hover {
  color: var(--warm-tan);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--cream);
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  min-height: 100vh;

  background-image:
    linear-gradient(
      rgba(20,10,5,0.45),
      rgba(20,10,5,0.45)
    ),
    url('/hero.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  padding: 8rem 1.5rem 4rem;
  position: relative;
}

.hero-content {
  max-width: 850px;
}

.hero-title {
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-title em {
  color: var(--warm-tan);
  font-style: italic;
}

.hero-tagline {
  color: rgba(245,240,232,0.78);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--rust);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--rust-light);
}

.btn-ghost {
  border: 1px solid rgba(245,240,232,0.5);
  color: var(--cream);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}

/* =============================================
   GENERAL LAYOUTS
   ============================================= */

.two-col,
.instagram-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

/* =============================================
   MENU GRID
   ============================================= */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.menu-category {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,122,0.18);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.menu-cat-title {
  color: var(--warm-tan);
  margin-bottom: 1.5rem;
}

.menu-list li {
  margin-bottom: 1.2rem;
}

.menu-item-name {
  color: var(--cream);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.menu-item-desc {
  color: rgba(245,240,232,0.65);
  font-size: 0.95rem;
}

/* =============================================
   FIND US
   ============================================= */

.find-us .container {
  max-width: 1500px;
}

.locations-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: stretch;
}

.location-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.location-card--wide {
  width: 100%;
}

.market-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin-top: 1.5rem;
}

.market-day {
  display: flex;
  flex-direction: column;
}

.market-day-name {
  font-weight: 700;
  color: var(--espresso);
}

.market-day-locations {
  color: var(--text-mid);
}

/* =============================================
   ORDER STEPS
   ============================================= */

.order-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* =============================================
   CARDS
   ============================================= */

.about-card,
.contact-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* =============================================
   DARK SECTIONS
   ============================================= */

.offerings,
.instagram-section,
.site-footer {
  background: var(--espresso);
}

.offerings h2,
.instagram-section h2 {
  color: var(--cream);
}

.offerings p,
.instagram-section p {
  color: rgba(245,240,232,0.7);
}

/* =============================================
   CONTACT
   ============================================= */

.contact-options {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.contact-card {
  min-width: 240px;
  text-align: center;
}

.contact-value {
  color: var(--rust);
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  padding: 4rem 1.5rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo-img {
  height: 50px;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(245,240,232,0.7);
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.footer-copy {
  color: rgba(245,240,232,0.45);
  font-size: 0.8rem;
}
.footer-address {
  color: rgba(201,169,122,0.55);
  font-family: var(--font-display);
  font-size: 1.15rem;
  transition: color 0.2s ease;
}

.footer-address:hover {
  color: var(--warm-tan);
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 900px) {

  .menu-grid,
  .order-steps,
  .locations-grid,
  .two-col,
  .instagram-inner,
  .market-days {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(26,15,8,0.96);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  .main-nav.open a {
    font-size: 1.5rem;
    color: var(--cream);
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {

  .section {
    padding: 4rem 1.25rem;
  }

  .logo-img {
    height: 44px;
  }

  .footer-logo-img {
    height: 40px;
  }

  .contact-card {
    width: 100%;
  }
}