/* ========================================
   Daily Bagel Shop — Stylesheet
   Classic & Elegant · Forest Green + Off-White
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-forest-dark: #1B4332;
  --color-forest: #2D6A4F;
  --color-forest-light: #40916C;
  --color-forest-muted: #52B788;
  --color-cream: #FAF6F0;
  --color-cream-warm: #F5F0E8;
  --color-wheat: #E8DFD0;
  --color-tan: #D4C9B8;
  --color-bark: #3C2415;
  --color-charcoal: #1A1A1A;
  --color-text-dark: #1C1C1A;
  --color-text-body: #3A3A36;
  --color-text-muted: #6B6B64;
  --color-text-light: #F5F0E8;
  
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lora', 'Palatino Linotype', Palatino, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  
  --shadow-sm: 0 1px 3px rgba(27, 67, 50, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 8px 32px rgba(27, 67, 50, 0.12);
  --shadow-xl: 0 16px 48px rgba(27, 67, 50, 0.15);
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-body);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* --- Section Label --- */
.section-label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-forest);
  margin-bottom: var(--space-md);
  position: relative;
  padding-left: 1.5rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1px;
  background-color: var(--color-forest);
}

/* --- Section Title --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-forest-dark);
  margin-bottom: var(--space-lg);
}

.section-title em {
  font-style: italic;
  color: var(--color-forest);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 560px;
}

/* --- Section Divider --- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) 0;
  color: var(--color-forest-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-forest-dark);
  color: var(--color-cream);
  border: 2px solid var(--color-forest-dark);
}

.btn-primary:hover {
  background-color: var(--color-forest);
  border-color: var(--color-forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-cream);
  border: 2px solid rgba(250, 246, 240, 0.5);
}

.btn-secondary:hover {
  background-color: rgba(250, 246, 240, 0.1);
  border-color: var(--color-cream);
  transform: translateY(-2px);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--color-cream);
  border: 2px solid rgba(250, 246, 240, 0.6);
}

.btn-outline-light:hover {
  background-color: var(--color-cream);
  color: var(--color-forest-dark);
  transform: translateY(-2px);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  transition: all var(--transition-base);
  padding: var(--space-lg) 0;
}

.navbar.scrolled {
  background-color: rgba(27, 67, 50, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-lg);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.02em;
  transition: opacity var(--transition-fast);
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo-icon {
  color: var(--color-forest-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(250, 246, 240, 0.85);
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-forest-muted);
  transition: width var(--transition-base);
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-cream);
  background-color: rgba(250, 246, 240, 0.12);
  border: 1px solid rgba(250, 246, 240, 0.25);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background-color: var(--color-cream);
  color: var(--color-forest-dark);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-cream);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-forest-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    transition: right var(--transition-base);
    box-shadow: var(--shadow-xl);
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
  }
  
  .nav-cta {
    margin-top: var(--space-md);
  }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(27, 67, 50, 0.92) 0%,
    rgba(27, 67, 50, 0.82) 40%,
    rgba(45, 106, 79, 0.72) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: var(--space-4xl) var(--space-xl);
  color: var(--color-cream);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-forest-muted);
  margin-bottom: var(--space-xl);
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(82, 183, 136, 0.35);
  border-radius: 50px;
  background-color: rgba(82, 183, 136, 0.08);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-cream);
  margin-bottom: var(--space-xl);
}

.hero-emphasis {
  font-style: italic;
  color: var(--color-forest-muted);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
  color: rgba(250, 246, 240, 0.8);
  max-width: 580px;
  margin: 0 auto var(--space-2xl);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(250, 246, 240, 0.75);
}

.hero-trust-item svg {
  color: var(--color-forest-muted);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(250, 246, 240, 0.5);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: var(--space-4xl) 0;
  background-color: var(--color-cream);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
}

.about-img-secondary {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 55%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--color-cream);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
  display: block;
}

.about-accent {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 100px;
  height: 100px;
  background-color: var(--color-forest-light);
  border-radius: var(--radius-lg);
  opacity: 0.15;
  z-index: -1;
}

.about-content {
  padding: var(--space-xl) 0;
}

.about-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-body);
  margin-bottom: var(--space-lg);
}

.about-signature {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-wheat);
}

.signature-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-forest), var(--color-forest-light));
  margin-bottom: var(--space-md);
  border-radius: 2px;
}

.signature-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-forest-dark);
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }
  
  .about-img-secondary {
    right: 0;
    bottom: -1.5rem;
  }
}

@media (max-width: 480px) {
  .about-img-secondary {
    width: 60%;
    right: -0.5rem;
    bottom: -1rem;
  }
}

/* ========================================
   MENU
   ======================================== */
.menu {
  padding: var(--space-4xl) 0;
  background-color: var(--color-cream-warm);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header .section-label {
  padding-left: 0;
}

.section-header .section-label::before {
  display: none;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.menu-category {
  background-color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 201, 184, 0.5);
  transition: all var(--transition-base);
}

.menu-category:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-wheat);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(45, 106, 79, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-forest);
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-forest-dark);
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
}

.menu-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-item-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

.menu-item-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.menu-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-xl);
  background-color: rgba(45, 106, 79, 0.06);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-forest-light);
}

.menu-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-forest);
}

.menu-note p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   VISIT
   ======================================== */
.visit {
  padding: var(--space-4xl) 0;
  background-color: var(--color-cream);
}

.visit-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.visit-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-body);
  margin-bottom: var(--space-2xl);
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.visit-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.visit-detail-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(45, 106, 79, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-forest);
}

.visit-detail-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visit-detail-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.visit-detail-value {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
}

.visit-phone {
  color: var(--color-forest);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.visit-phone:hover {
  color: var(--color-forest-dark);
  text-decoration: underline;
}

.visit-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-cream);
}

.map-wrapper {
  aspect-ratio: 4/3;
  background-color: var(--color-wheat);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .visit-layout {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   CTA
   ======================================== */
.cta {
  position: relative;
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(27, 67, 50, 0.93) 0%,
    rgba(45, 106, 79, 0.88) 100%
  );
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  color: var(--color-cream);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-cream);
  margin-bottom: var(--space-lg);
}

.cta-title em {
  font-style: italic;
  color: var(--color-forest-muted);
}

.cta-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(250, 246, 240, 0.8);
  margin-bottom: var(--space-2xl);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background-color: var(--color-forest-dark);
  color: var(--color-cream);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-cream);
  margin-bottom: var(--space-md);
}

.footer-logo-icon {
  color: var(--color-forest-muted);
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(250, 246, 240, 0.65);
}

.footer-heading {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-forest-muted);
  margin-bottom: var(--space-md);
}

.footer-address {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(250, 246, 240, 0.75);
  margin-bottom: var(--space-sm);
}

.footer-phone {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-forest-muted);
  transition: color var(--transition-fast);
}

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

.footer-hours-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(250, 246, 240, 0.75);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(250, 246, 240, 0.1);
}

.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(250, 246, 240, 0.45);
}

.footer-location {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(250, 246, 240, 0.45);
}

@media (max-width: 768px) {
  .footer-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .footer-brand {
    max-width: none;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ========================================
   SCROLL REVEAL (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Reduced motion: ensure everything is visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  
  .hero-scroll {
    animation: none;
  }
}
