/* ═══════════════════════════════════════════════════
   FINISHOME — Brand: #8D8B83 (RAL 7030 Stone Grey) + #E6D2B5 (RAL 1015 Light Ivory)
   CSS Cutting-Edge 2026: scroll-driven, :has(), nesting, balance
   ═══════════════════════════════════════════════════ */

:root {
  --brand-stone: #8D8B83;
  --brand-stone-dark: #6E6C65;
  --brand-stone-light: #A8A69E;
  --brand-ivory: #E6D2B5;
  --brand-ivory-dark: #C9B896;
  --brand-ivory-light: #F2E6D6;

  --ink: #0b1526;
  --ink-soft: #4a5468;
  --paper: #faf7f0;
  --white: #ffffff;
  --line: #d8cfbf;
  --line-dark: #2d3d5c;
  --accent: var(--brand-stone);
  --accent-soft: var(--brand-ivory);
  --sand: #c4b89e;
  --clay: var(--brand-ivory);
  --highlight: #f0e8d8;
  --green: #25D366;

  --max-width: 1240px;
  --header-height: 78px;

  /* Elevation system */
  --shadow-xs: 0 1px 3px rgba(11, 21, 38, 0.06);
  --shadow-sm: 0 4px 12px rgba(11, 21, 38, 0.08);
  --shadow-md: 0 8px 30px rgba(11, 21, 38, 0.10);
  --shadow-lg: 0 12px 40px rgba(11, 21, 38, 0.14);
  --shadow-xl: 0 20px 60px rgba(11, 21, 38, 0.18);
  --shadow-button: 0 6px 22px rgba(141, 139, 131, 0.28);
  --shadow-button-hover: 0 8px 28px rgba(141, 139, 131, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-is-open { overflow: hidden; }

a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 64px), var(--max-width)); margin: 0 auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; z-index: 100; top: 12px; left: 12px;
  padding: 10px 14px; color: var(--white); background: var(--accent);
  border-radius: 3px; transform: translateY(-150%); transition: transform 200ms ease;
  font-weight: 600; font-size: 13px;
}
.skip-link:focus { transform: translateY(0); }

/* ─── Header ───────────────────────────────────── */

.site-header {
  position: fixed; z-index: 20; top: 0; left: 0; width: 100%;
  height: var(--header-height);
  background: rgba(250, 247, 240, 0.95);
  border-bottom: 1px solid rgba(141, 139, 131, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 320ms ease, border-color 320ms ease;
  will-change: box-shadow;

  &.is-scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: rgba(141, 139, 131, 0.12);
  }
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 28px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: 18px; font-weight: 700;
  letter-spacing: -0.04em; text-decoration: none; white-space: nowrap;
}

.brand-logo { display: block; width: 170px; height: auto; max-height: 60px; object-fit: contain; }

/* ─── Header social icons ───────────────────── */
.header-socials {
  display: flex; align-items: center; gap: 4px;
}

