:root {
  --volcanic-charcoal: #181B18;
  --deep-pine: #253D33;
  --forest-moss: #536B57;
  --warm-sand: #E7DECE;
  --sunrise-amber: #C98D52;
  --mist-white: #F5F3ED;
  --stone-grey: #8B8B82;
  --pure-white: #FFFFFF;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --radius-organic: 28px;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: auto; }
body {
  background: var(--mist-white);
  color: var(--volcanic-charcoal);
  font-family: 'DM Sans', system-ui, sans-serif;
  overflow-x: hidden;
}

.font-display { font-family: 'Cormorant Garamond', Georgia, serif; }
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.img-surface { position: relative; overflow: hidden; background: linear-gradient(160deg, #253D33, #181B18 55%, #3d2a18); }
.img-surface.failed::after {
  content: 'Highland visual';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E7DECE;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 11px;
}
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-solid {
  background: rgba(245,243,237,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(24,27,24,.08);
}

/* Brand + nav colours follow the navbar state.
   These live here (not only in the markup) so they cannot desync from the
   .nav-solid class that JS toggles on scroll. */
#siteNav .nav-wordmark .brand-title { color: var(--pure-white); }
#siteNav .nav-wordmark .brand-sub { color: rgba(255, 255, 255, .6); }
/* [data-solid="1"] covers subpages, which are solid from first paint (before JS runs). */
#siteNav.nav-solid .nav-wordmark .brand-title,
#siteNav[data-solid="1"] .nav-wordmark .brand-title { color: var(--volcanic-charcoal); }
#siteNav.nav-solid .nav-wordmark .brand-sub,
#siteNav[data-solid="1"] .nav-wordmark .brand-sub { color: var(--stone-grey); }

.line-mask { overflow: hidden; display: block; }

/* Hero copy sits over a photograph: keep body text readable on small screens. */
.hero-copy > p { text-shadow: 0 1px 12px rgba(24, 27, 24, .65); }
/* Mobile hero photo fills the viewport behind the copy, so use a full-bleed
   bottom-weighted scrim instead of a panel that would show a hard edge. */
@media (max-width: 1023px) {
  .hero-overlay {
    background-image: linear-gradient(
      to top,
      rgba(24, 27, 24, .94) 0%,
      rgba(24, 27, 24, .86) 40%,
      rgba(24, 27, 24, .62) 68%,
      rgba(24, 27, 24, .38) 100%
    ) !important;
  }
}
.faq-panel { display: none; }
.faq-item.open .faq-panel { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.wa-float { bottom: max(24px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); }

.no-scroll { overflow: hidden; height: 100%; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: #253D33;
  color: #F5F3ED;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(24, 27, 24, 0.28);
}
.menu-btn svg { width: 20px; height: 20px; display: block; }
@media (min-width: 1024px) {
  .menu-btn { display: none; }
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  flex-direction: column;
  background: #181B18;
  color: #F5F3ED;
  padding: max(20px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer a { color: #F5F3ED; }
.mobile-drawer .menu-link {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-drawer .menu-link:hover,
.mobile-drawer .menu-link:focus { color: #C98D52; }
.drawer-cta {
  margin-top: auto;
  display: inline-flex;
  min-height: 48px;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #C98D52;
  color: #181B18 !important;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(245, 243, 237, 0.28);
  background: transparent;
  color: #F5F3ED;
  cursor: pointer;
}
.drawer-close svg { width: 20px; height: 20px; display: block; }

.form-success {
  border-radius: 22px;
  background: #253D33;
  color: #F5F3ED;
  padding: 16px 20px;
  font-size: 14px;
}

@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;
  }
}
