/* ============================================================
   MHB Property Solutions — site.css
   GENERATED by build.py from src/css/*. Do not edit directly:
   edit the partials in src/css/ and re-run `python3 build.py`.
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* --- Typefaces --- */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* --- Brand palette (raw) --- */
  --color-forest-green: #1B4332;
  --color-forest-green-dark: #143728;
  --color-warm-gold: #C9A959;
  --color-warm-gold-hover: #B8962E;
  /* Same hue as --color-warm-gold, darkened until it clears WCAG AA as text
     on white (5.03:1) and on cream (4.54:1). The bright gold only reaches
     2.26:1 on white, so it is for dark grounds and decoration, never light-ground text. */
  --color-gold-text: #856C2B;
  --color-cream: #F5F5DC;
  --color-charcoal: #2C3E50;
  --color-white: #FFFFFF;
  /* Darkened from #8B7D6B, which read at 4.00:1 on white. Only ever used for
     text (quote attributions, form placeholders), so it must clear AA. */
  --color-soft-taupe: #796D5D;
  --color-light-grey: #E5E5E5;
  --color-whatsapp: #25D366;

  /* --- Alpha derivatives (never hand-write rgba() in a component) --- */
  --alpha-green-04: rgba(27, 67, 50, 0.04);
  --alpha-green-08: rgba(27, 67, 50, 0.08);
  --alpha-green-10: rgba(27, 67, 50, 0.10);
  --alpha-green-20: rgba(27, 67, 50, 0.20);
  --alpha-cream-15: rgba(245, 245, 220, 0.15);
  --alpha-cream-30: rgba(245, 245, 220, 0.30);
  --alpha-gold-15: rgba(201, 169, 89, 0.15);

  /* --- Semantic roles --- */
  --color-text: var(--color-charcoal);
  --color-heading: var(--color-forest-green);
  --color-accent: var(--color-warm-gold);
  /* Gold text colour for the current ground. Light by default; the dark-section
     rule in 10-contrast.css flips it back to the bright gold. */
  --accent-text: var(--color-gold-text);
  --color-surface: var(--color-white);
  --color-surface-alt: var(--color-cream);
  --color-surface-dark: var(--color-forest-green);
  --color-on-dark: var(--color-cream);
  --color-border: var(--alpha-green-08);
  --color-border-strong: var(--alpha-green-20);
  --color-border-dark: var(--alpha-cream-30);

  /* --- Typography scale --- */
  --text-hero: clamp(2.5rem, 5vw, 4.5rem);
  --text-section-title: clamp(2rem, 4vw, 3rem);
  --text-subsection: clamp(1.5rem, 2.5vw, 2rem);
  --text-card-title: 1.5rem;
  --text-body-large: 1.25rem;
  --text-body: 1rem;
  --text-body-small: 0.875rem;
  --text-caption: 0.75rem;

  /* --- Tracking --- */
  --tracking-tight: -0.5px;
  --tracking-body: 0.25px;
  --tracking-wide: 0.1em;
  --tracking-wider: 0.15em;

  /* --- Spacing --- */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --section-padding: 80px;
  --section-padding-mobile: 48px;

  /* --- Layout --- */
  --max-width: 1280px;
  --container-padding: 24px;
  --header-height: 84px;
  --tap-target: 44px;

  /* --- Breakpoints (reference only; media queries need literals) --- */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;

  /* --- Shadows --- */
  --shadow-subtle: 0 2px 8px rgba(27, 67, 50, 0.06);
  --shadow-elevated: 0 8px 24px rgba(27, 67, 50, 0.10);
  --shadow-floating: 0 16px 48px rgba(27, 67, 50, 0.15);

  /* --- Transitions --- */
  --transition-fast: 150ms ease-out;
  --transition-base: 300ms ease-out;
  --transition-slow: 500ms ease-out;

  /* --- Radii --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* --- Z-index scale --- */
  --z-header: 100;
  --z-fab: 120;
  --z-overlay: 150;
  --z-mobile-nav: 200;
}

/* ============================================================
   2. RESET, BASE & TYPOGRAPHY
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-charcoal);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-warm-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-warm-gold-hover);
}

ul,
ol {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-forest-green);
  letter-spacing: -0.5px;
}

h1 {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.1;
}

h2 {
  font-size: var(--text-section-title);
}

h3 {
  font-size: var(--text-subsection);
}

h4 {
  font-size: var(--text-card-title);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.text-gold {
  color: var(--color-warm-gold);
}

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

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

/* --- Labels / Overlines --- */
.label {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-warm-gold);
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Section --- */
.section {
  padding: var(--section-padding) 0;
}