.hs-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; color: var(--ink-soft);
  text-decoration: none; border-radius: 3px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;

  &:hover, &:focus-visible {
    background: rgba(141, 139, 131, 0.06);
    transform: translateY(-1px);
  }
  &.hs-wa:hover, &.hs-wa:focus-visible { color: #25D366; }
  &.hs-ig:hover, &.hs-ig:focus-visible { color: #E4405F; }
  &.hs-fb:hover, &.hs-fb:focus-visible { color: #1877F2; }
}

.header-cta { margin-left: 6px; }

.desktop-nav {
  display: flex; align-items: center; gap: 30px; margin-left: auto;

  a {
    position: relative; color: var(--ink-soft); font-size: 13px;
    font-weight: 600; text-decoration: none;
    transition: color 180ms ease;

    &::after {
      position: absolute; right: 0; bottom: -7px; left: 0; height: 2px;
      background: var(--accent); content: "";
      transform: scaleX(0); transform-origin: right; transition: transform 200ms ease;
      border-radius: 1px;
    }

    &:hover, &:focus-visible { color: var(--ink); }
    &:hover::after, &:focus-visible::after { transform: scaleX(1); transform-origin: left; }
  }
}

.header-actions { display: flex; align-items: center; gap: 18px; }

/* ─── Language dropdown ──────────────────────────── */

.language-switcher {
  position: relative;
}

.language-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 3px; cursor: pointer;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;

  &::after {
    content: "▾"; font-size: 9px; margin-left: 1px;
    transition: transform 200ms ease;
  }
  &:hover, &:focus-visible {
    background: var(--highlight); border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(141, 139, 131, 0.08);
  }
  &[aria-expanded="true"]::after { transform: rotate(180deg); }
}

.language-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 50;
  min-width: 170px; margin: 0; padding: 6px 0; list-style: none;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 4px; box-shadow: var(--shadow-lg);
  opacity: 1; transform: translateY(0);
  transition: opacity 200ms ease, transform 200ms ease;

  &[hidden] {
    display: block; opacity: 0; transform: translateY(-6px);
    pointer-events: none;
  }

  li { margin: 0; }

  .language-option {
    display: block; width: 100%; padding: 9px 16px;
    color: var(--ink-soft); background: transparent; border: 0;
    cursor: pointer; font-size: 12px; font-weight: 600;
    text-align: left; letter-spacing: 0.02em;
    transition: background 140ms ease, color 140ms ease;

    &:hover, &:focus-visible {
      background: rgba(141, 139, 131, 0.06); color: var(--ink);
    }
    &.is-active {
      color: var(--accent); font-weight: 700;
      background: rgba(141, 139, 131, 0.04);
    }
  }
}

/* ─── Buttons ──────────────────────────────────── */

.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 20px; min-height: 52px; padding: 0 22px;
  color: var(--white); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 3px; cursor: pointer;
  font-size: 13px; font-weight: 700; text-decoration: none;
  overflow: hidden;
  transition: background 200ms ease, color 200ms ease, transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 240ms ease, border-color 200ms ease;
  will-change: transform;

  &:hover, &:focus-visible {
    background: var(--brand-stone-light);
    border-color: var(--brand-stone-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
  }

  &:active { transform: translateY(0); box-shadow: var(--shadow-xs); }

  /* Ripple — CSS-only via ::after */
  &::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, transparent 70%);
    opacity: 0; transform: scale(0.5); transition: opacity 300ms ease, transform 400ms ease;
    pointer-events: none;
  }
  &:active::after { opacity: 1; transform: scale(2.5); transition: 0s; }
}

.button-small { min-height: 40px; padding: 0 16px; gap: 11px; font-size: 12px; }

/* ─── Mobile menu toggle ───────────────────────── */

.menu-toggle {
  display: none; padding: 8px 0 8px 8px; background: transparent; border: 0; cursor: pointer;
}

.menu-icon { display: grid; gap: 5px; width: 23px; }

.menu-icon i {
  display: block; height: 1.5px; background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
  border-radius: 1px;
}

.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* ─── Mobile nav ───────────────────────────────── */

.mobile-nav {
  display: flex; flex-direction: column; gap: 26px;
  padding: 28px 32px 34px; background: var(--paper);
  border-bottom: 1px solid var(--line);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 340ms ease, opacity 260ms ease, padding 340ms ease;

  &:not([hidden]) { max-height: 600px; opacity: 1; }
  &[hidden] { display: none; }

  a:not(.button) {
    position: relative; color: var(--ink-soft); font-size: 13px;
    font-weight: 600; text-decoration: none;

    &::after {
      position: absolute; right: 0; bottom: -7px; left: 0; height: 2px;
      background: var(--accent); content: "";
      transform: scaleX(0); transform-origin: right; transition: transform 200ms ease;
      border-radius: 1px;
    }
    &:hover, &:focus-visible { color: var(--ink); }
    &:hover::after, &:focus-visible::after { transform: scaleX(1); transform-origin: left; }
  }
}

