/**
 * =============================================================================
 * NEXUS LIVING HUB — GLOBAL STYLESHEET
 * global.css
 *
 * Shared component styles consumed by every page.
 * All values reference custom properties from style-tokens.css.
 * Zero hardcoded hex colours, zero hardcoded pixel spacing.
 *
 * Table of Contents:
 *  00. Token Import
 *  01. CSS Reset & Base
 *  02. Base Typography
 *  03. Container
 *  04. Button System
 *  05. Card System
 *  06. Scroll Reveal Animations
 *  07. Navigation Bar
 *  08. Footer
 *  09. WhatsApp Sticky Button
 *  10. Enquiry Modal
 *  11. Cookie Banner
 *  12. Skip-to-Content
 *  13. Breadcrumbs
 *  14. Focus-Visible Accessibility
 *  15. Utility Classes
 *  16. Reduced Motion Override (MANDATORY — must stay last)
 * =============================================================================
 */


/* =============================================================================
   00. TOKEN IMPORT
   ============================================================================= */

@import './style-tokens.css';


/* =============================================================================
   01. CSS RESET & BASE
   Modern minimal reset — preserves useful browser defaults.
   ============================================================================= */

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

html {
  font-size: 100%;           /* 16px base — enables rem calculations */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;          /* prevents off-screen mobile nav from creating horizontal scroll */
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* body class toggled by mobile nav open state */
body.menu-open {
  overflow: hidden;
}

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

img {
  object-fit: cover;
}

ul,
ol {
  list-style: none;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

fieldset {
  border: none;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent-gold);
  border-radius: var(--radius-pill);
}

::selection {
  background: var(--color-accent-gold);
  color: var(--color-bg-dark);
}


/* =============================================================================
   02. BASE TYPOGRAPHY
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

h2 {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-snug);
}

h3 {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: var(--fw-medium);
  line-height: var(--lh-normal);
}

h4 {
  font-family: var(--font-heading);
  font-size: var(--h4-size);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-normal);
}

p {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text-primary);
  max-width: 70ch;
}

/* Lead paragraph — slightly larger, for intro sections */
p.lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: var(--lh-relaxed);
  color: var(--color-text-primary);
}

small,
.small {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  letter-spacing: var(--ls-wide);
}

/* Overline / eyebrow label above section headings */
.overline {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-gold-text); /* darkened from --color-accent-gold for WCAG AA on light bg */
  margin-bottom: var(--space-xs);
}

/* Gold horizontal rule accent below section headings */
.heading-accent {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent-gold);
  border-radius: var(--radius-pill);
  margin-top: var(--space-sm);
}

/* Centered heading + accent wrapper */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header .heading-accent {
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  margin: var(--space-sm) auto 0;
  max-width: 60ch;
  color: var(--color-text-muted);
}

a {
  color: var(--color-gold-text); /* darkened from --color-accent-gold for WCAG AA on light bg */
  transition: var(--transition-link);
}

a:hover {
  color: var(--color-cta);
}

/* Inline text links within body copy */
p a,
li a {
  text-decoration: underline;
  text-decoration-color: var(--color-gold-text);
  text-underline-offset: 3px;
}

p a:hover,
li a:hover {
  color: var(--color-cta);
  text-decoration-color: var(--color-cta);
}

strong {
  font-weight: var(--fw-semibold);
}

em {
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--color-accent-gold);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-style: italic;
  color: var(--color-accent-dark);
}

/* Reset blockquote default in component contexts that own their own styling. */
.testimonial-card__text,
.testimonial blockquote,
.testimonials blockquote {
  border-left: 0;
  padding-left: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-primary);
}


/* =============================================================================
   03. CONTAINER
   Source: CLAUDE.md §5.6
   ============================================================================= */

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.25rem; /* 20px mobile gutter */
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2.5rem; /* 40px tablet */
  }
}

@media (min-width: 1280px) {
  .container {
    padding-inline: 3rem;   /* 48px desktop */
  }
}

/* Narrow variant for editorial/blog content */
.container--narrow {
  max-width: 800px;
}

/* Wide variant for full-bleed-ish sections with some padding */
.container--wide {
  max-width: 1440px;
}


/* =============================================================================
   04. BUTTON SYSTEM
   Source: CLAUDE.md §4.3 (Jost, uppercase, letter-spacing)
   ============================================================================= */

/* Base button — applied to all variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-accent);
  font-size: var(--cta-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  padding: 0.8125rem 1.75rem;  /* 13px 28px */
  border: 2px solid transparent;
  transition: var(--transition-btn);
  line-height: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

/* ── Primary CTA — Warm Amber fill ────────────────────────────────────────── */
/* Self-contained: sessions 9-34 use bare class="btn-primary" without .btn base */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-accent);
  font-size: var(--cta-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  padding: 0.8125rem 1.75rem;
  border: 2px solid transparent;
  transition: var(--transition-btn);
  line-height: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--color-cta);
  color: var(--color-text-on-dark);
  border-color: var(--color-cta);
}

.btn-primary:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: var(--color-text-on-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Secondary CTA — Gold outline, transparent fill ──────────────────────── */
.btn-secondary {
  background-color: transparent;
  color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
}

.btn-secondary:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Ghost CTA — for use on dark backgrounds ──────────────────────────────── */
.btn-ghost {
  background-color: transparent;
  color: var(--color-text-on-dark);
  border-color: var(--color-text-on-dark);
}

.btn-ghost:hover {
  background-color: var(--color-text-on-dark);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
}

/* ── Dark fill variant ────────────────────────────────────────────────────── */
.btn-dark {
  background-color: var(--color-accent-dark);
  color: var(--color-text-on-dark);
  border-color: var(--color-accent-dark);
}

.btn-dark:hover {
  background-color: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Large variant ────────────────────────────────────────────────────────── */
.btn--lg {
  font-size: 0.9375rem;
  padding: 1rem 2.25rem;
}

/* ── Small variant ────────────────────────────────────────────────────────── */
.btn--sm {
  font-size: 0.75rem;
  padding: 0.625rem 1.25rem;
}

/* ── Icon suffix arrow animation ─────────────────────────────────────────── */
.btn .btn-arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}


/* =============================================================================
   05. CARD SYSTEM
   Source: CLAUDE.md §5.2 (shadows, rounded 8px)
   ============================================================================= */

.card {
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-card);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: var(--space-md);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--h3-size);
  font-weight: var(--fw-medium);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.card__description {
  font-size: var(--body-size);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-sm);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: gap 200ms ease, color 200ms ease;
}

