/* Clean Up OÜ
   Palette from the yard: concrete, slab, asphalt, and the logo's signal red. */
:root {
  --concrete: #E6E7E3;
  --slab: #F4F4F1;
  --asphalt: #1D2023;
  --asphalt-2: #2A2E32;
  --secondary: #3E4346;
  --muted: #5B6063;
  --line: #C4C6C1;
  --signal: #D42A2C;
  --signal-dark: #AE1F22;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;        /* controls */
  --radius-card: 8px;   /* photos */
  --radius-panel: 12px; /* panels; inner controls stay 6 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --wide: 125%;   /* Archivo width axis */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 72px; --s7: 112px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--asphalt);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-stretch: var(--wide); }
h1 { font-weight: 600; }
h2 { font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 1.3rem; }
p { margin: 0 0 var(--s2); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-stretch: var(--wide); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fine { font-size: 0.875rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--asphalt); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 20px;
  border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease), transform 150ms var(--ease);
}
.btn:active { transform: scale(0.98);
}
.btn--red { background: var(--signal); color: #fff; }
.btn--red:hover { background: var(--signal-dark); }
.btn--line { border-color: var(--asphalt); color: var(--asphalt); background: transparent; }
.btn--line:hover { background: var(--asphalt); color: #fff; }

/* Header */
.bar {
  position: sticky; top: 0; z-index: 5;
  background: var(--concrete);
  border-bottom: 1px solid var(--line);
}
.bar__in { display: flex; align-items: center; gap: var(--s4); min-height: 72px; }
.brand img { width: 72px; height: auto; }
.nav { display: flex; gap: var(--s3); flex: 1; order: 1; }
.bar__tel, .menu-btn { order: 2; }
.nav a { text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--signal); }
.nav a[aria-current="page"] { border-bottom-color: var(--asphalt); }
.bar__tel { font-weight: 600; font-stretch: var(--wide); text-decoration: none; white-space: nowrap; }
.bar__tel:hover { color: var(--signal); }
.menu-btn {
  display: none; align-items: center; min-height: 44px; padding: 8px 16px;
  font: inherit; font-weight: 500; color: var(--asphalt);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}

/* Hero: text in the grid, photo runs to the right edge of the screen */
.hero { padding-top: var(--s6); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--s5);
  align-items: center;
  max-width: none;
  padding-right: 0;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.25rem); letter-spacing: -0.015em; margin-bottom: var(--s3); hyphens: manual; }
.lead { font-size: 1.15rem; line-height: 1.6; max-width: 36rem; color: var(--secondary); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hero__photo { margin: 0; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__photo figcaption { font-size: 0.8rem; color: var(--muted); padding: var(--s1) var(--gutter) 0 0; text-align: right; }


/* Sections */
.sec { padding: var(--s7) 0; }
.sec--slab { background: var(--slab); }
.sec__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: end; margin-bottom: var(--s5); }
.sec__head p { margin: 0; max-width: 52ch; color: var(--muted); }

/* Materials */
.board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); margin-bottom: var(--s3); }
.fam img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); margin-bottom: var(--s3); }
.fam h2 { font-size: 1.6rem; margin-bottom: var(--s1); }
.fam > p { color: var(--muted); max-width: 48ch; }
.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: 1px solid var(--line); }
.prices th { font-weight: 600; }
.prices th span { font-weight: 400; color: var(--muted); margin-left: 8px; }
.prices td { text-align: right; white-space: nowrap; color: var(--muted); }
.prices td .num { font-size: 1.6rem; color: var(--asphalt); margin-right: 2px; }

