/* ==========================================================================
   Owner Secret Team — premium light luxury theme
   Design tokens first, then components. Bootstrap 5 is loaded before this.
   ========================================================================== */

:root {
  /* Gold */
  --gold: #d4af37;
  --gold-rich: #c9971a;
  --gold-dark: #8f6a12;
  --gold-light: #f2d56b;
  --gold-gradient: linear-gradient(
    90deg,
    #8f6a12 0%,
    #c9971a 35%,
    #f2d56b 60%,
    #d4af37 100%
  );

  /* Surfaces */
  --bg-primary: #faf9f6;
  --bg-section: #ffffff;
  --bg-alt: #f5f2eb;
  --bg-card: #ffffff;
  --bg-dark: #1e1e1e;

  /* Type */
  --text-primary: #1e1e1e;
  --text-secondary: #555555;
  --text-muted: #777777;

  /* Lines */
  --border: #e6e2da;
  --divider: #ede8df;

  /* Status */
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #dc2626;
  --info: #3b82f6;

  /* Shape & motion */
  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 18px 45px rgba(143, 106, 18, 0.14);
  --shadow-nav: 0 2px 20px rgba(0, 0, 0, 0.05);
  --ease: 0.3s ease;

  --container-max: 1240px;
  --section-y: 80px;

  /* Height of the fixed navbar. body reserves this as padding-top, and the
     anchor offset derives from it. This only works because the bar's height
     is constant — see the note on .site-nav. Keep them in sync. */
  --nav-h: 73px;

  --font-heading: "Sora", "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Manrope", "Segoe UI", sans-serif;

  /* --- Logo cropping ------------------------------------------------------
     The logo PNG is a 1024x1024 canvas. Measured content regions:
       full lockup  x 62..944,  y 135..885  (883 x 751)
       monogram     x 124..930, y 135..751  (807 x 617)
     Each pair below crops the surrounding transparent padding and re-centres
     on the true optical centre. Re-measure if LOGO_FILE is replaced. */
  --logo-aspect: 883 / 751;
  --logo-scale: 136.4%; /* 1024 / 751 */
  --logo-x: 49.12%; /* content centre x, as % of the 1024 canvas */
  --logo-y: 49.8%;

  --mark-aspect: 807 / 617;
  --mark-scale: 166%; /* 1024 / 617 */
  --mark-x: 51.46%;
  --mark-y: 43.26%;
}

/* Crop viewports — set a height on the element carrying the class and the
   artwork scales to fill it exactly. .logo-crop shows the whole lockup;
   .logo-mark shows only the OST monogram, for tight spaces like the navbar. */
.logo-crop,
.logo-mark {
  position: relative;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-crop img,
.logo-mark img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  max-width: none;
}

.logo-crop {
  aspect-ratio: var(--logo-aspect);
}

.logo-crop img {
  height: var(--logo-scale);
  transform: translate(calc(-1 * var(--logo-x)), calc(-1 * var(--logo-y)));
}

.logo-mark {
  aspect-ratio: var(--mark-aspect);
}

.logo-mark img {
  height: var(--mark-scale);
  transform: translate(calc(-1 * var(--mark-x)), calc(-1 * var(--mark-y)));
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  /* Clears the fixed navbar, plus a little breathing room, so anchored
     sections never land underneath it. */
  scroll-padding-top: calc(var(--nav-h) + 22px);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  /* `clip` rather than `hidden`: hidden makes this a scroll container, which
     iOS Safari in particular then treats as the sticky navbar's scrollport —
     the classic cause of a sticky header stuttering during momentum scroll.
     `clip` suppresses the same horizontal overflow without that side effect.
     The `hidden` line is the fallback for browsers predating `clip`. */
  overflow-x: hidden;
  overflow-x: clip;
  /* The navbar is fixed, so it occupies no flow space — reserve it here or
     the hero starts underneath it. */
  padding-top: var(--nav-h);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1,
.h1 {
  /* Sized so the longest hero line ("Get More Customers.", ~10.6em wide in
     Sora 700) fits the half-width hero column without wrapping. That column's
     text area is ~556px at the 1240px container and ~432px at the 992px
     breakpoint, so the cap and slope below are the largest that clear both.
     Re-check these if the hero headline copy gets any longer. */
  font-size: clamp(1.9rem, 4vw, 3.2rem) !important;
  font-weight: 700;
}
h2,
.h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
}
h3,
.h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
}

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