.card__link:hover {
  gap: 0.625rem;
  color: var(--color-cta);
}

/* ── Badge / Tag pill ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-accent);
  font-size: 0.6875rem;  /* 11px */
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.badge--gold {
  background-color: var(--color-accent-gold);
  color: var(--color-bg-dark);
}

.badge--dark {
  background-color: var(--color-accent-dark);
  color: var(--color-text-on-dark);
}

.badge--green {
  background-color: var(--color-accent-green);
  color: var(--color-text-on-dark);
}

.badge--terra {
  background-color: var(--color-terracotta);
  color: var(--color-text-on-dark);
}

.badge--outline {
  background-color: transparent;
  border: 1px solid var(--color-accent-gold);
  color: var(--color-gold-text); /* darkened for WCAG AA on light bg */
}


/* =============================================================================
   06. SCROLL REVEAL ANIMATIONS
   Source: CLAUDE.md §15.1
   ============================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-reveal);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered siblings */
.reveal-stagger .reveal:nth-child(1) { transition-delay:  0ms; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: 150ms; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 300ms; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 450ms; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 600ms; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 750ms; }
.reveal-stagger .reveal:nth-child(7) { transition-delay: 900ms; }
.reveal-stagger .reveal:nth-child(8) { transition-delay:1050ms; }

/* Directional variants */
.reveal--left {
  transform: translateX(-30px);
}

.reveal--left.revealed {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal--right.revealed {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.92);
}

.reveal--scale.revealed {
  transform: scale(1);
}


/* =============================================================================
   07. NAVIGATION BAR
   Source: CLAUDE.md §11.1
   ============================================================================= */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 0;
  transition: var(--transition-nav);
}

/* Suppress nav transitions until the page has finished its first paint.
   Prevents a visible flash/blink when JS attaches nav-scrolled or when
   backdrop-filter paints in on slower devices. Removed on load via JS. */
html:not(.nav-ready) .site-nav,
html:not(.nav-ready) .site-nav * {
  transition: none !important;
}

/* Transparent state (on hero) */
.site-nav--transparent {
  background-color: transparent;
  box-shadow: none;
}

/* Solid state (after scroll 80px) */
.site-nav--scrolled,
.site-nav.nav-scrolled {
  background-color: var(--color-overlay-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Force-solid state — for pages with light-background heroes (services, about, contact) */
.site-nav.nav--force-solid {
  background-color: var(--color-overlay-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav.nav--force-solid .site-nav__logo-text {
  color: var(--color-accent-dark);
  transition: none !important;
}

.site-nav.nav--force-solid .site-nav__logo-mark {
  color: var(--color-accent-gold);
}

.site-nav.nav--force-solid .site-nav__link {
  color: var(--color-accent-dark);
  transition: none !important;
}

.site-nav.nav--force-solid .site-nav__link:hover,
.site-nav.nav--force-solid .site-nav__link.active {
  color: var(--color-accent-gold);
  transition: color 200ms ease !important;
}

.site-nav.nav--force-solid .site-nav__hamburger span {
  background-color: var(--color-accent-dark);
  transition: none !important;
}

.site-nav.nav--force-solid .lang-toggle__btn {
  color: var(--color-accent-dark);
  transition: none !important;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-inline: 1.25rem;
  max-width: 1280px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .site-nav__inner {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .site-nav__inner {
    padding-inline: 3rem;
  }
}

/* ── Logo ──────────────────────────────────────────────────────────────────── */
.site-nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  flex-shrink: 0;
}

.site-nav__logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-on-dark);
  letter-spacing: var(--ls-tight);
  transition: color 300ms ease;
  line-height: 1.2;
}

.site-nav.nav-scrolled .site-nav__logo-text {
  color: var(--color-accent-dark);
}

/* ── Desktop Navigation Links ────────────────────────────────────────────── */
.site-nav__links {
  display: none;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 1024px) {
  .site-nav__links {
    display: flex;
  }
}

.site-nav__link {
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 200ms ease;
}

.site-nav.nav-scrolled .site-nav__link {
  color: var(--color-accent-dark);
}

/* Sliding underline on hover */
.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-gold);
  border-radius: var(--radius-pill);
  transition: width 250ms ease;
}

.site-nav__link:hover::after,
.site-nav__link.active::after {
  width: 100%;
}

.site-nav__link:hover {
  color: var(--color-accent-gold);
}

.site-nav__link.active {
  color: var(--color-accent-gold);
}

/* ── Right-side controls ──────────────────────────────────────────────────── */
.site-nav__controls {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Language toggle pills */
.lang-toggle {
  display: none;
  align-items: center;
  gap: 2px;
  background-color: rgba(201, 169, 110, 0.15);
  border-radius: var(--radius-pill);
  padding: 3px;
}

@media (min-width: 1024px) {
  .lang-toggle {
    display: flex;
  }
}

.lang-toggle__btn {
  font-family: var(--font-accent);
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  color: var(--color-text-on-dark);
  transition: background-color 200ms ease, color 200ms ease;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.site-nav.nav-scrolled .lang-toggle__btn {
  color: var(--color-accent-dark);
}

.lang-toggle__btn.active,
.lang-toggle__btn:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-bg-dark);
}

/* CTA button */
.site-nav__cta {
  display: none;
}

@media (min-width: 768px) {
  .site-nav__cta {
    display: inline-flex;
  }
}

/* ── Hamburger Button (mobile) ───────────────────────────────────────────── */
.site-nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
}

@media (min-width: 1024px) {
  .site-nav__hamburger {
    display: none;
  }
}

