/* ============================================================
   Barb's Corner Cafe — Custom Styles
   Palette: Teal (#0D9488) + Slate Grey (#1E293B / #334155 / #64748B)
   Fonts: DM Serif Display (headlines) + Inter (body)
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal-50: #F0FDFA;
  --teal-100: #CCFBF1;
  --teal-200: #99F6E4;
  --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-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--slate-800);
  background: var(--slate-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-600);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--teal-700); }

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

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.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);
  color: #ffffff;
}

.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.12);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-sm { padding: 9px 20px; font-size: 0.875rem; }
.btn-full { width: 100%; }

/* ========== SECTION HELPERS ========== */
.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--slate-900);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--slate-500);
  max-width: 560px;
  line-height: 1.7;
}

/* ========== HEADER / NAV ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--slate-900);
}
.logo:hover { color: var(--slate-900); }
.logo-text {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.125rem;
  font-weight: 400;
}
.logo-text-light { color: #ffffff; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.main-nav a:not(.btn) {
  color: var(--slate-700);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.main-nav a:not(.btn):hover {
  color: var(--teal-700);
  background: var(--teal-50);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger { position: relative; }
.hamburger::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 0;
}
.hamburger::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  padding-top: 72px;
  background: linear-gradient(135deg, var(--slate-900) 0%, #0C4A4E 50%, var(--teal-900) 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0 80px;
}

.hero-text { color: #ffffff; }

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 16px;
}

.hero-headline {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--slate-300);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--teal-200);
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(13, 148, 136, 0.35);
  padding: 6px 14px;
  border-radius: 100px;
}

/* Hero image stack */
.hero-visual {
  position: relative;
  height: 100%;
  min-height: 480px;
}

.hero-img-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-img-primary {
  width: 100%;
  height: 640px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-img-secondary {
  position: absolute;
  bottom: 40px;
  left: -40px;
  width: 280px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--slate-900);
}

.hero-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--teal-600);
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(40px);
}

/* ========== ABOUT ========== */
.about {
  padding: 100px 0;
  background: #ffffff;
}

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

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-content .section-title { margin-bottom: 20px; }
.about-content p {
  color: var(--slate-600);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-family: var(--font-display), Georgia, serif;
  font-size: 2.25rem;
  color: var(--teal-600);
  line-height: 1;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* ========== MENU ========== */
.menu {
  padding: 100px 0;
  background: var(--slate-50);
}

.menu-eyebrow { text-align: center; }
.menu-title {
  text-align: center;
  margin-bottom: 12px;
}
.menu > .container > .section-subtitle {
  text-align: center;
  margin: 0 auto 56px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.menu-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  transition: all var(--transition);
}
.menu-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--teal-200);
  transform: translateY(-2px);
}

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

.menu-card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-md);
  color: var(--teal-600);
  flex-shrink: 0;
}

.menu-card-title {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.375rem;
  color: var(--slate-900);
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--slate-200);
}
.menu-list li:last-child { border-bottom: none; padding-bottom: 0; }

.menu-item-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--slate-800);
}
.menu-item-desc {
  font-size: 0.875rem;
  color: var(--slate-500);
  text-align: right;
  flex-shrink: 0;
  max-width: 220px;
  line-height: 1.4;
}

.menu-note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--slate-500);
  font-style: italic;
}

/* ========== GALLERY ========== */
.gallery {
  padding: 100px 0;
  background: #ffffff;
}

.gallery-eyebrow { text-align: center; }
.gallery-title {
  text-align: center;
  margin-bottom: 56px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item--wide {
  grid-column: span 7;
  grid-row: span 2;
}
.gallery-item:not(.gallery-item--wide) {
  grid-column: span 5;
}

/* ========== VISIT ========== */
.visit {
  padding: 100px 0;
  background: var(--slate-800);
  color: #ffffff;
}

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

.visit-title { color: #ffffff; }
.visit-desc {
  color: var(--slate-400);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 460px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.visit-detail {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.visit-detail-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: var(--radius-md);
  color: var(--teal-400);
  flex-shrink: 0;
}

.visit-detail strong {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 4px;
  font-weight: 600;
}
.visit-detail p {
  color: var(--slate-300);
  font-size: 1rem;
  line-height: 1.6;
}
.visit-detail a {
  color: var(--slate-300);
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.3);
  text-underline-offset: 3px;
}
.visit-detail a:hover { color: var(--teal-400); text-decoration-color: var(--teal-400); }

/* Form */
.visit-form-wrap {
  position: sticky;
  top: 100px;
}

.visit-form-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.5rem;
  color: var(--slate-900);
  margin-bottom: 8px;
}
.form-subtitle {
  font-size: 0.9375rem;
  color: var(--slate-500);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}
.optional {
  font-weight: 400;
  color: var(--slate-400);
  font-size: 0.8125rem;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--slate-800);
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal-500);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-400);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  text-align: center;
  padding: 32px 16px;
}
.form-success svg {
  margin: 0 auto 16px;
}
.form-success h4 {
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.375rem;
  color: var(--slate-900);
  margin-bottom: 8px;
}
.form-success p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.6;
}

/* ========== MAP ========== */
.map-section {
  border-top: 1px solid var(--slate-200);
}
.map-container iframe {
  display: block;
  width: 100%;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--slate-400);
  max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--slate-400);
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-400); }

.footer-contact p {
  font-size: 0.9375rem;
  line-height: 1.75;
}
.footer-contact a {
  color: var(--slate-300);
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.3);
  text-underline-offset: 3px;
}
.footer-contact a:hover { color: var(--teal-400); text-decoration-color: var(--teal-400); }

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 24px 0;
}
.footer-bottom p {
  font-size: 0.875rem;
  color: var(--slate-500);
  text-align: center;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .hero-img-primary { height: 520px; }
  .about-grid { gap: 40px; }
  .menu-grid { gap: 20px; }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 0 60px;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image { order: -1; }
  .about-image img { height: 320px; }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item--wide { grid-column: span 2; grid-row: span 1; }
  .gallery-item:not(.gallery-item--wide) { grid-column: span 1; }
  .gallery-item { height: 220px; }

  .visit-grid { grid-template-columns: 1fr; }
  .visit-form-wrap { position: static; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 24px;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .main-nav a:not(.btn) {
    display: block;
    padding: 12px 14px;
  }
  .main-nav .btn {
    text-align: center;
    margin-top: 8px;
  }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding-top: 72px; }
  .hero-headline { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }

  .about-stats { flex-direction: column; gap: 24px; }

  .form-row { grid-template-columns: 1fr; }
  .visit-form-card { padding: 28px; }

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

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .menu-card { padding: 24px; }
  .menu-item-desc { max-width: 160px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
