/* Eastern European Workforce — builders in London
   Palette: graphite + warm off-white + safety amber (construction-derived) */

:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --color-bg: #f5f3ef;
  --color-surface: #faf9f6;
  --color-surface-offset: #edeae4;
  --color-divider: #ddd9d2;
  --color-ink: #1c1e1f;
  --color-ink-2: #26292a;
  --color-text: #23251f;
  --color-text-muted: #6b6962;
  --color-text-inverse: #f7f5f1;
  --color-accent: #e8890c;
  --color-accent-hover: #cf7304;
  --color-accent-deep: #b55f02;

  --font-display: 'Clash Display', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
  --content-default: 1080px;
  --content-narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth; scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh; line-height: 1.6;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background-color: var(--color-bg);
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); font-weight: 600; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }
::selection { background: oklch(0.72 0.15 65 / 0.3); }
:focus-visible { outline: 2px solid var(--color-accent-deep); outline-offset: 3px; border-radius: var(--radius-sm); }

a, button, [role='button'] {
  transition: color var(--transition-interactive), background var(--transition-interactive),
    border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(from #1c1e1f l c h / 0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(0.3 0.01 80 / 0.4);
}
.header-inner {
  max-width: var(--content-default); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
}
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--color-text-inverse); }
.brand-text { display: flex; flex-direction: column; }
.brand-logo { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--color-accent); object-fit: cover; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); letter-spacing: 0.01em; }
.brand-sub { font-size: var(--text-xs); color: #b9b5ac; letter-spacing: 0.14em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: var(--space-6); }
.site-nav a:not(.btn) { color: #d8d5cd; text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--color-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm);
  text-decoration: none; border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-5); cursor: pointer;
  border: 2px solid transparent;
}
.btn-accent { background: var(--color-accent); color: #17130a; }
.btn-accent:hover { background: var(--color-accent-hover); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: #4a4d4e; color: var(--color-text-inverse); }
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-lg { padding: var(--space-4) var(--space-6); font-size: var(--text-base); }

/* ---------- Hero ---------- */
.hero {
  background: var(--color-ink); color: var(--color-text-inverse);
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.hero-grid {
  max-width: var(--content-default); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center; padding-inline: var(--space-5);
}
.hero h1 { font-size: var(--text-2xl); color: #fdfcf9; margin-bottom: var(--space-5); }
.hero h1 em { font-style: normal; color: var(--color-accent); }
.hero p { color: #c9c6bf; margin-bottom: var(--space-8); font-size: var(--text-lg); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.hero-note { margin-top: var(--space-4); font-size: var(--text-xs); color: #8f8c85; letter-spacing: 0.04em; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
/* Rotating clips (assets/gifs/<set>/) — layers sit over the poster and crossfade */
.hero-media { aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: #0f1011; }
.hero-media > img { display: block; width: 100%; height: 100%; box-shadow: none; }
.hero-media-layer { position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.hero-media-layer.is-visible { opacity: 1; }
.hero-media-layer video, .hero-media-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero h1.h1-long { font-size: clamp(1.55rem, 1rem + 2vw, 2.35rem); line-height: 1.12; }
.hero-grid.has-long-title { grid-template-columns: 1.2fr 0.8fr; }
.hero-grid.has-long-title .hero-media { aspect-ratio: 4 / 4.4; }
.btn-whatsapp { background: #25d366; color: #0b2e1a; border-color: #25d366; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-whatsapp:hover { background: #1ebe5a; border-color: #1ebe5a; color: #0b2e1a; }
.hero-badge {
  position: absolute; bottom: calc(-1 * var(--space-4)); left: calc(-1 * var(--space-4));
  background: var(--color-accent); color: #17130a; font-weight: 700; font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.section-inner { max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-5); }
.section-title { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.section-title .accent { color: var(--color-accent-deep); }
.section-lede { color: var(--color-text-muted); max-width: 62ch; margin-bottom: var(--space-8); }
.dark { background: var(--color-ink); color: var(--color-text-inverse); }
.dark .section-title { color: #fdfcf9; }
.dark .section-lede { color: #b5b2ab; }

/* ---------- Trust strip ---------- */
.trust {
  border-block: 1px solid var(--color-divider); background: var(--color-surface);
}
.trust-inner {
  max-width: var(--content-default); margin-inline: auto; padding: var(--space-4) var(--space-5);
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-8);
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted);
}
.trust-inner span::before { content: "✓"; color: var(--color-accent-deep); font-weight: 700; margin-right: var(--space-2); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.card {
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-6); text-decoration: none; color: var(--color-text);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.card img { border-radius: var(--radius-md); aspect-ratio: 16 / 10; object-fit: cover; }
.card h3 { font-size: var(--text-lg); font-weight: 600; }
.card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.card .card-link { color: var(--color-accent-deep); font-weight: 700; font-size: var(--text-sm); margin-top: auto; }

/* ---------- Split sections ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
}
.split img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.split.rev .split-media { order: 2; }
.split-copy h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.split-copy p { margin-bottom: var(--space-4); color: #514e47; }
.dark .split-copy h2 { color: #fdfcf9; }
.dark .split-copy p { color: #c9c6bf; }
.tick-list { display: grid; gap: var(--space-2); margin-block: var(--space-5); }
.tick-list li { display: flex; gap: var(--space-3); align-items: baseline; color: #514e47; font-size: var(--text-sm); }
.dark .tick-list li { color: #c9c6bf; }
.tick-list li::before { content: "→"; color: var(--color-accent); font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: var(--space-4);
}
.gallery figure { overflow: hidden; border-radius: var(--radius-md); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--transition-interactive); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-a { grid-column: 1 / 3; grid-row: 1 / 3; }
.gallery .g-b { grid-column: 3; grid-row: 1; }
.gallery .g-c { grid-column: 4; grid-row: 1; }
.gallery .g-d { grid-column: 3 / 5; grid-row: 2; }
.gallery .g-e { grid-column: 1 / 3; grid-row: 3; }
.gallery .g-f { grid-column: 3 / 5; grid-row: 3; }
.gallery figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: var(--space-3) var(--space-4);
  background: linear-gradient(transparent, oklch(0.15 0.01 80 / 0.85)); color: #f4f2ee;
  font-size: var(--text-xs); font-weight: 500;
}

/* ---------- Areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.area-chip {
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-full, 9999px); padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text);
}

/* ---------- Contact ---------- */
.contact-band { text-align: center; }
.contact-band .phone-big {
  font-family: var(--font-display); font-size: clamp(1.75rem, 1rem + 3vw, 3rem);
  font-weight: 600; color: var(--color-accent); text-decoration: none; display: inline-block;
  margin-block: var(--space-5); letter-spacing: 0.01em;
}
.contact-band .phone-big:hover { color: #ffb84d; }
.contact-alt { color: #b5b2ab; font-size: var(--text-sm); }
.contact-alt a { color: #d8d5cd; }

/* ---------- Footer ---------- */
.site-footer { background: #131415; color: #9b988f; padding-block: var(--space-10); }
.footer-inner {
  max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-5);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6);
  font-size: var(--text-sm);
}
.footer-inner a { color: #c9c6bf; text-decoration: none; }
.footer-inner a:hover { color: var(--color-accent); }
.footer-nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }

/* ---------- Mobile call bar ---------- */
.call-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: none;
  background: var(--color-accent);
}
.call-bar a {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-4); color: #17130a; font-weight: 700; font-size: var(--text-base);
  text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .hero-grid, .hero-grid.has-long-title, .split { grid-template-columns: 1fr; }
  .hero-grid.has-long-title .hero-media, .hero-media { aspect-ratio: 16 / 10; }
  .hero-photo { order: -1; }
  .hero-badge { left: var(--space-2); bottom: calc(-1 * var(--space-3)); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery .g-a, .gallery .g-b, .gallery .g-c, .gallery .g-d, .gallery .g-e, .gallery .g-f { grid-column: auto; grid-row: auto; }
  .gallery .g-a { grid-column: span 2; }
  .split.rev .split-media { order: 0; }
  .site-nav .nav-link { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .brand { gap: var(--space-2); }
  .brand-name { font-size: 0.875rem; line-height: 1.2; max-width: 9.5em; }
  .call-bar { display: block; }
  body { padding-bottom: 62px; }
  .site-header { padding-bottom: var(--space-1); }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .header-inner { padding-inline: var(--space-4); }
  .site-nav .btn { padding: var(--space-2) var(--space-3); font-size: var(--text-xs); white-space: nowrap; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