.site-nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-on-dark);
  border-radius: var(--radius-pill);
  transition: transform 300ms ease, opacity 300ms ease, background-color 300ms ease;
  transform-origin: center;
}

.site-nav.nav-scrolled .site-nav__hamburger span {
  background-color: var(--color-accent-dark);
}

/* Hamburger → X animation */
.site-nav.nav-open .site-nav__hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.nav-open .site-nav__hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-nav.nav-open .site-nav__hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Overlay Menu ─────────────────────────────────────────────────── */
.site-nav__mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100vw, 400px);
  background-color: var(--color-bg-dark);
  z-index: calc(var(--z-nav) - 1);
  display: flex;
  flex-direction: column;
  padding: calc(72px + var(--space-xl)) var(--space-xl) var(--space-xl);
  transform: translateX(100%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.site-nav.nav-open .site-nav__mobile-menu {
  transform: translateX(0);
}

.site-nav__mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text-on-dark);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav__mobile-close:hover,
.site-nav__mobile-close:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-accent-gold);
  outline: none;
}

/* Overlay scrim */
.site-nav__mobile-menu::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.site-nav.nav-open .site-nav__mobile-menu::before {
  opacity: 1;
  pointer-events: auto;
}

.site-nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-nav__mobile-link {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: var(--fw-semibold);
  color: var(--color-text-on-dark);
  text-decoration: none;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(201, 169, 110, 0.15);
  transition: color 200ms ease, padding-left 200ms ease;
  display: block;
}

.site-nav__mobile-link:hover,
.site-nav__mobile-link.active {
  color: var(--color-accent-gold);
  padding-left: var(--space-sm);
}

.site-nav__mobile-cta {
  margin-top: var(--space-xl);
}

.site-nav__mobile-cta .btn {
  width: 100%;
  justify-content: center;
}

/* Mobile language toggle */
.site-nav__mobile-lang {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.site-nav__mobile-lang .lang-toggle__btn {
  font-size: var(--small-size);
}


/* =============================================================================
   08. FOOTER
   Source: CLAUDE.md §11.2
   ============================================================================= */

.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding-top: var(--space-3xl);
  padding-bottom: 0;
}

/* SVG curved section divider above footer */
.footer-divider {
  display: block;
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}

.footer-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  align-items: start; /* prevent column stretching — each col aligns to its own top */
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr; /* balanced col widths */
    gap: var(--space-xl);
    align-items: start;
  }
}

/* ── Column 1: Brand ─────────────────────────────────────────────────────── */
.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  text-decoration: none;
}

.footer-brand__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-on-dark);
  letter-spacing: var(--ls-tight);
}

.footer-brand__tagline {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  letter-spacing: var(--ls-wide);
  color: var(--color-accent-gold);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.footer-brand__description {
  font-size: var(--small-size);
  color: rgba(245, 240, 232, 0.7);
  line-height: var(--lh-relaxed);
  max-width: 30ch;
  margin-bottom: var(--space-md);
}

/* Social icons */
.footer-social {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-md); /* consistent spacing below tagline */
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--color-text-on-dark);
  font-size: 0.875rem;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.footer-social__link:hover {
  background-color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
  color: var(--color-bg-dark);
}

/* ── Column 2 & 3: Link columns ───────────────────────────────────────────── */
.footer-links__heading {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-md);
}

.footer-links__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links__item a {
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.75);
  text-decoration: none;
  transition: color 200ms ease, padding-left 200ms ease;
  display: inline-block;
}

.footer-links__item a:hover {
  color: var(--color-accent-gold);
  padding-left: 4px;
}

/* ── Column 4: Contact block ──────────────────────────────────────────────── */
.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-contact__icon {
  color: var(--color-accent-gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact__detail {
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.75);
  line-height: var(--lh-relaxed);
}

.footer-contact__detail a {
  color: rgba(245, 240, 232, 0.75);
  text-decoration: none;
  transition: color 200ms ease;
}

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

.footer-whatsapp-cta {
  margin-top: var(--space-md);
}

/* ── Footer Bottom Bar ────────────────────────────────────────────────────── */
/* Extra bottom padding on mobile keeps copyright + legal links above the
   fixed WhatsApp FAB (60px button + 32px offset ≈ 92px reserved). */
.site-footer__bottom {
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  padding: var(--space-md) 0 calc(var(--space-md) + 92px);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: var(--space-md) 0;
  }
}

.site-footer__copyright {
  font-size: var(--small-size);
  color: rgba(245, 240, 232, 0.5);
  font-family: var(--font-accent);
  letter-spacing: var(--ls-wide);
}

.site-footer__legal {
  display: flex;
  gap: var(--space-md);
}

.site-footer__legal a {
  font-size: var(--small-size);
  font-family: var(--font-accent);
  letter-spacing: var(--ls-wide);
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
  transition: color 200ms ease;
}

.site-footer__legal a:hover {
  color: var(--color-accent-gold);
}


/* =============================================================================
   08B. FOOTER — COMPAT LAYER (footer-col pattern used on get-quotation page)
   Maps footer-col/footer-main HTML pattern to the same visual styling as
   the primary site-footer__grid / footer-brand / footer-links pattern above.
   ============================================================================= */

.footer-main,
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  align-items: start;
}

@media (min-width: 768px) {
  .footer-main,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .footer-main,
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    align-items: start;
  }
}

/* Column base */
.footer-col {
  display: flex;
  flex-direction: column;
}

/* Brand column */
.footer-col--brand .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  text-decoration: none;
}

.footer-col--brand .footer-logo-text,
.site-footer .footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-on-dark);
  letter-spacing: var(--ls-tight);
}

/* Legacy address inside .footer-col (Pattern C blog posts) */
.site-footer .footer-col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-footer .footer-col address p,
.site-footer .footer-col address a {
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.75);
  text-decoration: none;
  line-height: var(--lh-relaxed);
  transition: color 200ms ease;
}

.site-footer .footer-col address a:hover {
  color: var(--color-accent-gold);
}

