/* ========================================
   ELBERTA SANDWICH COMPANY
   Classic & Elegant — Charcoal + Coral
   ======================================== */

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

:root {
  --charcoal-900: #1a1a1a;
  --charcoal-800: #2a2a2a;
  --charcoal-700: #3a3a3a;
  --charcoal-600: #4a4a4a;
  --charcoal-500: #6b6b6b;
  --charcoal-400: #9a9a9a;
  --coral-600: #c45a3f;
  --coral-500: #e86f5b;
  --coral-400: #f09080;
  --coral-300: #f7b5a8;
  --coral-200: #fad4cc;
  --coral-100: #fdebeb;
  --cream-50: #faf8f6;
  --cream-100: #f5f0eb;
  --cream-200: #ebe4dc;
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--charcoal-800);
  background: var(--cream-50);
  line-height: 1.6;
  -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;
}

ul {
  list-style: none;
}

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

/* --- Typography --- */
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--coral-500);
  margin-bottom: 16px;
  position: relative;
  padding-left: 32px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 1.5px;
  background: var(--coral-500);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--charcoal-900);
  margin-bottom: 24px;
}

.title-accent {
  color: var(--coral-500);
  font-style: italic;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--charcoal-600);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--coral-500);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232, 111, 91, 0.3);
}

.btn-primary:hover {
  background: var(--coral-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 111, 91, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--charcoal-900);
  border-color: var(--white);
}

.btn-large {
  padding: 18px 36px;
  font-size: 0.9375rem;
}

/* --- Header --- */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s var(--ease-out);
  padding: 20px 0;
}

#main-header.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--coral-500);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.logo-mark::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

.logo-mark::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  opacity: 0.6;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

#main-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease;
  position: relative;
}

#main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--coral-500);
  transition: width 0.3s var(--ease-out);
}

#main-nav a:hover {
  color: var(--white);
}

#main-nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--coral-500);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.8125rem;
  transition: all 0.3s var(--ease-out) !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--coral-600);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.35s var(--ease-out);
  transform-origin: center;
}

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

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

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

/* --- Hero --- */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--charcoal-900);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(232, 111, 91, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(196, 90, 63, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(240, 144, 128, 0.1) 0%, transparent 60%),
    linear-gradient(160deg, #1a1a1a 0%, #2d1f1a 30%, #1a1a1a 60%, #1f2d2a 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero-pattern svg {
  width: 100%;
  height: 100%;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral-300);
  margin-bottom: 40px;
}

.badge-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--coral-400));
}

.badge-line:last-child {
  background: linear-gradient(90deg, var(--coral-400), transparent);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.hero-title .title-accent {
  font-style: italic;
  color: var(--coral-400);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.65);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.75;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll span {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* --- Section Spacing --- */
.section {
  padding: 120px 0;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images {
  position: relative;
  height: 600px;
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;
  height: 80%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 55%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  border: 6px solid var(--cream-50);
}

.about-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--coral-500);
  color: var(--white);
  padding: 24px 32px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(232, 111, 91, 0.35);
  z-index: 2;
}

.about-accent-box .accent-number {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 4px;
}

.about-accent-box .accent-year {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.about-content {
  max-width: 480px;
}

.about-content .section-title {
  margin-bottom: 28px;
}

.about-text {
  font-size: 1rem;
  color: var(--charcoal-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  color: var(--coral-500);
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--charcoal-800);
}

/* --- Menu --- */
.section-dark {
  background: var(--charcoal-900);
}

.section-dark .section-title {
  color: var(--white);
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.menu-card {
  background: var(--charcoal-800);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(232, 111, 91, 0.2);
}

.menu-card-img {
  height: 220px;
  overflow: hidden;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.08);
}

.menu-card-body {
  padding: 28px;
}

.menu-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.menu-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
}

.menu-card-tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-400);
  background: rgba(232, 111, 91, 0.12);
  padding: 4px 10px;
  border-radius: 100px;
  margin-left: auto;
}

.menu-card-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

.menu-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-note svg {
  width: 20px;
  height: 20px;
  color: var(--coral-400);
  flex-shrink: 0;
}

.menu-note span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 20px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.2) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item--tall {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 6;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(3),
.gallery-item:nth-child(5) {
  grid-column: span 3;
}

/* --- Visit --- */
.section-gradient {
  background:
    radial-gradient(ellipse 70% 50% at 0% 50%, rgba(232, 111, 91, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(196, 90, 63, 0.06) 0%, transparent 50%),
    var(--cream-50);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.visit-text {
  font-size: 1.05rem;
  color: var(--charcoal-600);
  line-height: 1.75;
  margin-bottom: 48px;
  max-width: 440px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-500);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.contact-item strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-500);
  margin-bottom: 6px;
}

.contact-item p {
  font-size: 0.9375rem;
  color: var(--charcoal-800);
  line-height: 1.6;
}

.contact-item a {
  color: var(--coral-500);
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--coral-600);
}

.visit-map {
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

/* --- Footer --- */
#main-footer {
  background: var(--charcoal-900);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-light .logo-mark {
  background: var(--coral-500);
}

.footer-brand .footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.75;
  margin-top: 20px;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

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

.footer-contact p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 8px;
}

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.3);
}

/* --- Scroll Reveal (below fold only) --- */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-grid {
    gap: 48px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(3, 220px);
  }

  .gallery-item--tall {
    grid-column: span 3;
    grid-row: span 1;
  }

  .gallery-item--wide {
    grid-column: span 6;
  }

  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(5) {
    grid-column: span 3;
  }

  .visit-grid {
    gap: 48px;
  }

  .visit-map {
    height: 380px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  #main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
  }

  #main-nav.open {
    opacity: 1;
    visibility: visible;
  }

  #main-nav ul {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  #main-nav a {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
  }

  .nav-cta {
    margin-top: 16px;
  }

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

  .hero-stats {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-images {
    height: 400px;
    order: -1;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item,
  .gallery-item--tall,
  .gallery-item--wide,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
    height: 220px;
  }

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

  .visit-map {
    height: 300px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-badge {
    font-size: 0.6875rem;
  }

  .about-images {
    height: 320px;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-line {
    animation: none;
  }
}
