/* ===========================
   American Breakfast Corp
   Warm, nostalgic homepage
   =========================== */

:root {
  --cream: #FDF6ED;
  --warm-white: #FAF4EB;
  --butter: #F5E6C8;
  --toast: #D4A855;
  --maple: #C4722B;
  --coffee: #3B2314;
  --espresso: #2A1A0E;
  --egg-white: #FFF9F0;
  --bacon: #8B3A2A;
  --sage: #7A8B6F;
  --text: #3B2F25;
  --text-light: #7A6B5D;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.center {
  text-align: center;
}

.section {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--maple);
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: 2px solid var(--coffee);
  color: var(--coffee);
  border-radius: 999px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
}

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

/* ---- NAV ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(253, 246, 237, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(59, 35, 20, 0.08);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cream);
  transition: color 0.4s ease;
}

.nav.scrolled .nav-logo {
  color: var(--coffee);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(253, 246, 237, 0.8);
  transition: color 0.3s ease;
}

.nav.scrolled .nav-links a {
  color: var(--text-light);
}

.nav-links a:hover {
  color: var(--cream);
}

.nav.scrolled .nav-links a:hover {
  color: var(--coffee);
}

.nav-cta {
  font-weight: 600 !important;
  padding: 8px 24px;
  border: 1.5px solid rgba(253, 246, 237, 0.5);
  border-radius: 999px;
  transition: all 0.3s ease !important;
}

.nav.scrolled .nav-cta {
  border-color: var(--coffee) !important;
  color: var(--coffee) !important;
}

.nav-cta:hover {
  background: rgba(253, 246, 237, 0.15);
}

.nav.scrolled .nav-cta:hover {
  background: var(--coffee) !important;
  color: var(--cream) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: all 0.3s ease;
}

.nav.scrolled .nav-toggle span {
  background: var(--coffee);
}

/* ---- HERO ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--espresso);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(196, 114, 43, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(212, 168, 85, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, rgba(42, 26, 14, 0.3) 0%, rgba(42, 26, 14, 0.6) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(253, 246, 237, 0.015) 2px,
      rgba(253, 246, 237, 0.015) 4px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--toast);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(253, 246, 237, 0.7);
  margin-bottom: 44px;
}

.hero .btn {
  border-color: var(--cream);
  color: var(--cream);
}

.hero .btn:hover {
  background: var(--cream);
  color: var(--coffee);
}

/* ---- MARQUEE ---- */

.marquee {
  background: var(--coffee);
  padding: 18px 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-marquee 30s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(253, 246, 237, 0.5);
  white-space: nowrap;
  padding-right: 16px;
  letter-spacing: 0.05em;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- STORY ---- */

.story {
  background: var(--cream);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 28px;
  color: var(--espresso);
}

.story-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 20px;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.image-placeholder {
  background: var(--butter);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder svg {
  width: 100%;
  height: 100%;
}

/* ---- VALUES ---- */

.values {
  background: var(--warm-white);
}

.values h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 60px;
  color: var(--espresso);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
}

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--maple);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--espresso);
}

.value-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
}

/* ---- PULLQUOTE ---- */

.pullquote {
  background: var(--espresso);
  padding: 100px 0;
}

.pullquote blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.4;
  color: var(--cream);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* ---- LOCATIONS ---- */

.locations {
  background: var(--cream);
}

.locations h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--espresso);
}

.locations-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  max-width: 550px;
  margin: 0 auto 40px;
}

.locations-cta {
  text-align: center;
}

/* ---- FOOTER ---- */

.footer {
  background: var(--coffee);
  color: rgba(253, 246, 237, 0.7);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-contact a {
  color: var(--toast);
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--cream);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(253, 246, 237, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(253, 246, 237, 0.4);
}

/* ---- ANIMATIONS ---- */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(253, 246, 237, 0.98);
    backdrop-filter: blur(10px);
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 30px rgba(59, 35, 20, 0.1);
  }

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

  .nav-links a {
    color: var(--text) !important;
    font-size: 1rem;
  }

  .nav-cta {
    border-color: var(--coffee) !important;
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .hero-sub br {
    display: none;
  }

  .pullquote {
    padding: 72px 0;
  }
}