.site-footer .footer-col address i {
  color: var(--color-accent-gold);
  margin-right: var(--space-xs);
  width: 14px;
}

.footer-tagline {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  letter-spacing: var(--ls-wide);
  color: var(--color-accent-gold);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.footer-description {
  font-size: var(--small-size);
  color: rgba(245, 240, 232, 0.7);
  line-height: var(--lh-relaxed);
  max-width: 30ch;
  margin-bottom: var(--space-md);
}

/* Social row reuse — .footer-social and .footer-social__link already defined above */

/* Column heading */
.footer-col__heading,
.footer-col-title {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-md);
}

/* Link list inside footer-col — reuses .footer-links__list / item styles */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-links li a {
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.75);
  text-decoration: none;
  transition: color 200ms ease, padding-left 200ms ease;
  display: inline-block;
}

.footer-links li a:hover {
  color: var(--color-accent-gold);
  padding-left: 4px;
}

/* Contact items inside footer-col */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.footer-contact__icon {
  color: var(--color-accent-gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact__detail {
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.75);
  line-height: var(--lh-relaxed);
}

.footer-contact__detail a {
  color: rgba(245, 240, 232, 0.75);
  text-decoration: none;
  transition: color 200ms ease;
}

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

/* Bottom bar compat */
.footer-bottom {
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  padding: var(--space-md) 0;
}

.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom .footer-copyright {
  font-size: var(--small-size);
  color: rgba(245, 240, 232, 0.5);
  font-family: var(--font-accent);
  letter-spacing: var(--ls-wide);
}

.footer-bottom .footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom .footer-legal a {
  font-size: var(--small-size);
  font-family: var(--font-accent);
  letter-spacing: var(--ls-wide);
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
  transition: color 200ms ease;
}

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

/* =============================================================================
   08C. FOOTER — COMPAT LAYER (footer__ BEM pattern used on blog landing
   and 30 individual blog posts that use <footer class="footer">)
   Maps footer__grid/footer__col/footer__logo etc. to the same visual styling
   as the primary site-footer__grid / footer-brand / footer-links pattern.
   ============================================================================= */

/* Wrapper styling for blog posts that use <footer class="footer"> WITHOUT
   the .site-footer class — supplies the dark walnut bg / ivory text / padding
   that .site-footer would normally provide. */
footer.footer:not(.site-footer) {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-3xl) 0 var(--space-lg);
  margin-top: var(--space-3xl);
}

footer.footer:not(.site-footer) address {
  font-style: normal;
}

/* Inherit dark-bg ivory text on every paragraph/address descendant — generic
   "p { color: var(--color-text) }" rules elsewhere wash out address copy. */
footer.footer:not(.site-footer) p,
footer.footer:not(.site-footer) address,
footer.footer:not(.site-footer) address p,
footer.footer:not(.site-footer) .footer__bottom,
footer.footer:not(.site-footer) .footer__bottom p,
footer.footer:not(.site-footer) .footer__bottom span {
  color: inherit;
}

.footer__grid,
.footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  align-items: start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

@media (min-width: 768px) {
  .footer__grid,
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .footer__grid,
  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}

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

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-on-dark);
  letter-spacing: var(--ls-tight);
  line-height: 1.2;
  text-decoration: none;
}

.footer__logo .site-nav__logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-accent-gold);
}

.footer__tagline {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  letter-spacing: var(--ls-wide);
  color: var(--color-accent-gold);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  font-style: normal;
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-md);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--color-text-on-dark);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.footer__social-link:hover {
  background-color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
  color: var(--color-bg-dark);
}

.footer__heading {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-md);
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: 0;
  margin: 0;
}

.footer__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.75);
  text-decoration: none;
  transition: color 200ms ease, padding-left 200ms ease;
  display: inline-block;
  font-style: normal;
}

.footer__link:hover {
  color: var(--color-accent-gold);
  padding-left: 4px;
}

.footer__col--contact {
  font-style: normal;
}

.footer__contact-icon {
  color: var(--color-accent-gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.footer__address {
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.75);
  line-height: var(--lh-relaxed);
  font-style: normal;
}

.footer__bottom {
  border-top: 1px solid rgba(201, 169, 110, 0.15);
  padding: var(--space-md) 0 calc(var(--space-md) + 92px);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: var(--space-md) 0;
  }
}

.footer__copy {
  font-size: var(--small-size);
  color: rgba(245, 240, 232, 0.5);
  font-family: var(--font-accent);
  letter-spacing: var(--ls-wide);
  margin: 0;
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.footer__legal-link,
.footer__legal a {
  font-size: var(--small-size);
  font-family: var(--font-accent);
  letter-spacing: var(--ls-wide);
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer__legal-link:hover,
.footer__legal a:hover {
  color: var(--color-accent-gold);
}

.footer__legal span {
  color: rgba(245, 240, 232, 0.25);
}

/* Neutralise <address> italic on contact col */
.site-footer address,
.site-footer .footer__col--contact { font-style: normal; }


/* =============================================================================
   09. WHATSAPP STICKY BUTTON
   Source: CLAUDE.md §11.3
   ============================================================================= */

.wa-sticky {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-whatsapp);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
  transition: bottom 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* When the cookie banner is visible, lift the WhatsApp FAB so they don't
   stack on top of each other at mobile widths. */
body:has(.cookie-banner.cookie-visible) .wa-sticky {
  bottom: calc(var(--space-lg) + 112px);
}
@media (min-width: 768px) {
  body:has(.cookie-banner.cookie-visible) .wa-sticky {
    bottom: calc(var(--space-lg) + 72px);
  }
}

.wa-sticky__inner {
  display: flex;
  align-items: center;
  background-color: var(--color-whatsapp);
  border-radius: var(--radius-pill);
  height: 60px;
  min-width: 60px;
  padding: 0 var(--space-sm);
  box-shadow: var(--shadow-lg);
  transition: min-width 300ms cubic-bezier(0.4, 0, 0.2, 1),
              padding 300ms cubic-bezier(0.4, 0, 0.2, 1),
              background-color 200ms ease;
  overflow: hidden;
  cursor: pointer;
  gap: var(--space-xs);
}

.wa-sticky:hover .wa-sticky__inner,
.wa-sticky.wa-expanded .wa-sticky__inner {
  background-color: var(--color-whatsapp-hover);
}

.wa-sticky__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: #FFFFFF;
  font-size: 1.375rem;
}

.wa-sticky__icon svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
}

