/* Topić Čišćenje — static homepage
   Tokens: deep marine ink for text, water teal for actions, pale foam for
   quiet sections, one citrus streak in the hero (the only warm accent).
   Type: Bricolage Grotesque (display) + Instrument Sans (body). */

:root {
  --ink: #12324f;
  --text: #3e4b57;
  --muted: #6b7783;
  --water: #0e8c9a;
  --water-deep: #0b6b76;
  --foam: #e7f3f5;
  --foam-deep: #cfe6ea;
  --paper: #ffffff;
  --citrus: #f2b705;
  --line: rgba(18, 50, 79, 0.14);
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.25; }
:focus-visible { outline: 3px solid var(--citrus); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: var(--section) 0; }
.section-head { max-width: 64ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p, .process-head p, .contact-info > p { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 58ch; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--water); color: #fff; border-color: var(--water); }
.btn-primary:hover { background: var(--water-deep); border-color: var(--water-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ── Mark ── */
.mark { width: 34px; height: 34px; color: var(--water); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-name { white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }
.brand-name em { font-style: normal; font-weight: 500; color: var(--water); }
.site-nav { display: flex; gap: 28px; margin-left: auto; font-weight: 500; }
.site-nav a { color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--citrus); }
.phone-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; }
.phone-link svg { width: 18px; height: 18px; color: var(--water); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; place-items: center; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform 0.2s ease; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero: the one animated moment. Each headline line is revealed by a
   squeegee-style wipe, and a citrus streak sweeps across once behind it. ── */
.hero { position: relative; overflow: hidden; background: var(--foam); padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 110px); }
.hero-in { position: relative; z-index: 1; }
.hero-since { font-weight: 500; color: var(--water-deep); margin-bottom: 22px; }
.hero-title { font-size: clamp(46px, 8.4vw, 112px); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; }
.hero-title .wipe { display: block; overflow: hidden; }
.hero-title .wipe-text { display: inline-block; clip-path: inset(0 100% 0 0); animation: wipe 0.9s cubic-bezier(0.7, 0, 0.2, 1) 0.15s forwards; }
.hero-title .wipe--2 .wipe-text { animation-delay: 0.45s; }
.hero-lead { margin-top: 28px; max-width: 56ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 44px; color: var(--muted); font-size: 15px; }
.hero-facts li { position: relative; padding-left: 18px; }
.hero-facts li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; background: var(--citrus); }
.hero-streak {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0 34%, var(--citrus) 34% 41%, transparent 41%);
  opacity: 0.85;
  transform: translateX(-70%);
  animation: streak 1.3s cubic-bezier(0.6, 0, 0.15, 1) 0.1s forwards;
}
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes streak { to { transform: translateX(120%); } }

/* ── Services: a list, because the rows are a list ── */
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 48px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.service-icon { width: 48px; height: 48px; color: var(--water); }
.service p { margin-top: 8px; color: var(--muted); }

/* ── Process ── */
.process { background: var(--foam); }
.process-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.steps { display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; align-items: start; padding: 26px 0; border-top: 1px solid var(--foam-deep); }
.steps li:last-child { border-bottom: 1px solid var(--foam-deep); }
.steps h3 { grid-column: 2; }
.steps p { grid-column: 2; margin-top: 8px; color: var(--muted); }
.step-no { grid-row: 1 / span 2; font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: 1; color: var(--water); }

/* ── About ── */
.about-in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-year { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 8vw, 110px); line-height: 0.9; color: var(--ink); letter-spacing: -0.03em; }
.about-year span { display: block; font-size: 20px; font-weight: 500; color: var(--water-deep); letter-spacing: 0; margin-bottom: 6px; }
.about-claim { margin-top: 22px; font-size: 19px; color: var(--text); max-width: 26ch; }
.about-body { max-width: 62ch; }
.about-body h2 { margin-bottom: 26px; }
.about-body p + p { margin-top: 18px; }

