/* ============================================
   The BiSCUiT Coffeehouse — Styles
   Palette: Deep Navy (#1a2744) + Warm Gold (#c8963e)
   Fonts: Playfair Display (headlines) + Inter (body)
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a2744;
  background-color: #fdf8f0;
  overflow-x: hidden;
  -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, ol {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #1a2744;
  color: #f5f0e8;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  font-weight: 500;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.15;
  color: #1a2744;
}

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8963e;
  margin-bottom: 1rem;
}

.section-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.section-headline em {
  font-style: italic;
  color: #1a2744;
}

.text-gold {
  color: #c8963e;
}

.section-sub {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 520px;
  line-height: 1.7;
}

/* ---------- ICON ---------- */
.icon {
  flex-shrink: 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-gold {
  background-color: #c8963e;
  color: #1a2744;
  border: 2px solid #c8963e;
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background-color: #b8872e;
  border-color: #b8872e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 150, 62, 0.3);
}

.btn-outline-light {
  background-color: transparent;
  color: #f5f0e8;
  border: 2px solid rgba(245, 240, 232, 0.5);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  border-color: #f5f0e8;
  background-color: rgba(245, 240, 232, 0.1);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background-color: transparent;
  color: #1a2744;
  border: 2px solid #1a2744;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background-color: #1a2744;
  color: #f5f0e8;
  transform: translateY(-2px);
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(26, 39, 68, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #1a2744;
  color: #c8963e;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 10px;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a2744;
  line-height: 1.2;
}

.logo-wordmark em {
  font-style: italic;
  color: #c8963e;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a2744;
  border-radius: 6px;
  transition: background-color 0.2s, color 0.2s;
}

.main-nav a:hover {
  background-color: rgba(26, 39, 68, 0.06);
  color: #c8963e;
}

/* Nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.nav-toggle:hover {
  background-color: rgba(26, 39, 68, 0.06);
}

.hamburger {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1a2744;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger::before { top: 0; }
.hamburger span { top: 50%; transform: translateY(-50%); }
.hamburger::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #1a2744;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26, 39, 68, 0.92) 0%,
    rgba(26, 39, 68, 0.75) 40%,
    rgba(200, 150, 62, 0.3) 100%
  );
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    transparent 0%,
    rgba(26, 39, 68, 0.4) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8963e;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #f5f0e8;
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: italic;
  color: #f5f0e8;
}

.hero-headline .text-gold {
  color: #c8963e;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(245, 240, 232, 0.8);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.7);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245, 240, 232, 0.5);
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.7); }
}

/* ---------- ABOUT ---------- */
.about {
  padding: 7rem 0;
  background-color: #fdf8f0;
}

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

.about-images {
  position: relative;
}

.img-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 39, 68, 0.15);
}

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

.img-secondary {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 55%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(26, 39, 68, 0.2);
  border: 4px solid #fdf8f0;
}

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

.img-badge {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  width: 90px;
  height: 90px;
  background-color: #1a2744;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.3);
}

.badge-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c8963e;
  text-align: center;
  line-height: 1.3;
}

.about-content .section-headline {
  margin-bottom: 1.5rem;
}

.about-content p {
  color: #4a5568;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(26, 39, 68, 0.1);
}

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

.stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a2744;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: rgba(26, 39, 68, 0.15);
}

/* ---------- MENU ---------- */
.menu {
  padding: 7rem 0;
  background-color: #1a2744;
}

.menu .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.menu .section-headline {
  color: #f5f0e8;
}

.menu .section-headline em {
  color: #f5f0e8;
}

.menu .section-sub {
  color: rgba(245, 240, 232, 0.65);
  margin: 0 auto;
}

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

.menu-card {
  background-color: rgba(245, 240, 232, 0.05);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.menu-card-body {
  padding: 2rem;
}

.menu-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #f5f0e8;
}

.menu-card-desc {
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

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

.menu-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.85);
}

.menu-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #c8963e;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 7rem 0;
  background-color: #fdf8f0;
}

.gallery .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1.25rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(26, 39, 68, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

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

.gallery-item--tall {
  grid-column: span 6;
  height: 400px;
}

.gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
  height: 280px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 7rem 0;
  background-color: #f5f0e8;
}

.testimonials .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background-color: #fdf8f0;
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 8px 30px rgba(26, 39, 68, 0.06);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.quote-mark {
  color: #c8963e;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-style: normal;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a2744;
  letter-spacing: 0.02em;
}

/* ---------- VISIT ---------- */
.visit {
  padding: 7rem 0;
  background-color: #fdf8f0;
}

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

.visit-description {
  font-size: 1.05rem;
  color: #4a5568;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.visit-detail {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
}

.visit-detail dt {
  width: 44px;
  height: 44px;
  background-color: #1a2744;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8963e;
  flex-shrink: 0;
}

.visit-detail dd {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.7;
}

.visit-detail dd a {
  color: #1a2744;
  font-weight: 600;
  transition: color 0.2s;
}

.visit-detail dd a:hover {
  color: #c8963e;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-size: 0.95rem;
}

.hours-row span:first-child {
  font-weight: 500;
  color: #1a2744;
}

.hours-row span:last-child {
  color: #718096;
}

.visit-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.visit-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 39, 68, 0.12);
  height: 100%;
  min-height: 450px;
}

.map-placeholder {
  height: 100%;
  min-height: 450px;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  display: block;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background-color: #1a2744;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-brand .logo-mark {
  width: 52px;
  height: 52px;
  font-size: 1.75rem;
}

.footer-brand .logo-wordmark {
  font-size: 1.15rem;
  color: #f5f0e8;
}

.footer-brand .logo-wordmark em {
  color: #c8963e;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.7;
  max-width: 300px;
}

.footer-nav h4,
.footer-contact h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8963e;
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.65);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #c8963e;
}

.footer-contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.6;
}

.footer-contact a {
  color: #c8963e;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #d4a84f;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.35);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-grid,
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-images {
    max-width: 500px;
  }

  .img-secondary {
    right: -1rem;
    bottom: -1.5rem;
  }

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

  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 12;
    height: 280px;
  }

  .gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
    grid-column: span 6;
    height: 240px;
  }

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

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

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

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background-color: #fdf8f0;
    padding: 5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(26, 39, 68, 0.15);
    z-index: 99;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .main-nav a {
    padding: 0.875rem 1rem;
    font-size: 1.05rem;
    border-radius: 8px;
  }

  .main-nav .btn-gold {
    text-align: center;
    justify-content: center;
    margin-top: 1rem;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(26, 39, 68, 0.5);
    z-index: 98;
  }

  .nav-overlay.active {
    display: block;
  }

  .hero-content {
    padding: 7rem 1.5rem 5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .about-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 12;
    height: 240px;
  }

  .gallery-item:not(.gallery-item--wide):not(.gallery-item--tall) {
    grid-column: span 12;
    height: 220px;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.125rem;
  }

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

  .img-badge {
    width: 70px;
    height: 70px;
    top: -1rem;
    left: -1rem;
  }

  .badge-text {
    font-size: 0.7rem;
  }

  .img-secondary {
    width: 60%;
    right: -0.75rem;
    bottom: -1rem;
  }
}

/* ---------- 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;
  }

  .menu-card:hover,
  .testimonial-card:hover {
    transform: none;
  }

  .menu-card:hover .menu-card-img img,
  .gallery-item:hover img {
    transform: none;
  }
}
