/* ============================================
   MAIN STREET BAGEL CAFE - STYLES
   ============================================ */

/* CSS Variables (Design System) */
:root {
  /* Colors */
  --cream: #FAF3E7;
  --cream-dark: #F0E6D6;
  --brown: #6B4F3F;
  --brown-light: #8B7355;
  --tan: #C8A97E;
  --coral: #E85C3A;
  --coral-hover: #D44A28;
  --white: #FFFFFF;
  --muted: #9B8B7A;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-padding: 4rem;
  --container-max: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--brown);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
}

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

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

/* Container */
.container {
  max-width: none; /* remove any max width */
  width: fit-content; /* container shrinks/grows to fit content */
  margin: 0 auto; /* center horizontally */
}


.container-narrow {
  max-width: 800px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 243, 231, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 1rem 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .80); /* subtle shadow below */
}

.nav-link {
  font-family: var(--font-body);
  font-weight: bold;
  font-size: 1.3rem;
  color:rgba(0, 0, 0, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: color 0.3s ease;


}

.nav-link:hover,
.nav-link.active {
  color: var(--coral);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-cta {
  background-color: var(--coral);
  color: var(--white);
  padding: 1rem 2rem;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(232, 92, 58, 0.3);
}

.btn-cta:hover {
  background-color: var(--coral-hover);
  box-shadow: 0 6px 20px rgba(232, 92, 58, 0.4);
  transform: scale(1.05);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.about-hero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); /* adjust darkness */

}

.hero-overlay-dark {
  background-color: rgba(107, 79, 63, 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.8s ease-out;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.8s ease-out 0.3s both;
}

/* ============================================
   PRODUCT SECTIONS
   ============================================ */
.product-section {
  padding: var(--section-padding) 1rem;
  background-color: rgba(240, 230, 214, 0.3);
}

.product-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .product-grid {
    flex-direction: row-reverse;
    gap: 5rem;
  }

  .product-grid-reverse {
    flex-direction: row;
  }
}

.product-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.product-image {
  width: 330px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(107, 79, 63, 0.2);
}

@media (min-width: 768px) {
  .product-image {
    width: 400px;
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .product-image {
    width: 500px;
    height: 500px;
  }
}

.product-content {
  flex: 1;
  text-align: center;
}

@media (min-width: 1024px) {
  .product-content {
    text-align: left;
  }
}

.product-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 1.5rem;
}

.product-description {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .product-description {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ============================================
    Most Popular Section
   ============================================ */
.popular {
  padding: 3rem 1rem;
  text-align: center;
  font-family: 'Source Sans 3', sans-serif;
}

.popular-title {
  color: #6B4F3F;
  font-weight: bold;
  letter-spacing: 4px;
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.popular-subtitle {
  color: #050000;
  margin-bottom: 2rem;
  font-weight: 1000;
  font-size: 1.5rem;
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: center;
}

.popular-item {
  width: 100%;       /* fills the grid column */
  max-width: 400px;  /* optional max width */

  text-align: center;
  margin: 0 auto;    /* center within the grid column */
}

.popular-item img {
  width: 100%;        /* fill the width of the container */
  height: auto;       /* keep original aspect ratio */
  border-radius: 12px;
  object-fit: cover;  /* crop if needed, avoid distortion */
  display: block;     /* removes small bottom gaps */
}


.popular-text h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.popular-text .price {
  font-size: 0.9rem;
  color: #888;
  font-weight: 400;
}

@media (max-width: 900px) {
  .popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .popular-grid {
    grid-template-columns: 1fr;
  }
  .popular-item {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}


/* ============================================
   MENU PAGE
   ============================================ */
.menu-page {
  padding: var(--section-padding) 1rem;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  animation: fadeIn 0.8s ease-out;
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.menu-category {
  margin-bottom: 3rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--brown);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--tan);
  margin-bottom: 1.5rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--white);
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
}

.menu-item:hover {
  background-color: var(--cream-dark);
}

.item-name {
  font-weight: 500;
  color: var(--brown);
}

.item-price {
  font-weight: 600;
  color: var(--coral);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.story-section {
  padding: var(--section-padding) 1rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 2rem;
}

.story-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-content p {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.8;
}

.values-section {
  padding: var(--section-padding) 1rem;
  background-color: rgba(240, 230, 214, 0.3);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(107, 79, 63, 0.08);
}

.value-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 1rem;
}

.value-description {
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--brown);
  color: var(--cream);
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--tan);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 243, 231, 0.2);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Classes */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}