.section--dark {
  background-color: var(--color-forest-green);
  color: var(--color-cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-cream);
}

.section--dark p {
  color: var(--color-cream);
  opacity: 0.85;
}

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

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

/* ============================================================
   3. COMPONENTS
   ============================================================ */

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-body-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 32px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
}

.btn-primary {
  background-color: var(--color-forest-green);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-forest-green-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-forest-green);
  border: 1px solid var(--color-forest-green);
}

.btn-secondary:hover {
  background-color: var(--color-forest-green);
  color: var(--color-white);
}

.btn-gold {
  background-color: var(--color-warm-gold);
  color: var(--color-white);
}

.btn-gold:hover {
  background-color: var(--color-warm-gold-hover);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-cream);
  border: 1px solid var(--color-cream);
}

.btn-ghost:hover {
  background-color: var(--color-cream);
  color: var(--color-forest-green);
}

/* --- Cards --- */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--alpha-green-08);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-warm-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.card__icon {
  width: 64px;
  height: 64px;
  border: 2px solid var(--color-warm-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card__title {
  font-family: var(--font-heading);
  font-size: var(--text-card-title);
  color: var(--color-forest-green);
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: var(--text-body-small);
  color: var(--color-charcoal);
  line-height: 1.6;
}

/* --- Divider --- */
.divider {
  width: 60px;
  height: 2px;
  background-color: var(--color-warm-gold);
  margin: var(--space-lg) 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  :root {
    --section-padding: var(--section-padding-mobile);
    --container-padding: 16px;
  }
}

/* --- Ghost Number Stats --- */
.stat-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  overflow: hidden;
}

.stat-card__ghost {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 150px;
  font-weight: 700;
  color: var(--color-forest-green);
  opacity: 0.06;
  top: -10px;
  left: 10px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.stat-card__label {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1;
  margin-bottom: var(--space-xs);
  position: relative;
  z-index: 1;
}

.stat-card__description {
  font-size: var(--text-body-small);
  color: var(--color-charcoal);
  max-width: 200px;
  position: relative;
  z-index: 1;
}

/* --- Accordion / FAQ --- */
.accordion__item {
  border-bottom: 1px solid var(--alpha-green-10);
}

.accordion__question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-md) 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-forest-green);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.accordion__question:hover {
  color: var(--color-warm-gold);
}

.accordion__icon {
  font-size: 1.5rem;
  color: var(--color-warm-gold);
  transition: transform var(--transition-base);
}

.accordion__item.active .accordion__icon {
  transform: rotate(45deg);
}

.accordion__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion__item.active .accordion__answer {
  max-height: 500px;
}

.accordion__answer p {
  padding-bottom: var(--space-md);
  font-size: var(--text-body-small);
  color: var(--color-charcoal);
}

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

.form-label {
  display: block;
  font-size: var(--text-body-small);
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  border: 1px solid var(--alpha-green-20);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-warm-gold);
  box-shadow: 0 0 0 3px var(--alpha-gold-15);
}

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

/* --- Utility --- */
.text-center {
  text-align: center;
}

.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);
}

.mb-2xl {
  margin-bottom: var(--space-2xl);
}

.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);
}

/* --- Logo ---
   The artwork is cropped to its glyphs, so the box is the mark: no negative
   margin, and the height follows from the real 2.73:1 / 3.69:1 ratios.
   79px reproduces the header mark at exactly its original rendered size
   (the old rule was a 160x44 box with object-fit: contain, which only ever
   painted 88x44 of it). */
.nav__logo-img {
  display: block;
  width: 79px;
  height: auto;
}

.footer__logo-img {
  display: block;
  width: 200px;
  height: auto;
}


/* --- Closing CTA (shared by all five pages) --- */
.cta-section {
  background-color: var(--color-white);
  padding: var(--space-4xl) 0;
}

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

.cta-wrapper .label {
  margin-bottom: var(--space-sm);
}

.cta-wrapper h2 {
  margin-bottom: var(--space-md);
}

.cta-wrapper>p {
  font-size: var(--text-body-large);
  color: var(--color-charcoal);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(27, 67, 50, 0.1);
}

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

.cta-contact__label {
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-charcoal);
  opacity: 0.6;
  margin-bottom: var(--space-xs);
}

.cta-contact__value {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  color: var(--color-forest-green);
}

