/* A.O.E Legal — brand tokens & base styles.
 * Tailwind v4 utility classes are provided by the CDN script (loaded from functions.php).
 * These CSS variables + base rules match the original React app 1:1.
 */

:root {
  --navy-deep: #0f1b3d;
  --navy: #1c2b5a;
  --gold: #c8a25b;
  --gold-soft: #e0c68a;
  --cream: #faf6ee;
  --background: #fdfaf3;
  --foreground: #17204a;
  --muted-foreground: #6a708a;
  --input: #e6e0d1;
  --border: #e6e0d1;
  --destructive: #b91c1c;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  letter-spacing: -0.01em;
  margin: 0;
}

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

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

button { font-family: inherit; cursor: pointer; }

/* Font family utility helpers (used by templates alongside Tailwind) */
.font-serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-sans  { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; }

/* Container helper — mirrors the React project's container-page utility */
.container-page {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
  max-width: 80rem;
}

/* Text helpers (matches original) */
.text-muted-foreground { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }
.text-destructive { color: var(--destructive); }
.border-input { border-color: var(--input); }
.bg-background { background-color: var(--background); }

/* White text utilities — explicitly defined so the CTA button and other
   navy-background elements remain readable even if the Tailwind CDN scan
   misses a class or loads slowly. */
.text-white { color: #ffffff; }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/85 { color: rgba(255, 255, 255, 0.85); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/75 { color: rgba(255, 255, 255, 0.75); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.text-white\/30 { color: rgba(255, 255, 255, 0.3); }
.text-white\/5 { color: rgba(255, 255, 255, 0.05); }

/* Hero slider */
.aoe-slide { transition: opacity 1s ease; }
.aoe-slide[data-active="false"] { opacity: 0; pointer-events: none; }
.aoe-slide[data-active="true"]  { opacity: 1; }
.aoe-slide-content { transition: opacity .7s ease, transform .7s ease; }
.aoe-slide-content[data-active="false"] { opacity: 0; transform: translateY(1rem); position: absolute; pointer-events: none; }
.aoe-slide-content[data-active="true"]  { opacity: 1; transform: translateY(0); position: relative; }

/* Focus rings */
:where(input, select, textarea):focus { outline: none; border-color: var(--gold); }

/* Header scroll state & WordPress Admin Bar offset */
.aoe-header { transition: background-color .3s ease, border-color .3s ease; }
.aoe-header[data-scrolled="true"] {
  background-color: color-mix(in oklab, var(--navy-deep) 95%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid color-mix(in oklab, var(--gold) 20%, transparent);
}
body.admin-bar .aoe-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .aoe-header {
    top: 46px;
  }
}

/* Desktop / mobile nav visibility — CSS fallback so nav is not hidden
   if Tailwind CDN is slow or fails to process lg: responsive classes. */
.aoe-desktop-nav {
  display: none;
}
@media (min-width: 1024px) {
  .aoe-desktop-nav {
    display: flex !important;
  }
  [data-aoe-menu-toggle] {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  [data-aoe-menu-toggle] {
    display: inline-flex;
  }
}

/* Nav menu styling fallback & WP menu fixes */
.aoe-header nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.aoe-header nav ul li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.aoe-header nav ul li a,
.aoe-header nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: color 0.2s ease;
  text-decoration: none;
}
.aoe-header nav ul li a:hover,
.aoe-header nav a:hover,
.aoe-header nav ul li.current-menu-item > a,
.aoe-header nav ul li.current_page_item > a,
.aoe-header nav ul li.current-menu-ancestor > a {
  color: var(--gold);
}

.aoe-mobile-menu nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.aoe-mobile-menu nav ul li {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.aoe-mobile-menu nav ul li a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
}
.aoe-mobile-menu nav ul li a:hover,
.aoe-mobile-menu nav ul li.current-menu-item > a {
  color: var(--gold);
}

/* Booking calendar (very lightweight, styled to match) */
.aoe-cal { display: inline-block; font-size: 14px; color: var(--navy-deep); }
.aoe-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.aoe-cal-head button {
  background: transparent; border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
  width: 32px; height: 32px; display: grid; place-items: center; color: var(--navy-deep);
}
.aoe-cal-head button:hover { border-color: var(--gold); color: var(--gold); }
.aoe-cal-title { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; }
.aoe-cal-grid { display: grid; grid-template-columns: repeat(7, 40px); gap: 4px; }
.aoe-cal-dow { text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-foreground); padding: 6px 0; }
.aoe-cal-day {
  height: 40px; display: grid; place-items: center; border: 1px solid transparent; cursor: pointer;
  color: var(--navy-deep); background: transparent; font: inherit;
}
.aoe-cal-day:hover:not(:disabled) { border-color: color-mix(in oklab, var(--gold) 50%, transparent); }
.aoe-cal-day[data-selected="true"] { background: var(--navy-deep); color: var(--gold); border-color: var(--gold); }
.aoe-cal-day:disabled { color: color-mix(in oklab, var(--navy-deep) 25%, transparent); cursor: not-allowed; }
.aoe-cal-day[data-outside="true"] { color: color-mix(in oklab, var(--navy-deep) 20%, transparent); }

/* Mobile menu hidden helper (JS toggles data-open) */
.aoe-mobile-menu[data-open="false"] { display: none; }