.mobile-cta { width: 100%; margin-top: 4px; }

/* ─── Hero ─────────────────────────────────────── */

.hero {
  position: relative; overflow: hidden; min-height: 100vh;
  display: flex; align-items: center; padding: var(--header-height) 0 0;
  background: var(--ink);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg-image {
  display: block; width: 100%; height: 120%; object-fit: cover;
  object-position: center 20%; will-change: transform;
}

.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(110, 108, 101, 0.82) 0%,
    rgba(11, 21, 38, 0.45) 45%,
    rgba(110, 108, 101, 0.80) 100%);
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
}

.hero-copy { max-width: 610px; }

/* ─── Typography ───────────────────────────────── */

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-weight: 650; letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 {
  max-width: 650px; margin-bottom: 26px;
  font-size: clamp(52px, 7vw, 98px); line-height: 0.95; color: var(--white);

  em { display: block; color: var(--brand-ivory-light); font-style: normal; }
}

h2 {
  max-width: 690px; margin-bottom: 0;
  font-size: clamp(38px, 5vw, 66px); line-height: 0.98;
}

/* ─── Eyebrow ──────────────────────────────────── */

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 24px; color: var(--accent);
  font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  line-height: 1.2; text-transform: uppercase;
}

.eyebrow-line { display: inline-block; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow-light { color: var(--brand-ivory-light); }

/* ─── Hero content ─────────────────────────────── */

.hero-description {
  max-width: 470px; margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.85); font-size: 17px; line-height: 1.65;
}

.hero-trust {
  max-width: 470px; margin-bottom: 34px;
  color: var(--brand-ivory-light); font-size: 15px; font-weight: 600;
  line-height: 1.5; letter-spacing: 0.01em;
}

.hero-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }

.hero .button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  backdrop-filter: blur(4px);

  &:hover, &:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

.text-link {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--white); font-size: 13px; font-weight: 700; text-decoration: none;
  transition: color 180ms ease, gap 200ms ease;

  &:hover, &:focus-visible {
    color: var(--brand-ivory-light);
    gap: 16px;
  }
}

.hero-notes {
  display: flex; gap: 34px; margin-top: 74px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-note {
  display: flex; align-items: flex-start; gap: 12px; max-width: 155px;
  color: rgba(255, 255, 255, 0.72); font-size: 11px; line-height: 1.45;

  strong { color: var(--brand-ivory-light); font-size: 11px; letter-spacing: 0.08em; }
}

/* ─── Scroll-driven reveal (CSS-only! No JS) ───── */

.reveal, .reveal-children > * {
  animation: reveal-in linear both;
  animation-timeline: view();
  animation-range: entry 3% entry 30%;
}

@keyframes reveal-in {
  from { opacity: 0; translate: 0 36px; }
  to   { opacity: 1; translate: 0 0; }
}

/* Stagger children with animation-delay */
.reveal-children > *:nth-child(1) { animation-delay: 0ms; }
.reveal-children > *:nth-child(2) { animation-delay: 80ms; }
.reveal-children > *:nth-child(3) { animation-delay: 160ms; }
.reveal-children > *:nth-child(4) { animation-delay: 240ms; }
.reveal-children > *:nth-child(5) { animation-delay: 320ms; }
.reveal-children > *:nth-child(6) { animation-delay: 400ms; }

/* ─── Sections ─────────────────────────────────── */

.section { padding: 126px 0; }
.services-section { background: var(--white); }

.section-heading { margin-bottom: 58px; }

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
  align-items: end; gap: 64px;

  > p {
    max-width: 350px; margin-bottom: 3px; color: var(--ink-soft); font-size: 13px;
  }
}

/* ─── Services grid ────────────────────────────── */

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}

.service-card {
  position: relative; min-height: 226px; padding: 24px 25px 28px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 280ms ease, box-shadow 280ms ease, background 280ms ease;
  will-change: transform;

  &:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    z-index: 1;
    background: linear-gradient(180deg, var(--white) 0%, rgba(141, 139, 131, 0.015) 100%);
  }
}

