/* ==========================================================================
   LOCAL PREVIEW ONLY — Albyn MOT homepage polish
   DIRECTION D: cinematic automotive (Audi e-tron / Range Rover language)
   Full-bleed photography · huge confident type · thin elegant rules ·
   calm space · minimal chrome · strong simple CTAs.
   Dark premium cinematic hero → calm light editorial body.
   Scrap glass/frost/split cream heroes. NO tartan. NO VTA9/Unit 9.
   Albyn MOT colours, fonts, logo, Class 4 · 5 · 7 retained.
   NOT for IONOS / live. Do not apply to Habitation.
   ========================================================================== */

:root {
  --ap-space-1: 0.5rem;
  --ap-space-2: 0.75rem;
  --ap-space-3: 1rem;
  --ap-space-4: 1.5rem;
  --ap-space-5: 2.5rem;
  --ap-space-6: 4rem;
  --ap-space-7: 5.5rem;
  --ap-radius: 0.15rem;
  --ap-radius-lg: 0.25rem;
  --ap-ground: #0a0e14;
  --ap-ground-soft: #f4f5f7;
  --ap-panel: #ffffff;
  --ap-ink: #0B1F3A;
  --ap-ink-soft: #2c3e55;
  --ap-muted: #5a6d82;
  --ap-line: rgba(11, 31, 58, 0.10);
  --ap-line-gold: #C9A227;
  --ap-line-gold-soft: rgba(201, 162, 39, 0.55);
  --ap-line-blue: rgba(58, 160, 255, 0.65);
  --ap-line-blue-soft: rgba(30, 111, 255, 0.35);
  --ap-cine-ink: #f5f7fa;
  --ap-cine-muted: rgba(245, 247, 250, 0.78);
  --ap-cine-veil: linear-gradient(
    105deg,
    rgba(6, 10, 18, 0.88) 0%,
    rgba(6, 10, 18, 0.72) 38%,
    rgba(6, 10, 18, 0.35) 62%,
    rgba(6, 10, 18, 0.18) 100%
  );
  --ap-shadow-soft: 0 1px 2px rgba(11, 31, 58, 0.04), 0 8px 24px rgba(11, 31, 58, 0.06);
  --ap-shadow-lift: 0 2px 4px rgba(11, 31, 58, 0.05), 0 14px 32px rgba(11, 31, 58, 0.10);
  --ap-btn-shadow: 0 8px 28px rgba(30, 111, 255, 0.32);
  --ap-btn-shadow-hover: 0 12px 36px rgba(30, 111, 255, 0.42);
}

/* ------------------------------------------------------------
   0. Page ground — calm light editorial under cinematic hero
   ------------------------------------------------------------ */
body[data-site="albyn"] {
  background: var(--ap-ground-soft) !important;
  background-image: none !important;
  color: var(--ap-ink);
}

.main-wrapper {
  background: var(--ap-ground-soft) !important;
  background-image: none !important;
}
.main-wrapper::before {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

.main-wrapper section.scenic-wash,
.main-wrapper section.section-cream-deep,
.main-wrapper section.section-white,
.main-wrapper section.section-light {
  background: var(--ap-ground-soft) !important;
  background-image: none !important;
  color: var(--ap-ink);
}
.main-wrapper section.scenic-wash::before,
.main-wrapper section.scenic-wash::after,
.main-wrapper section.section-cream-deep::before,
.main-wrapper section.section-cream-deep::after,
.main-wrapper section.section-white::before,
.main-wrapper section.section-white::after,
.main-wrapper section.section-light::before,
.main-wrapper section.section-light::after,
.main-wrapper section:not(.section-navy):not(.cta-band):not(.hero):not(.trust-strip)::after {
  display: none !important;
  content: none !important;
  background: none !important;
  opacity: 0 !important;
}
.main-wrapper .scenic-strip {
  display: none !important;
}

.main-wrapper section.section-cream-deep:nth-of-type(even),
.main-wrapper #what-is,
.main-wrapper #cross-sell {
  background: var(--ap-panel) !important;
}
.main-wrapper #mot-prices,
.main-wrapper #repairs {
  background: var(--ap-ground-soft) !important;
}