/* Calculator */
.calc {
  margin-top: var(--s6);
  background: var(--asphalt); color: #fff;
  border-radius: var(--radius-panel);
  padding: var(--s5);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3) var(--s5);
}
.calc h2 { grid-column: 1 / -1; font-size: 1.6rem; }
.calc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); align-content: start; }
.calc__fields label:first-child { grid-column: 1 / -1; }
.calc label, .ask label { display: grid; gap: 8px; font-size: 0.9rem; font-weight: 500; }
.unit { display: flex; align-items: center; gap: 8px; }
.calc input, .calc select, .ask input, .ask select, .ask textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; color: #fff;
  background: var(--asphalt-2); border: 1px solid #4B5055; border-radius: var(--radius);
}
.calc input:focus, .calc select:focus, .ask input:focus, .ask select:focus, .ask textarea:focus { border-color: #fff; outline: none; box-shadow: 0 0 0 3px var(--signal); }
.calc__out { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s4); align-self: center; color: #C9CCCF; }
.calc__out span { display: grid; }
.calc__out b { font-size: clamp(2rem, 4vw, 3rem); font-stretch: var(--wide); font-weight: 600; color: #fff; line-height: 1; }
.calc .fine { color: #A9AEB2; margin: 0; }
.calc .btn { justify-self: start; }

/* Fleet */
.fleet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.truck:first-child { grid-column: 1 / -1; }
.truck:first-child img { aspect-ratio: 21 / 9; }
.truck img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-card); }
.truck__body { display: grid; grid-template-columns: 1fr auto; column-gap: var(--s3); padding-top: var(--s3); }
.truck h2 { align-self: baseline; font-size: 1.3rem; }
.truck__cap { margin: 0; grid-row: span 2; text-align: right; line-height: 1; font-weight: 600; }
.truck__cap .num { font-size: 3rem; }
.truck__cap small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted); margin-top: 8px; }
.truck__body p:last-child { color: var(--muted); margin: 8px 0 0; }

/* Rent */
.rent { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: start; }
.rates { width: 100%; border-collapse: collapse; margin-bottom: var(--s4); }
.rates thead th { font-size: 0.85rem; font-weight: 500; color: var(--muted); text-align: left; padding: 0 0 8px; }
.rates thead th:last-child { text-align: right; }
.rates tbody th, .rates td { border-top: 1px solid var(--line); padding: 16px 0; vertical-align: baseline; }
.rates tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.rates tbody th { text-align: left; font-weight: 600; }
.rates tbody th span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 2px; }
.rates td { text-align: right; font-size: 1.6rem; padding-left: var(--s3); }
.rent__photos { display: grid; gap: var(--s4); position: sticky; top: 100px; }
.rent__photos figure { margin: 0; }
.rent__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); }
.rent__photos figcaption { font-size: 0.85rem; color: var(--muted); margin-top: var(--s1); }


/* Page head on service pages */
.page-head { padding: var(--s6) 0 var(--s5); border-bottom: 1px solid var(--line); }
.page-head__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s5); align-items: end; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.015em; }
.page-head p { margin: 0; max-width: 36rem; font-size: 1.15rem; line-height: 1.6; color: var(--secondary); }
.sec--tight { padding-top: var(--s5); }

/* Text-only service pages */
.prose { max-width: 40rem; }
.prose p { font-size: 1.1rem; line-height: 1.65; }
.prose h2 { font-size: 1.5rem; margin: var(--s5) 0 var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose .btn { margin-top: var(--s3); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); align-items: start; }
.split__img { width: 100%; max-width: 346px; border-radius: var(--radius-card); justify-self: end; }

/* Carpets page: two services side by side */
.carpets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4); }
.carpets img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); margin-bottom: var(--s3); }
.carpets h2 { font-size: 1.5rem; margin-bottom: var(--s1); }
.carpets p { color: var(--muted); max-width: 40ch; }
.carpets__cta { margin-top: var(--s4); }

