/* Google Fonts are loaded via <link> in HTML for optimal render performance */

/* ============================================================
   CSS VARIABLES - A Prime Dinners Design System
   ============================================================ */
:root {
  --black:       #0C0A09;
  --black-soft:  #1C1917;
  --black-mid:   #292524;
  --stone:       #6B6560;
  --stone-light: #928B85;
  --gold:        #CA8A04;
  --gold-light:  #EAB308;
  --gold-dim:    #92400E;
  --cream:       #FAFAF9;
  --cream-warm:  #F5F0E8;
  --white:       #FFFFFF;

  --font-serif: 'Cormorant', Georgia, serif;
  --font-sans:  'Montserrat', sans-serif;

  --nav-height: 80px;
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-to-content {
  position: absolute;
  top: -9999px;
  left: 0;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }

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

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

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

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   GRAIN TEXTURE OVERLAY
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.75;
  color: var(--stone-light);
}

.text-gold   { color: var(--gold); }
.text-cream  { color: var(--cream); }
.text-italic { font-style: italic; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(12, 10, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(202, 138, 4, 0.15);
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cream);
  cursor: pointer;
}

.nav-logo span { color: var(--gold); }

.nav-logo-img {
  display: block;
  height: 60px;
  width: auto;
  object-fit: contain;
  padding: 6px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-light);
  transition: color var(--transition);
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active { color: var(--cream); }

.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black) !important;
  background: var(--gold);
  padding: 0.65rem 1.5rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

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

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

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: var(--black);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 999;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--cream);
  transition: color var(--transition);
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  padding: 1rem 2.5rem;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(202, 138, 4, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  padding: 0.9rem 2.5rem;
  border: 1px solid rgba(202, 138, 4, 0.5);
}

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

/* ============================================================
   SECTION LAYOUTS
   ============================================================ */
.section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.section-subtitle {
  max-width: 540px;
  font-size: 1rem;
  color: var(--stone-light);
  line-height: 1.8;
  margin-bottom: 3rem;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  height: 45vh;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.page-hero:hover .page-hero-bg { transform: scale(1); }

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.95) 30%, rgba(12, 10, 9, 0.4) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--cream);
}

/* ============================================================
   GOLD LINE ACCENT
   ============================================================ */
.gold-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(202, 138, 4, 0.4), transparent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(202, 138, 4, 0.1);
  padding: 5rem 0 2.5rem;
}

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  max-width: 280px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--cream);
}

.footer-logo span { color: var(--gold); }

.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--stone-light);
  transition: color var(--transition);
  cursor: pointer;
}

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

.footer-contact p {
  font-size: 0.875rem;
  color: var(--stone-light);
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--stone-light);
  transition: color var(--transition);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(202, 138, 4, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-light);
  transition: all var(--transition);
  cursor: pointer;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(202, 138, 4, 0.08);
}

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

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--stone);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-in.visible { opacity: 1; }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .page-hero-content { padding: 2rem 1.5rem; }
}

/* ============================================================
   GLOBAL FOCUS STYLES (WCAG 2.4.7)
   ============================================================ */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Form fields get a border-based focus instead */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-up, .fade-in { opacity: 1; transform: none; }
  .hero-scroll-line { animation: none; }
  .map-pin { animation: none; }
}

/* ============================================================
   SCREEN READER ONLY UTILITY
   ============================================================ */
.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;
}
