:root {
  --bg: #f4efe9;
  --bg-soft: #fbf9f6;
  --paper: #fffdf9;
  --text: #1f1a16;
  --muted: #66594d;
  --line: #d8cec4;
  --wood: #8d5b37;
  --wood-dark: #6f4529;
  --shadow: 0 14px 36px rgba(32, 20, 11, 0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text);
  background: radial-gradient(circle at top left, #fffaf4 0%, var(--bg) 58%);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.center {
  text-align: center;
}

.section {
  padding: 4.5rem 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

p {
  margin: 0 0 1rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 68ch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 251, 246, 0.92);
  border-bottom: 1px solid rgba(111, 69, 41, 0.15);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: min-height 0.2s ease;
}

.logo {
  width: 170px;
  max-width: 42vw;
  height: auto;
  transition: width 0.2s ease;
}

.site-header.scrolled {
  background: rgba(255, 251, 246, 0.97);
  box-shadow: 0 8px 20px rgba(32, 20, 11, 0.08);
}

.site-header.scrolled .nav-wrap {
  min-height: 54px;
}

.site-header.scrolled .logo {
  width: 108px;
}

.main-nav {
  display: flex;
  gap: 1.35rem;
}

.main-nav a {
  text-decoration: none;
  font-weight: 700;
  color: #3a2f26;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 0;
  height: 2px;
  background: var(--wood);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #2d231c;
}

.hero {
  padding-top: 5.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wood-dark);
}

.lead {
  color: var(--muted);
  margin-bottom: 1.8rem;
}

.hero-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-phone {
  margin-top: 1rem;
  font-weight: 700;
}

.hero-phone a {
  color: var(--wood-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 700;
  min-height: 48px;
  padding: 0.6rem 1.35rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, var(--wood), var(--wood-dark));
  box-shadow: 0 8px 22px rgba(111, 69, 41, 0.27);
}

.btn-secondary {
  color: var(--wood-dark);
  border-color: var(--wood-dark);
  background: transparent;
}

.btn-full {
  width: 100%;
}

.section-accent {
  background: var(--bg-soft);
}

.atelier-grid,
.realisaties-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.atelier-grid img,
.realisaties-grid img {
  border-radius: 12px;
  width: 100%;
  height: 260px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(32, 20, 11, 0.12);
}

.section-contact {
  background: linear-gradient(180deg, rgba(141, 91, 55, 0.06), rgba(141, 91, 55, 0));
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin: 0.65rem 0 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #c4b7aa;
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin-top: 0.75rem;
  min-height: 1.5em;
  font-size: 0.95rem;
}

.form-message.success {
  color: #165b2b;
}

.form-message.error {
  color: #8e1f1f;
}

.site-footer {
  border-top: 1px solid rgba(111, 69, 41, 0.2);
  background: #f2ebe4;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-title {
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.footer-grid a {
  display: inline-block;
  margin-right: 1rem;
  color: #3f2e1f;
}

.realisaties-hero {
  background: linear-gradient(140deg, #efe4d8, #f8f3ee);
  border-bottom: 1px solid #e3d6ca;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.84);
  padding: 1.2rem;
}

.lightbox[aria-hidden="false"] {
  display: grid;
}

.lightbox-content {
  max-width: min(1080px, 94vw);
}

.lightbox-content img {
  max-height: 82vh;
  border-radius: 12px;
}

.lightbox-caption {
  color: #fff;
  margin-top: 0.7rem;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 0.8rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.1rem;
  cursor: pointer;
}

.realisatie-card {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
}

.realisatie-card figcaption {
  margin-top: 0.45rem;
  color: #594c3f;
  font-size: 0.94rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    max-height: 420px;
  }

  .atelier-grid,
  .realisaties-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    inset: 84px 0 auto 0;
    background: rgba(255, 252, 248, 0.98);
    border-bottom: 1px solid #e3d6ca;
    display: none;
    padding: 0.8rem 1rem 1rem;
    flex-direction: column;
  }

  .main-nav.open {
    display: flex;
  }

  .section {
    padding: 3.5rem 0;
  }

  .atelier-grid,
  .realisaties-grid {
    grid-template-columns: 1fr;
  }

  .atelier-grid img,
  .realisaties-grid img {
    height: 230px;
  }
}