/* Home: main services as cards, side services as rows */
.svc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.svc__card { display: flex; flex-direction: column; text-decoration: none; }
.svc__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); margin-bottom: var(--s3); }
.svc__card h3 { font-size: 1.5rem; margin-bottom: var(--s1); transition: color 150ms var(--ease); }
.svc__card p { color: var(--muted); }
.svc__card:hover h3 { color: var(--signal); }
.svc__fact { margin-top: auto; padding-top: var(--s2); border-top: 1px solid var(--line); color: var(--muted); }
.svc__fact .num { font-size: 1.6rem; color: var(--asphalt); }
.svc-minor { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); border-top: 3px solid var(--asphalt); }
.svc-minor a { display: grid; gap: 4px; padding: var(--s3) 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.svc-minor b { font-stretch: var(--wide); font-weight: 600; font-size: 1.15rem; }
.svc-minor span { color: var(--muted); }
.svc-minor a:hover b { color: var(--signal); }

/* Contact */
.contact { background: var(--asphalt); color: #fff; padding: var(--s7) 0; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); }
.contact h2 { margin-bottom: var(--s4); }
.contact a { color: #fff; }
.contact a:hover { color: #FF8B85; }
.contact__tel { display: grid; gap: 4px; margin-bottom: var(--s3); }
.contact__tel a { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; font-stretch: var(--wide); text-decoration: none; }
.addr { margin: var(--s4) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.addr dt { font-size: 0.85rem; color: #A9AEB2; margin-bottom: 4px; }
.addr dd { margin: 0; }
.ask { display: grid; gap: var(--s2); background: var(--asphalt-2); padding: var(--s4); border-radius: var(--radius-panel); }
.ask h3 { font-size: 1.4rem; margin-bottom: var(--s1); }
.ask input, .ask select, .ask textarea { background: var(--asphalt); }
.ask textarea { resize: vertical; min-height: 120px; }
.ask__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.ask .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.note { padding: 12px 16px; border-radius: var(--radius); margin: 0; }
.note--ok { background: #E3F1E4; color: #17431C; }
.note--err { background: #FBE3E2; color: #6E1213; }
.note--err a, .note--ok a { color: inherit; }

/* Footer */
.foot { background: var(--asphalt); color: #A9AEB2; border-top: 1px solid #383C40; font-size: 0.9rem; }
.foot__in { display: flex; justify-content: space-between; gap: var(--s2); padding-top: var(--s3); padding-bottom: var(--s3); }
.foot a { color: #fff; }

/* Tablet */
@media (max-width: 960px) {
  .bar__in { flex-wrap: wrap; justify-content: space-between; gap: var(--s2); }
  .menu-btn { display: inline-flex; }
  .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: var(--s2); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .bar__tel { margin-left: auto; }
  .hero__grid, .sec__head, .rent, .contact__grid, .calc { grid-template-columns: 1fr; }
  .hero__grid { padding-right: var(--gutter); gap: var(--s4); }
  .page-head__in, .split { grid-template-columns: 1fr; gap: var(--s3); }
  .svc { grid-template-columns: 1fr 1fr; }
  .split__img { justify-self: start; }
  .rent__photos { position: static; grid-template-columns: 1fr 1fr; }
  .sec__head { gap: var(--s2); }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: var(--s5); }
  .hero__grid { padding-right: 0; }
  .hero__text { padding-right: var(--gutter); }
  .hero__photo figcaption { padding-right: var(--gutter); }
  .actions .btn { flex: 1 1 100%; }
  .svc, .svc-minor { grid-template-columns: 1fr; }
  .page-head { padding: var(--s5) 0 var(--s4); }
  .sec, .contact { padding: var(--s6) 0; }
  .board, .fleet, .carpets, .ask__row, .addr, .calc__fields { grid-template-columns: 1fr; }
  .calc { padding: var(--s4) var(--s3); }
  .calc__out { grid-template-columns: 1fr 1fr; }
  .rent__photos { grid-template-columns: 1fr; }
  .truck__cap .num { font-size: 2.4rem; }
  .truck:first-child img { aspect-ratio: 3 / 2; }
  .ask { padding: var(--s3); }
  .foot__in { flex-direction: column; }
}