/* Top-of-page band removed completely (Chelsea) */
.coming-soon-banner,
.cs-marquee,
.saltire-ribbon {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* ------------------------------------------------------------
   1. Invisible grid — generous calm space
   ------------------------------------------------------------ */
@media (min-width: 992px) {
  .main-wrapper > section > .container,
  .main-wrapper > .cta-band > .container,
  .main-wrapper > footer.site-footer > .container,
  .trust-strip > .container {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--ap-space-5) !important;
    padding-right: var(--ap-space-5) !important;
    max-width: 70rem;
  }

  .main-wrapper > section {
    padding-top: var(--ap-space-6);
    padding-bottom: var(--ap-space-6);
  }

  .section-title-wrap {
    margin-bottom: var(--ap-space-5);
  }

  .section-title-wrap .lead-soft {
    margin-top: var(--ap-space-3);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
    color: var(--ap-muted) !important;
    font-weight: 400;
  }
}

@media (max-width: 991.98px) {
  .main-wrapper > section > .container {
    padding-left: var(--ap-space-3) !important;
    padding-right: var(--ap-space-3) !important;
  }
  .main-wrapper > section {
    padding-top: var(--ap-space-5);
    padding-bottom: var(--ap-space-5);
  }
}

/* ------------------------------------------------------------
   2. Soft cards / CTAs — quieter, less chrome
   ------------------------------------------------------------ */
.saltire-ribbon { display: none !important; }

.card-hc,
.main-wrapper .card-hc,
.main-wrapper .why-card,
.main-wrapper .define-panel {
  background: var(--ap-panel) !important;
  border: 1px solid var(--ap-line) !important;
  border-radius: var(--ap-radius-lg) !important;
  box-shadow: none !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.card-hc:hover,
.main-wrapper .card-hc:hover,
.main-wrapper .why-card:hover {
  transform: none !important;
  box-shadow: var(--ap-shadow-soft) !important;
  border-color: rgba(11, 31, 58, 0.16) !important;
}

.main-wrapper .icon-circle {
  background: transparent !important;
  color: var(--albyn-mot) !important;
  border: 1px solid rgba(30, 111, 255, 0.28) !important;
  box-shadow: none !important;
}

.main-wrapper .price-tag {
  color: var(--ap-ink) !important;
  letter-spacing: 0.02em;
}
.main-wrapper .saltire-badge {
  background: transparent !important;
  border: 1px solid rgba(11, 31, 58, 0.14) !important;
  color: var(--ap-ink-soft) !important;
  box-shadow: none !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem !important;
  font-weight: 600;
}

/* ------------------------------------------------------------
   3. Hero OPTION D — full-bleed cinematic automotive
   ------------------------------------------------------------ */
.hero,
.hero.hero--cinematic,
.hero.hero--option-d {
  position: relative !important;
  isolation: isolate !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  min-height: clamp(560px, 86vh, 920px) !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #060a12 !important;
  background-image: none !important;
  color: var(--ap-cine-ink) !important;
  border-bottom: none !important;
}

.hero::before,
.hero::after {
  content: none !important;
  display: none !important;
}

/* Kill leftover split/cream structures if any cascade remains */
.hero-split,
.hero-panel {
  display: contents !important;
}

.hero-media {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  min-height: 100% !important;
  background: #060a12;
}
.hero-media img,
.hero-media video {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center 42% !important;
  display: block !important;
  transform: none; /* corp10: scale spilled past hero → right cutoff */
}

/* Cinematic veil — left-weighted readability, photo still breathes */
.hero-veil {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(
      180deg,
      rgba(6, 10, 18, 0.35) 0%,
      rgba(6, 10, 18, 0.05) 28%,
      rgba(6, 10, 18, 0.25) 55%,
      rgba(6, 10, 18, 0.78) 100%
    ),
    linear-gradient(
      95deg,
      rgba(6, 10, 18, 0.82) 0%,
      rgba(6, 10, 18, 0.55) 36%,
      rgba(6, 10, 18, 0.18) 62%,
      rgba(6, 10, 18, 0.08) 100%
    ) !important;
}

.hero-scrim,
.hero-saltire-corner { display: none !important; }

.hero-copy {
  position: relative !important;
  z-index: 2 !important;
  width: 100%;
  max-width: 42rem;
  margin: 0;
  padding: clamp(2.5rem, 6vh, 4.5rem) clamp(1.25rem, 4vw, 4rem)
           clamp(2.75rem, 7vh, 5rem);
  text-align: left;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Logo — substantially larger (Chelsea laptop feedback) */
.hero-logo {
  display: block !important;
  position: relative;
  z-index: 1;
  width: min(240px, 70%) !important;
  max-width: 240px !important;
  height: auto !important;
  margin: 0 0 var(--ap-space-4) 0 !important;
  object-fit: contain !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45)) !important;
}