.wa-sticky__label {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  color: #FFFFFF;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 250ms ease 100ms, max-width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-sticky:hover .wa-sticky__label,
.wa-sticky.wa-expanded .wa-sticky__label {
  opacity: 1;
  max-width: 120px;
}

/* Pulse animation */
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-sticky__inner {
  animation: wa-pulse 3s ease-out infinite;
}

.wa-sticky:hover .wa-sticky__inner {
  animation: none;
}


/* =============================================================================
   10. ENQUIRY MODAL
   Source: CLAUDE.md §11.5
   ============================================================================= */

/* ── Overlay ──────────────────────────────────────────────────────────────── */
/* Ensure hidden attribute doesn't prevent JS-controlled modal from showing */
.modal-overlay[hidden] {
  display: flex !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background-color: var(--color-overlay-modal);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.modal-overlay.modal-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Modal Card ───────────────────────────────────────────────────────────── */
.modal {
  background-color: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.modal-visible .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}

.modal__close:hover {
  background-color: var(--color-accent-dark);
  color: var(--color-text-on-dark);
}

.modal__header {
  margin-bottom: var(--space-md);
}

.modal__overline {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-xs);
}

.modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: var(--fw-bold);
  color: var(--color-accent-dark);
  line-height: var(--lh-snug);
}

.modal__subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* ── Form Fields ──────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--color-cta);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--color-text-primary);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.2);
  background-color: var(--color-bg-primary);
}

.form-control::placeholder {
  color: var(--color-text-muted);
  opacity: 0.8;
}

.form-control.input-error {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.form-error-msg {
  display: none;
  font-size: var(--small-size);
  color: #C0392B;
  margin-top: 4px;
  font-family: var(--font-accent);
}

.form-error-msg.visible {
  display: block;
}

select.form-control {
  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='%239E9E8E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .form-row--2col {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Modal Success State ──────────────────────────────────────────────────── */
.modal__success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0;
  gap: var(--space-md);
}

.modal__success.success-visible {
  display: flex;
}

/* CSS-only animated checkmark */
.success-checkmark {
  width: 72px;
  height: 72px;
  position: relative;
}

.checkmark-circle {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  stroke: var(--color-accent-green);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: circle-draw 600ms cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-tick {
  stroke: var(--color-accent-green);
  stroke-width: 3;
  fill: none;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: tick-draw 400ms cubic-bezier(0.65, 0, 0.45, 1) 500ms forwards;
}

@keyframes circle-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes tick-draw {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-accent-dark);
}

.success-message {
  font-size: var(--body-size);
  color: var(--color-text-muted);
  max-width: 32ch;
  line-height: var(--lh-relaxed);
}

.success-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-top: var(--space-xs);
  transition: background-color 200ms ease;
}

.success-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  color: #FFFFFF;
}


/* =============================================================================
   11. COOKIE BANNER
   Source: CLAUDE.md §11.4
   ============================================================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-toast);
  background-color: var(--color-accent-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(44, 31, 20, 0.2);
  transform: translateY(100%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.cookie-visible {
  transform: translateY(0);
}

.cookie-banner.cookie-hiding {
  transform: translateY(110%);
}

.cookie-banner__text {
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.85);
  flex: 1;
  min-width: 200px;
  line-height: var(--lh-relaxed);
}

.cookie-banner__text a {
  color: var(--color-accent-gold);
  text-decoration: underline;
}

.cookie-banner__accept {
  flex-shrink: 0;
}


/* =============================================================================
   12. SKIP-TO-CONTENT
   Source: CLAUDE.md §16
   ============================================================================= */

/* .skip-link is an alias used in sessions 9-34 */
.skip-link,
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: calc(var(--z-nav) + 10);
  background-color: var(--color-cta);
  color: var(--color-text-on-dark);
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  transition: top 200ms ease;
}

.skip-link:focus-visible,
.skip-to-content:focus-visible {
  top: 0;
  outline: none;
}


/* =============================================================================
   13. BREADCRUMBS
   ============================================================================= */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-family: var(--font-accent);
  font-size: var(--small-size);
  letter-spacing: var(--ls-wide);
  color: var(--color-text-muted);
  padding: var(--space-sm) 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.breadcrumb__item a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 200ms ease;
}

.breadcrumb__item a:hover {
  color: var(--color-accent-gold);
}

.breadcrumb__separator {
  color: var(--color-border);
  font-size: 0.75rem;
}

.breadcrumb__current {
  color: var(--color-gold-text); /* darkened for WCAG AA contrast on light backgrounds */
}


/* =============================================================================
   14. FOCUS-VISIBLE ACCESSIBILITY
   Source: CLAUDE.md §16
   ============================================================================= */

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Override for buttons and links that have their own focus styles */
.btn:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
  border-radius: 2px;
}


/* =============================================================================
   15. UTILITY CLASSES
   ============================================================================= */

/* Layout */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

/* ── CTA Spacing — prevent buttons competing visually with headings ── */
/* Section heading has breathing room before a CTA follows */
h2 + .btn-primary,
h2 + .btn-secondary,
h2 + .btn-ghost,
h3 + .btn-primary,
h3 + .btn-secondary,
.section-header + .btn-primary,
.section-header + .btn-secondary {
  margin-top: var(--space-lg);
}

/* Paragraph then CTA — needs more space */
p + .btn-primary,
p + .btn-secondary,
p + .btn-ghost,
p + a.btn-primary,
p + a.btn-secondary {
  margin-top: var(--space-lg);
}

/* Forms: tighter CTA at bottom */
form .btn-primary,
.modal-form .btn-primary {
  margin-top: var(--space-md);
}

