/* ========================================================================
   Base Styles – Prahalis Luxury Restaurant
   Luxury minimal, light ivory / cream, champagne gold accents
   ======================================================================== */

/* ========================================================================
   1) CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================================================== */
:root {
  /* Color Palette -------------------------------------------------------- */
  --color-background: #fdfbf7; /* light ivory base */
  --color-background-alt: #f7f2ea; /* soft cream for sections */
  --color-surface: #ffffff; /* cards, overlays */
  --color-surface-elevated: #fbf8f2;

  --color-text: #18120c; /* deep espresso */
  --color-text-muted: #7a6e61;
  --color-border-subtle: #e3d8c7;
  --color-border-soft: rgba(0, 0, 0, 0.06);

  --color-primary: #c8a66a; /* champagne gold */
  --color-primary-soft: rgba(200, 166, 106, 0.12);
  --color-primary-strong: #b28c4b;

  --color-success: #3c7c5b;
  --color-warning: #c88f3a;
  --color-danger: #b6463d;

  --gray-50: #faf7f2;
  --gray-100: #f1e9dd;
  --gray-200: #e0d3c0;
  --gray-300: #c8b49a;
  --gray-400: #a89179;
  --gray-500: #8b7258;
  --gray-600: #705843;
  --gray-700: #594433;
  --gray-800: #3c2d22;
  --gray-900: #231811;

  /* Typography ----------------------------------------------------------- */
  --font-family-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-family-serif: "Cormorant Garamond", "Playfair Display", "Times New Roman", serif;
  --font-family-mono: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.375rem;  /* 22px */
  --font-size-2xl: 1.75rem;  /* 28px */
  --font-size-3xl: 2.25rem;  /* 36px */
  --font-size-4xl: 3rem;     /* 48px */
  --font-size-hero: clamp(2.5rem, 4vw, 3.5rem);

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-default: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing Scale (0–96px) ---------------------------------------------- */
  --space-0: 0;
  --space-4: 0.25rem;  /* 4px */
  --space-8: 0.5rem;   /* 8px */
  --space-12: 0.75rem; /* 12px */
  --space-16: 1rem;    /* 16px */
  --space-20: 1.25rem; /* 20px */
  --space-24: 1.5rem;  /* 24px */
  --space-32: 2rem;    /* 32px */
  --space-40: 2.5rem;  /* 40px */
  --space-48: 3rem;    /* 48px */
  --space-56: 3.5rem;  /* 56px */
  --space-64: 4rem;    /* 64px */
  --space-80: 5rem;    /* 80px */
  --space-96: 6rem;    /* 96px */

  /* Radius --------------------------------------------------------------- */
  --radius-none: 0;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows -------------------------------------------------------------- */
  --shadow-soft: 0 18px 45px rgba(12, 8, 4, 0.07);
  --shadow-soft-up: 0 -12px 35px rgba(0, 0, 0, 0.04);
  --shadow-focus: 0 0 0 1px rgba(0, 0, 0, 0.02), 0 0 0 3px rgba(200, 166, 106, 0.4);

  /* Transitions & Motion ------------------------------------------------- */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 320ms ease;
  --transition-bezier-soft: 220ms cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Layout --------------------------------------------------------------- */
  --container-max-width: 1200px;
  --container-max-width-wide: 1440px;
  --header-height-mobile: 64px;
  --header-height-desktop: 84px;
}

/* ========================================================================
   2) RESET / NORMALIZE
   ======================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: none;
  background: none;
  padding: 0;
}

textarea {
  resize: vertical;
}

:where(a) {
  text-decoration: none;
  color: inherit;
}

:where(table) {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove tap highlight on mobile (while keeping focus-visible outlines) */
html {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* ========================================================================
   3) BASE TYPOGRAPHY & GLOBAL ELEMENTS
   ======================================================================== */
body {
  min-height: 100vh;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-default);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