.service-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 58px; color: var(--accent);
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;

  span:last-child { color: #9099a8; font-size: 17px; font-weight: 400; }
}

.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; color: var(--accent);

  svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.6; }
}

.service-card {
  h3 { margin-bottom: 9px; font-size: 21px; }
  p { max-width: 275px; margin: 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
}

.service-card--featured {
  background: linear-gradient(135deg,
    rgba(230, 210, 181, 0.22) 0%,
    rgba(230, 210, 181, 0.06) 100%);
  border-right-color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);

  &:hover {
    background: linear-gradient(180deg,
      rgba(230, 210, 181, 0.25) 0%,
      rgba(141, 139, 131, 0.03) 100%);
  }
}

.service-featured-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; color: var(--accent); background: var(--accent-soft);
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: 2px;
}

.service-subtitle {
  margin: -4px 0 10px; color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4;
}

/* ─── Service groups ───────────────────────────── */

#services-grid {
  display: block;
}

.service-group {
  margin-bottom: 64px;

  &:last-child { margin-bottom: 0; }
}

.service-group-title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ─── Portfolio ────────────────────────────────── */

.portfolio-section { background: var(--paper); }

.portfolio-heading {
  display: grid; grid-template-columns: 1fr minmax(250px, 0.55fr);
  align-items: end; gap: 64px;
}

.portfolio-grid {
  display: flex; flex-direction: column; gap: 56px;
}

.portfolio-filter {
  display: flex; flex-wrap: wrap; gap: 10px;
}

.pf-btn {
  padding: 9px 18px;
  border: 1px solid rgba(141, 139, 131, 0.25);
  background: transparent; color: var(--ink-soft);
  border-radius: 2px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.pf-btn:hover { border-color: var(--accent); color: var(--accent); }

.pf-btn.is-active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

.portfolio-category-title {
  margin-bottom: 24px; padding-bottom: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  border-bottom: 1px solid rgba(141, 139, 131, 0.16);
}

.portfolio-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.portfolio-category.is-hidden { display: none; }

@media (max-width: 900px) {
  .portfolio-category-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-card {
  display: flex; flex-direction: column;
}

.project-media {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: var(--sand);
  border-radius: 3px;
}

.project-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 450ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.project-media:hover .project-img { transform: scale(1.04); }

.project-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: flex-end; padding: 20px;
  background: linear-gradient(0deg, rgba(110, 108, 101, 0.65) 0%, transparent 55%);
  opacity: 0; transition: opacity 320ms ease; pointer-events: none;
}

.project-media:hover .project-overlay { opacity: 1; }

.project-overlay-category {
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}

.project-copy { padding: 16px 2px 0; }

.project-copy h3 { margin-bottom: 8px; font-size: 24px; line-height: 1.08; }

.project-copy > p { margin-bottom: 14px; color: var(--ink-soft); font-size: 12px; }

.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.project-tag {
  display: inline-block; padding: 4px 11px;
  color: var(--ink-soft); background: rgba(141, 139, 131, 0.06);
  border: 1px solid rgba(141, 139, 131, 0.12);
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  border-radius: 2px; line-height: 1.4;
}

/* ─── How It Works ─────────────────────────────── */

.how-section {
  background: linear-gradient(180deg,
    #0a1a35 0%,
    var(--ink) 30%,
    #0a1a35 100%);
  color: var(--white); padding: 126px 0;
}

.how-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 54px; }

.how-step {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 20px 22px; padding: 28px 0;
  border-top: 1px solid var(--line-dark);
  transition: background 200ms ease;

  &:last-child { border-bottom: 1px solid var(--line-dark); }
}

.how-step-num {
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--accent-soft); line-height: 1;
}

.how-step-body {
  display: flex; flex-direction: column; gap: 7px;

  h3 {
    font-size: 20px; font-weight: 650; letter-spacing: -0.03em;
    color: var(--white); margin: 0;
  }

  p {
    max-width: 520px; margin: 0; color: #a8b4c8;
    font-size: 13px; line-height: 1.6;
  }
}

