/* ===== Proudly Powered — light premium purple energy brand ===== */

/* Official brand palette (client swatch sheet)
   Deep Aubergine #2B1938 · Royal Plum #4A2B6E · Soft Lavender #B78AE8
   Lilac Mist #D8C4F4 · Warm White #F8F6F2 · Charcoal #232323          */
:root {
  --bg: #f8f6f2;        /* Warm White — main background */
  --bg-alt: #ffffff;    /* clean white surfaces / cards / forms */
  --bg-soft: #f2ecfb;   /* soft lavender wash — lighter than Lilac Mist so sections aren't heavy */
  --lilac: #d8c4f4;     /* Lilac Mist — reserved as an accent */
  --bg-darker: #2b1938; /* Deep Aubergine — primary brand colour */
  --gold: #4a2b6e;      /* Royal Plum — headings, icons, key elements */
  --gold-light: #b78ae8;/* Soft Lavender — accents, gradients */
  --cream: #232323;     /* Charcoal — body text */
  --muted: #5c575f;     /* softened charcoal for secondary text */
  --on-dark: #f8f6f2;   /* Warm White on the aubergine band */
  --on-dark-muted: #d8c4f4;
  --border: rgba(74, 43, 110, 0.16);
  --shadow: 0 18px 40px rgba(43, 25, 56, 0.08);
  --radius: 4px;
  --container: 1180px;
  /* brand font: Be Vietnam Pro throughout */
  --ff-heading: "Be Vietnam Pro", "Segoe UI", sans-serif;
  --ff-accent: "Be Vietnam Pro", "Segoe UI", sans-serif;
  --ff-body: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--ff-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}


h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
}

/* italic serif accent, mirroring "proudly" in the logo */
.accent-serif,
.hero h1 em {
  font-family: var(--ff-accent);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.section-head.in-view h2::after { width: 90px; }

section {
  padding: 110px 0;
  position: relative;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-gold {
  background: #d8c4f4;      /* Lilac Mist — light, not heavy purple */
  color: #4a2b6e;           /* Royal Plum text */
  border-color: rgba(74, 43, 110, 0.18);
}

.btn-gold:hover {
  transform: translateY(-2px);
  background: #c8aef0;
  box-shadow: 0 10px 26px rgba(74, 43, 110, 0.22);
}

.btn-outline {
  border-color: var(--border);
  color: var(--cream);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: all 0.35s ease;
  background: transparent;
}

.site-header.scrolled {
  padding: 14px 0;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img { height: 58px; width: auto; }

.logo-text {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--cream);
  white-space: nowrap;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--gold); }

/* ---- Solutions dropdown ---- */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 230px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(6px);
}

.nav-dropdown:hover .nav-dropdown-toggle::after { transform: translateY(0) rotate(225deg); }

.nav-dropdown-menu a {
  padding: 11px 16px;
  border-radius: 3px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover { background: var(--bg-soft); color: var(--gold); }

/* small bridge so the menu doesn't vanish when moving the cursor down to it */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

/* ---- Why Us review box ---- */
.review-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.review-quote {
  font-family: var(--ff-heading);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--cream);
  font-weight: 500;
  margin-bottom: 28px;
}

.review-author { display: flex; align-items: center; gap: 14px; }

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.review-author strong { display: block; color: var(--cream); font-size: 1rem; }
.review-author span { color: var(--muted); font-size: 0.85rem; }

.header-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 120px;
  background: var(--bg);
}

/* Poster fallback layer (shows if the video hasn't loaded, on mobile, or reduced motion) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/hero-poster.jpg") center/cover no-repeat;
  transform: scale(1.05);
  animation: kenburns 22s ease-out forwards;
}

/* Looping drone video layer */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* grade is baked into the file — no CSS filter here, it causes per-frame GPU work and stutter */
}

@keyframes kenburns {
  from { transform: scale(1.05); }
  to { transform: scale(1.16) translateY(-1.5%); }
}

.hero-content {
  max-width: 620px;
  margin-left: max(24px, calc((100vw - 1180px) / 2 + 24px));
  margin-right: 0;
  padding: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 34px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  justify-content: start;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-feature .hf-icon {
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.55);
}

.hero-feature .hf-icon svg { width: 22px; height: 22px; }

.hero-feature span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 600;
  line-height: 1.45;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  perspective: 1100px;
}

.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.2s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 30px 60px rgba(43, 25, 56, 0.16);
}

/* the 3D tilt is applied inline via JS; this keeps content lifted above the tilt plane */
.service-card .service-body,
.service-card .img-wrap { transform: translateZ(20px); }

