:root {
  --bg: #f6f1e9;
  --panel: #ffffff;
  --ink: #121826;
  --muted: #647084;
  --line: rgba(18, 24, 38, .12);
  --dark: #111827;
  --accent: #c8792a;
  --accent-dark: #9d551a;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(17, 24, 39, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(246, 241, 233, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--dark), #384152);
  box-shadow: 0 10px 30px rgba(17, 24, 39, .20);
}
.brand strong { display: block; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #30394b;
  font-weight: 700;
  font-size: 14px;
}
.main-nav a:hover, .nav-cta { background: #fff; box-shadow: 0 8px 26px rgba(17,24,39,.08); }
.nav-toggle { display: none; border: 0; background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 22px; }

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 72px) 60px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(17,24,39,.88), rgba(17,24,39,.48), rgba(17,24,39,.10)), url('../img/hero-sisaremontti.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 210px;
  background: linear-gradient(0deg, var(--bg), rgba(246,241,233,0));
  z-index: -1;
}
.hero-content { max-width: 820px; color: #fff; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
}
.hero h1, .section h2, .band h2 { margin: 0; line-height: 1.05; letter-spacing: -.04em; }
.hero h1 { font-size: clamp(42px, 8vw, 88px); }
.lead { max-width: 720px; color: rgba(255,255,255,.82); font-size: clamp(18px, 2vw, 23px); }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 18px 50px rgba(200,121,42,.34); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.10); }
.btn.ghost.dark { color: var(--ink); border-color: var(--line); background: #fff; }
.btn.light { background: #fff; color: var(--dark); }
.hero-card {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 56px;
  width: min(330px, calc(100% - 36px));
  padding: 22px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: var(--radius);
  background: rgba(17,24,39,.58);
  backdrop-filter: blur(18px);
}
.hero-card strong, .hero-card span { display: block; }
.hero-card span { color: rgba(255,255,255,.75); margin-top: 6px; }

.section { padding: 90px clamp(18px, 5vw, 72px); }
.section-heading { max-width: 780px; margin-bottom: 34px; }
.section-heading.center { text-align: center; margin-inline: auto; }
.section h2, .band h2 { font-size: clamp(34px, 5vw, 58px); }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.intro-grid p {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.68);
  box-shadow: 0 12px 40px rgba(17,24,39,.06);
}

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  min-height: 235px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 14px 50px rgba(17,24,39,.07);
}
.service-card span { color: var(--accent); font-weight: 900; }
.service-card h3 { margin: 32px 0 10px; font-size: 24px; }
.service-card p { margin: 0; color: var(--muted); }
.service-card.featured { background: #fff8ef; border-color: rgba(200,121,42,.35); }

.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(18px, 5vw, 72px);
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, var(--dark), #30394b);
  box-shadow: var(--shadow);
}
.band p { margin: 14px 0 0; max-width: 680px; color: rgba(255,255,255,.75); }

.documentation { padding-top: 70px; }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.doc-grid article { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.72); box-shadow: 0 14px 50px rgba(17,24,39,.06); }
.doc-grid strong, .doc-grid span { display: block; }
.doc-grid strong { font-size: 20px; margin-bottom: 8px; }
.doc-grid span { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
  position: relative;
  min-height: 260px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #ddd;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(17,24,39,.10);
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17,24,39,.76), rgba(17,24,39,0) 55%);
}
.gallery-item span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  text-align: left;
  font-weight: 900;
  font-size: 18px;
}

.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.why-list { display: grid; gap: 14px; }
.why-list div {
  padding: 22px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.70);
}
.why-list span { color: var(--muted); }

.contact-box {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: calc(var(--radius) + 8px);
  background: #fff;
  box-shadow: var(--shadow);
}
.contact-box p { color: var(--muted); }
.contact-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}
.contact-details li { padding: 16px; border-radius: 16px; background: #f4f6f8; }
.contact-details strong { display: block; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer a { font-weight: 800; color: var(--ink); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0,0,0,.88);
}
.lightbox.active { display: grid; }
.lightbox img { max-height: 82vh; border-radius: 18px; box-shadow: 0 25px 90px rgba(0,0,0,.50); }
.lightbox p { color: #fff; font-weight: 800; }
.lightbox-close {
  position: absolute;
  right: 24px;
  top: 20px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 30px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; }
  .hero { min-height: 670px; padding-top: 90px; }
  .hero-card { position: static; margin-top: 30px; }
  .intro-grid, .why, .contact-box, .doc-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .contact-details { grid-template-columns: 1fr 1fr; }
  .band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .site-header { padding: 12px 16px; }
  .brand-mark { width: 42px; height: 42px; }
  .hero { min-height: 630px; padding-inline: 18px; }
  .service-grid, .gallery, .contact-details { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .gallery-item { min-height: 230px; }
  .section { padding: 66px 18px; }
  .band { margin-inline: 18px; }
  .footer { flex-direction: column; }
}
