/* ========================================
   Maggie's Sweet Shoppe — Styles
   Teal + Slate Grey | Clean Minimalist
======================================== */

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

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--slate-800);
  background: var(--slate-50);
  line-height: 1.7;
  font-size: 15px;
  overflow-x: hidden;
}

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

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

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

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

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
  border-bottom-color: var(--slate-200);
  box-shadow: 0 1px 20px rgba(15, 23, 42, 0.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--slate-800);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.nav-logo:hover {
  color: var(--teal-700);
}

.nav-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-600);
  color: white;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--slate-600);
  padding: 8px 16px;
  border-radius: 100px;
  transition: color 0.3s, background 0.3s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--teal-700);
  background: var(--teal-50);
}

.nav-cta {
  background: var(--teal-600) !important;
  color: white !important;
  font-weight: 500 !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--teal-700) !important;
  color: white !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(248, 250, 252, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mobile-menu-link {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--slate-800);
  padding: 12px 24px;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}

.mobile-menu-link:hover {
  color: var(--teal-600);
}

.mobile-menu-divider {
  width: 48px;
  height: 1px;
  background: var(--slate-200);
  margin: 8px 0;
}

.mobile-phone, .mobile-address {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--slate-500);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-phone:hover, .mobile-address:hover {
  color: var(--teal-600);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  background: var(--slate-50);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(13, 148, 136, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(13, 148, 136, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 32px;
}

.hero-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--teal-500);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin-bottom: 28px;
}

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

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--slate-500);
  margin-bottom: 40px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease-out);
}

.btn-primary {
  background: var(--teal-600);
  color: white;
}

.btn-primary:hover {
  background: var(--teal-700);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}

.btn-ghost:hover {
  border-color: var(--teal-400);
  color: var(--teal-700);
  background: var(--teal-50);
}

.btn-large {
  padding: 16px 32px;
  font-size: 0.95rem;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.hero-meta-item svg {
  color: var(--teal-500);
  flex-shrink: 0;
}

/* Hero Image */
.hero-image {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 600/750;
  background: var(--slate-200);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.hero-image-wrapper:hover img {
  transform: scale(1.02);
}

.hero-image-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--teal-200);
  border-radius: 16px;
  z-index: -1;
}

.hero-floating-card {
  position: absolute;
  bottom: 40px;
  left: -32px;
  background: white;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
  z-index: 2;
}

.hero-floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  flex-shrink: 0;
}

.hero-floating-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.hero-floating-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--slate-800);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-400);
  animation: float 2.5s ease-in-out infinite;
}

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

/* ── Section Divider ── */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--slate-300);
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--slate-200);
}

.divider-dot {
  flex-shrink: 0;
  opacity: 0.6;
}

/* ── Section Shared ── */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 20px;
}

.section-eyebrow-line {
  width: 32px;
  height: 1px;
  background: var(--teal-500);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin-bottom: 20px;
}

.section-title-accent {
  font-style: italic;
  color: var(--teal-600);
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--slate-500);
  max-width: 520px;
}

/* ── Menu Section ── */
.menu-section {
  padding: 100px 24px;
  background: white;
}

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

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

.menu-categories {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.menu-cat-btn {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-500);
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--slate-200);
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.01em;
}

.menu-cat-btn:hover {
  color: var(--teal-700);
  border-color: var(--teal-300);
  background: var(--teal-50);
}

.menu-cat-btn.active {
  background: var(--teal-600);
  color: white;
  border-color: var(--teal-600);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.menu-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--slate-50);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.menu-card-img {
  position: relative;
  aspect-ratio: 400/300;
  overflow: hidden;
  background: var(--slate-200);
}

.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.05);
}

.menu-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--teal-600);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}

.menu-card-tag.seasonal-tag {
  background: var(--slate-800);
}

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

.menu-card-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--slate-900);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.menu-card-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--slate-500);
}