/* ── Contact / booking ── */
.contact { background: var(--foam); }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 32px; }
.contact-list div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; color: var(--ink); }
.contact-list dd a:hover { color: var(--water); }
.map { margin-top: 32px; border: 1px solid var(--foam-deep); }
.map iframe { display: block; width: 100%; height: 260px; border: 0; }
.contact-form { background: var(--paper); border: 1px solid var(--foam-deep); padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 500; color: var(--ink); font-size: 15px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-height: 48px;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 0; border-color: var(--water); box-shadow: 0 0 0 3px rgba(14, 140, 154, 0.18); }
.contact-form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text); }
.contact-form .check input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; }
.contact-form .check a { text-decoration: underline; text-underline-offset: 3px; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 15px; color: var(--muted); }
.form-note a { font-weight: 600; color: var(--ink); }
.form-done { padding: 14px 16px; background: var(--foam); color: var(--ink); font-weight: 600; }

/* ── Footer ── */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); padding: clamp(56px, 7vw, 96px) 0 0; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-brand .mark { color: var(--citrus); margin-bottom: 18px; }
.footer-brand p { max-width: 32ch; }
.footer-nav, .footer-contact { display: grid; gap: 12px; align-content: start; font-style: normal; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 72px); padding: 26px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap;
  font-size: 15px;
}
.footer-credit { opacity: 0.75; }
.footer-credit a { text-decoration: underline; text-underline-offset: 3px; }
.footer-credit a:hover { opacity: 1; color: #fff; }
.footer-credit span { margin: 0 6px; opacity: 0.6; }

/* ── Loader ── */
/* ── Intro: a stain over the logo, sprayed then wiped clean ──
   Timeline (s): 0.0 stain shows · 0.4 right arm in · 1.0 & 1.45 spray bursts ·
   1.9 arm out · 2.1 left arm in with cloth · 2.6–3.5 wipe (stain clip follows
   the cloth's trailing edge) · 3.6 arm out · 3.7 sparkles · 5.15 fade out. */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--paper); align-items: center; justify-content: center; overflow: hidden; }
.loader .intro { width: 100vw; height: 100vh; overflow: visible; }
.loader.done { animation: loaderOut 0.5s ease 5.15s forwards; }
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }

.intro-logo { opacity: 0; animation: introLogoIn 0.01s linear 0.4s forwards; }
@keyframes introLogoIn { to { opacity: 1; } }
.intro-logo-text { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; fill: var(--ink); }
.intro-logo-em { font-weight: 500; fill: var(--water); }

