/* Riverland Carpet Cleaning. Red column over a carpet that gets cleaned as you scroll. */
:root {
  --red: #c8232c;
  --red-dark: #9e1a22;
  --red-deep: #7d1319;
  --orange: #f26b1d;
  --orange-light: #f99a2a;
  --ink: #222;
  --paper: #fff;
  --col: clamp(560px, 36vw, 820px);   /* red column: wider on big screens */
  --pad: clamp(36px, 3.2vw, 72px);    /* column side padding */
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --shadow: 0 16px 40px -16px rgba(0, 0, 0, .55);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: #fff; background: #4b5c70; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { margin: 0 0 .5em; line-height: 1.1; font-weight: 900; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: var(--red); padding: 8px 14px; font-weight: 800; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }

/* ---------------------------------------------------------------- the carpet */
.carpet { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.carpet__dirty, .carpet__clean { position: absolute; left: 0; right: 0; top: 0; height: calc(100vh + 720px); background: url(/assets/img/carpet-dirty.jpg) center top / 640px auto repeat; will-change: transform; }
.carpet__clean { background-image: url(/assets/img/carpet-clean.jpg); }
/* the clean lane: the middle 60% of the wand, from the head upward as far as the carpet has passed under it (JS sets the px values) */
.carpet__clean { clip-path: inset(var(--clean-top, 0px) 0 calc(100% - var(--clean-bot, 0px)) 0); -webkit-mask-image: linear-gradient(90deg, transparent var(--lane-l, 0px), #000 calc(var(--lane-l, 0px) + 18px), #000 calc(var(--lane-r, 0px) - 18px), transparent var(--lane-r, 0px)); mask-image: linear-gradient(90deg, transparent var(--lane-l, 0px), #000 calc(var(--lane-l, 0px) + 18px), #000 calc(var(--lane-r, 0px) - 18px), transparent var(--lane-r, 0px)); }
/* the wand: as big as the carpet area allows, handle running off the bottom of the screen */
.wand { position: absolute; left: var(--col); right: 0; bottom: 0; display: flex; justify-content: center; line-height: 0; }
.wand__inner { position: relative; flex: none; width: min(920px, max(620px, 92%)); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45)); }
.wand img { width: 100%; height: auto; }
.wand__steam { position: absolute; left: 30%; right: 30%; top: -30px; height: 60px; pointer-events: none; }
.wand__steam i { position: absolute; bottom: 0; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 70%); opacity: 0; }
.wand__steam i:nth-child(1) { left: 8%; } .wand__steam i:nth-child(2) { left: 34%; } .wand__steam i:nth-child(3) { left: 58%; } .wand__steam i:nth-child(4) { left: 82%; }
.is-scrolling .wand__steam i { animation: steam 1.4s ease-out infinite; }
.is-scrolling .wand__steam i:nth-child(2) { animation-delay: .35s; } .is-scrolling .wand__steam i:nth-child(3) { animation-delay: .7s; } .is-scrolling .wand__steam i:nth-child(4) { animation-delay: 1.05s; }
@keyframes steam { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-80px) scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .is-scrolling .wand__steam i { animation: none; } }