.how-cta { margin-top: 40px; }

.how-cta .button {
  background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink);

  &:hover, &:focus-visible {
    background: var(--white); border-color: var(--white);
    box-shadow: 0 8px 28px rgba(230, 210, 181, 0.35);
  }
}

/* ─── About ────────────────────────────────────── */

.about-section {
  padding: 120px 0; color: var(--white);
  background: linear-gradient(180deg,
    var(--ink) 0%,
    #0a1a35 50%,
    var(--ink) 100%);
}

.about-grid { display: grid; grid-template-columns: 0.92fr 1fr; gap: 11vw; }

.about-intro h2 { color: var(--white); }

.about-copy { padding-top: 43px; }

.about-lead {
  max-width: 480px; margin-bottom: 20px;
  color: var(--white); font-size: 25px; line-height: 1.25; letter-spacing: -0.035em;
}

.about-history {
  max-width: 490px; margin-bottom: 20px;
  color: var(--brand-ivory-light); font-size: 14px; font-style: italic; line-height: 1.7;
}

.about-copy > p:not(.about-lead):not(.about-history) {
  max-width: 490px; margin-bottom: 50px;
  color: #a8b4c8; font-size: 14px; line-height: 1.7;
}

.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px;
  padding-top: 18px; border-top: 1px solid var(--line-dark);

  div { display: flex; flex-direction: column; gap: 7px; }
  strong { color: var(--accent-soft); font-size: 11px; letter-spacing: 0.08em; }
  span { max-width: 110px; color: #a8b4c8; font-size: 11px; line-height: 1.4; }
}

/* ─── Why FinisHome ────────────────────────────── */

.why-section { background: var(--white); }

.why-section h2 { margin-bottom: 32px; }

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.why-point {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 26px 28px; background: var(--paper);
  border-radius: 4px; border: 1px solid var(--line);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;

  &:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
  }

  p { margin: 2px 0 0; color: var(--ink); font-size: 15px; line-height: 1.5; }
}

.why-check {
  flex-shrink: 0; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); background: var(--accent);
  border-radius: 50%; font-size: 12px; font-weight: 700;
  transition: transform 200ms ease;

  .why-point:hover & { transform: scale(1.1); }
}

/* ─── FAQ (native <details> HTML!) ─────────────── */

.faq-section { background: var(--paper); padding: 126px 0; }

.faq-list { max-width: 780px; margin-top: 48px; }

.faq-item {
  border-bottom: 1px solid var(--line);
  transition: border-color 200ms ease;

  &:hover { border-bottom-color: rgba(141, 139, 131, 0.2); }
}

.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 20px 0;
  background: transparent; border: 0;
  color: var(--ink); cursor: pointer;
  font-size: 16px; font-weight: 650; letter-spacing: -0.02em;
  text-align: left; line-height: 1.35; list-style: none;
  transition: color 180ms ease;

  &::-webkit-details-marker { display: none; }
  &::marker { display: none; content: ""; }

  &:hover, &:focus-visible { color: var(--accent); }
}

.faq-icon {
  flex-shrink: 0; width: 24px; height: 24px; margin-left: 15px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 16px; font-weight: 400; color: var(--accent);
  transition: transform 240ms ease, border-color 200ms ease, background 200ms ease;
}

details[open] .faq-icon {
  transform: rotate(45deg);
  background: rgba(141, 139, 131, 0.06);
  border-color: var(--accent);
}

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 350ms ease, padding-bottom 350ms ease;

  details[open] & { max-height: 400px; padding-bottom: 20px; }

  p {
    max-width: 620px; margin: 0;
    color: var(--ink-soft); font-size: 14px; line-height: 1.7;
  }
}

/* ─── Contact ──────────────────────────────────── */

.contact-section {
  background: var(--white);

  /* Form field focus via :has() — modern CSS! */
  .field-group:has(input:focus),
  .field-group:has(textarea:focus),
  .field-group:has(select:focus) {
    label { color: var(--accent); }
  }
}