/* Stain: the supplied splat SVG (potrace), scaled into the scene; colour is a token */
.loader { --intro-stain: #5c6670; }
.intro-stain { fill: var(--intro-stain); transform-origin: 400px 250px; animation: introStainIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both, introStainWipe 0.9s cubic-bezier(0.45, 0, 0.55, 1) 2.6s forwards; }
@keyframes introStainIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes introStainWipe { from { clip-path: inset(-40% -10% -40% -23.21%); } to { clip-path: inset(-40% -10% -40% 138.83%); } }

/* Arms (shared parts) */
.intro-sleeve { stroke: var(--ink); stroke-width: 78; stroke-linecap: round; fill: none; }
.intro-wrist { stroke: #e9b899; stroke-width: 44; stroke-linecap: round; fill: none; }
.intro-cuff { stroke: #fff; stroke-width: 16; stroke-linecap: butt; fill: none; }
.intro-finger, .intro-thumb { stroke: none; }
.intro-skin { fill: #e9b899; }
.intro-arm { will-change: transform; }

/* Right arm: in, two squeezes, out */
.intro-arm-r { transform: translate(720px, 720px); animation: introArmRIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards, introArmROut 0.45s cubic-bezier(0.6, 0, 0.8, 0.4) 1.9s forwards; }
@keyframes introArmRIn { to { transform: translate(0, 0); } }
@keyframes introArmROut { to { transform: translate(720px, 720px); } }
.intro-bottle { transform-origin: 740px 330px; animation: introSqueeze 0.3s ease-in-out 1.0s 1, introSqueeze 0.3s ease-in-out 1.45s 1; }
@keyframes introSqueeze { 0% { transform: rotate(0); } 40% { transform: rotate(-5deg) translate(-3px, 2px); } 100% { transform: rotate(0); } }
.intro-bottle-body { fill: var(--water); }
.intro-bottle-hl { stroke: rgba(255, 255, 255, 0.35); stroke-width: 6; stroke-linecap: round; fill: none; }
.intro-bottle-label { fill: #fff; opacity: 0.92; }
.intro-bottle-neck { fill: var(--water-deep); }
.intro-bottle-head, .intro-nozzle { fill: var(--ink); }
.intro-nozzle-hole { fill: var(--foam-deep); }
.intro-trigger { stroke: var(--ink); stroke-width: 8; stroke-linecap: round; fill: none; transform-origin: 726px 240px; animation: introTrigger 0.3s ease-in-out 1.0s 1, introTrigger 0.3s ease-in-out 1.45s 1; }
@keyframes introTrigger { 40% { transform: rotate(16deg); } }

/* Spray: droplets fly from the nozzle toward the stain */
.intro-spray { transform: translate(601px, 228px); }
.intro-spray circle { fill: var(--water); opacity: 0; }
.intro-spray-1 circle { animation: introDrop 0.55s cubic-bezier(0.1, 0.7, 0.4, 1) 1.1s forwards; }
.intro-spray-2 circle { animation: introDrop 0.55s cubic-bezier(0.1, 0.7, 0.4, 1) 1.55s forwards; }
@keyframes introDrop {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0.95; }
  70% { opacity: 0.6; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.4); opacity: 0; }
}

/* Left arm: in, wipe across, out */
.intro-arm-l { transform: translate(-720px, 720px); animation: introArmLIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 2.1s forwards, introWipe 0.9s cubic-bezier(0.45, 0, 0.55, 1) 2.6s forwards, introArmLOut 0.45s cubic-bezier(0.6, 0, 0.8, 0.4) 3.6s forwards; }
@keyframes introArmLIn { to { transform: translate(0, 0); } }
@keyframes introWipe { from { transform: translate(0, 0); } to { transform: translate(740px, 0); } }
@keyframes introArmLOut { from { transform: translate(740px, 0); } to { transform: translate(740px, 720px); } }
.intro-cloth { fill: var(--foam-deep); stroke: var(--water-deep); stroke-width: 3; stroke-linejoin: round; }

/* Sparkles */
.intro-spark use { fill: var(--citrus); transform-origin: 0 0; transform: scale(0); animation: introSpark 0.9s ease-in-out 3.7s infinite; }
.intro-spark-2 use { animation-delay: 4.0s; }
.intro-spark-3 use { animation-delay: 4.3s; }
@keyframes introSpark { 0% { transform: scale(0) rotate(0); } 50% { transform: scale(1) rotate(30deg); } 100% { transform: scale(0) rotate(60deg); } }

/* ── Responsive ── */
@media (max-width: 960px) {
  .service-list { grid-template-columns: 1fr; }
  .process-in, .about-in, .contact-in { grid-template-columns: 1fr; }
  .about-year { font-size: 72px; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-open .site-nav { display: flex; }
  .phone-link { margin-left: auto; }
  .nav-toggle { display: grid; }
  .field-row { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 420px) {
  .phone-link { font-size: 0; gap: 0; }
  .phone-link svg { width: 22px; height: 22px; }
  .brand-name { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-title .wipe-text, .hero-streak, .loader.done, .loader [class^="intro-"] { animation: none; }
  .hero-title .wipe-text { clip-path: none; }
  .hero-streak { display: none; }
}
