/* Clearview Cleaning Co. — "Soft Split" template. Example site by Keep Web Up. */
:root {
  --cream: #faf7f0;
  --cream-2: #f3eee3;
  --mint: #dcefe7;
  --mint-2: #c6e4d8;
  --teal: #0f5a50;
  --teal-d: #0a3f38;
  --ink: #17302c;
  --muted: #4b5c58;
  --sand: #f6e9d6;
  --sky: #e3eef6;
  --blush: #f7e3df;
  --line: #e7e0d2;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(18px, 5vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: calc(1180px + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* Banner */
.banner { background: var(--teal-d); color: #d5ece4; font-size: 12.5px; }
.banner-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
.banner b { color: #fff; }
.banner a { color: #fff; font-weight: 600; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250, 247, 240, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.top-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font: 500 1.22rem/1 var(--serif); color: var(--teal-d); letter-spacing: -.01em; }
.logo i { font-style: italic; color: var(--teal); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: .94rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--teal); }
@media (max-width: 860px) { .nav { display: none; } .top-cta { margin-left: auto; } }
@media (max-width: 400px) { .logo { font-size: 1.05rem; gap: 8px; } .logo svg { width: 28px; height: 28px; } .top-cta { padding: 10px 14px; } }

/* Pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 600 .95rem/1.1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s; }
.pill:hover { transform: translateY(-2px); }
.pill--dark { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -12px rgba(15, 90, 80, .7); }
.pill--dark:hover { background: var(--teal-d); }
.pill--line { border-color: rgba(15, 90, 80, .28); color: var(--teal); background: transparent; }
.pill--line:hover { border-color: var(--teal); background: #fff; }
.pill--white { background: #fff; color: var(--teal-d); }
.pill--mint { background: var(--mint); color: var(--teal-d); }
.pill--block { width: 100%; padding: 16px; font-size: 1rem; }
.top-cta { padding: 11px 18px; font-size: .9rem; }

/* Type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.leaf { width: 14px; height: 14px; border-radius: 0 50% 0 50%; background: var(--teal); opacity: .85; }
.eyebrow--light { color: var(--mint); }
.eyebrow--light .leaf { background: var(--mint); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; color: var(--teal-d); font-variation-settings: "opsz" 120; }
h1 em, h2 em { font-style: italic; color: var(--teal); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; text-wrap: balance; }
h3 { font: 600 1.08rem/1.3 var(--sans); color: var(--ink); letter-spacing: -.01em; }

/* Hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.hero-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; text-wrap: balance; }
.hero-side > p { color: var(--muted); font-size: 1.04rem; max-width: 42ch; }
.proof { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.proof b { color: var(--ink); font-weight: 600; }
.faces { display: flex; }
.faces i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: normal 600 .74rem/1 var(--sans); letter-spacing: .02em; border: 3px solid var(--cream); margin-left: -10px; }
.faces i:first-child { margin-left: 0; }
.f1 { background: #f2c9a8; color: #6b3a17; }
.f2 { background: var(--mint-2); color: var(--teal-d); }
.f3 { background: #cfdcf0; color: #24406b; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.hero-cards { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: clamp(36px, 5vw, 56px); }
.card-img { position: relative; display: block; border-radius: 30px; overflow: hidden; height: clamp(340px, 34vw, 470px); text-decoration: none; color: #fff; isolation: isolate; box-shadow: 0 30px 60px -36px rgba(10, 63, 56, .55); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); z-index: -2; }
.card-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 63, 56, 0) 30%, rgba(10, 63, 56, .55) 62%, rgba(10, 63, 56, .88) 100%); transition: opacity .4s; }
.card-img:hover img { transform: scale(1.06); }
.card-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 30px); display: grid; gap: 4px; justify-items: start; }
.card-txt b { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--serif); letter-spacing: -.01em; }
.card-txt > span:not(.pill) { font-size: .95rem; opacity: .9; }
.card-txt .pill { margin-top: 14px; }
.card-img--invert { background: var(--mint); color: var(--teal-d); }
.card-img--invert::after { background: linear-gradient(180deg, rgba(220, 239, 231, 0) 34%, rgba(220, 239, 231, .9) 72%, var(--mint) 100%); }
.card-img--invert .card-txt .pill { background: var(--teal); color: #fff; }
.card-img--invert img { object-position: 30% 40%; }

.ticks { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; font-size: .92rem; color: var(--muted); font-weight: 500; }
.ticks li { display: flex; align-items: center; gap: 9px; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5a50' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }

@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .hero-cards { grid-template-columns: 1fr; }
  .card-img { height: auto; aspect-ratio: 4 / 3.3; }
}

/* Hero opening: "hero gallery scroll", after the 21st.dev component by @youcefbnm
   (21st.dev/@youcefbnm/components/hero-gallery-scroll-animation), reworked as mess-to-tidy.
   Plain CSS fed --p / --e by /examples/scroll-hero.js, with start and end boxes from tidy.js.
   Without .sh-on (no JS, reduced motion) the photos are not shown and the hero is as before. */
.tidy, .tidy-hint, .sh-run { display: none; }
.sh { --p: 1; --e: 1; }
.sh-on .sh { --p: 0; --e: 0; position: relative; }
.sh-on .sh-run { display: block; height: 100svh; }
.sh-on .hero.sh { padding: 0; }
.sh-on .sh .sh-stage { position: sticky; top: 72px; padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.sh { --side: clamp(0, calc((var(--p) - .3) / .35), 1); --cards: clamp(0, calc((var(--p) - .8) / .06), 1);
  --gone: clamp(0, calc((var(--p) - .9) / .1), 1); --under: clamp(0, calc((var(--p) - .72) / .14), 1); }
.sh-on .sh .hero-side, .sh-on .sh .ticks { animation: none; }
.sh-on .sh .hero-side { opacity: var(--side); transform: translateY(calc((1 - var(--side)) * 24px)); }
.sh-on .sh .hero-cards, .sh-on .sh .ticks { opacity: var(--cards); }
.sh-on .sh:not(.sh-end) .sh-late { pointer-events: none; }
.sh-on .tidy { display: block; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tile { position: absolute; left: 0; top: 0; margin: 0; overflow: hidden; background: #fff; will-change: transform;
  width: calc(var(--w0) + (var(--w1) - var(--w0)) * var(--e)); height: calc(var(--h0) + (var(--h1) - var(--h0)) * var(--e));
  transform: translate(calc(var(--x0) + (var(--x1) - var(--x0)) * var(--e)), calc(var(--y0) + (var(--y1) - var(--y0)) * var(--e))) rotate(calc(var(--r0) * (1 - var(--e))));
  border: calc((1 - var(--e)) * 7px) solid #fff; border-radius: calc(8px + var(--e) * 22px);
  box-shadow: 0 26px 44px -24px rgba(10, 63, 56, .5); opacity: calc(1 - var(--under)); }
.tile--top { opacity: calc(1 - var(--gone)); }
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sh-on .tidy-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; left: 50%; top: calc(100svh - 72px - 70px); transform: translateX(-50%); z-index: 4; margin: 0;
  font: 600 .72rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); opacity: calc(1 - var(--p) * 6); white-space: nowrap; }
.tidy-hint::after { content: ""; width: 26px; height: 26px; border-radius: 0 50% 0 50%; background: var(--mint-2); animation: sway 2.4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(0) translateY(0); } 50% { transform: rotate(90deg) translateY(4px); } }

/* Sections */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec--tight { padding-top: 0; }
.sec--mint { background: var(--mint); border-radius: clamp(28px, 4vw, 48px); margin: 0 clamp(8px, 1.5vw, 20px); }
.head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; }

/* Services */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.svc-card { border-radius: 28px; padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -28px rgba(10, 63, 56, .45); }
.svc-card p { color: var(--muted); font-size: .95rem; }
.svc-card .ico { width: 52px; height: 52px; border-radius: 18px; background: rgba(255, 255, 255, .75); display: grid; place-items: center; color: var(--teal); margin-bottom: auto; }
.svc-card .ico svg { width: 26px; height: 26px; }
.svc-card h3 { margin-top: 28px; }
.svc-card--mint { background: var(--mint); }
.svc-card--sand { background: var(--sand); }
.svc-card--sky { background: var(--sky); }
.svc-card--blush { background: var(--blush); }
@media (max-width: 960px) { .svc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .svc { grid-template-columns: 1fr; } .svc-card { min-height: 0; } }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why-photo { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 34px 60px -36px rgba(10, 63, 56, .6); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.why-photo figcaption { position: absolute; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: .86rem; font-weight: 600; color: var(--teal-d); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb37e; box-shadow: 0 0 0 4px rgba(47, 179, 126, .2); }
.why-list { display: grid; gap: 14px; margin-top: 30px; }
.why-list li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border-radius: 22px; background: rgba(255, 255, 255, .65); transition: background-color .3s; }
.why-list li:hover { background: #fff; }
.why-list .n { font: italic 400 1.6rem/1 var(--serif); color: var(--teal); min-width: 36px; padding-top: 2px; }
.why-list p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .why-photo { aspect-ratio: 4 / 3; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 16%; right: 16%; border-top: 2px dashed var(--mint-2); z-index: 0; }
.steps li { position: relative; z-index: 1; text-align: center; padding: 0 12px; }
.step-n { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; background: #fff; border: 1.5px solid var(--mint-2); font: 400 1.7rem/1 var(--serif); color: var(--teal); box-shadow: 0 0 0 8px var(--cream); }
.steps li:hover .step-n { background: var(--teal); color: #fff; border-color: var(--teal); transition: background-color .3s, color .3s; }
.steps p { color: var(--muted); font-size: .95rem; max-width: 30ch; margin: 8px auto 0; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps::before { top: 34px; bottom: 34px; left: 50%; right: auto; border-top: 0; border-left: 2px dashed var(--mint-2); }
  .steps li { background: var(--cream); padding-bottom: 6px; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.gallery figure { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3.4; }
.gallery figure:first-child { aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(250, 247, 240, .92); font-size: .84rem; font-weight: 600; color: var(--teal-d); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; } }
@media (max-width: 420px) { .gallery { grid-template-columns: 1fr; } }

/* Quote */
.quote { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; background: var(--teal); color: #e3f2ec; border-radius: clamp(28px, 4vw, 44px); padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; isolation: isolate; }
.quote::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(220, 239, 231, .18), transparent 65%); z-index: -1; }
.quote h2 { color: #fff; }
.quote h2 em { color: var(--mint); }
.quote-copy > p { margin-top: 16px; color: #cfe6dd; max-width: 40ch; }
.quote-phone svg { width: .8em; height: .8em; }
.quote-phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font: 400 clamp(1.5rem, 2.6vw, 2rem)/1 var(--serif); color: #fff; text-decoration: none; }
.quote-phone:hover { color: var(--mint); }
.quote-ticks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.quote-ticks li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .84rem; }
.form { background: var(--cream); color: var(--ink); border-radius: 28px; padding: clamp(22px, 3.4vw, 34px); display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .4); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label, .chips legend { display: grid; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.form input[type=text], .form input[type=tel], .form textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 90, 80, .12); }
.form textarea { resize: vertical; min-height: 92px; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chips label { display: block; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; font-size: .9rem; cursor: pointer; transition: all .2s; }
.chips input:checked + span { background: var(--mint); border-color: var(--teal); color: var(--teal-d); }
.chips input:focus-visible + span { outline: 2.5px solid var(--teal); outline-offset: 2px; }
.sent { padding: 12px 14px; border-radius: 14px; background: var(--mint); color: var(--teal-d); font-size: .92rem; font-weight: 500; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .form .row { grid-template-columns: 1fr; } }

/* Footer */
.foot { padding: 48px 0 28px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.foot-in p { margin-top: 12px; color: var(--muted); font-size: .92rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-size: .94rem; font-weight: 500; }
.foot-links a { text-decoration: none; color: var(--muted); }
.foot-links a:hover { color: var(--teal); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; font-size: .84rem; color: var(--muted); }
.foot-bottom a { color: var(--teal); font-weight: 600; }

/* Entrance */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .9s var(--ease) both; }
.rise--2 { animation-delay: .12s; }
.rise--3 { animation-delay: .24s; }
.rise--4 { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