.cta-contact__value a {
  color: var(--color-forest-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.cta-contact__value a:hover {
  color: var(--color-warm-gold);
}

@media (max-width: 768px) {
  .cta-contacts {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .cta-wrapper {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
}


/* --- Breadcrumb (identical on About, Services, Projects and Contact) --- */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.breadcrumb a {
  font-size: var(--text-body-small);
  color: var(--color-cream);
  opacity: 0.6;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.breadcrumb a:hover {
  opacity: 1;
  color: var(--color-warm-gold);
}

.breadcrumb span {
  color: var(--color-cream);
  opacity: 0.4;
  font-size: var(--text-body-small);
}

.breadcrumb__current {
  color: var(--color-warm-gold) !important;
  opacity: 1 !important;
}

/* ============================================================
   4. SITE HEADER & NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background-color: var(--color-forest-green);
  padding: 20px 0;
  transition: padding var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-elevated);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* The mark is deliberately small; the hit area is not. Vertical padding gives
   the link a full 44px target without changing how the logo looks. */
.nav__logo {
  padding: 8px 0;
  min-height: var(--tap-target);
  justify-content: center;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.05em;
}

.nav__logo-full {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 400;
  color: var(--color-warm-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-body-small);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cream);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav__link:hover,
.nav__link.active {
  opacity: 1;
  color: var(--color-warm-gold);
}

.nav__cta {
  margin-left: var(--space-md);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-cream);
  transition: all var(--transition-fast);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background-color: var(--color-forest-green);
  z-index: var(--z-mobile-nav);
  padding: var(--space-2xl) var(--space-lg);
  /* Parked off-canvas by transform, not by `right: -100%`. A fixed element
     sitting outside the viewport widens the layout viewport on mobile and
     gives every page a phantom horizontal scroll. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--space-2xl) + env(safe-area-inset-bottom, 0px));
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition-base), visibility var(--transition-base);
}

.mobile-nav.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__links {
  list-style: none;
  margin-top: var(--space-xl);
}

.mobile-nav__links li {
  margin-bottom: var(--space-md);
}

.mobile-nav__links a {
  font-family: var(--font-body);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cream);
  text-decoration: none;
  transition: color var(--transition-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

.mobile-nav .btn {
  margin-top: var(--space-xl);
  width: 100%;
  text-align: center;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Skip link (keyboard users land here first) --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: calc(var(--z-mobile-nav) + 10);
  padding: 12px 20px;
  background-color: var(--color-warm-gold);
  color: var(--color-forest-green);
  font-family: var(--font-body);
  font-size: var(--text-body-small);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.skip-link:focus {
  left: var(--container-padding);
  top: var(--space-xs);
}

/* --- Visible focus for keyboard navigation --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-warm-gold);
  outline-offset: 3px;
}

/* --- Mobile nav: scrollable, safe-area aware, direct contact --- */
.mobile-nav__close {
  width: var(--tap-target);
  height: var(--tap-target);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__links a {
  display: block;
  padding: 10px 0;
  min-height: var(--tap-target);
}

.mobile-nav__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--alpha-cream-15);
}

.mobile-nav__contact a {
  display: flex;
  align-items: center;
  min-height: var(--tap-target);
  font-size: var(--text-body-small);
  letter-spacing: var(--tracking-body);
  color: var(--color-cream);
  opacity: 0.75;
  text-decoration: none;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.mobile-nav__contact a:hover {
  opacity: 1;
  color: var(--color-warm-gold);
}

/* --- Nav tap targets --- */
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
}

.nav__toggle {
  width: var(--tap-target);
  height: var(--tap-target);
  align-items: center;
  justify-content: center;
}

/* ============================================================
   5. SITE FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--color-forest-green);
  color: var(--color-cream);
  padding: var(--space-3xl) 0 var(--space-lg);
}

/* The footer sits on a narrower measure than the page body. At the full 1280px
   the four columns drift apart and the block reads as a spread, not a footer. */
.site-footer .container {
  max-width: 1100px;
}

.footer__grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl) clamp(var(--space-lg), 2.5vw, var(--space-xl));
  margin-bottom: var(--space-xl);
}

.footer__brand {
  max-width: 34ch;
}

.footer__logo {
  display: block;
  text-decoration: none;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.05em;
}

.footer__logo-full {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  color: var(--color-warm-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--color-cream);
  opacity: 0.8;
  margin-bottom: var(--space-lg);
}

.footer__offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.footer__office-city {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-warm-gold);
  margin-bottom: var(--space-sm);
}

.footer__office p {
  font-size: var(--text-body-small);
  color: var(--color-cream);
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-warm-gold);
  margin-bottom: var(--space-md);
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 0;
}