/* Standalone CTA below section body */
.section-cta {
  margin-top: var(--space-xl);
}

.section-cta--tight {
  margin-top: var(--space-md);
}

/* Section padding shorthand */
.section-padding {
  padding: var(--section-pad-mobile);
}

@media (min-width: 768px) {
  .section-padding {
    padding: var(--section-pad-tablet);
  }
}

@media (min-width: 1280px) {
  .section-padding {
    padding: var(--section-pad-desktop);
  }
}

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

/* Display helpers */
.d-none   { display: none; }
.d-block  { display: block; }
.d-flex   { display: flex; }
.d-grid   { display: grid; }

/* Flex utilities */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Colour text utilities */
.text-gold    { color: var(--color-accent-gold); }
.text-muted   { color: var(--color-text-muted); }
.text-ivory   { color: var(--color-text-on-dark); }
.text-dark    { color: var(--color-accent-dark); }
.text-terra   { color: var(--color-terracotta); }

/* Background utilities */
.bg-primary   { background-color: var(--color-bg-primary); }
.bg-secondary { background-color: var(--color-bg-secondary); }
.bg-dark      { background-color: var(--color-bg-dark); }
.bg-green     { background-color: var(--color-accent-green); }
.bg-highlight { background-color: var(--color-highlight); }

/* Margin utilities */
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

/* Width constraint */
.max-width-prose { max-width: 70ch; }
.max-width-tight  { max-width: 50ch; }

/* Aspect ratio helpers */
.aspect-16-10 { aspect-ratio: 16 / 10; }
.aspect-4-3   { aspect-ratio: 4 / 3; }
.aspect-1-1   { aspect-ratio: 1 / 1; }
.aspect-3-2   { aspect-ratio: 3 / 2; }


/* =============================================================================
   COMPAT. LAYER — Backward-compatible aliases (Sessions 9–34)
   Pages built in sessions 9-34 used slightly different class names for nav,
   footer, and WA button. These rules map those names to the correct styles
   without requiring changes to 125+ HTML files.
   ============================================================================= */

/* ── Nav inner aliases (sessions 9–24 project pages + session 25 blog landing) ── */
/* Outer <nav class="site-nav"> is correct; inner children use nav__ prefix */

.site-nav .nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-inline: 1.25rem;
  max-width: 1280px;
  margin-inline: auto;
}

@media (min-width: 768px)  { .site-nav .nav__inner { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .site-nav .nav__inner { padding-inline: 3rem; } }

.site-nav .nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-on-dark);
  letter-spacing: var(--ls-tight);
  transition: color 300ms ease;
  line-height: 1.2;
}

.site-nav.nav-scrolled .nav__logo,
.site-nav.nav--force-solid .nav__logo { color: var(--color-accent-dark); }

.site-nav .nav__links {
  display: none;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 1024px) { .site-nav .nav__links { display: flex; } }

.site-nav .nav__link {
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 200ms ease;
}

.site-nav.nav-scrolled .nav__link,
.site-nav.nav--force-solid .nav__link { color: var(--color-accent-dark); }

.site-nav .nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background-color: var(--color-accent-gold);
  border-radius: var(--radius-pill);
  transition: width 250ms ease;
}

.site-nav .nav__link:hover::after,
.site-nav .nav__link.nav__link--active::after,
.site-nav .nav__link.active::after { width: 100%; }

.site-nav .nav__link:hover,
.site-nav .nav__link.nav__link--active,
.site-nav .nav__link.active { color: var(--color-accent-gold); }

.site-nav .nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-nav .nav__cta {
  display: none;
}

@media (min-width: 768px) { .site-nav .nav__cta { display: inline-flex; } }

.site-nav .nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  cursor: pointer;
  background: none; border: none;
  border-radius: var(--radius-sm);
}

@media (min-width: 1024px) { .site-nav .nav__hamburger { display: none; } }

.site-nav .nav__hamburger span {
  display: block;
  width: 100%; height: 2px;
  background-color: var(--color-text-on-dark);
  border-radius: var(--radius-pill);
  transition: transform 300ms ease, opacity 300ms ease, background-color 300ms ease;
  transform-origin: center;
}

.site-nav.nav-scrolled .nav__hamburger span,
.site-nav.nav--force-solid .nav__hamburger span { background-color: var(--color-accent-dark); }

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

/* Mobile overlay (placed outside <nav> on session 9 pages) */
.nav__mobile-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(100vw, 400px);
  background-color: var(--color-bg-dark);
  z-index: calc(var(--z-nav) - 1);
  display: flex;
  flex-direction: column;
  padding: calc(72px + var(--space-xl)) var(--space-xl) var(--space-xl);
  transform: translateX(100%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

/* Pattern B: overlay is a sibling of <nav>, so nav-open on nav won't reach it.
   Use body.menu-open instead (set by global.js openMenu / closeMenu). */
.site-nav.nav-open .nav__mobile-overlay,
body.menu-open .nav__mobile-overlay { transform: translateX(0); }

.nav__mobile-overlay::before {
  content: '';
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: -1;
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.site-nav.nav-open .nav__mobile-overlay::before,
body.menu-open .nav__mobile-overlay::before { opacity: 1; pointer-events: auto; }

.nav__mobile-close {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--color-text-on-dark);
  background: none; border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 200ms ease;
}

.nav__mobile-close:hover { color: var(--color-accent-gold); }

.nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nav__mobile-link {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: var(--fw-semibold);
  color: var(--color-text-on-dark);
  text-decoration: none;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(201,169,110,0.15);
  transition: color 200ms ease, padding-left 200ms ease;
  display: block;
}

.nav__mobile-link:hover,
.nav__mobile-link.active { color: var(--color-accent-gold); padding-left: var(--space-sm); }

.nav__mobile-cta {
  margin-top: var(--space-xl);
}

/* ── Blog-post nav alias (session 26-30 blog posts use <header class="nav">) ── */

header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 0;
  transition: var(--transition-nav);
  background-color: transparent;
}

