/* ═══════════════════════════════════════════
   San Juan Coffeehouse — Styles
   Palette: Burgundy #7B2D3B · Blush #E8C4C4 · Cream #FAF5F0
   ═══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lora', Georgia, serif;
  color: #2A1F1F;
  background: #FAF5F0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ── Utilities ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: #7B2D3B; color: #FAF5F0;
  padding: 8px 16px; border-radius: 0 0 8px 8px;
  z-index: 9999; font-size: 0.875rem;
}
.skip-link:focus { top: 0; }

/* ── Typography ── */
.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7B2D3B;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: #2A1F1F;
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic;
  color: #7B2D3B;
}
.section-subtitle {
  font-size: 1.1rem;
  color: #5C4A4A;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: #7B2D3B;
  color: #FAF5F0;
  border: 2px solid #7B2D3B;
}
.btn-primary:hover {
  background: #5E2230;
  border-color: #5E2230;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 45, 59, 0.25);
}
.btn-outline-light {
  background: transparent;
  color: #FAF5F0;
  border: 2px solid rgba(250, 245, 240, 0.6);
}
.btn-outline-light:hover {
  background: rgba(250, 245, 240, 0.1);
  border-color: #FAF5F0;
}
.btn-large { padding: 16px 40px; font-size: 0.9375rem; }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(42, 31, 31, 0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2A1F1F;
  line-height: 1.2;
}
.logo-text em {
  font-style: italic;
  font-weight: 400;
  color: #7B2D3B;
}

/* ── Nav ── */
.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2A1F1F;
  position: relative;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #7B2D3B;
  transition: width 0.3s ease;
}
.nav-link:hover { color: #7B2D3B; }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  background: #7B2D3B;
  color: #FAF5F0 !important;
  padding: 10px 22px;
  border-radius: 50px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: #5E2230;
  transform: translateY(-1px);
}

/* ── Mobile Toggle ── */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  align-items: center;
  justify-content: center;
}
.hamburger {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #2A1F1F;
  position: relative;
  transition: all 0.3s ease;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: #2A1F1F;
  left: 0;
  transition: all 0.3s ease;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.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 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #2A1F1F;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 31, 31, 0.7) 0%,
    rgba(123, 45, 59, 0.5) 50%,
    rgba(42, 31, 31, 0.8) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 24px 80px;
  max-width: 800px;
}
.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #E8C4C4;
  margin-bottom: 24px;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  color: #FAF5F0;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: #E8C4C4;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(250, 245, 240, 0.8);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(250, 245, 240, 0.5);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════ */
.features {
  padding: 100px 0;
  background: #FAF5F0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(123, 45, 59, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(123, 45, 59, 0.08);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(123, 45, 59, 0.06);
}
.feature-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #2A1F1F;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 0.9375rem;
  color: #5C4A4A;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   STORY
   ═══════════════════════════════════════════ */
.story {
  padding: 100px 0;
  background: #F5EDE8;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story-image-wrap {
  position: relative;
}
.story-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 16px;
}
.story-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  border: 3px solid #E8C4C4;
  border-radius: 16px;
  z-index: -1;
}
.story-content { padding: 8px 0; }
.story-content p {
  font-size: 1.0625rem;
  color: #5C4A4A;
  line-height: 1.8;
  margin-bottom: 20px;
}
.story-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(123, 45, 59, 0.12);
}
.story-signature span {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.125rem;
  color: #7B2D3B;
}

/* ═══════════════════════════════════════════
   MENU
   ═══════════════════════════════════════════ */
.menu {
  padding: 100px 0;
  background: #FAF5F0;
  text-align: center;
}
.menu > .container > .section-subtitle { margin-left: auto; margin-right: auto; }

/* Tabs */
.menu-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.menu-tab {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5C4A4A;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1.5px solid rgba(123, 45, 59, 0.15);
  transition: all 0.25s ease;
  background: transparent;
}
.menu-tab:hover {
  color: #7B2D3B;
  border-color: #7B2D3B;
}
.menu-tab.active {
  background: #7B2D3B;
  color: #FAF5F0;
  border-color: #7B2D3B;
}