/* ---------------------------------------------------------------- header + sticky menu */
.header { position: relative; z-index: 3; }
.header__panel { position: relative; background: var(--paper); padding: 22px calc(var(--pad) + 50px) 16px var(--pad); clip-path: polygon(0 0, 100% 0, calc(100% - 54px) 100%, 0 100%); width: calc(var(--col) + 54px); box-shadow: var(--shadow); }
.header__logo img { width: 100%; max-width: 700px; height: auto; }
.header__tag { margin: 6px 0 0 4px; color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.sidemenu { position: fixed; top: 22px; right: 22px; z-index: 30; display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 200px; }
.sidemenu__link { display: block; padding: 10px 18px; background: rgba(255, 255, 255, .94); color: var(--red-deep); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-left: 5px solid transparent; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); transition: transform .25s var(--ease), border-color .2s, background .2s; }
.sidemenu__link:hover { transform: translateX(-6px); background: #fff; }
.sidemenu__link.is-active { border-left-color: var(--orange); color: var(--red); }
.sidemenu__call { display: block; margin-top: 6px; padding: 10px 18px 12px; background: linear-gradient(90deg, #f7731f, #e22d35); color: #fff; text-decoration: none; line-height: 1.1; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); transition: transform .25s var(--ease), filter .2s; }
.sidemenu__call span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .9; }
.sidemenu__call strong { font-size: 22px; font-weight: 900; font-family: Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.sidemenu__call:hover { transform: translateX(-6px); filter: brightness(1.06); }

/* ---------------------------------------------------------------- red column */
.column { position: relative; z-index: 2; width: var(--col); margin-top: -8px; background: var(--red); background-image: radial-gradient(120% 60% at 30% 0%, rgba(255, 255, 255, .12), transparent 60%), repeating-linear-gradient(135deg, rgba(0, 0, 0, .035) 0 2px, transparent 2px 5px); box-shadow: 20px 0 60px -20px rgba(0, 0, 0, .7); }
.column::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; opacity: .8; }
.block { position: relative; z-index: 1; padding: 44px var(--pad) 30px; }
.block + .block { border-top: 1px solid rgba(255, 255, 255, .18); }
.block__title { font-size: 34px; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.block__title small { display: block; font-size: 18px; font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .9; margin-bottom: 2px; }
.block--welcome .block__title { font-size: 30px; }
.photo { margin: 26px 0 6px; background: #fff; padding: 8px; box-shadow: var(--shadow); transform: rotate(-.6deg); transition: transform .5s var(--ease); }
.photo:nth-of-type(even) { transform: rotate(.6deg); }
.photo:hover { transform: rotate(0) scale(1.01); }
.photo img { width: 100%; }
.photo figcaption { color: #444; font-size: 13px; font-weight: 600; padding: 8px 4px 2px; text-align: center; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 10px; }
.points li { background: rgba(0, 0, 0, .18); padding: 14px 12px; text-align: center; border-bottom: 3px solid var(--orange-light); }
.points strong { display: block; font-size: 28px; font-weight: 900; line-height: 1; margin-bottom: 6px; }
.points span { font-size: 12.5px; line-height: 1.35; display: block; opacity: .95; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 14px 0 20px; }
.services li { position: relative; padding: 9px 10px 9px 36px; background: rgba(255, 255, 255, .1); font-weight: 700; font-size: 15px; line-height: 1.3; transition: background .2s, transform .2s var(--ease); }
.services li::before { content: ""; position: absolute; left: 12px; top: 13px; width: 13px; height: 7px; border-left: 3px solid #ffd27a; border-bottom: 3px solid #ffd27a; transform: rotate(-45deg); }
.services li:hover { background: rgba(255, 255, 255, .2); transform: translateX(4px); }
.bigphone { display: inline-block; font-family: Georgia, "Times New Roman", serif; font-size: 44px; font-weight: 700; letter-spacing: .02em; text-decoration: none; margin: 4px 0 14px; text-shadow: 0 3px 0 rgba(0, 0, 0, .3); transition: transform .25s var(--ease); }
.bigphone:hover { transform: scale(1.04); }
.email { font-weight: 800; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); }

/* form */
.rcc-form { display: grid; gap: 10px; margin-top: 14px; }
.rcc-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rcc-form input, .rcc-form textarea { width: 100%; padding: 13px 16px; border: 2px solid transparent; background: #fff; color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s; }
.rcc-form input:focus, .rcc-form textarea:focus { outline: none; border-color: var(--orange-light); }
.rcc-form .is-invalid { border-color: #ffd27a; background: #fff6e8; }
.rcc-form textarea { resize: vertical; min-height: 130px; }
.rcc-form__hp { position: absolute; left: -9999px; }
.btn--tab { justify-self: start; border: 0; cursor: pointer; font: inherit; color: #fff; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 11px 36px 11px 24px; background: linear-gradient(90deg, #f7731f, #f98a2a); clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); transition: transform .25s var(--ease), filter .2s; }
.btn--tab:hover { transform: translateX(4px); filter: brightness(1.08); }
.btn--tab:disabled { opacity: .6; cursor: wait; }
.rcc-form__status { margin: 0; font-weight: 700; min-height: 1.5em; }
.rcc-form__status.is-ok { color: #ffe9a8; } .rcc-form__status.is-error { color: #fff; background: rgba(0, 0, 0, .25); padding: 6px 10px; }

/* footer + call bar */
.foot { position: relative; padding: 30px var(--pad) 40px; font-size: 13px; background: var(--red-dark); display: flex; align-items: flex-end; gap: 18px; }
.foot__man { width: 90px; height: auto; flex: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.foot p { margin: 0; opacity: .9; }
.foot a { color: #ffd27a; }
.callbar { display: none; }
.js .reveal { opacity: 0; transform: translateY(20px) rotate(0) !important; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none !important; }

.column--404 { margin-top: 60px; margin-left: 40px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  :root { --col: 50%; --pad: 28px; }
  .header__panel { padding: 18px calc(var(--pad) + 44px) 14px var(--pad); }
  .sidemenu { width: 170px; top: 14px; right: 14px; }
  .sidemenu__link { padding: 8px 14px; font-size: 13.5px; }
  .sidemenu__call strong { font-size: 19px; }
}
@media (max-width: 820px) {
  :root { --col: 100%; --pad: 20px; }
  body { font-size: 15.5px; }
  .carpet__clean { display: none; }          /* phones: carpet texture only, no lane */
  .wand { display: none; }
  .header__panel { width: 100%; clip-path: none; padding: 14px 16px 10px; }
  .header__logo img { max-width: 420px; margin: 0 auto; }
  .header__tag { text-align: center; margin-left: 0; }
  .sidemenu { position: static; width: auto; flex-direction: row; gap: 0; background: var(--red-deep); }
  .sidemenu__link { flex: 1; text-align: center; padding: 12px 4px; font-size: 13px; border-left: 0; border-bottom: 4px solid rgba(0, 0, 0, .2); background: transparent; color: #fff; box-shadow: none; }
  .sidemenu__link:hover { transform: none; background: rgba(255, 255, 255, .08); }
  .sidemenu__link.is-active { border-bottom-color: var(--orange-light); color: #fff; }
  .sidemenu__call { display: none; }
  .column { margin-top: 0; box-shadow: none; }
  .block { padding: 32px var(--pad) 22px; }
  .block__title { font-size: 28px; }
  .points { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .points strong { font-size: 22px; }
  .services { grid-template-columns: 1fr; }
  .rcc-form__row { grid-template-columns: 1fr; }
  .bigphone { font-size: 36px; }
  .foot { padding-bottom: 90px; }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: baseline; justify-content: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(90deg, #f7731f, #e22d35); color: #fff; text-decoration: none; box-shadow: 0 -8px 30px rgba(0, 0, 0, .35); }
  .callbar span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
  .callbar strong { font-size: 22px; font-weight: 900; }
  .column--404 { margin-left: 0; }
}