.service-card .img-wrap {
  height: 220px;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img { transform: scale(1.06); }

.service-body { padding: 28px; }

.service-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.service-link {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.service-link:hover {
  color: var(--cream);
  letter-spacing: 0.1em;
}

/* ---------- Why us ---------- */

.why-us {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.why-us .img-frame {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.why-us .img-frame img { width: 100%; }

.why-list { display: grid; gap: 22px; margin-top: 32px; }

.why-item { display: flex; gap: 16px; align-items: flex-start; }

.why-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.why-icon svg { width: 22px; height: 22px; }

.why-item h4 { font-size: 1.05rem; margin-bottom: 4px; }

.why-item p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

/* subtle gold journey line connecting the stages */
.process-grid::before {
  content: "";
  position: absolute;
  top: 37px;
  left: 11%;
  right: 11%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
  opacity: 0.45;
}

.process-step { text-align: center; position: relative; }

.process-num {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin: 0 auto 22px;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.process-num svg { width: 32px; height: 32px; }

.process-step h4 { font-size: 1.1rem; margin-bottom: 10px; }

.process-step p { color: var(--muted); font-size: 0.9rem; }

/* ========================================================
   Landing / product pages
   ======================================================== */

.page-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 160px 0 90px;
  background: var(--bg-soft);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(248, 246, 242, 0.86) 42%, rgba(248, 246, 242, 0.4) 66%, transparent 100%);
}

.page-hero .container { position: relative; z-index: 2; }
.page-hero-inner { max-width: 600px; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1; margin-bottom: 20px; }
.page-hero p { font-size: 1.1rem; color: var(--muted); max-width: 520px; margin-bottom: 34px; }

.page-section { padding: 90px 0; }

.page-lead {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.page-lead p { color: var(--muted); font-size: 1.1rem; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.benefit-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.benefit-card:hover { transform: translateY(-6px); border-color: var(--gold); }

.benefit-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.benefit-card p { color: var(--muted); font-size: 0.95rem; }

/* ---- Cool / blue theme (Air Conditioning page) ---- */
.theme-cool {
  --gold: #1f7a9c;         /* cool teal-blue accent */
  --gold-light: #58b6d6;   /* bright cool blue */
  --bg-soft: #eef6fb;      /* icy wash */
  --bg-darker: #0c2f45;    /* deep cold navy */
}
.theme-cool .page-hero::after {
  background: linear-gradient(90deg, #eef6fb 0%, rgba(238, 246, 251, 0.85) 40%, rgba(238, 246, 251, 0.35) 65%, transparent 100%);
}
.theme-cool .btn-gold {
  background: linear-gradient(135deg, #58b6d6, #1f7a9c);
  color: #ffffff;
}
.theme-cool .btn-gold:hover { background: linear-gradient(135deg, #67c3e2, #1a6a89); }

/* ---------- Future planning (USP) ---------- */

.future-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.future-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.future-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 26px 55px rgba(43, 25, 56, 0.14);
}

.future-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.future-icon svg { width: 28px; height: 28px; }

.future-card h4 { font-size: 1.05rem; }

/* ---------- Testimonials ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 18px; }

.testimonial-card p {
  color: var(--cream);
  font-size: 0.98rem;
  margin-bottom: 22px;
  font-style: italic;
}

.testimonial-author { font-size: 0.85rem; color: var(--muted); }
.testimonial-author strong { color: var(--gold); display: block; font-style: normal; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, #2b1938, #4a2b6e);
  text-align: center;
  padding: 90px 0;
}

.cta-banner h2 { max-width: 640px; margin: 0 auto 18px; color: var(--on-dark); }

.cta-banner p { color: var(--on-dark-muted); max-width: 500px; margin: 0 auto 36px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info h2 { margin-bottom: 20px; }

.contact-info p { color: var(--muted); margin-bottom: 32px; }

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.contact-detail .icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-detail .icon svg { width: 18px; height: 18px; }

.social-links a svg { width: 16px; height: 16px; }

.contact-detail strong { display: block; color: var(--cream); margin-bottom: 2px; }
.contact-detail span, .contact-detail a { color: var(--muted); font-size: 0.92rem; }

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #fcfbf8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 0.95rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #8f8a95; }

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
}

.form-note.is-success { color: #2e7d4f; font-weight: 500; }
.form-note.is-error { color: #b3261e; font-weight: 500; }

/* honeypot — off-screen for humans, still fillable by bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Interest checkboxes ---------- */

.check-fieldset { border: none; margin: 0 0 20px; padding: 0; }

.check-fieldset legend {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 14px;
  font-size: 0.92rem;
  color: var(--cream);
  cursor: pointer;
}

.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.check span { line-height: 1.35; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.1fr 1.1fr 1.1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-about p { color: var(--muted); font-size: 0.9rem; margin-top: 18px; }

/* footer logo: fix a width by its natural ratio so it never gets squished */
.footer-about .logo img { height: auto; width: 210px; max-width: 100%; }

.footer-col h4 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-col ul { display: grid; gap: 12px; }

.footer-col a { color: var(--muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.social-links { display: flex; gap: 14px; }

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.social-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Hero depth + scroll cue ---------- */

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(270deg, rgba(43, 25, 56, 0.5) 0%, rgba(43, 25, 56, 0.22) 20%, transparent 48%),
    linear-gradient(95deg, rgba(248, 246, 242, 0.97) 0%, rgba(248, 246, 242, 0.95) 46%, rgba(248, 246, 242, 0.74) 66%, rgba(248, 246, 242, 0.32) 84%, rgba(248, 246, 242, 0.06) 100%),
    linear-gradient(180deg, rgba(248, 246, 242, 0.25) 0%, transparent 26%, transparent 74%, var(--bg) 100%);
}

.hero .container { position: relative; z-index: 2; }
.scroll-cue { z-index: 3; }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--gold);
  animation: scroll-bob 1.8s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(44px) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.85s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Stagger children within a grid */
.services-grid .reveal:nth-child(2),
.process-grid .reveal:nth-child(2),
.testimonials-grid .reveal:nth-child(2) { transition-delay: 0.1s; }

.services-grid .reveal:nth-child(3),
.process-grid .reveal:nth-child(3),
.testimonials-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.process-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Accessibility: focus + reduced motion ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

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

  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

/* header gets crowded before the mobile menu kicks in — drop the phone button first */
@media (max-width: 1320px) {
  .header-cta .btn-outline { display: none; }
}

@media (max-width: 980px) {
  .services-grid,
  .process-grid,
  .testimonials-grid,
  .future-grid,
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }

  .process-grid::before { display: none; }

  .why-us,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

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

@media (max-width: 760px) {
  section { padding: 80px 0; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 78%;
    max-width: 320px;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 60px rgba(43, 25, 56, 0.12);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 28px;
    padding: 110px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 99;
  }

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

  .nav-toggle { display: flex; }

  .header-cta .btn-outline { display: none; }

  /* keep the wide wordmark + Get a Quote + menu all fitting on phones:
     controls stay full size, logo shrinks into whatever space is left (capped) */
  .header-inner { gap: 10px; }
  .logo { flex-shrink: 1; min-width: 0; }
  .logo img { height: auto; max-height: 42px; max-width: 100%; }
  .header-cta { gap: 10px; flex-shrink: 0; }
  .header-cta .btn-gold { padding: 10px 16px; font-size: 0.72rem; letter-spacing: 0.04em; }

  /* dropdown becomes an inline expanded list inside the slide-out menu */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle::after { display: none; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 12px 0 0 14px;
    min-width: 0;
    gap: 6px;
  }
  .nav-dropdown-menu a { padding: 6px 0; font-size: 0.78rem; }

  .hero-features { grid-template-columns: repeat(2, 1fr); gap: 22px; }

  .check-grid { grid-template-columns: 1fr; }

  /* Save mobile bandwidth — poster image (with Ken Burns) shows instead */
  .hero-video { display: none; }

  .services-grid,
  .process-grid,
  .testimonials-grid,
  .future-grid,
  .benefit-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===================================================================
   Motion layer (UI/UX skill)
   =================================================================== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 200;
  transition: width 0.1s linear;
}

/* Hero staggered entrance (pure CSS, runs on load) */
.hero-content > * {
  opacity: 0;
  transform: translateY(28px);
  animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.28s; }
.hero-content > *:nth-child(3) { animation-delay: 0.41s; }
.hero-content > *:nth-child(4) { animation-delay: 0.54s; }
.hero-content > *:nth-child(5) { animation-delay: 0.67s; }

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

/* Nav link underline slide */
.nav-links a { position: relative; }
/* underline only on top-level nav links, not the dropdown toggle or its menu items */
.nav-links > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.28s ease;
}
.nav-links > a:hover::after { width: 100%; }

/* Button hover sheen sweep */
.btn { position: relative; overflow: hidden; }
.btn-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-gold:hover::before { left: 160%; }

/* Directional reveals */
.reveal-left { transform: translateX(-42px); }
.reveal-right { transform: translateX(42px); }
.reveal-left.in-view,
.reveal-right.in-view { transform: translateX(0); }

/* ---- Hero floating glow orbs ---- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero-orb-1 {
  width: 320px; height: 320px;
  top: 10%; right: 8%;
  background: radial-gradient(circle, rgba(74, 43, 110, 0.32), transparent 70%);
  animation: orbDrift 17s ease-in-out infinite;
}
.hero-orb-2 {
  width: 240px; height: 240px;
  bottom: 12%; left: 5%;
  background: radial-gradient(circle, rgba(162, 129, 214, 0.3), transparent 70%);
  animation: orbDrift 22s ease-in-out infinite reverse;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(34px, -28px); }
}

/* ---- Shimmering gold text ---- */
.shimmer-text {
  background: linear-gradient(100deg, var(--gold) 25%, #b78ae8 45%, #d8c4f4 50%, #b78ae8 55%, var(--gold) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4.5s linear infinite;
}
@keyframes shimmer {
  to { background-position: -200% center; }
}

/* Respect reduced motion for all of the above */
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; transform: none; }
  .hero-video { display: none; }
  .hero-content > * { opacity: 1; transform: none; animation: none; }
  .scroll-progress { transition: none; }
  .reveal-left,
  .reveal-right { transform: none; }
  .btn-gold::before { display: none; }
  .hero-orb { animation: none; }
  .shimmer-text {
    animation: none;
    -webkit-text-fill-color: var(--gold);
    color: var(--gold);
  }
}