a {
  color: var(--gold-rich);
  text-decoration: none;
  transition: color var(--ease);
}

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

::selection {
  background: var(--gold-light);
  color: var(--text-primary);
}

.container-xxl,
.container {
  max-width: var(--container-max);
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 992px) {
  .container-xxl,
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section--tight {
  padding-top: 56px;
  padding-bottom: 56px;
}

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

.text-primary-dark {
  color: var(--text-primary) !important;
}
.text-secondary-soft {
  color: var(--text-secondary) !important;
}
.text-muted-soft {
  color: var(--text-muted) !important;
}

.lead-text {
  font-size: 1.075rem;
  color: var(--text-secondary);
  max-width: 62ch;
}

.text-gold {
  color: var(--gold-rich) !important;
}

.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.rule-gold {
  width: 64px;
  height: 3px;
  border: 0;
  border-radius: 3px;
  background: var(--gold-gradient);
  opacity: 1;
  margin: 0 0 22px;
}

.rule-gold--center {
  margin-left: auto;
  margin-right: auto;
}

/* Small uppercase label above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-gradient);
}

.eyebrow--center::after {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-gradient);
}

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

.section-head p {
  color: var(--text-secondary);
  margin-top: 16px;
}

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

.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  padding: 0.68rem 1.5rem;
  transition: all var(--ease);
  border-width: 2px;
}

.btn:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.45);
  outline-offset: 2px;
  box-shadow: none;
}

.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover,
.btn-gold:focus {
  background-color: var(--gold-rich);
  border-color: var(--gold-rich);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(201, 151, 26, 0.32);
}

.btn-gold-outline {
  background-color: transparent;
  border: 2px solid var(--gold);
  color: var(--gold-rich);
}

.btn-gold-outline:hover,
.btn-gold-outline:focus {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-lg-pro {
  padding: 0.85rem 1.9rem;
  font-size: 0.94rem;
}

.btn i {
  vertical-align: -1px;
}

/* --------------------------------------------------------------------------
   Splash screen
   -------------------------------------------------------------------------- */

/* Only applied while the splash is actually on screen. */
.splash-active,
.splash-active body {
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* White to match the logo artwork's own white background. */
  background: #ffffff;
  transition:
    opacity 0.65s ease,
    visibility 0.65s ease;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.splash-logo {
  position: relative;
  animation: splashLogoIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-logo.logo-crop {
  height: min(215px, 48vw);
  margin: 0 auto;
}

/* Gold sweep, masked to the logo artwork so it only lights the mark itself
   and never paints a band across the transparent areas. Sized and positioned
   identically to the image beneath it so the mask lines up exactly. */
.splash-shine {
  position: absolute;
  left: 50%;
  top: 50%;
  height: var(--logo-scale);
  aspect-ratio: 1 / 1;
  transform: translate(calc(-1 * var(--logo-x)), calc(-1 * var(--logo-y)));
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: var(--logo-mask) center / contain no-repeat;
  mask: var(--logo-mask) center / contain no-repeat;
}

.splash-shine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0) 62%
  );
  transform: translateX(-115%);
  animation: splashShine 2.2s ease-in-out 0.6s infinite;
}

/* Text fallback used until logo.png is in place */
.splash-logo--text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.splash-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  color: #1e1e1e;
  letter-spacing: -0.01em;
}

.splash-tagline {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.splash-bar {
  width: 148px;
  height: 2px;
  margin: 30px auto 0;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.splash-bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left center;
  animation: splashBar 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

@keyframes splashLogoIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes splashShine {
  0% {
    transform: translateX(-115%);
  }
  55%,
  100% {
    transform: translateX(115%);
  }
}

@keyframes splashBar {
  to {
    transform: scaleX(1);
  }
}

@keyframes splashHalo {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.site-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--divider);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  /* Height is deliberately CONSTANT. It used to shrink on scroll, and because
     the bar is sticky that reflowed the whole page mid-scroll — every section
     jumped up ~9px while a smooth scroll was already in flight, which is what
     made scrolling judder. Only the shadow reacts to scroll now; nothing here
     may change the bar's height. */
  padding: 0.55rem 0;
  transition: box-shadow var(--ease);
}

.site-nav.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.site-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
}

/* The full lockup's wordmark is only ~8% of the artwork height, so at navbar
   scale it renders about 4px tall and turns to mush. The navbar therefore
   pairs the monogram with live text instead. */

