/* ===========================================================
   The Cascades Neopolis — Global Design Tokens & Reset
   Palette: espresso + coral-copper — warm dark coffee-brown
   depth, champagne ivory, coral-copper accent warmth.
   =========================================================== */

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro.regular.otf") format("opentype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro.light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro.light-italic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ---- Base palette (3 colors only) ---- */
  --onyx: #2a1d16;       /* primary — deep espresso brown */
  --ivory: #f4ecdd;      /* secondary — warm champagne */
  --gold: #c97b5d;       /* accent — coral-copper */

  /* ---- Derived surfaces & inks ---- */
  --onyx-soft: color-mix(in srgb, var(--onyx) 88%, var(--ivory));
  --onyx-veil: color-mix(in srgb, var(--onyx) 60%, transparent);
  --onyx-veil-strong: color-mix(in srgb, var(--onyx) 82%, transparent);
  --ivory-dim: color-mix(in srgb, var(--ivory) 70%, var(--onyx));
  --ivory-muted: color-mix(in srgb, var(--ivory) 55%, var(--onyx));
  --gold-soft: color-mix(in srgb, var(--gold) 60%, var(--ivory));
  --gold-line: color-mix(in srgb, var(--gold) 45%, transparent);

  --ink: var(--ivory);
  --ink-muted: var(--ivory-dim);
  --surface: var(--onyx);

  /* ---- Status ---- */
  --danger: #b23a3a;

  /* ---- Type ----
     Source Sans Pro (light, light-italic, regular) — headlines, body & accents. */
  --font-display: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  /* ---- Motion ---- */
  --ease-luxe: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, p {
  margin: 0;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 1px;
  transition: all 0.35s var(--ease-luxe);
  position: relative;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.btn.is-loading::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ivory) 40%, transparent);
  border-top-color: var(--ivory);
  animation: btn-spin 0.7s linear infinite;
  margin-left: 4px;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

/* ---- Header ---- */
#fixed-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  padding: 22px clamp(20px, 5vw, 56px);
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--onyx) 55%, transparent) 0%,
    transparent 100%
  );
  transition:
    background 0.4s var(--ease-luxe),
    padding 0.4s var(--ease-luxe),
    box-shadow 0.4s var(--ease-luxe);
}

#fixed-header.scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: color-mix(in srgb, var(--onyx) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--onyx) 45%, transparent);
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo__img {
  height: 52px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-nav a {
  position: relative;
  padding-bottom: 4px;
  color: var(--ivory-dim);
  transition: color 0.3s var(--ease-luxe);
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease-luxe);
}

.header-nav a:hover {
  color: var(--ivory);
}

.header-nav a:hover::after {
  right: 0;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ivory-dim);
  transition: color 0.3s var(--ease-luxe);
}

.header-phone:hover {
  color: var(--gold);
}

.header-phone .i svg {
  width: 15px;
  height: 15px;
}

.header-enquire {
  padding: 11px 22px;
  font-size: 0.7rem;
}

.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: none;
}

.header-burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ivory);
  transition:
    transform 0.3s var(--ease-luxe),
    opacity 0.3s var(--ease-luxe);
}

.header-burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.header-burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---- Mobile menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  background: color-mix(in srgb, var(--onyx) 97%, transparent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity 0.35s var(--ease-luxe),
    transform 0.35s var(--ease-luxe),
    visibility 0.35s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

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

body.menu-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .header-nav,
  .header-phone,
  .header-enquire {
    display: none;
  }

  .header-burger {
    display: flex;
  }
}

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