/* ============================================
   Cafe An'Clair — 9th & Thomas
   Bold Editorial · Deep Navy + Warm Gold
   ============================================ */

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

:root {
  --navy-950: #0a1628;
  --navy-900: #1a2744;
  --navy-800: #243660;
  --navy-700: #2e4475;
  --gold-500: #c9952e;
  --gold-400: #d4a84b;
  --gold-300: #e2c06e;
  --gold-200: #f0d89a;
  --cream-50: #faf8f4;
  --cream-100: #f5f0e8;
  --cream-200: #ede5d8;
  --warm-gray: #8a7e72;
  --warm-gray-light: #b8afa5;
  --white: #ffffff;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--navy-900);
  background: var(--cream-50);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--navy-900);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 9999;
  font-size: 0.875rem;
  font-weight: 500;
}
.skip-link:focus {
  top: 16px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(212, 168, 75, 0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo-mark {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--gold-400);
  border: 1.5px solid var(--gold-400);
  padding: 4px 8px;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.625rem;
  color: var(--gold-400);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-400);
  transition: width 0.3s var(--ease-out-expo);
}

.main-nav a:hover {
  color: var(--gold-400);
}

.main-nav a::after {
  width: 100%;
}

.main-nav a:hover::after {
  width: 100%;
}

/* NAV TOGGLE */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: background 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out-expo);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

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

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold-400);
  color: var(--navy-950);
}

.btn--gold:hover {
  background: var(--gold-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 75, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ============================================
   SECTION HELPERS
   ============================================ */
.section-eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  color: var(--navy-900);
  margin-bottom: 24px;
}

.section-title--center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--warm-gray);
  max-width: 520px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/9120377/pexels-photo-9120377.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 22, 40, 0.88) 0%,
    rgba(26, 39, 68, 0.75) 50%,
    rgba(10, 22, 40, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-headline br {
  display: none;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin-bottom: 40px;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-400), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* ============================================
   STORY
   ============================================ */
.story {
  padding: 120px 0;
  background: var(--cream-50);
}

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

.story-image-wrap {
  overflow: hidden;
  border-radius: 4px;
}

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

.story-image-wrap:hover img {
  transform: scale(1.03);
}

.story-content .section-title {
  margin-bottom: 24px;
}

.story-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--warm-gray);
  margin-bottom: 20px;
}

.story-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--cream-200);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.25rem;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--warm-gray);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ============================================
   MENU
   ============================================ */
.menu {
  padding: 120px 0;
  background: var(--navy-900);
}

.menu .section-eyebrow {
  color: var(--gold-400);
}

.menu .section-title {
  color: var(--white);
}

.menu .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

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

.menu-card {
  background: var(--navy-800);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

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

.menu-card-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

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

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

.menu-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold-400);
  margin-bottom: 12px;
  line-height: 1.2;
}

.menu-card-body p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: 120px 0 80px;
  background: var(--cream-100);
}

.gallery .section-title {
  margin-bottom: 56px;
}

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

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
}

.gallery-item:nth-child(5) {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

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

/* ============================================
   VISIT
   ============================================ */
.visit {
  padding: 120px 0;
  background: var(--cream-50);
}

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

.visit-info .section-title {
  margin-bottom: 40px;
}

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

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

.visit-detail .icon {
  width: 24px;
  height: 24px;
  color: var(--gold-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.visit-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 4px;
}

.visit-detail span,
.visit-detail a {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy-900);
}

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

.visit-map {
  border-radius: 4px;
  overflow: hidden;
  min-height: 400px;
  box-shadow: 0 8px 32px rgba(26, 39, 68, 0.12);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 120px 0;
  background: var(--navy-900);
}

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

.contact-text .section-title {
  color: var(--white);
  margin-bottom: 20px;
}

.contact-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--white);
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: 2px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4a84b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--navy-800);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  font-size: 0.9375rem;
  color: var(--gold-400);
  text-align: center;
  padding: 16px;
  background: rgba(212, 168, 75, 0.1);
  border: 1px solid rgba(212, 168, 75, 0.3);
  border-radius: 2px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-950);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(212, 168, 75, 0.15);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .logo-mark {
  font-size: 0.875rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray-light);
  margin-left: 4px;
}

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

.footer-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.25s ease;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 32px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.25s ease;
}

.footer-bottom a:hover {
  color: var(--gold-400);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  }

  .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) {
  .story-grid {
    gap: 48px;
  }

  .menu-grid {
    gap: 24px;
  }

  .contact-inner {
    gap: 56px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 72px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s var(--ease-out-expo);
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .main-nav a {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

  .hero-headline {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .hero-headline br {
    display: initial;
  }

  .hero-content {
    padding-top: 120px;
  }

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

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

  .story {
    padding: 80px 0;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story-image-wrap {
    aspect-ratio: 4/3;
  }

  .story-stats {
    gap: 24px;
  }

  .menu {
    padding: 80px 0;
  }

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

  .gallery {
    padding: 80px 0 60px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 220px);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
  }

  .visit {
    padding: 80px 0;
  }

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

  .visit-map {
    min-height: 300px;
  }

  .contact {
    padding: 80px 0;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-nav {
    gap: 20px;
  }
}

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

  .hero {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 100px;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 220px);
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
  }
}