.footer__links a {
  font-size: var(--text-body-small);
  color: var(--color-cream);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer__links a:hover {
  opacity: 1;
  color: var(--color-warm-gold);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--alpha-cream-30);
  border-radius: 50%;
  color: var(--color-cream);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  border-color: var(--color-warm-gold);
  color: var(--color-warm-gold);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__emergency {
  padding-top: 0;
}

/* Only rule off the emergency line when there is something above it to separate. */
.footer__social + .footer__emergency {
  padding-top: var(--space-md);
  border-top: 1px solid var(--alpha-cream-15);
}

.footer__emergency-label {
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-cream);
  opacity: 1;
  margin-bottom: var(--space-xs);
}

.footer__emergency-phone {
  font-family: var(--font-heading);
  font-size: var(--text-body-large);
  color: var(--color-warm-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__emergency-phone:hover {
  color: var(--color-cream);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--alpha-cream-15);
  gap: var(--space-md);
}

.footer__copyright {
  font-size: var(--text-body-small);
  color: var(--color-cream);
  opacity: 0.5;
  margin: 0;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-self: end;
}

.footer__legal a {
  font-size: var(--text-body-small);
  color: var(--color-cream);
  opacity: 0.5;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.footer__legal a:hover {
  opacity: 1;
  color: var(--color-warm-gold);
}

.footer__legal-sep {
  color: var(--color-cream);
  opacity: 0.3;
}

/* --- Footer direct contact block --- */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: var(--tap-target);
  font-size: var(--text-body);
  color: var(--color-cream);
  opacity: 0.85;
  text-decoration: none;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-warm-gold);
}

.footer__contact-item:hover {
  opacity: 1;
  color: var(--color-warm-gold);
}

.footer__links a,
.footer__legal a {
  display: inline-flex;
  align-items: center;
  /* Full 44px target. The columns no longer stretch because the list items
     carry no extra margin; the link box itself provides the rhythm. */
  min-height: var(--tap-target);
}

/* ============================================================
   6. WHATSAPP FLOATING BUTTON
   ============================================================ */

.whatsapp-fab {
  position: fixed;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: var(--z-fab);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: var(--shadow-elevated);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-floating);
}

/* Keep clear of the mobile nav panel and its overlay */
.mobile-nav.active ~ .whatsapp-fab,
body:has(.mobile-nav.active) .whatsapp-fab {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .whatsapp-fab {
    width: 52px;
    height: 52px;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
  }

  .whatsapp-fab svg {
    width: 26px;
    height: 26px;
  }
}

/* ============================================================
   7. HEADER & FOOTER — RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .nav__links,
    .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  /* Brand across the top, then the three link columns in one row. Two columns
     left Connect orphaned on a half-width row of its own. */
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {

  /* Two link columns rather than one long stack. Single-column ran the footer
     to ~1,380px on a phone, most of it dead space between links. */
  .site-footer {
    padding-top: var(--space-2xl);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg) var(--space-md);
    text-align: center;
  }

  .footer__brand {
    grid-column: 1 / -1;
    /* The 34ch measure is for the desktop column; on a phone it left the whole
       brand block sitting 21px left of centre. */
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__logo,
  .footer__tagline {
    text-align: center;
  }

  .footer__tagline {
    margin-bottom: var(--space-sm);
  }

  .footer__logo {
    margin-bottom: var(--space-sm);
  }

  .footer__contact {
    align-items: center;
    gap: 0;
    margin-bottom: 0;
  }

  .footer__contact-item {
    justify-content: center;
  }

  .footer__offices {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer__office {
    text-align: center;
  }

  .footer__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
  }

  /* Connect has one short item, so it sits under the two lists rather than
     leaving a ragged third column. */
  .footer__col:last-of-type {
    grid-column: 1 / -1;
  }

  .footer__heading {
    text-align: center;
    margin-bottom: var(--space-xs);
  }

  .footer__links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__links a {
    /* Stays at the full 44px target; the two-column layout is what buys the
       height back, not shrinking the touch area. */
    min-height: var(--tap-target);
    line-height: 1.3;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__emergency,
  .footer__social + .footer__emergency {
    text-align: center;
    border-top: none;
    padding-top: 0;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }
}

}

/* ============================================================
   8. ANIMATION & MOTION PREFERENCES
   ============================================================ */

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp var(--transition-slow) ease-out forwards;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
