/* Landon's Interior Detailing - v2 (car wash / water theme)
   Bump the ?v= in index.html whenever this file changes. */

:root {
  --bg: #06121c;
  --bg-alt: #0a1a27;
  --panel: #0f2233;
  --line: #1d4055;
  --text: #e8f4fb;
  --muted: #93b4c9;
  --accent: #38bdf8;
  --accent-deep: #0ea5e9;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; }

/* ---------- opening splash ---------- */

.splash-intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #0a1a27 0%, #06121c 100%);
  animation: splash-clear 0.55s ease 1.2s forwards;
}

/* The drop falls in from the top and lands dead centre. */
.splash-drop {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(160deg, #7dd3fc, var(--accent-deep));
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.75);
  transform: translateY(-58vh) scaleY(1.5);
  animation: splash-fall 0.52s cubic-bezier(0.6, 0, 0.85, 0.35) forwards,
             splash-burst 0.42s ease-out 0.52s forwards;
}

.splash-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 2px solid rgba(125, 211, 252, 0.85);
  border-radius: 50%;
  opacity: 0;
  animation: splash-ripple 1s ease-out 0.54s forwards;
}

.splash-ring-2 { animation-delay: 0.72s; }

/* Water floods up over the screen, then the whole layer fades. */
.splash-flood {
  position: absolute;
  left: -10%;
  bottom: 0;
  width: 120%;
  height: 0;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.35), rgba(14, 165, 233, 0.12));
  border-radius: 45% 55% 0 0 / 22% 18% 0 0;
  animation: splash-flood 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.62s forwards;
}

@keyframes splash-fall {
  from { transform: translateY(-58vh) scaleY(1.5); }
  to   { transform: translateY(0) scaleY(1); }
}

@keyframes splash-burst {
  0%   { opacity: 1; transform: translateY(0) scale(1, 1); }
  45%  { opacity: 1; transform: translateY(6px) scale(1.9, 0.35); }
  100% { opacity: 0; transform: translateY(8px) scale(2.6, 0.15); }
}

@keyframes splash-ripple {
  0%   { opacity: 0.9; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(11); }
}

@keyframes splash-flood {
  from { height: 0; }
  to   { height: 130%; }
}

@keyframes splash-clear {
  to { opacity: 0; visibility: hidden; }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 14, 19, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

/* Splash logo: a water drop with two flecks kicking off it. */
.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-mark svg { width: 100%; height: 100%; display: block; overflow: visible; }

.drop-body {
  fill: var(--accent);
  filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.5));
}

.drop-shine { fill: #d6f2ff; opacity: 0.85; }

.drop-fleck { fill: var(--accent); opacity: 0.75; }

.brand:hover .drop-fleck { animation: fleck-pop 0.6s ease-out; }

.brand:hover .drop-body { animation: drop-squish 0.6s ease-out; }

@keyframes fleck-pop {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.75; }
  60%  { transform: translate(0, -6px) scale(1.25); opacity: 1; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.75; }
}

@keyframes drop-squish {
  0%, 100% { transform: scale(1, 1); transform-origin: 32px 54px; }
  45%      { transform: scale(1.08, 0.93); transform-origin: 32px 54px; }
}

.brand-text { font-size: 1.02rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.94rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.nav-cta {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #05202e !important;
  font-weight: 700;
}

.nav-cta:hover { background: #7dd3fc; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 130px;
  background:
    radial-gradient(900px 460px at 78% -10%, rgba(56, 189, 248, 0.26), transparent 65%),
    radial-gradient(700px 420px at 8% 12%, rgba(14, 165, 233, 0.16), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, #0a1b28 100%);
}

.hero-inner { position: relative; z-index: 3; }

/* Bubbles drifting up through the hero. */
.bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.55), rgba(56, 189, 248, 0.12) 60%, rgba(56, 189, 248, 0) 72%);
  border: 1px solid rgba(186, 230, 253, 0.28);
  animation: bubble-rise linear infinite;
}

