/* ==========================================================================
   PURE Pressure Washing — hand-written stylesheet
   Organized in sections: reset, variables, base, layout, components,
   sections, animations, responsive.
   ========================================================================== */

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

/* ---- Design tokens ---- */
:root {
  --bg: #08080d;
  --bg-card: #14141d;
  --fg: #fafafa;
  --muted: #a9a9b8;
  --muted-dim: #7d7d8c;
  --border: rgba(255, 255, 255, 0.08);

  --electric: #007bff;
  --royal: #0050c8;
  --silver: #c9ced6;

  --gradient-blue: linear-gradient(135deg, #007bff 0%, #0050c8 100%);
  --gradient-silver: linear-gradient(135deg, #ffffff 0%, #c9ced6 40%, #7d8590 100%);
  --gradient-hero: radial-gradient(ellipse at top, rgba(0, 123, 255, 0.25), transparent 60%),
    linear-gradient(180deg, #030309 0%, #050510 100%);

  --shadow-glow: 0 0 60px rgba(0, 123, 255, 0.45);
  --shadow-card: 0 20px 60px -20px rgba(0, 80, 200, 0.35);

  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Orbitron", "Inter", sans-serif;
  --container: 80rem;

  /* Fluid spacing — phones → desktops */
  --pad-inline: clamp(1rem, 4vw, 1.5rem);
  --section-y: clamp(3.5rem, 8vw, 6rem);
  --nav-pad-top: max(0.75rem, env(safe-area-inset-top));
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: var(--safe-bottom);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/*
  Keep contact details + form fields selectable so visitors can copy
  phone / email / WhatsApp and type into the quote form.
*/
.contact-copy,
a[href^="tel:"],
a[href^="mailto:"],
a[href*="wa.me"],
a[href*="api.whatsapp.com"],
a[href*="whatsapp.com"],
input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

h1,
h2,
h3,
h4 {
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(1.65rem, 4.5vw + 0.5rem, 3.75rem);
}

h2 {
  font-size: clamp(1.625rem, 3.5vw + 0.75rem, 3rem);
}

h3 {
  font-size: clamp(1.05rem, 1.5vw + 0.75rem, 1.25rem);
  font-weight: 700;
}

p {
  color: var(--muted);
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

section {
  position: relative;
  padding-block: var(--section-y);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--electric);
}

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

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

/* ---- Glassmorphism surface ---- */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass:hover {
  box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.4), 0 0 40px rgba(0, 123, 255, 0.25);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  min-height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.btn:hover {
  transform: scale(1.03);
}

.btn-primary {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--royal);
  box-shadow: var(--shadow-glow);
}

.btn-nav {
  padding: 0.45rem 0.9rem;
  min-height: 2.25rem;
  font-size: 0.75rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ---- Cursor glow (desktop decoration) ---- */
.cursor-glow {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.55), transparent 60%);
  transform: translate(-50%, -50%);
  transition: left 0.15s ease-out, top 0.15s ease-out;
  display: none;
}

@media (min-width: 768px) {
  .cursor-glow {
    display: block;
  }
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  z-index: 40;
  width: 100%;
  padding: var(--nav-pad-top) var(--pad-inline) 0;
}

.nav-bar {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.brand img {
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
  background: #05070c;
  image-rendering: -webkit-optimize-contrast;
  flex-shrink: 0;
}

.brand span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: #fff;
  display: none;
}

@media (min-width: 400px) {
  .brand span {
    display: inline;
  }
}

@media (min-width: 640px) {
  .nav-bar {
    gap: 1rem;
    padding: 0.625rem 1rem;
  }

  .brand img {
    height: 3rem;
    width: 3rem;
  }

  .brand span {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
}

.nav-links a:hover {
  color: #fff;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

.nav-bar .btn-nav {
  flex-shrink: 0;
}

@media (max-width: 379px) {
  .nav-bar .btn-nav {
    display: none;
  }
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
    font-size: 0.875rem;
  }

  .nav-toggle {
    display: none;
  }
}

.nav-mobile-panel {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  max-width: var(--container);
  margin: 0.5rem auto 0;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
}

.nav-mobile-panel.is-open {
  display: flex;
}

.nav-mobile-panel a {
  padding: 0.85rem 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 0.5rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

.nav-mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-mobile-panel .mobile-quote {
  margin-top: 0.5rem;
  justify-content: center;
  color: #fff;
}

.nav-mobile-panel .mobile-quote:hover {
  background: var(--gradient-blue);
}

@media (min-width: 900px) {
  .nav-mobile-panel {
    display: none !important;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--gradient-hero);
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6) 60%, var(--bg));
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(0, 123, 255, 0.4) 60%, transparent 70%);
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.6);
  animation: float-up linear infinite;
}

