/* ==========================================================================
   De Weerd — Timmer- en Renovatiebedrijf / De Deurenhanger
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter+Tight:wght@400;500;600;700&display=swap");

:root {
  /* Color — timber & brass hardware palette */
  --ink: #23190f;          /* near-black walnut, primary text */
  --ink-soft: #4a3c2c;     /* softened ink for secondary text */
  --paper: #f6efe1;        /* warm linen background */
  --paper-alt: #ebdec4;    /* deeper cream for alternating sections */
  --timber: #5b3a24;       /* dark walnut, nav / footer ground */
  --timber-deep: #3a2416;  /* deepest walnut for contrast panels */
  --brass: #b5732e;        /* single accent: brass hinge/hardware tone */
  --brass-deep: #8f5620;   /* pressed / hover state of accent */
  --line: rgba(35, 25, 15, 0.16);
  --line-inverse: rgba(246, 239, 225, 0.22);

  /* Type scale */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter Tight", "Inter", system-ui, sans-serif;

  --step-6: clamp(2.6rem, 2rem + 3vw, 4.6rem);
  --step-5: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(1.6rem, 1.35rem + 1.2vw, 2.3rem);
  --step-3: clamp(1.3rem, 1.15rem + 0.7vw, 1.7rem);
  --step-2: 1.15rem;
  --step-1: 1rem;
  --step-0: 0.9rem;

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: var(--step-6); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
p { margin: 0 0 1.1em; color: var(--ink-soft); max-width: 62ch; }
a { color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

/* Focus states — visible everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.5em;
  border-radius: 3px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
}
.btn-primary {
  background: var(--brass);
  color: #201304;
}
.btn-primary:hover { background: var(--brass-deep); }
.btn-ghost {
  border-color: currentColor;
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost.on-dark {
  color: var(--paper);
  border-color: var(--line-inverse);
}
.btn-ghost.on-dark:hover { background: var(--paper); color: var(--timber-deep); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo {
  height: clamp(2.6rem, 6vw, 3.4rem);
  width: auto;
  display: block;
}

.nav-desktop {
  display: none;
}
.nav-desktop ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-block: 0.3rem;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--brass);
  transition: right 0.2s ease;
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after {
  right: 0;
}
.nav-desktop a[aria-current="page"] { color: var(--brass-deep); }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: none;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  top: 64px;
  background: var(--timber-deep);
  color: var(--paper);
  padding: 2rem var(--gutter);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 49;
  overflow-y: auto;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li { border-bottom: 1px solid var(--line-inverse); }
.nav-mobile a {
  display: block;
  padding: 1.1rem 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--paper);
}
.nav-mobile .contact-block { margin-top: 2rem; }
.nav-mobile .contact-block a {
  font-family: var(--font-body);
  font-size: 1.05rem;
  padding: 0.4rem 0;
  color: var(--paper);
  font-weight: 600;
}

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .header-phone { display: inline-flex; align-items:center; }
  .nav-toggle, .nav-mobile { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
  background: var(--paper);
  overflow: hidden;
}
.hero .container {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy p.lede {
  font-size: var(--step-2);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}
.hero-figure {
  position: relative;
  justify-self: center;
}
.hero-figure svg { width: 100%; height: auto; max-width: 380px; }

@media (min-width: 860px) {
  .hero .container { grid-template-columns: 1.15fr 0.85fr; }
  .hero-figure { justify-self: end; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-alt { background: var(--paper-alt); }
.section-dark {
  background: var(--timber-deep);
  color: var(--paper);
}
.section-dark p { color: rgba(246,239,225,0.82); }
.section-dark .eyebrow { color: #d8a35f; }
.section-dark .eyebrow::before { background: #d8a35f; }
.section-dark h2, .section-dark h3 { color: var(--paper); }

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 5vw, 3.2rem);
}

/* Audience row (three real segments) */
.audience-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.audience-card {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.audience-card .tag {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.4rem;
}
.audience-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.audience-card p { font-size: 0.95rem; margin-bottom: 0; }
@media (min-width: 760px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Services list — editorial rows, not cards */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  gap: 0.3rem 2rem;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.service-row h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.service-row p { margin-bottom: 0; font-size: 0.97rem; }
.service-row .index {
  font-family: var(--font-display);
  color: var(--brass);
  font-size: 1rem;
  font-weight: 600;
}
@media (min-width: 760px) {
  .service-row { grid-template-columns: 90px 1fr 1.3fr; align-items: start; }
}

/* Story / pull quote */
.pull-quote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--brass);
  padding-left: 1.4rem;
  margin: 0 0 1.5em;
  max-width: 48ch;
}
.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 0.8rem;
  letter-spacing: 0.02em;
}

.two-col {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col.lede-wide { grid-template-columns: 1.1fr 0.9fr; }
  .two-col.portrait-lede { grid-template-columns: 0.8fr 1.2fr; }
}