.site-nav .brand-mark {
  height: 40px !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-text .brand-sub {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  white-space: nowrap;
}

/* The tagline is the widest part of the lockup; drop it before it can push
   the toggler onto a second row. */
@media (max-width: 575.98px) {
  .brand-text .brand-sub {
    display: none;
  }
}

@media (max-width: 400px) {
  .site-nav .brand-mark {
    height: 39px;
  }
  .brand-text .brand-name {
    font-size: 0.95rem;
  }
  .brand-text .brand-sub {
    display: none;
  }
}

.site-nav .nav-link {
  font-family: var(--font-heading);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.5rem 0;
  /* Tight enough that brand + links + CTA stay on one row down to the 992px
     expand breakpoint. If they wrap, the bar doubles in height and the fixed
     offset below it no longer matches. */
  margin: 0 0.7rem;
  position: relative;
  transition: color var(--ease);
}

.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--gold-gradient);
  transition: width var(--ease);
}

.site-nav .nav-link:hover {
  color: var(--gold-dark);
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after {
  width: 100%;
}
.site-nav .nav-link.active {
  color: var(--gold-rich);
}

.site-nav .navbar-toggler {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  color: var(--text-primary);
}

.site-nav .navbar-toggler:focus {
  box-shadow: none;
}

.nav-cta {
  margin-left: 0.8rem;
}

/* Sits inside a 70px bar — noticeably smaller than the in-page CTAs. */
.nav-cta .btn {
  padding: 0.56rem 1.15rem;
  font-size: 0.84rem;
  border-radius: 9px;
}

/* Matches navbar-expand-xl. Between 992 and 1199 the five links plus the CTA
   were too wide and wrapped inside the <ul>, doubling the bar's height; the
   hamburger is used through that range instead. */
@media (max-width: 1199.98px) {
  /* The open menu overlays the page instead of sitting in normal flow. In
     flow it grew the navbar by ~250px, so opening or closing it shoved every
     section up or down — and closing it mid-scroll made the scroll target
     move under the animation, which read as juddering. The bar is fixed,
     i.e. positioned, so this anchors to it. */
  .site-nav .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 6px 24px 18px;
    background: #ffffff;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.07);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }

  .site-nav .nav-link {
    margin: 0;
    padding: 0.7rem 0;
  }
  .site-nav .nav-link::after {
    display: none;
  }
  .nav-cta {
    margin: 14px 0 0;
    display: block;
  }
  .nav-cta .btn {
    width: 100%;
  }
}

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

.hero {
  position: relative;
  /* Clearance for the fixed navbar is reserved by body's padding-top, so this
     is purely the hero's own breathing room. */
  padding-top: 52px;
  padding-bottom: 84px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    var(--bg-primary) 55%,
    var(--bg-primary) 100%
  );
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 560px;
  height: 560px;
  top: -220px;
  right: -160px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.16) 0%,
    rgba(212, 175, 55, 0) 68%
  );
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -200px;
  left: -180px;
  background: radial-gradient(
    circle,
    rgba(201, 151, 26, 0.1) 0%,
    rgba(201, 151, 26, 0) 70%
  );
}

.hero > .container-xxl {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px 8px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  margin-bottom: 26px;
}

.hero-badge span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

.hero h1 {
  margin-bottom: 22px;
}

.hero .hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 56ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  padding-top: 28px;
  border-top: 1px solid var(--divider);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.hero-trust-item i {
  color: var(--gold-rich);
  font-size: 1.05rem;
}

/* Hero media */
.hero-media-wrap {
  position: relative;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(30, 30, 30, 0.16);
}

/* Scrim runs from the top: the caption lives up there so it cannot collide
   with the floating card anchored to the bottom-left corner. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 30, 30, 0.58) 0%,
    rgba(30, 30, 30, 0) 42%
  );
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
  transition: transform 1.2s ease;
}

.hero-media:hover img {
  transform: scale(1.04);
}

.hero-media-caption {
  position: absolute;
  left: 26px;
  right: 26px;
  top: 22px;
  z-index: 2;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-float-card {
  position: absolute;
  bottom: -26px;
  left: -26px;
  z-index: 3;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 288px;
}

.hero-float-card .icon-badge {
  margin: 0;
  flex-shrink: 0;
}

.hero-float-card strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.3;
}

/* :not(.icon-badge) — the badge is a <span> too, and this rule would strip its
   inline-flex centring and repaint the icon muted grey. */