.hero-rings {
  position: absolute;
  right: -10rem;
  bottom: -10rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: spin-slow 30s linear infinite;
  display: none;
}

@media (min-width: 768px) {
  .hero-rings {
    display: block;
  }
}

.hero-rings.ring-outer {
  width: min(600px, 70vw);
  height: min(600px, 70vw);
}

.hero-rings.ring-inner {
  width: min(500px, 58vw);
  height: min(500px, 58vw);
  border-color: rgba(0, 123, 255, 0.3);
  animation-direction: reverse;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: clamp(0.65rem, 2.2vw, 0.75rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  max-width: 100%;
}

.hero-badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 10px #007bff;
  flex-shrink: 0;
}

.hero h1 {
  margin-top: 1.15rem;
  font-size: clamp(1.6rem, 2.6vw + 0.9rem, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 14.5em;
}

.hero h1 .hero-line {
  display: inline;
}

.shimmer-text {
  background: linear-gradient(90deg, #c9ced6 0%, #fff 50%, #c9ced6 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

.hero p.lead {
  margin-top: 1.1rem;
  max-width: 32rem;
  font-size: clamp(0.9rem, 1.5vw + 0.55rem, 1.05rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.hero-ctas {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-ctas .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .hero-ctas {
    flex-direction: row;
  }

  .hero-ctas .btn {
    width: auto;
  }
}

.hero-stats {
  margin-top: clamp(1.75rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.stat {
  border-radius: 1rem;
  padding: clamp(0.75rem, 2vw, 1rem);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.875rem);
  font-weight: 900;
}

.stat-label {
  margin-top: 0.25rem;
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hero-logo-wrap {
  position: relative;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(78vw, 280px);
  height: min(78vw, 280px);
}

@media (min-width: 480px) {
  .hero-logo-wrap {
    width: min(70vw, 340px);
    height: min(70vw, 340px);
  }
}

@media (min-width: 640px) {
  .hero-logo-wrap {
    width: min(55vw, 420px);
    height: min(55vw, 420px);
  }
}

@media (min-width: 1024px) {
  .hero-logo-wrap {
    width: min(100%, 420px);
    height: auto;
    aspect-ratio: 1;
  }
}

.hero-logo-glow {
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.2);
  filter: blur(48px);
}

.hero-logo-ring {
  position: absolute;
  width: 95%;
  height: 95%;
  border-radius: 50%;
  border: 1px solid rgba(0, 123, 255, 0.5);
  animation: pulse-ring 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-logo-wrap img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 40px rgba(0, 123, 255, 0.6));
  animation: drift 8s ease-in-out infinite;
  image-rendering: -webkit-optimize-contrast;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  text-align: center;
}

.about .container {
  max-width: 56rem;
}

.about p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   Services
   ========================================================================== */
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .section-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-heading .lead {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.6);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-0.5rem);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: var(--gradient-blue);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.service-card h3 {
  margin-top: 1.25rem;
}

.service-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.service-link {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--electric);
}

.service-link svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s ease;
}

.service-card:hover .service-link svg {
  transform: translateX(0.25rem);
}

/* ==========================================================================
   Gallery / Before-After slider
   ========================================================================== */
.gallery-intro {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gallery-intro p {
  margin-top: 1rem;
  max-width: 40rem;
  margin-inline: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compare {
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.compare > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare .compare-before {
  position: absolute;
  inset: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.compare .compare-before img {
  display: block;
  height: 100%;
  width: 200%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.9);
  pointer-events: none;
}

.compare-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 123, 255, 0.9);
}

.compare-tag {
  position: absolute;
  top: 0.75rem;
  z-index: 4;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  pointer-events: none;
}

.compare-tag.before {
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
}

.compare-tag.after {
  right: 0.75rem;
  background: rgba(0, 123, 255, 0.8);
}

.compare-caption {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.25rem;
}

.compare-caption .title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.compare-caption .hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Why us
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.why-card:hover {
  transform: translateY(-0.25rem);
}

.why-icon {
  margin-inline: auto;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 123, 255, 0.5);
  transition: transform 0.2s ease;
}

.why-card:hover .why-icon {
  transform: rotate(6deg);
}

.why-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.why-card .label {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

/* ==========================================================================
   Coverage
   ========================================================================== */
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.coverage-list {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  font-size: 0.875rem;
}

@media (min-width: 400px) {
  .coverage-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.coverage-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  min-height: 2.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.coverage-list .dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 10px #007bff;
}

.map-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  border-radius: clamp(1rem, 4vw, 2rem);
  overflow: hidden;
}

.map-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(0, 123, 255, 0.25), transparent 60%);
}

.map-frame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
}

.map-pin .ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(0, 123, 255, 0.6);
  animation: pulse-ring 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.map-pin .dot {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 20px #007bff;
}

