/* =========================================================
   Van Dooren Doors — styles
   Palette: Dutch orange + deep navy (complementary) + warm cream
   ========================================================= */
:root {
  --orange: #F36C21;
  --orange-600: #D9560F;
  --orange-700: #B8460A;
  --orange-100: #FFEADB;
  --orange-50: #FFF5EE;

  --navy: #14243F;
  --navy-900: #0B1424;
  --navy-700: #1B2E4F;
  --blue: #21468B;          /* Dutch flag blue, used sparingly */

  --cream: #FAF7F2;
  --ink: #1A1F29;
  --muted: #5A6374;
  --line: #E7E1D8;
  --white: #FFFFFF;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(20, 36, 63, .25);
  --shadow-lg: 0 24px 50px -20px rgba(20, 36, 63, .35);

  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 .5em;
  color: var(--navy);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }

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

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--orange);
  --fg: var(--navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .8em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { box-shadow: 0 8px 20px -8px rgba(243, 108, 33, .7); }
.btn--primary:hover { --bg: #FF7D33; }
.btn--ghost { --bg: transparent; --fg: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { --bg: var(--navy); --fg: var(--white); }
.btn--light { --bg: var(--white); --fg: var(--navy); }
.btn--light:hover { --bg: var(--navy); --fg: var(--white); }
.btn--dark { --bg: var(--navy); --fg: var(--white); }
.btn--sm { padding: .55em 1.1em; font-size: .92rem; }
.btn--lg { padding: .95em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: #C9D2E3;
  font-size: .85rem;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .5rem 0;
}
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--orange); }
.topbar .sep { margin: 0 .6rem; opacity: .35; }
.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: .45rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(243, 108, 33, .7);
  animation: pulse 2s infinite;
  vertical-align: middle;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(243, 108, 33, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 108, 33, 0); }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(20,36,63,.4); }
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo__img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 6px 16px -8px rgba(240, 89, 43, .7);
}
.logo__img--footer { height: 64px; box-shadow: none; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -6px;
  height: 2px;
  background: var(--orange);
  transition: right .2s ease;
}
.nav a:not(.btn):hover::after,
.nav a.is-active::after { right: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-toggle span + span { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange-700);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 3px;
  background: var(--orange);
  border-radius: 2px;
}
.eyebrow--light { color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, var(--orange-100), transparent 60%),
    linear-gradient(180deg, var(--cream), var(--white));
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hl {
  color: var(--orange);
  background: linear-gradient(transparent 70%, rgba(243,108,33,.18) 70%);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.6rem; }