.bubbles span:nth-child(1) { left: 6%;  width: 16px; height: 16px; animation-duration: 15s; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 17%; width: 9px;  height: 9px;  animation-duration: 11s; animation-delay: 2.4s; }
.bubbles span:nth-child(3) { left: 29%; width: 22px; height: 22px; animation-duration: 19s; animation-delay: 1.1s; }
.bubbles span:nth-child(4) { left: 41%; width: 12px; height: 12px; animation-duration: 13s; animation-delay: 5s; }
.bubbles span:nth-child(5) { left: 55%; width: 7px;  height: 7px;  animation-duration: 10s; animation-delay: 3.2s; }
.bubbles span:nth-child(6) { left: 66%; width: 18px; height: 18px; animation-duration: 17s; animation-delay: 0.6s; }
.bubbles span:nth-child(7) { left: 78%; width: 11px; height: 11px; animation-duration: 12s; animation-delay: 6.4s; }
.bubbles span:nth-child(8) { left: 87%; width: 25px; height: 25px; animation-duration: 21s; animation-delay: 2s; }
.bubbles span:nth-child(9) { left: 95%; width: 8px;  height: 8px;  animation-duration: 14s; animation-delay: 4.4s; }

@keyframes bubble-rise {
  0%   { transform: translate(0, 0) scale(0.7); opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { transform: translate(22px, -46vh) scale(1); }
  90%  { opacity: 0.65; }
  100% { transform: translate(-14px, -96vh) scale(1.1); opacity: 0; }
}

/* Water line rolling across the bottom of the hero. */
.waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 120px;
  pointer-events: none;
}

.waves svg { width: 200%; height: 100%; display: block; }

.wave { animation: wave-roll linear infinite; }

.wave-back  { fill: rgba(56, 189, 248, 0.16); animation-duration: 17s; }
.wave-mid   { fill: rgba(14, 165, 233, 0.26); animation-duration: 12s; animation-direction: reverse; }
.wave-front { fill: var(--bg); animation-duration: 8s; }

@keyframes wave-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-1440px); }
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  max-width: 15ch;
  margin-bottom: 20px;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 30px;
}

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

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(140deg, var(--accent), var(--accent-deep));
  color: #04202e;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover { border-color: var(--accent); }

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

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

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-facts strong { color: var(--text); }

/* ---------- sections ---------- */

.section { padding: 82px 0; }

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }

.section-sub {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 40px;
}

/* ---------- package cards ---------- */

.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 18px 44px rgba(0, 0, 0, 0.42);
}

.ribbon {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--accent);
  color: #04202e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.card-head { margin-bottom: 6px; }

.card-head h3 { font-size: 1.3rem; margin-bottom: 4px; }

.price {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.card-note {
  color: var(--muted);
  margin: 6px 0 20px;
  font-size: 0.96rem;
}

.ticks {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 0.97rem;
}

.ticks li {
  position: relative;
  padding-left: 27px;
  color: #d3dced;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.55em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.card .btn { margin-top: auto; text-align: center; }

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

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  counter-reset: none;
}

.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 14px;
}

.steps h3 { font-size: 1.08rem; }

.steps p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}

.about-grid p { color: var(--muted); }

.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.callout h3 { font-size: 1.1rem; }

.callout .ticks { margin-bottom: 0; }

/* ---------- contact ---------- */

.section-contact {
  background:
    radial-gradient(760px 340px at 50% 0%, rgba(56, 189, 248, 0.16), transparent 68%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact-inner h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }

.contact-inner .lede { margin: 0 auto 30px; }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: center;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  align-items: center;
}

.footer-inner p { margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Anyone who asks their device for less motion gets a still, dry page. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash-intro { display: none; }
  .bubbles { display: none; }
  .wave { animation: none; }
  .btn:hover { transform: none; }
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 620px) {
  .hero { padding: 66px 0 104px; }
  .waves { height: 88px; }
  .section { padding: 60px 0; }
  .nav { gap: 16px; font-size: 0.9rem; }
  .brand-text { font-size: 0.95rem; }
  .btn { width: 100%; text-align: center; }
  .hero-actions, .contact-links { flex-direction: column; }
}