.contact-grid { display: grid; grid-template-columns: 0.9fr 1fr; gap: 12vw; }

.contact-copy {
  h2 { max-width: 500px; margin-bottom: 24px; color: var(--ink); }
  > p:not(.eyebrow) { max-width: 390px; margin-bottom: 44px; color: var(--ink-soft); font-size: 14px; }
}

.contact-details { display: grid; gap: 21px; margin-bottom: 44px; }

.contact-detail {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink); text-decoration: none;
  transition: color 180ms ease;

  &:hover strong, &:focus-visible strong { color: var(--accent); }
  &:hover .contact-icon, &:focus-visible .contact-icon {
    border-color: var(--accent);
    background: rgba(141, 139, 131, 0.04);
  }

  span:last-child { display: flex; flex-direction: column; gap: 2px; }
  small { color: var(--ink-soft); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
  strong { font-size: 14px; font-weight: 650; transition: color 180ms ease; }
}

.contact-icon {
  display: inline-grid; width: 32px; height: 32px;
  color: var(--accent); border: 1px solid var(--accent-soft);
  place-items: center; font-size: 14px;
  transition: border-color 200ms ease, background 200ms ease;
  border-radius: 2px;
}

/* ─── Social icons in contact ──────────────────── */

.social-links { display: flex; align-items: center; gap: 6px; }
.social-label { margin-right: 5px; color: var(--ink-soft); font-size: 11px; }