/* Headings --------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  font-weight: 500;
  line-height: var(--line-height-tight);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-hero);
  margin-bottom: var(--space-24);
}

h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-20);
}

h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-16);
}

h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-12);
}

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
}

h6 {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
}

p {
  margin-bottom: var(--space-16);
  color: var(--color-text);
}

p.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
}

small {
  font-size: var(--font-size-xs);
}

strong {
  font-weight: 600;
}

/* Links ------------------------------------------------------------------ */
a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-base),
              opacity var(--transition-base),
              text-decoration-color var(--transition-base);
}

a:hover {
  color: var(--color-primary-strong);
}

a:active {
  opacity: 0.9;
}

/* Global Sections & Layout ----------------------------------------------- */
section {
  padding-block: var(--space-48);
}

@media (min-width: 768px) {
  section {
    padding-block: var(--space-64);
  }
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-32) 0;
}

/* ========================================================================
   4) ACCESSIBILITY & MOTION
   ======================================================================== */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid transparent;
  box-shadow: var(--shadow-focus);
}

[tabindex="-1"]:focus {
  outline: none !important;
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ========================================================================
   5) UTILITIES
   ======================================================================== */

/* Container -------------------------------------------------------------- */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-16);
  max-width: min(100%, var(--container-max-width));
}

.container--wide {
  max-width: min(100%, var(--container-max-width-wide));
}

/* Layout Utilities ------------------------------------------------------- */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-24);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-24);
}

@media (max-width: 767.98px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.text-right {
  text-align: right;
}

.text-muted {
  color: var(--color-text-muted);
}

.w-full {
  width: 100%;
}

.mx-auto {
  margin-inline: auto;
}

.mt-0 { margin-top: 0; }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }
.mt-32 { margin-top: var(--space-32); }
.mt-40 { margin-top: var(--space-40); }
.mt-48 { margin-top: var(--space-48); }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: var(--space-16); }
.mb-24 { margin-bottom: var(--space-24); }
.mb-32 { margin-bottom: var(--space-32); }
.mb-40 { margin-bottom: var(--space-40); }
.mb-48 { margin-bottom: var(--space-48); }

/* Screen Reader Only ----------------------------------------------------- */
.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;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Background & Texture Helpers ------------------------------------------ */
.bg-ivory {
  background-color: var(--color-background);
}

.bg-cream {
  background-color: var(--color-background-alt);
}

.bg-surface {
  background-color: var(--color-surface);
}

.border-subtle {
  border: 1px solid var(--color-border-subtle);
}

/* ========================================================================
   6) COMPONENTS
   ======================================================================== */

/* 6.1 Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding-inline: 1.75rem;
  padding-block: 0.72rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-family-sans);
  font-size: var(--font-size-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-bezier-soft),
              color var(--transition-bezier-soft),
              border-color var(--transition-bezier-soft),
              box-shadow var(--transition-bezier-soft),
              transform var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #d6b880, #c8a66a);
  color: #22170e;
  border-color: rgba(200, 166, 106, 0.8);
  box-shadow: 0 12px 30px rgba(115, 90, 46, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e1c691, #d1b276);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(98, 77, 39, 0.32);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(80, 63, 33, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: rgba(200, 166, 106, 0.7);
  border-color: rgba(200, 166, 106, 0.7);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--color-primary-soft);
  border-color: var(--color-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.btn-sm {
  padding-inline: 1.25rem;
  padding-block: 0.6rem;
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding-inline: 2.25rem;
  padding-block: 0.9rem;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.btn:focus-visible {
  box-shadow: var(--shadow-focus);
}

/* 6.2 Form Elements ------------------------------------------------------ */
label {
  display: block;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(255, 255, 255, 0.96);
  color: var(--color-text);
  font-size: var(--font-size-md);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(200, 166, 106, 0.9);
  box-shadow: 0 0 0 1px rgba(200, 166, 106, 0.25);
  background-color: #ffffff;
}

.input[disabled],
select[disabled],
textarea[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: rgba(244, 238, 230, 0.7);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

/* 6.3 Cards -------------------------------------------------------------- */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-24);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.card--soft {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), var(--color-surface));
  border-radius: var(--radius-lg);
}

.card-header {
  margin-bottom: var(--space-16);
}

.card-title {
  margin: 0 0 var(--space-8) 0;
}