.portrait {
  margin: 0;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  padding: 0.75rem;
  max-width: 320px;
}
.portrait img {
  width: 100%;
  height: auto;
  display: block;
}
.portrait-lede .pull-quote { margin-top: 1.6rem; }

/* Partners */
.partner-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: baseline;
  margin-top: 1rem;
}
.partner-row span {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.2rem;
}
.section-dark .partner-row span {
  color: rgba(246, 239, 225, 0.82);
  border-bottom-color: var(--line-inverse);
}

/* Projects index */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}
.filter-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55em 1.1em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  cursor: pointer;
  min-height: 40px;
  color: var(--ink-soft);
}
.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.project-index { border-top: 1px solid var(--line); }
.project-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name   sector"
    "place  sector";
  gap: 0.2rem 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.project-row .name { grid-area: name; font-weight: 600; font-size: 1.02rem; }
.project-row .place { grid-area: place; color: var(--ink-soft); font-size: 0.92rem; }
.project-row .sector {
  grid-area: sector;
  align-self: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 700;
  text-align: right;
}
.section-dark .project-row .sector { color: #d8a35f; }
.project-row[hidden] { display: none; }
@media (min-width: 640px) {
  .project-row {
    grid-template-columns: 1fr 1fr auto;
    grid-template-areas: "name place sector";
  }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
}
.detail-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.detail-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.detail-list .label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 700;
}
.detail-list a { text-decoration: none; font-weight: 600; }
.detail-list a:hover { color: var(--brass-deep); }

form.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
input, textarea, select {
  width: 100%;
  font: inherit;
  padding: 0.8em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
}
input:hover, textarea:hover { border-color: var(--ink-soft); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: -0.3rem; }

/* CTA band */
.cta-band {
  background: var(--brass);
  color: #201304;
}
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.2rem, 5vw, 3rem);
}
.cta-band h2 { color: #201304; margin-bottom: 0.2rem; font-size: var(--step-3); }
.cta-band p { color: #3a2308; margin-bottom: 0; }
.cta-band .btn-ghost { border-color: #201304; color: #201304; }
.cta-band .btn-ghost:hover { background: #201304; color: var(--paper); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--timber-deep);
  color: rgba(246,239,225,0.85);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-inverse);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-grid h3 {
  color: var(--paper);
  font-size: 1rem;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-logo { height: clamp(3.4rem, 8vw, 4.6rem); width: auto; display: block; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--paper); }
.site-footer p { color: rgba(246,239,225,0.75); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: rgba(246,239,225,0.55);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.8em 1.2em;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Page-load reveal — a single considered moment, not scroll-dependent */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  animation: reveal-in 0.7s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* ==========================================================================
   Prijsraming — indicative cost calculator
   ========================================================================== */
.calc-disclaimer {
  background: var(--paper-alt);
  border-left: 3px solid var(--brass);
  padding: 1.1rem 1.4rem;
  margin-top: 1.6rem;
  max-width: 62ch;
}
.calc-disclaimer p { margin: 0; font-size: 0.95rem; }

.calc-tool { border-top: 1px solid var(--line); }

.calc-group {
  border-bottom: 1px solid var(--line);
}
.calc-group-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.calc-group-summary::-webkit-details-marker { display: none; }
.calc-group-summary::before {
  content: "+";
  order: -1;
  margin-right: 0.9rem;
  color: var(--brass);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
}
.calc-group[open] > .calc-group-summary::before { content: "–"; }
.calc-group-caption {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-deep);
  white-space: nowrap;
}
.calc-group-body { padding-bottom: 0.6rem; }

.calc-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  align-items: center;
}
.calc-desc {
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}
.calc-code {
  font-family: var(--font-display);
  color: var(--brass-deep);
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.6rem;
}
.calc-price {
  font-size: 0.85rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.calc-unit { font-size: 0.75rem; opacity: 0.75; }
.calc-qty {
  width: 5rem;
  text-align: right;
  font-weight: 600;
}
.calc-subtotal {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 6rem;
  text-align: right;
}
@media (min-width: 700px) {
  .calc-row {
    grid-template-columns: 1fr auto 5.5rem 6.5rem;
    gap: 1.2rem;
  }
}

.calc-summary {
  margin-top: 2.5rem;
  background: var(--timber-deep);
  color: var(--paper);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: 3px;
}
.calc-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-inverse);
}
.calc-summary-total {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: none;
  padding-top: 0.8rem;
}
.calc-summary .form-note { color: rgba(246,239,225,0.7); margin-top: 0.8rem; }
.calc-summary .hero-actions { margin-top: 1.4rem; }
.calc-summary .btn-ghost { border-color: var(--line-inverse); color: var(--paper); }
.calc-summary .btn-ghost:hover { background: var(--paper); color: var(--timber-deep); }
