/* ============================================
   The Shoppe Coffee & Ice Cream — Styles
   Teal + Slate Grey | Bold Editorial
   ============================================ */

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

: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;
  --slate-950: #0a0f1a;

  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 16px 48px rgba(15, 23, 42, 0.15);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

/* --- Typography --- */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-600);
  display: block;
  margin-bottom: var(--space-sm);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--slate-900);
  margin-bottom: var(--space-md);
}

.section-headline em {
  font-style: italic;
  color: var(--teal-700);
}

.section-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate-600);
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal-600);
  color: #ffffff;
  border-color: var(--teal-600);
}

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

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--slate-800);
  border-color: var(--slate-300);
}

.btn-outline-dark:hover {
  border-color: var(--teal-600);
  color: var(--teal-700);
  transform: translateY(-2px);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.0);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.nav-logo-mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.875rem;
  color: #ffffff;
  background: var(--teal-600);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.0625rem;
  color: #ffffff;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:not(.nav-cta):hover {
  color: #ffffff;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--teal-400);
  transition: width var(--transition-base);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff !important;
  background: var(--teal-600);
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

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

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

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--slate-950);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.nav-overlay-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px;
  transition: color var(--transition-fast);
}

.nav-overlay-close:hover {
  color: #ffffff;
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.nav-overlay-links a {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

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

.nav-overlay-cta {
  font-family: var(--font-sans) !important;
  font-size: 1rem !important;
  margin-top: var(--space-sm);
  padding: 0.75rem 2rem;
  background: var(--teal-600);
  color: #ffffff !important;
  border-radius: var(--radius-sm);
}

.nav-overlay-cta:hover {
  background: var(--teal-500) !important;
}

/* --- 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(
    to bottom,
    rgba(10, 15, 26, 0.7) 0%,
    rgba(15, 23, 42, 0.75) 50%,
    rgba(10, 15, 26, 0.85) 100%
  );
}

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

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-300);
  display: block;
  margin-bottom: var(--space-md);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: var(--space-lg);
}

.hero-headline em {
  font-style: italic;
  color: var(--teal-200);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}

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

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

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

/* --- Section Divider --- */
.section-divider {
  background: var(--slate-900);
  height: 4px;
}

/* --- Menu Section --- */
.menu-section {
  padding: var(--space-4xl) 0;
  background: var(--slate-50);
}

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

.menu-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.menu-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.menu-card-image {
  height: 260px;
  overflow: hidden;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.menu-card-body {
  padding: var(--space-lg);
}

.menu-card-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  padding: 0.3125rem 0.75rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.menu-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: var(--space-sm);
  line-height: 1.25;
}

.menu-card-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate-600);
  margin-bottom: var(--space-md);
}

.menu-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.menu-card-list li {
  font-size: 0.875rem;
  color: var(--slate-700);
  padding-left: 1.25rem;
  position: relative;
}

.menu-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  background: var(--teal-500);
  border-radius: 50%;
}

.menu-note {
  background: var(--slate-100);
  border-left: 4px solid var(--teal-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-md) var(--space-lg);
}

.menu-note p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate-700);
}

.menu-note strong {
  color: var(--teal-800);
}

/* --- About Section --- */
.about-section {
  padding: var(--space-4xl) 0;
  background: #ffffff;
}

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

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

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

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

.about-content .section-headline {
  margin-bottom: var(--space-lg);
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate-600);
  margin-bottom: var(--space-md);
}

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

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about-stat-number {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal-700);
}

.about-stat-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* --- Visit Section --- */
.visit-section {
  padding: var(--space-4xl) 0;
  background: var(--slate-50);
}

.visit-section .section-headline {
  margin-bottom: var(--space-2xl);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.visit-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.visit-block h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 0.5rem;
}

.visit-block p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--slate-700);
}

.visit-block a {
  color: var(--teal-700);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.visit-block a:hover {
  color: var(--teal-500);
  text-decoration: underline;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 0.375rem 0;
  font-size: 1rem;
  color: var(--slate-700);
}

.hours-row.hours-note span:last-child {
  color: var(--slate-400);
  font-style: italic;
}

.hours-disclaimer {
  font-size: 0.8125rem !important;
  color: var(--slate-400) !important;
  margin-top: 0.5rem !important;
  font-style: italic;
}

.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.map-link {
  display: block;
  position: relative;
  cursor: pointer;
}

.map-link img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.map-link:hover img {
  transform: scale(1.03);
}

.map-link-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.map-link:hover .map-link-overlay {
  opacity: 1;
}

.map-link-overlay svg {
  opacity: 0.9;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--slate-900);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-400);
  display: block;
  margin-bottom: var(--space-sm);
}

.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: var(--space-xl);
}

.cta-headline em {
  font-style: italic;
  color: var(--teal-200);
}

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

/* --- Footer --- */
.footer {
  background: var(--slate-950);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand .nav-logo-mark {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--slate-600);
}

/* --- Reveal Animations (progressive enhancement) --- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .menu-grid {
    gap: var(--space-lg);
  }

  .about-grid {
    gap: var(--space-2xl);
  }
}

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

  .nav-toggle {
    display: flex;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }

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

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

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

  .about-image {
    order: -1;
  }

  .about-image img {
    min-height: 300px;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

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

  .visit-map {
    order: -1;
  }

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

  .footer-links {
    justify-content: center;
  }

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

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

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

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

  .hero-content {
    padding: var(--space-lg);
  }

  .menu-card-image {
    height: 200px;
  }

  .menu-card-body {
    padding: var(--space-md);
  }
}