.map-pin .name {
  margin-top: 0.5rem;
  display: block;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
  overflow: hidden;
}

.testimonials .section-heading {
  text-align: center;
  display: block;
  margin-bottom: 3rem;
}

.marquee-viewport {
  position: relative;
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(2rem, 8vw, 6rem);
  pointer-events: none;
}

.marquee-fade.left {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee-fade.right {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  animation: marquee 40s linear infinite;
}

.testimonial-card {
  width: min(78vw, 340px);
  flex-shrink: 0;
  border-radius: 1.5rem;
  padding: clamp(1.15rem, 3vw, 1.5rem);
}

.stars {
  display: flex;
  gap: 0.25rem;
  color: var(--electric);
}

.stars svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.testimonial-card p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.testimonial-author {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gradient-blue);
  font-weight: 700;
  color: #fff;
}

.testimonial-author .name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.testimonial-author .place {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  overflow: hidden;
  background: linear-gradient(135deg, var(--royal), #001a4a, #000);
}

.cta-banner .container {
  position: relative;
  max-width: 56rem;
  text-align: center;
}

.cta-banner p {
  margin-top: 1.25rem;
  max-width: 32rem;
  margin-inline: auto;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-ctas {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem;
}

.cta-ctas .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .cta-ctas {
    flex-direction: row;
    align-items: center;
  }

  .cta-ctas .btn {
    width: auto;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-info p {
  margin-top: 1rem;
  max-width: 28rem;
}

.contact-methods {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  padding: 1rem;
  font-size: 0.875rem;
}

.contact-method-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background: var(--gradient-blue);
  color: #fff;
}

.contact-method-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-method .label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.contact-method .value {
  font-weight: 600;
  color: #fff;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #fff;
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-form {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .contact-form {
    padding: 2rem;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.85rem 1rem;
  min-height: 2.85rem;
  font-size: 1rem; /* prevents iOS auto-zoom on focus */
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field select option {
  background: var(--bg);
}

.form-field textarea {
  resize: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--electric);
}

.form-submit {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.6);
  padding-block: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand img {
  height: 3.75rem;
  width: 3.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: contain;
  background: #05070c;
  image-rendering: -webkit-optimize-contrast;
}

.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 900;
  color: #fff;
}

.footer-brand .tag {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--electric);
}

.footer-col p {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.footer-col ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col ul a:hover {
  color: var(--electric);
}

.footer-bottom {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  padding-bottom: max(0.5rem, var(--safe-bottom));
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Reveal-on-scroll (progressive enhancement — see js/main.js)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* If JS never runs, content must still be visible. */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Keyframe animations
   ========================================================================== */
@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0.4);
  }
  10% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -15px);
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.9;
    transform: scale(0.7);
  }
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes spin-slow {
  100% {
    transform: rotate(360deg);
  }
}

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

/* ==========================================================================
   Responsive refinements — phones → tablets → laptops → desktops
   Breakpoints: ~360 / 480 / 640 / 768 / 900 / 1024 / 1280
   ========================================================================== */

/* Small phones */
@media (max-width: 379px) {
  .compare-tag {
    font-size: 0.6rem;
    padding: 0.2rem 0.55rem;
  }

  .compare-handle-grip {
    width: 2.15rem;
    height: 2.15rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .about p,
  .cta-banner p {
    font-size: 1rem;
  }
}

/* Medium phones and up */
@media (min-width: 480px) {
  .service-card {
    padding: 1.5rem;
  }
}

/* Large phones / small tablets */
@media (min-width: 640px) {
  .section-heading {
    margin-bottom: 3.5rem;
  }

  .btn {
    padding: 0.9rem 1.75rem;
  }

  .btn-nav {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* Tablets */
@media (min-width: 768px) {
  .map-frame {
    max-width: 32rem;
  }

  .hero-logo-wrap img {
    filter: drop-shadow(0 0 60px rgba(0, 123, 255, 0.6));
  }
}

/* Laptops */
@media (min-width: 1024px) {
  .hero {
    padding-top: calc(7rem + env(safe-area-inset-top, 0px));
  }

  .gallery-intro {
    margin-bottom: 3.5rem;
  }
}

/* Wide desktops */
@media (min-width: 1280px) {
  .hero-grid {
    gap: 4rem;
  }
}

/* Touch devices: disable hover scale jank, keep tap feedback */
@media (hover: none) {
  .btn:hover {
    transform: none;
  }

  .btn:active {
    transform: scale(0.98);
  }

  .glass:hover {
    box-shadow: none;
  }

  .cursor-glow {
    display: none !important;
  }
}

/* Landscape phones — keep hero usable */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .hero-logo-wrap {
    width: min(40vw, 220px);
    height: min(40vw, 220px);
  }

  .hero-stats {
    margin-top: 1.25rem;
  }
}