/* ── About Section ── */
.about-section {
  padding: 100px 24px;
  background: var(--slate-50);
}

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

.about-image-group {
  position: relative;
}

.about-image-main {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 500/620;
  background: var(--slate-200);
}

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

.about-image-secondary {
  position: absolute;
  bottom: -40px;
  right: -40px;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 320/240;
  background: var(--slate-200);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
  border: 4px solid var(--slate-50);
}

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

.about-image-accent {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
}

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

.about-divider {
  width: 48px;
  height: 2px;
  background: var(--teal-400);
  border-radius: 2px;
  margin-bottom: 32px;
}

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

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--slate-200);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-stat-value {
  color: var(--teal-600);
}

.about-stat-label {
  font-size: 0.85rem;
  color: var(--slate-500);
  font-weight: 400;
}

/* ── Visit Section ── */
.visit-section {
  padding: 100px 24px;
  background: white;
}

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

.visit-content {
  max-width: 520px;
}

.visit-divider {
  width: 48px;
  height: 2px;
  background: var(--teal-400);
  border-radius: 2px;
  margin-bottom: 32px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.visit-detail {
  display: flex;
  gap: 20px;
}

.visit-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  flex-shrink: 0;
}

.visit-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 4px;
}

.visit-detail-value {
  font-size: 1rem;
  color: var(--slate-800);
  line-height: 1.6;
}

.visit-detail-phone {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--teal-700);
  transition: color 0.3s;
}

.visit-detail-phone:hover {
  color: var(--teal-500);
}

.visit-hours {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.visit-hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--slate-700);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--slate-100);
}

.visit-hours-row:last-child {
  border-bottom: none;
}

.visit-hours-row span:first-child {
  color: var(--slate-500);
}

.visit-hours-row span:last-child {
  font-weight: 500;
  color: var(--slate-800);
}

.visit-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Map */
.visit-map {
  border-radius: 20px;
  overflow: hidden;
  background: var(--slate-100);
}

.visit-map-placeholder {
  position: relative;
}

.visit-map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 560/480;
  opacity: 0.6;
  filter: saturate(0.5);
}

.visit-map-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}

.visit-map-icon {
  color: var(--teal-600);
  opacity: 0.8;
}

.visit-map-address {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visit-map-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--slate-900);
}

.visit-map-subtitle {
  font-size: 0.9rem;
  color: var(--slate-500);
}

.visit-map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal-700);
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--teal-200);
  transition: all 0.3s var(--ease-out);
  margin-top: 8px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
}

.visit-map-link:hover {
  background: var(--teal-600);
  color: white;
  border-color: var(--teal-600);
}

/* ── Footer ── */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 64px 24px 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--slate-800);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  margin-bottom: 16px;
}

.footer-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-600);
  color: white;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--slate-500);
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--slate-400);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--slate-600);
}

.footer-address {
  font-size: 0.8rem;
  color: var(--slate-600);
}

/* ── Scroll Reveal (progressive enhancement) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }

  .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; }
}

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

  .about-grid,
  .visit-grid {
    gap: 48px;
  }

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

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

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 24px 80px;
    min-height: auto;
  }

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

  .hero-content {
    max-width: 100%;
  }

  .hero-image {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-floating-card {
    left: 16px;
    bottom: 24px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .menu-section,
  .about-section,
  .visit-section {
    padding: 72px 24px;
  }

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

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

  .about-image-secondary {
    right: -16px;
    bottom: -24px;
  }

  .about-image-accent {
    top: -16px;
    right: -16px;
    width: 56px;
    height: 56px;
  }

  .about-stats {
    gap: 24px;
  }

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

  .visit-content {
    max-width: 100%;
  }

  .footer-top {
    flex-direction: column;
  }

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

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

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

  .visit-actions {
    flex-direction: column;
  }

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

  .menu-categories {
    gap: 6px;
  }

  .menu-cat-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}
