/* Tidewash Pressure Washing sample site. Design style: Modern.
   Dark base, one loud accent, big rounded type, colored cards, and movement
   everywhere: words that rise in, a wipe that cleans a surface, cards that
   tilt, numbers that count up. "Make it yours" swaps the base and accent. */
:root {
  --deep: #0a1d33;
  --accent: #7df3e6;
  --cream: #f6f3ea;
  --ink: #0a1d33;
  --plum: #3b1f4a; --lilac: #f1c8ff;
  --coral: #ff5a36; --peach: #ffe0d2;
  --sun: #ffd84a;
  --mist: #e9e4ff;
  --font: "Parkinsans", "Poppins", "Segoe UI", system-ui, sans-serif;
  --r: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 17px/1.5 var(--font); letter-spacing: -.01em; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.h1 { font: 800 clamp(44px, 8.4vw, 118px)/.95 var(--font); letter-spacing: -.04em; }
.h2 { font: 800 clamp(34px, 5.4vw, 74px)/1 var(--font); letter-spacing: -.035em; text-wrap: balance; }
.center { text-align: center; }
section { padding: clamp(64px, 9vw, 130px) 0; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border: 0; border-radius: 14px; background: var(--accent); color: var(--deep); font: 700 16px var(--font); text-decoration: none; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s; }
.btn:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 10px 0 -2px #0003; }
.btn.dark { background: var(--deep); color: #fff; }
.btn.ghost { background: #ffffff22; color: #fff; backdrop-filter: blur(6px); }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: 0 0 0 18px transparent; } }

/* The line that says this is a sample */
.sample { margin: 0; background: #000; color: #fff; font-size: 13.5px; text-align: center; padding: 8px 16px; position: relative; z-index: 60; }
.sample a { font-weight: 700; }

/* Loader: the name wipes away as the page arrives */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--deep); color: var(--accent); font: 800 clamp(40px, 9vw, 120px) var(--font); letter-spacing: -.04em; animation: loader-out .7s var(--ease) 1s forwards; }
.loader span { animation: rise .7s var(--ease) both; }
@keyframes loader-out { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* Floating menu bar */
header { position: sticky; top: 12px; z-index: 50; margin: 12px clamp(12px, 2vw, 28px) 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 22px; background: #fff; border-radius: 16px; box-shadow: 0 8px 30px #0a1d3322; }
.logo { font: 800 24px var(--font); letter-spacing: -.04em; text-decoration: none; }
nav { display: flex; gap: 26px; font-weight: 600; font-size: 15.5px; }
nav a { text-decoration: none; position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
nav a:hover::after, nav a[aria-current]::after { transform: scaleX(1); }
.bar .btn { padding: 12px 18px; font-size: 14.5px; border-radius: 11px; }
.menu { display: none; border: 0; background: none; font: 700 15px var(--font); cursor: pointer; }

/* Hero */
.hero { position: relative; margin-top: -76px; min-height: min(100vh, 900px); display: grid; align-items: end; padding: 140px 0 clamp(40px, 6vw, 80px); background: var(--deep); color: #fff; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; animation: drift 18s ease-in-out infinite alternate; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--deep) 4%, color-mix(in srgb, var(--deep) 55%, transparent) 55%, color-mix(in srgb, var(--deep) 30%, transparent)); }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.14) translateY(-2%); } }
.hero .wrap { position: relative; width: 100%; }
.hero .h1 { color: var(--accent); max-width: 12ch; }
.hero p.sub { margin-top: 18px; max-width: 46ch; font-size: clamp(17px, 1.5vw, 21px); opacity: .92; }
.hero .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.words span { display: inline-block; overflow: hidden; vertical-align: bottom; }
.words i { display: inline-block; font-style: normal; transform: translateY(110%); animation: rise .9s var(--ease) forwards; animation-delay: calc(1.25s + var(--i) * .09s); }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }

/* Stickers: tilted cards that bob and swing */
.sticker { position: absolute; right: clamp(16px, 5vw, 80px); top: 150px; width: clamp(170px, 19vw, 250px); padding: 14px 14px 20px; border-radius: 18px; background: var(--plum); color: var(--lilac); transform: rotate(8deg); animation: bob 5s ease-in-out infinite; box-shadow: 0 20px 50px #0006; }
.sticker .ph, .sticker img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 12px; }
.sticker b { display: block; font: 800 clamp(24px, 2.6vw, 38px)/1 var(--font); letter-spacing: -.03em; }
.sticker small { font-size: 12.5px; opacity: .85; }
@keyframes bob { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-14px); } }

/* Running band of words */
.band { background: var(--deep); color: #fff; padding: 22px 0; overflow: hidden; }
.band div { display: flex; gap: 46px; width: max-content; font: 800 clamp(26px, 3.6vw, 48px) var(--font); letter-spacing: -.03em; white-space: nowrap; animation: run 28s linear infinite; }
.band span::after { content: "✦"; margin-left: 46px; color: var(--accent); }
@keyframes run { to { transform: translateX(-50%); } }

/* A sentence that lights up word by word as you scroll */
.light { font: 800 clamp(30px, 5vw, 68px)/1.08 var(--font); letter-spacing: -.035em; max-width: 20ch; margin: 0 auto; text-align: center; }
.light span { opacity: .16; transition: opacity .35s; }
.light span.on { opacity: 1; }

/* The feature: a wipe that cleans the surface */
.tag { display: table; margin: 0 auto 18px; padding: 7px 16px; border-radius: 999px; background: var(--sun); font-size: 13px; font-weight: 700; }
.wipe { position: relative; margin: 44px auto 0; max-width: 1040px; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #b9b3a4; touch-action: pan-y; user-select: none; cursor: ew-resize; }
.wipe img, .wipe .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.wipe .dirty { filter: sepia(.55) saturate(.55) brightness(.5) contrast(1.15); }
.wipe .dirty-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x, 50%)); }
/* With no real "before" photo, the "after" photo is darkened and given a film of grime. */
.wipe .dirty-wrap.fake::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 40%, #0000 0 18%, #2a22145c 40%), repeating-radial-gradient(circle at 70% 60%, #0000 0 22px, #1d170d2e 23px 26px); mix-blend-mode: multiply; }
.wipe .bar-x { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 4px; margin-left: -2px; background: var(--accent); box-shadow: 0 0 24px 6px color-mix(in srgb, var(--accent) 70%, transparent); }
.wipe .knob { position: absolute; top: 50%; left: var(--x, 50%); width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--accent); color: var(--deep); display: grid; place-items: center; font: 800 20px var(--font); box-shadow: 0 6px 22px #0005; }
.wipe .lab { position: absolute; bottom: 16px; padding: 7px 14px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; }
.wipe .lab.a { left: 16px; } .wipe .lab.b { right: 16px; }
.spray { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 90px; margin-left: -45px; background: repeating-linear-gradient(90deg, #fff0 0 6px, #ffffff55 7px 8px); filter: blur(3px); opacity: .7; animation: spray .5s linear infinite; pointer-events: none; }
@keyframes spray { to { background-position: 16px 0; } }
.fine { margin-top: 14px; font-size: 14px; opacity: .7; text-align: center; }

/* Colored cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.card { display: flex; flex-direction: column; min-height: 400px; padding: 26px; border-radius: var(--r); text-decoration: none; transition: transform .5s var(--ease); }
.card:hover { transform: translateY(-10px) rotate(-1.2deg); }
.card:nth-child(even):hover { transform: translateY(-10px) rotate(1.2deg); }
.card h3 { font: 800 clamp(26px, 2.6vw, 38px)/1 var(--font); letter-spacing: -.03em; }
.card ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15.5px; }
.card li::before { content: "● "; font-size: 9px; vertical-align: middle; }
.card .go { margin-top: auto; padding: 14px; border-radius: 12px; text-align: center; font-weight: 700; }
.c1 { background: var(--deep); color: var(--accent); } .c1 .go { background: var(--accent); color: var(--deep); }
.c2 { background: var(--plum); color: var(--lilac); } .c2 .go { background: var(--lilac); color: var(--plum); }
.c3 { background: var(--coral); color: var(--peach); } .c3 .go { background: var(--peach); color: #b12c10; }
.c4 { background: var(--sun); color: var(--deep); } .c4 .go { background: var(--deep); color: var(--sun); }

/* Steps that take turns as you scroll */
.how { background: var(--mist); }
.how .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; margin-top: 48px; }
.how .stick { position: sticky; top: 110px; }
.how .shot { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--plum); position: relative; }
.how .shot img, .how .shot .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.how .num { position: absolute; left: 22px; bottom: 10px; font: 800 clamp(90px, 14vw, 200px)/1 var(--font); letter-spacing: -.06em; color: var(--accent); mix-blend-mode: difference; }
.step { padding: clamp(40px, 9vh, 90px) 0; border-bottom: 2px solid #3b1f4a22; opacity: .28; transition: opacity .4s; color: var(--plum); }
.step.on { opacity: 1; }
.step h3 { font: 800 clamp(28px, 3.4vw, 46px)/1.02 var(--font); letter-spacing: -.035em; }
.step p { margin-top: 12px; max-width: 34ch; }

/* Numbers that count up */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nums div { padding: 28px; border-radius: var(--r); background: #fff; }
.nums b { display: block; font: 800 clamp(34px, 4.6vw, 64px)/1 var(--font); letter-spacing: -.04em; }
.nums span { font-size: 15px; opacity: .75; }

.revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.rev { padding: 28px; border-radius: var(--r); font: 700 clamp(19px, 1.8vw, 24px)/1.25 var(--font); letter-spacing: -.02em; transition: transform .5s var(--ease); }
.rev small { display: block; margin-top: 20px; font: 600 13px var(--font); opacity: .8; }
.rev:nth-child(1) { background: var(--deep); color: var(--accent); transform: rotate(-2deg); }
.rev:nth-child(2) { background: var(--coral); color: var(--peach); transform: rotate(1.5deg) translateY(18px); }
.rev:nth-child(3) { background: var(--plum); color: var(--lilac); transform: rotate(-1deg); }
.rev:hover { transform: rotate(0) scale(1.03); }

.cta { background: var(--deep); color: #fff; text-align: center; border-radius: var(--r) var(--r) 0 0; }
.cta .h2 { color: var(--accent); }
.cta .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Inner pages */
.top { background: var(--deep); color: #fff; margin-top: -76px; padding: 170px 0 clamp(50px, 7vw, 90px); }
.top .h1 { color: var(--accent); font-size: clamp(44px, 7.4vw, 104px); }
.top p { margin-top: 16px; max-width: 48ch; font-size: clamp(17px, 1.5vw, 21px); opacity: .9; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 110px); }
.split.flip > :first-child { order: 2; }
.split .pic { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; position: relative; background: var(--mist); }
.split .pic img, .split .pic .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split .pic:hover img { transform: scale(1.06); }
.split ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.split li::before { content: "✦ "; color: var(--coral); }
.split .btn { margin-top: 24px; }
.ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #0a1d3310 0 16px, #0a1d3320 16px 32px); font-size: 13px; font-weight: 700; opacity: .8; }
img + .ph { display: none; }
.cap { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 11.5px; font-weight: 700; }
.map { border-radius: var(--r); overflow: hidden; }
.map iframe { display: block; width: 100%; height: clamp(320px, 46vw, 560px); border: 0; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.three .card { min-height: 0; }
.three ul { font-size: 16px; }
.form { display: grid; gap: 16px; padding: 30px; border-radius: var(--r); background: #fff; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form input, .form textarea { padding: 14px 16px; border: 2px solid #0a1d3322; border-radius: 12px; font: 500 17px var(--font); color: var(--ink); background: var(--cream); }
.form textarea { min-height: 110px; resize: vertical; }
.form :focus { outline: 0; border-color: var(--deep); }
.list { margin: 0; padding: 28px; list-style: none; border-radius: var(--r); background: var(--deep); color: #fff; display: grid; gap: 14px; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #fff2; }
.list li:last-child { border: 0; padding: 0; }
.list b { color: var(--accent); text-align: right; }
/* The facts box sits inside a two-column block whose plain lists get stars and no padding. Not this one. */
.split ul.list { margin: 0; padding: 28px; gap: 14px; }
.split .list li::before { content: none; }

footer { background: var(--deep); color: #ffffffcc; padding: 0 0 26px; font-size: 15.5px; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; padding-top: 44px; border-top: 1px solid #fff2; }
footer .logo { color: var(--accent); font-size: 34px; }
footer nav { display: grid; gap: 4px; font-weight: 500; }
.credit { margin-top: 34px; font-size: 13px; opacity: .7; }

/* Things that rise in as they come on screen */
.rise { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rise.in { opacity: 1; transform: none; }
.rev.rise.in:nth-child(1) { transform: rotate(-2deg); }
.rev.rise.in:nth-child(2) { transform: rotate(1.5deg) translateY(18px); }
.rev.rise.in:nth-child(3) { transform: rotate(-1deg); }

/* "Make it yours" */
.yours { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: grid; justify-items: end; }
.yours > button { padding: 13px 20px; border: 0; border-radius: 999px; background: var(--coral); color: #fff; font: 700 15px var(--font); box-shadow: 0 8px 24px #0005; cursor: pointer; }
.panel { width: min(300px, calc(100vw - 32px)); margin-bottom: 10px; padding: 20px; border-radius: 18px; background: #fff; box-shadow: 0 14px 44px #0004; display: grid; gap: 12px; }
.panel[hidden] { display: none; }
.panel strong { font: 800 20px var(--font); letter-spacing: -.03em; }
.panel label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 700; }
.panel input[type=text] { padding: 10px 12px; border: 2px solid #0a1d3322; border-radius: 10px; font: 500 16px var(--font); }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 44px; height: 32px; border-radius: 9px; border: 2px solid #fff; box-shadow: 0 0 0 1px #0002; cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.panel p { font-size: 13.5px; opacity: .7; }
.panel .reset { justify-self: start; padding: 0; border: 0; background: none; font: 600 13.5px var(--font); text-decoration: underline; cursor: pointer; }

@media (max-width: 960px) {
  .bar nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 0; padding: 8px 20px 16px; background: #fff; border-radius: 16px; box-shadow: 0 8px 30px #0a1d3322; }
  .bar nav.open { display: flex; }
  .bar nav a { padding: 13px 0; border-bottom: 1px solid #0a1d3318; font-size: 18px; }
  .menu { display: block; }
  .bar { position: relative; }
  .sticker { position: relative; right: auto; top: auto; margin: 0 0 26px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card { min-height: 320px; }
  .how .grid, .split, .foot, .revs, .three { grid-template-columns: 1fr; }
  .how .stick { position: relative; top: 0; }
  .how .shot { aspect-ratio: 16 / 10; }
  .split.flip > :first-child { order: 0; }
  .nums { grid-template-columns: 1fr 1fr; }
  .rev:nth-child(n), .rev.rise.in:nth-child(n) { transform: none; }
}
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } .wipe { aspect-ratio: 4 / 3; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .loader { display: none; } .words i { transform: none; } .rise { opacity: 1; transform: none; } .light span { opacity: 1; } .step { opacity: 1; }
}