.hero__checks {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  font-weight: 600;
  color: var(--navy);
  font-size: .95rem;
}
.hero__checks li { display: flex; align-items: center; gap: .45rem; }
.hero__checks li::before {
  content: "";
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%230B1424' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.hero__art { position: relative; }
.house { width: 100%; filter: drop-shadow(0 30px 40px rgba(20,36,63,.18)); }
.door { animation: door-open 6s ease-in-out infinite; transform-origin: 240px 196px; }
@keyframes door-open {
  0%, 25%   { transform: scaleY(1); }
  45%, 70%  { transform: scaleY(.18); }
  90%, 100% { transform: scaleY(1); }
}
.badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  line-height: 1.2;
  border-left: 4px solid var(--orange);
}
.badge strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); }
.badge span { font-size: .8rem; color: var(--muted); }
.badge--a { top: 6%; left: -4%; }
.badge--b { bottom: 4%; right: -2%; border-left-color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--cream); }
.section--dark { background: var(--navy); color: #C9D2E3; }
.section--dark h2 { color: var(--white); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; }
.section__head .eyebrow { justify-content: center; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--orange-50);
  color: var(--orange-600);
  display: grid; place-items: center;
  margin-bottom: 1.3rem;
}
.card__icon svg { width: 34px; height: 34px; }
.card p { color: var(--muted); font-size: .97rem; }
.card__list { list-style: none; padding: 0; margin: 0; font-size: .92rem; font-weight: 600; color: var(--navy); }
.card__list li { padding: .35rem 0 .35rem 1.4rem; position: relative; border-top: 1px dashed var(--line); }
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: .95em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--orange);
  transform: rotate(45deg);
}
.card--accent { background: var(--navy); border-color: var(--navy); }
.card--accent h3 { color: var(--white); }
.card--accent p { color: #B9C3D6; }
.card--accent .card__list { color: var(--white); }
.card--accent .card__list li { border-color: rgba(255,255,255,.12); }
.card--accent .card__icon { background: var(--orange); color: var(--navy-900); }

/* ---------- Emergency band ---------- */
.band {
  background:
    repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.06) 22px 44px),
    linear-gradient(100deg, var(--orange-600), var(--orange));
  color: var(--navy-900);
  padding: 2.8rem 0;
}
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.band h2 { color: var(--navy-900); margin-bottom: .25em; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.band p { margin: 0; font-weight: 500; font-size: 1.05rem; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.why__copy p { color: var(--muted); font-size: 1.08rem; margin-bottom: 1.8rem; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.feature__num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--orange);
  display: block;
  margin-bottom: .6rem;
}
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px; left: 12.5%; right: 12.5%;
  border-top: 3px dashed var(--orange-100);
}
.step { text-align: center; position: relative; padding: 0 .5rem; }
.step__dot {
  width: 58px; height: 58px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  border: 3px solid var(--orange);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  position: relative;
}
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- Service area ---------- */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.towns {
  list-style: none;
  padding: 0; margin: 1.6rem 0 0;
  display: flex; flex-wrap: wrap; gap: .55rem;
}
.towns li {
  padding: .4rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--white);
  font-size: .9rem;
  font-weight: 500;
}
.towns li:first-child { background: var(--orange); border-color: var(--orange); color: var(--navy-900); font-weight: 700; }
.area__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.6);
  border: 4px solid rgba(255,255,255,.08);
  aspect-ratio: 4 / 3;
  background: var(--navy-700);
}
.area__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.85); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--orange); box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.4rem 1.15rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--navy);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.3rem; top: 50%;
  width: 26px; height: 26px;
  margin-top: -13px;
  border-radius: 50%;
  background: var(--orange-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23D9560F' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__info > p { color: var(--muted); font-size: 1.08rem; }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; }
.contact__list small {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 600;
}
.contact__list a, .contact__list span:not(.contact__icon) { font-weight: 700; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact__list a:hover { color: var(--orange-600); }
.contact__icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy);
  display: grid; place-items: center;
}
.contact__icon svg { width: 22px; height: 22px; fill: var(--orange); }

.form {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--orange);
  display: grid;
  gap: 1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; }
.form label > span { font-size: .85rem; font-weight: 600; color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: .75rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(243,108,33,.15);
}
.form .is-invalid { border-color: #C62828; background: #FFF6F6; }
.form__note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
.form__note.is-error { color: #C62828; font-weight: 600; }
.form__note.is-success { color: #2E7D32; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: #9FAAC0; padding: 4rem 0 0; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand p { max-width: 30em; margin-top: 1rem; }
.footer h4 { color: var(--white); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.4rem 0;
  font-size: .85rem;
}

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 1.1rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: block; }
  .header .logo__img { height: 46px; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    padding: .5rem 20px 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(20,36,63,.35);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; }

  .hero__inner, .why, .area, .contact { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; margin: 0 auto; width: 100%; }
  .band__inner { flex-direction: column; text-align: center; }

  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .steps::before { display: none; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .topbar__inner { justify-content: center; }
  .topbar__inner > span:first-child { display: none; }
  .topbar .sep, .topbar__links a[href^="mailto"] { display: none; }

  .cards, .features, .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .badge--a { left: 0; }
  .badge--b { right: 0; }
  .hero__actions .btn { flex: 1 1 100%; }

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

  .callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    padding: .7rem 14px calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .callbar .btn { padding: .75em 1em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