.card-meta {
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.card-body {
  font-size: var(--font-size-md);
}

/* 6.4 Hero / Fullscreen Visual Sections --------------------------------- */
.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background-color: #15100b;
  overflow: hidden;
}

.hero-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 60%),
              radial-gradient(circle at bottom right, rgba(200, 166, 106, 0.22), transparent 62%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(9, 6, 3, 0.9) 0%, rgba(9, 6, 3, 0.6) 45%, rgba(9, 6, 3, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-inline: var(--space-16);
  width: 100%;
  max-width: min(100%, var(--container-max-width));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--font-size-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-16);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  flex: 1 1 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7));
}

.hero-title {
  font-family: var(--font-family-serif);
  font-size: clamp(2.5rem, 4.3vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-16);
  color: #fff;
}

.hero-subtitle {
  max-width: 40rem;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-32);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}

/* 6.5 Section Title Styling --------------------------------------------- */
.section-eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.section-heading {
  margin-bottom: var(--space-16);
}

.section-description {
  max-width: 42rem;
  color: var(--color-text-muted);
}

/* 6.6 Simple Carousel Shell (for reviews / gallery thumbnails) ---------- */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: var(--space-24);
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding-bottom: var(--space-16);
}

.carousel-item {
  scroll-snap-align: start;
  flex: 0 0 80%;
}

@media (min-width: 768px) {
  .carousel-item {
    flex-basis: 45%;
  }
}

.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(200, 166, 106, 0.7);
  background-color: transparent;
  cursor: pointer;
  transition: background-color var(--transition-base), border-color var(--transition-base), transform var(--transition-fast);
}

.carousel-dot.is-active {
  background-color: var(--color-primary);
  border-color: var(--color-primary-strong);
  transform: scale(1.1);
}

/* 6.7 Footer Basics ------------------------------------------------------ */
.site-footer {
  background: #13100d;
  color: rgba(255, 255, 255, 0.86);
  padding-block: var(--space-40);
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--color-primary);
}

.footer-disclaimer {
  margin-top: var(--space-24);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.68);
}

/* ========================================================================
   7) HEADER NAVIGATION (STRUCTURAL BASE)
   ======================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(253, 251, 247, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(227, 216, 199, 0.8);
}

.site-header-inner {
  height: var(--header-height-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.site-logo {
  font-family: var(--font-family-serif);
  font-size: 1.25rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-primary {
  display: none;
}

.nav-primary a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: 0.25rem;
  font-size: var(--font-size-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 166, 106, 0.1), rgba(200, 166, 106, 1));
  transition: width var(--transition-base);
}

.nav-primary a:hover::after,
.nav-primary a[aria-current="page"]::after {
  width: 100%;
}

.nav-primary a[aria-current="page"] {
  color: var(--color-text);
}

.header-cta {
  display: none;
}

.header-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(200, 166, 106, 0.35);
  background-color: rgba(253, 251, 247, 0.9);
  cursor: pointer;
}

@media (min-width: 960px) {
  .site-header-inner {
    height: var(--header-height-desktop);
  }

  .nav-primary {
    display: flex;
    align-items: center;
    gap: var(--space-24);
  }

  .header-cta {
    display: inline-flex;
  }

  .header-toggle {
    display: none;
  }
}

/* ========================================================================
   8) MARBLE & GOLD DETAIL ACCENTS (SUBTLE)
   ======================================================================== */

.marble-band {
  position: relative;
  overflow: hidden;
}

.marble-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.85) 0, transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(200, 166, 106, 0.16) 0, transparent 55%),
    linear-gradient(135deg, rgba(228, 216, 198, 0.7), rgba(248, 242, 233, 0.6));
  opacity: 0.5;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.gold-divider {
  position: relative;
  height: 1px;
  width: 96px;
  margin-block: var(--space-16);
  background: linear-gradient(90deg, rgba(200, 166, 106, 0), rgba(200, 166, 106, 0.9), rgba(200, 166, 106, 0));
}

.gold-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-inline: 0.9rem;
  padding-block: 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(200, 166, 106, 0.45);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.75), rgba(253, 251, 247, 0.9));
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