@media (min-width: 992px) {
  .hero-logo {
    /* % of hero-copy — never vw (28vw ignored sidebar, looked cut on laptop) */
    width: min(240px, 42%) !important;
    max-width: 240px !important;
  }
}

@media (max-width: 575.98px) {
  .hero-logo {
    width: min(196px, 58vw) !important;
    max-width: 220px !important;
    margin-bottom: var(--ap-space-3) !important;
  }
}

/* Eyebrow — spaced caps + thin gold lead-in */
.hero-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin: 0 0 var(--ap-space-3) 0 !important;
  padding: 0 !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: rgba(245, 247, 250, 0.78) !important;
  text-shadow: none !important;
  background: none !important;
  border: none !important;
}
.hero-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--ap-line-blue, rgba(58,160,255,0.65));
  flex-shrink: 0;
}

/* Headline — huge confident automotive type */
.hero-headline {
  position: relative;
  z-index: 1;
  max-width: min(18ch, 100%) !important;
  margin: 0 !important;
  font-size: clamp(2.85rem, 7.2vw, 5.1rem) !important;
  font-weight: 700 !important;
  line-height: 0.98 !important;
  letter-spacing: 0.01em !important;
  text-align: left !important;
  text-transform: none !important;
  color: #ffffff !important;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35) !important;
}
.hero-headline::after {
  content: "" !important;
  display: block !important;
  width: 3.25rem !important;
  height: 1px !important;
  margin: 1.35rem 0 0 0 !important;
  border-radius: 0;
  background: var(--ap-line-blue, rgba(58,160,255,0.65)) !important;
  box-shadow: none;
}

.hero-headline-line { display: inline; }
.hero-kicker-stack { display: none !important; }

.hero-tagline {
  position: relative;
  z-index: 1;
  max-width: min(28rem, 100%) !important;
  margin: var(--ap-space-4) 0 0 0 !important;
  font-size: clamp(1rem, 1.55vw, 1.2rem) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0.01em;
  color: var(--ap-cine-muted) !important;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35) !important;
}

.hero-cta-row {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-wrap: wrap !important;
  margin-top: var(--ap-space-5) !important;
  margin-bottom: 0 !important;
  gap: 0.85rem !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.hero-cta-row .hero-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 3.1rem !important;
  height: 3.1rem !important;
  padding: 0 1.65rem !important;
  font-size: 0.88rem !important;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--ap-radius) !important;
  border-width: 1px !important;
  line-height: 1 !important;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

.hero-cta-row .btn-book.hero-cta {
  background: var(--albyn-mot) !important;
  border-color: var(--albyn-mot) !important;
  color: #fff !important;
  box-shadow: var(--ap-btn-shadow) !important;
}
.hero-cta-row .btn-book.hero-cta:hover,
.hero-cta-row .btn-book.hero-cta:focus {
  background: var(--albyn-mot-bright) !important;
  border-color: var(--albyn-mot-bright) !important;
  transform: translateY(-1px);
  box-shadow: var(--ap-btn-shadow-hover) !important;
  filter: none;
}