/* Panels */
.menu-panel { display: none; }
.menu-panel.active { display: block; }
.menu-panel[hidden] { display: none; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: left;
}
.menu-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(123, 45, 59, 0.08);
}
.menu-item-header h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1875rem;
  font-weight: 600;
  color: #2A1F1F;
  margin-bottom: 4px;
}
.menu-item-desc {
  font-size: 0.9375rem;
  color: #5C4A4A;
  line-height: 1.6;
}
.menu-note {
  font-size: 0.875rem;
  color: #8A7070;
  font-style: italic;
  max-width: 520px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════ */
.gallery {
  padding: 100px 0 80px;
  background: #F5EDE8;
  text-align: center;
}
.gallery > .container > .section-subtitle { margin-left: auto; margin-right: auto; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 16px;
  margin-top: 48px;
}
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 2; }
.gallery-item:nth-child(2) { grid-column: 6 / 9; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 2; }
.gallery-item:nth-child(4) { grid-column: 1 / 4; grid-row: 2 / 3; }
.gallery-item:nth-child(5) { grid-column: 4 / 8; grid-row: 2 / 3; }
.gallery-item:nth-child(6) { grid-column: 8 / 13; grid-row: 2 / 3; }

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonials {
  padding: 100px 0;
  background: #7B2D3B;
  text-align: center;
  color: #FAF5F0;
}
.testimonials .section-eyebrow { color: #E8C4C4; }
.testimonials .section-title { color: #FAF5F0; }
.testimonials .section-title em { color: #E8C4C4; }

.testimonials-slider {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-card {
  min-width: 100%;
  padding: 0 20px;
}
.testimonial-quote {
  width: 40px;
  height: 40px;
  margin: 0 auto 24px;
  opacity: 0.6;
}
.testimonial-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.375rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
  color: #FAF5F0;
  margin-bottom: 28px;
}
.testimonial-author {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #E8C4C4;
}
.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.testimonial-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(250, 245, 240, 0.3);
  color: #FAF5F0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.testimonial-btn:hover {
  background: rgba(250, 245, 240, 0.1);
  border-color: rgba(250, 245, 240, 0.6);
}

/* ═══════════════════════════════════════════
   VISIT
   ═══════════════════════════════════════════ */
.visit {
  padding: 100px 0;
  background: #FAF5F0;
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.visit-info { max-width: 480px; }
.visit-details {
  margin: 32px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.visit-address,
.visit-phone,
.visit-hours {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  color: #5C4A4A;
  line-height: 1.7;
}
.visit-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.visit-phone-link {
  color: #7B2D3B;
  font-weight: 600;
  transition: color 0.25s ease;
}
.visit-phone-link:hover { color: #5E2230; }
.visit-hours { line-height: 1.9; }

.visit-map {
  border-radius: 16px;
  overflow: hidden;
  height: 420px;
  box-shadow: 0 12px 40px rgba(42, 31, 31, 0.1);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: #2A1F1F;
  color: rgba(250, 245, 240, 0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.logo-light .logo-text { color: #FAF5F0; }
.logo-light .logo-text em { color: #E8C4C4; }
.footer-links h4,
.footer-contact h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #E8C4C4;
  margin-bottom: 20px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 0.9375rem;
  color: rgba(250, 245, 240, 0.6);
  transition: color 0.25s ease;
}
.footer-links a:hover { color: #E8C4C4; }
.footer-contact p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 4px;
}
.footer-contact a {
  color: #E8C4C4;
  transition: color 0.25s ease;
}
.footer-contact a:hover { color: #FAF5F0; }
.footer-bottom {
  border-top: 1px solid rgba(250, 245, 240, 0.08);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  color: rgba(250, 245, 240, 0.35);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .story-grid { gap: 40px; }
  .gallery-grid {
    grid-template-rows: repeat(2, 220px);
  }
}

@media (max-width: 768px) {
  .nav { 
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 245, 240, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    box-shadow: 0 12px 32px rgba(42, 31, 31, 0.1);
  }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; gap: 20px; }
  .nav-toggle { display: flex; }

  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-card { padding: 32px 24px; }

  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-image-wrap img { height: 360px; }
  .story-accent { display: none; }

  .menu-grid { grid-template-columns: 1fr; }
  .menu-tabs { gap: 6px; }
  .menu-tab { padding: 10px 18px; font-size: 0.75rem; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 200px);
  }
  .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .gallery-item:nth-child(2) { grid-column: 1; grid-row: 2; }
  .gallery-item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery-item:nth-child(4) { grid-column: 1; grid-row: 3; }
  .gallery-item:nth-child(5) { grid-column: 2; grid-row: 3; }
  .gallery-item:nth-child(6) { grid-column: 1 / 3; grid-row: 3; }

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

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

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item:nth-child(n) { grid-column: 1; grid-row: auto; }
  .gallery-item img { height: 240px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-scroll { display: none; }
}