header.nav.nav--scrolled,
header.nav.scrolled {
  background-color: var(--color-overlay-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* JS adds nav-scrolled class via nav-scrolled on outer element — use same rule */
header.nav.nav-scrolled {
  background-color: var(--color-overlay-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding-inline: 1.25rem;
  max-width: 1280px;
  margin-inline: auto;
}

@media (min-width: 768px)  { .nav__container { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .nav__container { padding-inline: 3rem; } }

/* ── Blog-post mobile nav alias ── */

.nav__mobile {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(100vw, 400px);
  background-color: var(--color-bg-dark);
  z-index: calc(var(--z-nav) - 1);
  display: flex;
  flex-direction: column;
  padding: calc(72px + var(--space-xl)) var(--space-xl) var(--space-xl);
  transform: translateX(100%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

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

.nav__mobile::before {
  content: '';
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: -1; opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

header.nav.nav-open .nav__mobile::before { opacity: 1; pointer-events: auto; }

/* ── Footer aliases (sessions 9–34 use footer__ prefix) ── */

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  align-items: start;
}

@media (min-width: 768px)  { .footer__grid { grid-template-columns: repeat(2, 1fr); align-items: start; } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: var(--space-xl); align-items: start; } }

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

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-text-on-dark);
  letter-spacing: var(--ls-tight);
  text-decoration: none;
  margin-bottom: var(--space-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  line-height: 1.2;
}

.footer__logo .site-nav__logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-accent-gold);
}

.footer__tagline {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  letter-spacing: var(--ls-wide);
  color: var(--color-accent-gold);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  margin-top: var(--space-md);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(201,169,110,0.3);
  color: var(--color-text-on-dark);
  font-size: 0.875rem;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.footer__social-link:hover {
  background-color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
  color: var(--color-bg-dark);
}

.footer__heading {
  font-family: var(--font-accent);
  font-size: var(--small-size);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-md);
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__link {
  font-size: 0.9375rem;
  color: rgba(245,240,232,0.75);
  text-decoration: none;
  transition: color 200ms ease, padding-left 200ms ease;
  display: inline-block;
}

.footer__link:hover {
  color: var(--color-accent-gold);
  padding-left: 4px;
}

.footer__contact-list { gap: var(--space-sm); }

.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.footer__contact-icon {
  color: var(--color-accent-gold);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__address {
  font-size: 0.9375rem;
  color: rgba(245,240,232,0.75);
  line-height: var(--lh-relaxed);
}

.footer__bottom {
  border-top: 1px solid rgba(201,169,110,0.15);
  padding: var(--space-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__copy {
  font-size: var(--small-size);
  color: rgba(245,240,232,0.5);
  font-family: var(--font-accent);
  letter-spacing: var(--ls-wide);
}

.footer__legal {
  display: flex;
  gap: var(--space-md);
}

.footer__legal-link {
  font-size: var(--small-size);
  font-family: var(--font-accent);
  letter-spacing: var(--ls-wide);
  color: rgba(245,240,232,0.5);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer__legal-link:hover { color: var(--color-accent-gold); }

/* ── WhatsApp sticky alias (.whatsapp-sticky used in sessions 9–30) ── */

.whatsapp-sticky {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: var(--radius-full);
  background-color: var(--color-whatsapp);
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: background-color 200ms ease, transform 200ms ease;
  animation: pulse-wa 2s infinite;
  overflow: hidden;
  gap: var(--space-xs);
}

.whatsapp-sticky:hover {
  background-color: var(--color-whatsapp-hover, #1ebe57);
  transform: scale(1.05);
  width: auto;
  padding: 0 var(--space-md);
  border-radius: var(--radius-pill);
}

.whatsapp-sticky__label {
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  color: #fff;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  transition: max-width 300ms ease;
}

.whatsapp-sticky:hover .whatsapp-sticky__label { max-width: 120px; }


/* =============================================================================
   16. REDUCED MOTION OVERRIDE
   Source: CLAUDE.md §15.3
   MANDATORY — must remain as the last block in this file.
   ============================================================================= */

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

  /* Ensure reveal elements are immediately visible */
  .reveal {
    opacity: 1;
    transform: none;
  }

  /* Keep WhatsApp button visible but static */
  .wa-sticky__inner {
    animation: none;
  }
}

/* =============================================================================
   LEGACY BLOG-POST NAV SHIM
   Blog posts shipped with three different nav patterns. Style them so they
   render the same fixed, force-solid bar the rest of the site uses.
   ============================================================================= */

/* Outer wrapper — covers <header class="nav-wrapper">, <header class="nav">,
   and <nav class="nav"> shapes. */
.nav-wrapper,
header.nav,
nav.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav, 1000);
  height: 72px;
  background-color: var(--color-overlay-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Inner container — flex row with even spacing */
.nav-wrapper > .nav-container,
header.nav > .nav__container,
nav.nav > .nav__container,
nav.nav > .container.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .nav-wrapper > .nav-container,
  header.nav > .nav__container,
  nav.nav > .nav__container,
  nav.nav > .container.nav__container { padding-inline: 2.5rem; }
}

@media (min-width: 1280px) {
  .nav-wrapper > .nav-container,
  header.nav > .nav__container,
  nav.nav > .nav__container,
  nav.nav > .container.nav__container { padding-inline: 3rem; }
}

/* Logo */
.nav-wrapper .nav-logo,
header.nav .nav__logo,
nav.nav .nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent-dark);
  letter-spacing: var(--ls-tight);
  line-height: 1.2;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-wrapper .nav-logo .site-nav__logo-mark,
header.nav .nav__logo .site-nav__logo-mark,
nav.nav .nav__logo .site-nav__logo-mark,
.site-nav .nav__logo .site-nav__logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--color-accent-gold);
}

.site-nav .nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Link list — Pattern 1 uses <ul class="nav-links">,
   Pattern 2 uses <nav class="nav__links">,
   Pattern 3 uses <ul class="nav__menu"> */
.nav-wrapper .nav-links,
header.nav .nav__links,
nav.nav .nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1023px) {
  .nav-wrapper .nav-links,
  header.nav .nav__links,
  nav.nav .nav__menu { display: none; }
}

/* Individual link */
.nav-wrapper .nav-links a,
header.nav .nav__link,
nav.nav .nav__link {
  font-family: var(--font-accent);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color 200ms ease;
}

.nav-wrapper .nav-links a:hover,
.nav-wrapper .nav-links a.active,
header.nav .nav__link:hover,
header.nav .nav__link--active,
nav.nav .nav__link:hover,
nav.nav .nav__link--active {
  color: var(--color-accent-gold);
}

.nav-wrapper .nav-links a.active::after,
header.nav .nav__link--active::after,
nav.nav .nav__link--active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-accent-gold);
}