.sl-icon {
  display: inline-grid; width: 32px; height: 32px;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 3px;
  place-items: center; text-decoration: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;

  &:hover, &:focus-visible {
    transform: translateY(-1px);
    border-color: transparent;
  }
  &.sl-ig:hover, &.sl-ig:focus-visible { color: #E4405F; background: rgba(228, 64, 95, 0.06); border-color: rgba(228, 64, 95, 0.2); }
  &.sl-fb:hover, &.sl-fb:focus-visible { color: #1877F2; background: rgba(24, 119, 242, 0.06); border-color: rgba(24, 119, 242, 0.2); }
}

/* ─── Contact form ─────────────────────────────── */

.contact-form {
  padding: 36px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px;
  transition: box-shadow 300ms ease;

  &:focus-within {
    box-shadow: var(--shadow-sm);
    border-color: rgba(141, 139, 131, 0.15);
  }
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.field-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 21px; }

.field-group label {
  color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: 0.04em;
  transition: color 180ms ease;
}

.optional { color: #8890a0; font-weight: 500; }

.field-group input, .field-group textarea {
  width: 100%; padding: 13px 0; color: var(--ink);
  background: transparent; border: 0;
  border-bottom: 1.5px solid #c0c4c8; border-radius: 0;
  outline: none; resize: vertical; font-size: 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;

  &::placeholder { color: #a0a4a8; opacity: 1; }

  &:focus {
    border-bottom-color: var(--accent);
    box-shadow: 0 1px 0 var(--accent);
  }
}

.field-group select {
  width: 100%; min-height: 46px; padding: 8px 30px 8px 0;
  color: var(--ink); background: transparent;
  border: 0; border-bottom: 1.5px solid #c0c4c8; border-radius: 0;
  outline: none; cursor: pointer; font-size: 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;

  &:focus {
    border-bottom-color: var(--accent);
    box-shadow: 0 1px 0 var(--accent);
  }
  &:invalid { color: #a0a4a8; }
}

.field-help { color: #788090; font-size: 10px; line-height: 1.4; }

.field-group textarea { min-height: 114px; }

.form-submit { width: 100%; margin-top: 5px; }
.form-submit:disabled { cursor: wait; opacity: 0.65; }

.form-note { margin: 16px 0 0; color: #788090; font-size: 10px; }

.form-status { min-height: 20px; margin: 13px 0 0; font-size: 12px; }
.form-status.is-loading { color: var(--ink-soft); }
.form-status.is-success { color: #2d6a4f; }
.form-status.is-error   { color: #ae4f40; }

/* ─── Footer ───────────────────────────────────── */

.site-footer {
  padding: 48px 0 0;
  background: var(--brand-ivory-light);
  border-top: 1px solid rgba(141, 139, 131, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Logo column ── */

.footer-brand {
  display: flex; flex-direction: column; gap: 10px;

  .brand-footer .brand-logo { width: 160px; height: 80px; }
}

/* ── Column headings ── */

.footer-heading {
  margin: 0 0 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-stone-dark);
}

/* ── Column links ── */

.footer-col {
  display: flex; flex-direction: column; gap: 8px;

  a {
    color: var(--ink-soft); font-size: 13px; font-weight: 400;
    text-decoration: none; transition: color 160ms ease;
    display: inline-block;

    &:hover, &:focus-visible { color: var(--brand-stone-dark); }
  }
}

/* ── Contact links with icons ── */

.footer-contact-link {
  display: inline-flex !important; align-items: center; gap: 8px;
  color: var(--ink-soft) !important;

  svg { flex-shrink: 0; }
  &:hover, &:focus-visible { color: var(--brand-stone-dark) !important; }
}

/* ── Social icons ── */

.footer-socials {
  display: flex; align-items: center; gap: 4px; margin-top: 10px;

  .hs-icon {
    color: var(--brand-stone);
    width: 34px; height: 34px; border-radius: 3px;

    &:hover, &:focus-visible { background: rgba(141, 139, 131, 0.12); }
    &.hs-wa:hover, &.hs-wa:focus-visible { color: #25D366; }
    &.hs-ig:hover, &.hs-ig:focus-visible  { color: #E4405F; }
    &.hs-fb:hover, &.hs-fb:focus-visible { color: #1877F2; }
  }
}

/* ── Footer bottom bar ── */

.footer-foot {
  margin-top: 36px;
  padding: 12px 0;
  border-top: 1px solid rgba(141, 139, 131, 0.18);
  text-align: right;

  .footer-731 {
    font-size: 20px; font-weight: 800; letter-spacing: 0.16em;
    color: var(--brand-stone);
    opacity: 0.6;
  }
}

/* ── Mobile ── */

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr; gap: 28px 20px;

    .footer-brand { grid-column: 1 / -1; }
    .brand-footer .brand-logo { width: 130px; height: 65px; }
  }

  .footer-heading { font-size: 10px; }
  .footer-col a { font-size: 12px; }

  .footer-foot {
    margin-top: 24px; text-align: center;
    .footer-731 { font-size: 16px; }
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr; gap: 20px 14px;
  }
  .portfolio-category-grid { grid-template-columns: 1fr; }
}

/* ─── Floating WhatsApp ────────────────────────── */

.whatsapp-float {
  position: fixed; z-index: 30; right: 20px; bottom: 24px; display: none;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  color: #fff; background: var(--green); border-radius: 50%;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 240ms ease;

  &:hover, &:focus-visible {
    transform: scale(1.1); box-shadow: 0 6px 26px rgba(37, 211, 102, 0.6);
  }
  &:active { transform: scale(0.95); }
}

/* ─── Accessibility ────────────────────────────── */

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* ─── Selection ────────────────────────────────── */

::selection {
  background: rgba(141, 139, 131, 0.18);
  color: var(--ink);
}

/* ─── Responsive 900px ─────────────────────────── */

@media (max-width: 900px) {
  :root { --header-height: 70px; }
  .container { width: min(calc(100% - 40px), var(--max-width)); }
  .desktop-nav, .header-cta, .header-socials { display: none; }
  .menu-toggle { display: block; }

  .hero { min-height: 90vh; }
  .hero-bg-image { height: 110%; }
  .hero .container { padding-bottom: 80px; }

  .section { padding: 90px 0; }
  .section-heading-row, .portfolio-heading { grid-template-columns: 1fr; gap: 22px; }
  .section-heading { margin-bottom: 42px; }

  .services-grid, .services-grid--group { grid-template-columns: repeat(2, 1fr); }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .about-copy { padding-top: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-form { max-width: 650px; }
}

/* ─── Responsive 620px ─────────────────────────── */

@media (max-width: 620px) {
  .container { width: min(calc(100% - 32px), var(--max-width)); }
  .header-inner { gap: 14px; }
  .brand-logo { width: 140px; height: 52px; }
  .header-actions { gap: 14px; }
  .language-switcher { margin-right: 1px; }
  .mobile-nav { padding-right: 16px; padding-left: 16px; }

  .hero { min-height: 85vh; }
  .hero-bg-image { height: 105%; }
  .hero .container { padding-bottom: 60px; }

  h1 { font-size: clamp(48px, 15vw, 74px); }
  h2 { font-size: 42px; }
  .hero-description { font-size: 15px; }
  .hero-notes { gap: 17px; margin-top: 54px; }
  .hero-note { font-size: 10px; }

  .section { padding: 76px 0; }
  .services-grid, .services-grid--group { grid-template-columns: 1fr; }
  .service-card { min-height: 188px; }
  .service-card-top { margin-bottom: 42px; }
  .service-group { margin-bottom: 48px; }

  .portfolio-grid { gap: 40px; }
  .portfolio-category-grid { grid-template-columns: 1fr; }

  .about-section { padding: 80px 0; }
  .about-lead { font-size: 22px; }
  .about-stats { gap: 12px; }
  .about-stats span { font-size: 10px; }

  .contact-form { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .how-step { grid-template-columns: 48px 1fr; }
  .how-step-body h3 { font-size: 17px; }
  .how-step-body p { font-size: 12px; }

  .faq-question { font-size: 14px; }
}

/* ─── Floating WhatsApp show on mobile ─────────── */

@media (max-width: 768px) {
  .whatsapp-float { display: flex; }
}

/* ─── Reduced motion ───────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-timeline: auto !important;
  }
  .reveal, .reveal-children > * { opacity: 1; translate: 0; animation: none; }
  .hero-bg-image { transition: none !important; }
}

/* ─── Portfolio page ──────────────────────────── */

.portfolio-page {
  padding-top: 120px;
  padding-bottom: 80px;
}

.portfolio-back {
  margin-top: 56px;
  text-align: center;
}

.portfolio-back .text-link {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 200ms ease;
}

.portfolio-back .text-link:hover {
  color: var(--brand-stone);
}

/* ─── Active nav link ─────────────────────────── */

.nav-active {
  color: var(--brand-stone) !important;
}

/* ─── Legal pages (privacy, terms) ──────────────── */

.legal-page {
  padding-top: 128px;
  padding-bottom: 64px;
  color: var(--ink);
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0 0 40px;
}

.legal-page section {
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-stone-dark);
  margin: 0 0 10px;
}

.legal-page p {
  margin: 0 0 12px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 640px;
}

.legal-page a {
  color: var(--brand-stone-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: var(--ink);
}

@media (max-width: 768px) {
  .legal-page { padding-top: 108px; padding-bottom: 44px; }
  .legal-page h1 { font-size: 24px; }
  .legal-page h2 { font-size: 16px; }
}

/* ─── Cookie consent banner ─────────────────────── */

.consent-banner {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  width: min(calc(100% - 32px), 720px);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
}

.consent-banner.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.consent-banner.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
}

.consent-message {
  flex: 1 1 260px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.consent-btn--accept {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}
.consent-btn--accept:hover {
  background: var(--brand-stone-light);
  border-color: var(--brand-stone-light);
}

.consent-btn--reject {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.consent-btn--reject:hover {
  background: var(--highlight);
}

.consent-link {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent-link:hover {
  color: var(--ink);
}

@media (max-width: 768px) {
  .consent-banner {
    bottom: 96px; /* clear the floating WhatsApp button */
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .consent-actions {
    justify-content: flex-start;
  }
}