/* Ghost CTA — thin white rule, Audi/RR secondary */
.hero-cta-row .btn-hero-ghost,
.hero .btn-hero-ghost {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  color: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.hero-cta-row .btn-hero-ghost:hover,
.hero-cta-row .btn-hero-ghost:focus,
.hero .btn-hero-ghost:hover,
.hero .btn-hero-ghost:focus {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #fff !important;
  color: #fff !important;
  box-shadow: none !important;
}

.hero-policy-line,
.hero .book-micro {
  position: relative;
  z-index: 1;
  margin: var(--ap-space-4) 0 0 0 !important;
  max-width: 28rem;
  font-size: 0.78rem !important;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.55) !important;
  opacity: 1 !important;
  text-shadow: none !important;
  text-align: left;
}

@media (min-width: 992px) {
  .hero,
  .hero.hero--cinematic,
  .hero.hero--option-d {
    min-height: clamp(620px, 88vh, 960px) !important;
    align-items: flex-end !important;
  }
  .hero-copy {
    max-width: 44rem;
    padding-left: clamp(2.5rem, 4.5vw, 4.75rem);
    padding-bottom: clamp(3.5rem, 8vh, 5.75rem);
  }
  .hero-media img,
  .hero-media video {
    object-position: 58% 40% !important;
  }
}

@media (max-width: 991.98px) {
  .hero,
  .hero.hero--cinematic,
  .hero.hero--option-d {
    min-height: clamp(520px, 78vh, 720px) !important;
    align-items: flex-end !important;
  }
  .hero-copy {
    padding: 2rem 1.15rem 2.5rem;
    max-width: 100%;
  }
  .hero-cta-row .hero-cta {
    min-height: 2.9rem !important;
    height: auto !important;
    padding: 0.7rem 1.25rem !important;
  }
  .hero-veil {
    background:
      linear-gradient(
        180deg,
        rgba(6, 10, 18, 0.25) 0%,
        rgba(6, 10, 18, 0.15) 35%,
        rgba(6, 10, 18, 0.72) 72%,
        rgba(6, 10, 18, 0.9) 100%
      ),
      linear-gradient(
        90deg,
        rgba(6, 10, 18, 0.45) 0%,
        rgba(6, 10, 18, 0.15) 100%
      ) !important;
  }
}

@media (max-width: 575.98px) {
  .hero-headline {
    font-size: clamp(2.35rem, 11vw, 3.1rem) !important;
  }
  .hero-eyebrow {
    font-size: 0.62rem !important;
    letter-spacing: 0.16em !important;
  }
}

/* ------------------------------------------------------------
   4. Trust strip + section lines (thin elegant rules, NO tartan)
   ------------------------------------------------------------ */
.trust-strip,
.trust-strip.trust-strip--carousel {
  background: #05080e !important;
  color: rgba(245, 247, 250, 0.78) !important;
  padding-top: 1.15rem !important;
  padding-bottom: 1.15rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}