.hero-float-card span:not(.icon-badge) {
  display: block;
  font-size: 0.78rem;
  line-height: 1.4; /* body line-height leaves an orphaned second line */
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: 36px;
    padding-bottom: 64px;
  }
  .hero-media img {
    min-height: 340px;
  }
  .hero-float-card {
    left: 16px;
    bottom: -20px;
  }
}

/* --------------------------------------------------------------------------
   Pillars strip — We Visit. We Audit. We Train. We Improve.
   -------------------------------------------------------------------------- */

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  height: 100%;
  text-align: center;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card-hover);
}

.pillar-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: all var(--ease);
}

.pillar-card:hover .icon-badge,
.icon-badge--gold {
  background: var(--gold-gradient);
  border-color: transparent;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */

.stat-item {
  text-align: center;
  padding: 8px 4px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 1.85rem);
  font-weight: 700;
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

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

.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  position: relative;
  padding: 28px 0;
}

.step-row + .step-row {
  border-top: 1px solid var(--divider);
}

.step-row--reverse .step-copy {
  order: 2;
}
.step-row--reverse .step-visual {
  order: 1;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}

.step-number .num {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--gold-gradient);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.28);
}

.step-copy h3 {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  margin-bottom: 11px;
}

.step-copy p {
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 0.8rem;
}

.step-note {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 6px;
  padding: 9px 17px;
  border-radius: 100px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.step-note i {
  color: var(--gold-rich);
}

.step-quote {
  margin-top: 14px;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  font-style: italic;
  font-size: 0.96rem;
  color: var(--text-primary);
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 13px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 22px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.step-list i {
  color: var(--gold-rich);
  font-size: 1rem;
  line-height: 1.6;
  flex-shrink: 0;
}

.step-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}

/* Explicit height rather than aspect-ratio: at ~560px per column a 4:3 image
   came out ~420px tall and drove the whole row. A hard cap keeps the photo
   roughly level with the copy beside it and takes ~120px off each step. */
.step-visual img {
  width: 100%;
  height: clamp(215px, 23vw, 300px);
  object-fit: cover;
  display: block;
  transition: transform 1s ease;
}

.step-visual:hover img {
  transform: scale(1.05);
}

/* Visual variant built from type instead of a photo */
.step-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  padding: 28px 28px;
}

.step-panel-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
}

.check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.check-list li:first-child {
  padding-top: 0;
}

.check-list i {
  color: var(--gold-rich);
  font-size: 1.15rem;
  line-height: 1.45;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .step-row {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 0;
  }

  .step-row--reverse .step-copy {
    order: 1;
  }
  .step-row--reverse .step-visual {
    order: 2;
  }
  .step-list {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Equation banner
   -------------------------------------------------------------------------- */

.equation-band {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 58px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.equation-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gold-gradient);
}

.equation-band::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  top: -240px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.14) 0%,
    rgba(212, 175, 55, 0) 70%
  );
}

.equation-inner {
  position: relative;
  z-index: 2;
}

.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.45rem);
  color: #ffffff;
}

.equation .op {
  color: var(--gold);
  font-weight: 400;
}

.equation .result {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.equation-sub {
  color: #cfcfcf;
  margin-top: 18px;
  font-size: 0.98rem;
  /* No max-width: the sentence is ~77 characters and fits one line inside the
     card at desktop widths — capping it forced an unnecessary wrap. Where the
     card genuinely is too narrow, balance keeps the two lines even. */
  text-wrap: balance;
}

/* The equation stops fitting on one line at ~775px, and letting it wrap left
   the "+" and "=" stranded at the end of each line. Stack the terms below
   this instead, so every operator sits centred on its own row like a written
   equation. The threshold sits above the measured 775px so a fallback font
   with wider metrics cannot reopen the ragged band. */
@media (max-width: 840px) {
  .equation {
    flex-direction: column;
    gap: 5px;
  }

  .equation .op {
    font-size: 0.85em;
    line-height: 1;
    opacity: 0.85;
  }
}

/* --------------------------------------------------------------------------
   Booking form
   -------------------------------------------------------------------------- */

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 42px 38px;
}