/* CTA button on desktop */
.nav-wrapper .nav-cta,
header.nav .nav__cta,
nav.nav .nav__cta {
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-cta);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 200ms ease, transform 200ms ease;
}

.nav-wrapper .nav-cta:hover,
header.nav .nav__cta:hover,
nav.nav .nav__cta:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .nav-wrapper .nav-cta,
  header.nav .nav__cta,
  nav.nav .nav__cta { display: none; }
}

/* Hamburger — only shown on mobile */
.nav-wrapper .nav-hamburger,
header.nav .nav__hamburger,
nav.nav .nav__hamburger {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.nav-wrapper .nav-hamburger span,
header.nav .nav__hamburger span,
nav.nav .nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-accent-dark);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

@media (max-width: 1023px) {
  .nav-wrapper .nav-hamburger,
  header.nav .nav__hamburger,
  nav.nav .nav__hamburger { display: flex; }
}

/* Lang toggle visible only on desktop within these legacy navs */
header.nav .nav__lang,
nav.nav .nav__lang {
  display: flex;
  gap: 4px;
  align-items: center;
}

header.nav .nav__lang-btn,
nav.nav .nav__lang-btn {
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--color-accent-dark);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 200ms ease;
}

header.nav .nav__lang-btn.active,
nav.nav .nav__lang-btn.active {
  background: var(--color-accent-gold);
  color: #fff;
}

@media (max-width: 1023px) {
  header.nav .nav__lang,
  nav.nav .nav__lang { display: none; }
}

/* Nav actions wrapper */
.nav-wrapper .nav__actions,
header.nav .nav__actions,
nav.nav .nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Push body content below the fixed bar so it doesn't render under it */
.nav-wrapper ~ main,
header.nav ~ main,
nav.nav ~ main { padding-top: 0; }

body:has(> .nav-wrapper),
body:has(> header.nav),
body:has(> nav.nav) { /* fixed nav already accounts for hero padding */ }

/* Mobile overlay (Pattern C variant) — .nav__overlay fills the viewport.
   .nav__mobile (Pattern B) is defined above at line ~2570 with its own
   width-constrained layout; do not redefine positioning here. */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: var(--color-bg-dark);
  z-index: calc(var(--z-nav, 1000) - 1);
  transform: translateX(100%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: calc(72px + var(--space-xl)) var(--space-xl) var(--space-xl);
  gap: var(--space-md);
  overflow-y: auto;
}

body.menu-open .nav__mobile,
body.menu-open .nav__overlay { transform: translateX(0); }

.nav__mobile-link,
.nav__overlay a:not(.btn-primary) {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-on-dark);
  text-decoration: none;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 200ms ease, padding-left 200ms ease;
}

.nav__mobile-link:hover,
.nav__overlay a:not(.btn-primary):hover {
  color: var(--color-accent-gold);
  padding-left: var(--space-sm);
}

.nav__mobile-cta,
.nav__overlay .btn-primary {
  margin-top: var(--space-md);
  align-self: stretch;
  text-align: center;
  font-family: var(--font-accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-cta);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text-on-dark);
  font-size: 28px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 200ms ease, color 200ms ease;
}

.nav__close:hover { background: rgba(255,255,255,0.06); color: var(--color-accent-gold); }

/* ──────────────────────────────────────────────────────────────────────────
   LEGACY ENQUIRY MODAL — used by 50 blog post pages
   Pattern: <div class="modal" id="enquiry-modal">
              <div class="modal__backdrop"></div>
              <div class="modal__box">…</div>
            </div>
   Toggled by adding/removing the `.modal--open` class (see global.js).
   ────────────────────────────────────────────────────────────────────────── */
.modal#enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  /* Reset properties leaked from the standalone .modal card rule above */
  width: auto;
  max-width: none;
  max-height: none;
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  transform: none;
  transition: none;
}
.modal#enquiry-modal.modal--open { display: flex; }

.modal#enquiry-modal .modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--color-overlay-modal);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal#enquiry-modal .modal__box {
  position: relative;
  z-index: 1;
  background-color: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl);
}

.modal#enquiry-modal .modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-full, 50%);
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-secondary, var(--color-text));
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.modal#enquiry-modal .modal__close:hover {
  background: var(--color-surface-2, rgba(0,0,0,0.05));
  color: var(--color-accent-dark);
}

.modal#enquiry-modal .modal__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-accent-dark);
  margin: 0 0 var(--space-md);
  padding-right: var(--space-xl);
  line-height: 1.2;
}

.modal#enquiry-modal .modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.modal#enquiry-modal .modal__form label {
  font-family: var(--font-accent);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.modal#enquiry-modal .modal__form input,
.modal#enquiry-modal .modal__form select,
.modal#enquiry-modal .modal__form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.modal#enquiry-modal .modal__form input:focus,
.modal#enquiry-modal .modal__form select:focus,
.modal#enquiry-modal .modal__form textarea:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.modal#enquiry-modal .modal__success {
  display: none;
  text-align: center;
  padding: var(--space-md) 0;
}
.modal#enquiry-modal .modal__success.is-visible { display: block; }

@media (max-width: 480px) {
  .modal#enquiry-modal .modal__box { padding: var(--space-lg); }
  .modal#enquiry-modal .modal__title { font-size: 1.4rem; }
}