.trust-strip .bi-check-circle-fill {
  color: rgba(201, 162, 39, 0.85) !important;
  font-size: 0.85rem;
}
.trust-strip span {
  font-weight: 500 !important;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.main-wrapper > .hero + .trust-strip {
  border-top: none;
}

/* Under-hero trust carousel — CONTINUOUS horizontal marquee (visible motion) */
.trust-strip.trust-strip--carousel {
  padding-top: 1.05rem !important;
  padding-bottom: 1.05rem !important;
  overflow: hidden !important;
}
.trust-carousel {
  max-width: none;
  width: 100%;
  margin: 0;
  text-align: center;
}
.trust-carousel-viewport {
  position: relative;
  min-height: 2.55rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.trust-carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: max-content;
  position: relative;
}
.trust-carousel--marquee .trust-carousel-track {
  animation: trust-marquee 14s linear infinite;
}
.trust-carousel--marquee.is-paused .trust-carousel-track {
  animation-play-state: paused;
}
.trust-carousel-slide {
  position: relative;
  inset: auto;
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0 2.75rem;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
  white-space: nowrap;
  transition: none;
}
.trust-carousel-slide::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 0.85rem;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.22);
}
.trust-carousel-dots[hidden],
.trust-carousel--marquee .trust-carousel-dots {
  display: none !important;
}
@keyframes trust-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trust-carousel--marquee .trust-carousel-track {
    animation: none !important;
    transform: none !important;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    gap: 0.75rem 1.5rem;
  }
  .trust-carousel-slide {
    padding: 0.15rem 0.75rem;
  }
  .trust-carousel-slide::after { display: none; }
  .trust-carousel-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.main-wrapper > .trust-strip + section,
.main-wrapper > section + section:not(.cta-band),
.main-wrapper > section + .cta-band {
  border-top: 1px solid var(--ap-line);
  box-shadow: none;
}

/* Thin gold underlines under section titles */
.main-wrapper .section-title-wrap .tartan-rule {
  background-image: none !important;
  height: 1px !important;
  width: 3.25rem !important;
  max-width: 3.25rem !important;
  opacity: 1 !important;
  border-radius: 0 !important;
  background: var(--ap-line-gold) !important;
  background-color: var(--ap-line-gold) !important;
  box-shadow: none;
  margin-left: auto;
  margin-right: auto;
}
.main-wrapper .section-title-wrap h2 {
  color: var(--ap-ink) !important;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: none;
}

.main-wrapper .tartan-strip,
.main-wrapper hr.tartan-strip {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
}

/* Depot / CTA — deep cinematic navy */
.main-wrapper section.section-navy {
  background: #070b12 !important;
  color: #fff;
  border-top: 1px solid rgba(201, 162, 39, 0.28);
}
.main-wrapper section.section-navy h2 { color: #fff !important; }
.main-wrapper section.section-navy .card-hc {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
.main-wrapper section.section-navy .card-hc h3,
.main-wrapper section.section-navy .card-hc .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}
.main-wrapper section.section-navy .card-hc h3 {
  color: #fff !important;
}

.cta-band {
  background: #070b12 !important;
  padding-top: var(--ap-space-6) !important;
  padding-bottom: var(--ap-space-6) !important;
  border-top: 1px solid rgba(201, 162, 39, 0.28);
}
.cta-band h2 {
  margin-bottom: var(--ap-space-3) !important;
  color: #fff !important;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.cta-band p {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.65) !important;
  letter-spacing: 0.04em;
}
.cta-band .btn-light {
  background: var(--albyn-mot) !important;
  border-color: var(--albyn-mot) !important;
  color: #fff !important;
  border-radius: var(--ap-radius) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem !important;
  box-shadow: var(--ap-btn-shadow) !important;
}
.cta-band .btn-outline-light {
  border-radius: var(--ap-radius) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem !important;
  border-width: 1px !important;
}

/* .site-footer background owned by preview-site-corporate (Habitation match) */

/* Scenic split / define panel — calm editorial */
.main-wrapper .scenic-photo {
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--ap-line);
}
.main-wrapper .scenic-photo img:not(.mosaic-saltire) {
  width: 100%;
  display: block;
  object-fit: cover;
}
.main-wrapper .define-panel {
  padding: var(--ap-space-5);
}
.main-wrapper .why-card {
  padding: var(--ap-space-4);
}
.main-wrapper .why-card h3 {
  color: var(--ap-ink);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .card-hc:hover,
  .main-wrapper .card-hc:hover,
  .main-wrapper .why-card:hover,
  .hero .btn-book:hover,
  .hero-cta-row .btn-book.hero-cta:hover {
    transform: none !important;
  }
  .hero-media img,
  .hero-media video {
    transform: none !important;
  }
}