.form-card h3 {
  margin-bottom: 6px;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control,
.form-select {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.05rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition:
    border-color var(--ease),
    box-shadow var(--ease);
}

.form-control::placeholder {
  color: #999999;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
  background: #ffffff;
  color: var(--text-primary);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--error);
  background-image: none;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.invalid-feedback {
  font-size: 0.82rem;
  color: var(--error);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

/* Honeypot — hidden from humans, visible to naive bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.alert-soft {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 20px;
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 26px;
}

.alert-soft i {
  font-size: 1.15rem;
  line-height: 1.5;
  flex-shrink: 0;
}

.alert-soft--success {
  background: rgba(34, 197, 94, 0.07);
  border-color: rgba(34, 197, 94, 0.28);
  color: #15803d;
}

.alert-soft--error {
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.25);
  color: #b91c1c;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
}

.contact-line:last-child {
  border-bottom: 0;
}

.contact-line .icon-badge {
  width: 46px;
  height: 46px;
  font-size: 1.15rem;
  border-radius: 13px;
  margin: 0;
  flex-shrink: 0;
}

/* :not(.icon-badge) — the badge is a <span>; unguarded, this rule shrinks it
   to 0.76rem, drops its inline-flex centring and paints the icon grey. */
.contact-line span:not(.icon-badge) {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-line a,
.contact-line strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-line a:hover {
  color: var(--gold-rich);
}

@media (max-width: 575.98px) {
  .form-card {
    padding: 30px 22px;
  }
}

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

/* Multi-item loop slider — 3 cards visible, advancing one card per step. */
.testimonial-carousel {
  position: relative;
}

.tcar-viewport {
  overflow: hidden;
  /* Cancel the slide gutters so the first and last cards align with the grid */
  margin: 0 -12px;
  /* Room for the cards' hover lift and shadow, which would otherwise clip */
  padding: 10px 0 24px;
}

.tcar-track {
  display: flex;
  align-items: stretch; /* equal-height cards across the row */
  will-change: transform;
}

/* Slots per view. Keep these breakpoints in sync with perView() in main.js. */
.tcar-slide {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 0 12px;
}

@media (max-width: 1199.98px) {
  .tcar-slide {
    flex-basis: 50%;
    max-width: 50%;
  }
}

@media (max-width: 767.98px) {
  .tcar-slide {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* Static grid — used at every width where more than one card fits, i.e. the
   carousel is reserved for single-card (mobile) layouts. Cards wrap into rows,
   clones are dropped, and main.js hides the controls. */
.tcar-track.is-static {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 26px;
}

.tcar-track.is-static .is-clone {
  display: none;
}

/* Fewer cards than slots — share the row instead of leaving dead space. */
.tcar-track.is-static.is-fill .tcar-slide {
  flex: 1 1 0;
  max-width: none;
}

.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.t-arrow {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold-rich);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all var(--ease);
}

.t-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  transform: translateY(-2px);
}

.t-arrow:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.45);
  outline-offset: 2px;
}

.t-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--ease);
}

.t-dots button:hover {
  background: var(--gold-light);
}

.t-dots button.is-active {
  width: 26px;
  border-radius: 5px;
  background: var(--gold-gradient);
}

.t-dots button:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.55);
  outline-offset: 3px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 34px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-card-hover);
}

.testimonial-card .quote-mark {
  position: absolute;
  top: 18px;
  right: 26px;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.14;
}

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

.testimonial-card blockquote {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 26px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--divider);
}

.author-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--gold-dark);
  flex-shrink: 0;
}

/* The name and the role/company caption are two lines of one block, so they
   drop the 1.75 body leading that would otherwise space them apart. */
.testimonial-author strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}

/* :not(.author-initial) — same trap: the initial badge is a <span> and would
   lose its gold heading type to this muted caption style. .author-logo is a
   <span> too, and is a crop viewport rather than text. */
.testimonial-author span:not(.author-initial):not(.author-logo) {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Client logo, pinned to the trailing edge of the author row.

   Same crop-viewport trick as .logo-crop up top: the box is a fixed height at
   the artwork's *content* aspect ratio, and the image is blown up by --al-scale
   and re-centred on its content so the surrounding whitespace falls outside.
   Without it PACKZEN's wordmark — 263px of ink on a 975px canvas — would render
   at roughly a quarter of the height it was given.

   Per-logo values are measured from the PNGs; re-measure if either is replaced.
   Heights are set individually so a square badge and a 4:1 wordmark read as
   the same visual weight rather than the same number of pixels. */
.author-logo {
  --al-h: 30px;
  --al-aspect: 1;
  --al-scale: 100%;
  --al-x: 50%;
  --al-y: 50%;

  position: relative;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: auto;
  height: var(--al-h);
  aspect-ratio: var(--al-aspect);
  opacity: 0.75;
  transition: opacity var(--ease);
}

.testimonial-card:hover .author-logo {
  opacity: 1;
}

.author-logo img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  max-width: none;
  height: var(--al-scale);
  transform: translate(calc(-1 * var(--al-x)), calc(-1 * var(--al-y)));
}

/* 447x447 canvas, content x 3..446 y 4..446 — already trimmed. */
.author-logo--dot365 {
  --al-h: 32px;
  --al-aspect: 444 / 443;
  --al-scale: 100.9%;
  --al-x: 50.34%;
  --al-y: 50.45%;
}

/* 1280x975 canvas, content x 88..1191 y 344..606 (1104x263). */
.author-logo--packzen {
  --al-h: 24px;
  --al-aspect: 1104 / 263;
  --al-scale: 370.7%;
  --al-x: 50%;
  --al-y: 48.77%;
}

/* Narrow cards leave no room beside the name block. */
@media (max-width: 400px) {
  .author-logo {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

/* The footer is #1E1E1E too, so a full-bleed dark CTA ran straight into it as
   one unbroken block. Presenting the CTA as a rounded card on the light page
   background gives it its own edge and separates the two. */
.cta-final {
  background: var(--bg-primary);
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--bg-dark);
  color: #ffffff;
  padding: clamp(46px, 5.5vw, 74px) clamp(24px, 4vw, 56px);
  box-shadow: 0 24px 60px rgba(30, 30, 30, 0.2);
}

/* Gold edge along the top, echoing the equation band */
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gold-gradient);
  z-index: 3;
}

.cta-card .cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  transform: scale(1.05);
}

.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(30, 30, 30, 0.95) 0%,
    rgba(30, 30, 30, 0.8) 55%,
    rgba(30, 30, 30, 0.66) 100%
  );
}

.cta-inner {
  position: relative;
  z-index: 2;
}

.cta-card h2 {
  color: #ffffff;
}
.cta-card p {
  color: #cfcfcf;
}

.cta-card .btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.cta-card .btn-ghost:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--text-primary);
  transform: translateY(-2px);
}

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

.site-footer {
  background: #ffffff;
  color: #555555;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 72px;
}

.site-footer h5 {
  color: #1e1e1e;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.site-footer p {
  color: #555555;
  font-size: 0.93rem;
}

.site-footer .footer-logo {
  height: 118px;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #555555;
  font-size: 0.93rem;
  transition:
    color var(--ease),
    padding-left var(--ease);
}

.footer-links a:hover {
  color: #b8912c;
  padding-left: 5px;
}

.footer-contact .footer-links li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-icon {
  flex: none;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  font-size: 0.95rem;
}

.footer-address {
  color: #555555;
  font-size: 0.93rem;
}

/* :not(.btn) — this selector outranks .btn-gold, and without the guard the
   footer's gold CTA renders gold text on a gold fill, i.e. invisible. */
.footer-contact a:not(.btn) {
  color: #333333;
  font-weight: 600;
}
.footer-contact a:not(.btn):hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px 0;
  font-size: 0.85rem;
  color: #8a8a8a;
}

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

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #555555;
  font-size: 1.05rem;
  transition: all var(--ease);
}

.social-links a:hover {
  background: var(--gold-gradient);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Floating call button (mobile)
   -------------------------------------------------------------------------- */

.floating-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1040;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 100px;
  background: var(--gold);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.38);
}

.floating-call:hover {
  background: var(--gold-rich);
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .floating-call {
    display: inline-flex;
  }
  body {
    padding-bottom: 10px;
  }
}

/* --------------------------------------------------------------------------
   Scroll reveal animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.32s;
}

/* Hero entrance — runs on load, not on scroll */
.hero-in {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-in[data-delay="1"] {
  animation-delay: 0.1s;
}
.hero-in[data-delay="2"] {
  animation-delay: 0.2s;
}
.hero-in[data-delay="3"] {
  animation-delay: 0.3s;
}
.hero-in[data-delay="4"] {
  animation-delay: 0.4s;
}
.hero-in[data-delay="5"] {
  animation-delay: 0.5s;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

@media (max-width: 991.98px) {
  :root {
    --section-y: 62px;
  }
  .section-head {
    margin-bottom: 40px;
  }
  .equation-band {
    padding: 44px 24px;
  }
}

@media (max-width: 575.98px) {
  :root {
    --section-y: 50px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
