/* BCF Construction
   Layout: the pitched roof from the client's logo frames the hero photo (house shape + orange roof stripe);
   lime-wash ground, logo ink, zinc greys, logo orange as the single accent. */
:root {
  --lime: #F3F4F2;        /* page ground: lime-washed wall */
  --paper: #FFFFFF;       /* raised surfaces */
  --stone: #1B1C1D;       /* logo ink: text and dark bands */
  --zinc: #5D6265;        /* secondary text */
  --zinc-line: #D6D9DA;   /* rules and field borders */
  --accent: #FD6002;      /* logo orange: the one accent */
  --accent-hover: #E35400;
  --on-accent: #181818;   /* ink on orange keeps AA contrast */
  --band-bg: #1B1C1D;     /* process band */
  --band-fg: #EEEFEF;
  --band-muted: #AEB2B4;
  --band-line: #3A3D3F;
  --band-accent: #FD6002;
  --foot-bg: #141515;
  --foot-fg: #DADCDD;
  --foot-muted: #92979A;
  --field-bg: #FFFFFF;
  --shade: rgba(27, 28, 29, .07);
  --ok: #3C7A4E;
  --logo-light: block;
  --logo-dark: none;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display-stretch: 75%;
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-lead: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  --fs-h1: clamp(2.75rem, 1.5rem + 5vw, 5.75rem);
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --radius: 2px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lime: #141516;
    --paper: #1C1E1F;
    --stone: #ECEDED;
    --zinc: #A4A9AB;
    --zinc-line: #33373A;
    --accent: #FD6002;
    --accent-hover: #FF7A26;
    --on-accent: #181818;
    --band-bg: #0E0F0F;
    --band-fg: #ECEDED;
    --band-muted: #A4A9AB;
    --band-line: #33373A;
    --band-accent: #FD6002;
    --foot-bg: #0E0F0F;
    --foot-fg: #DADCDD;
    --foot-muted: #92979A;
    --field-bg: #141516;
    --shade: rgba(0, 0, 0, .35);
    --ok: #5FAE75;
    --logo-light: none;
    --logo-dark: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --lime: #141516;
  --paper: #1C1E1F;
  --stone: #ECEDED;
  --zinc: #A4A9AB;
  --zinc-line: #33373A;
  --accent: #FD6002;
  --accent-hover: #FF7A26;
  --on-accent: #181818;
  --band-bg: #0E0F0F;
  --band-fg: #ECEDED;
  --band-muted: #A4A9AB;
  --band-line: #33373A;
  --band-accent: #FD6002;
  --foot-bg: #0E0F0F;
  --foot-fg: #DADCDD;
  --foot-muted: #92979A;
  --field-bg: #141516;
  --shade: rgba(0, 0, 0, .35);
  --ok: #5FAE75;
  --logo-light: none;
  --logo-dark: block;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lime);
  color: var(--stone);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--stone); color: var(--lime); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 8px; }

.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: .7em 1.2em;
  font: inherit; font-weight: 650; font-size: .9375rem; line-height: 1.2;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn--lg { min-height: 52px; padding: .85em 1.45em; font-size: 1rem; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--line { border-color: var(--stone); color: var(--stone); background: transparent; font-variant-numeric: tabular-nums; }
.btn--line:hover { background: var(--stone); color: var(--lime); }

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--lime) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.is-scrolled { border-bottom-color: var(--zinc-line); }
.top__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand__logo { height: 52px; width: auto; }
.brand__logo--light { display: var(--logo-light); }
.brand__logo--dark { display: var(--logo-dark); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.nav__list a {
  text-decoration: none; font-weight: 600; font-size: .9375rem; padding-block: 8px;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 0 2px;
  transition: background-size .2s;
}
.nav__list a:hover, .nav__list a.is-active { background-size: 100% 2px; }
.nav__mobile-extra { display: none; }

.top__tools { display: flex; align-items: center; gap: 16px; }
.langs { display: flex; gap: 2px; }
.langs a {
  display: grid; place-items: center; min-width: 34px; height: 34px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--zinc);
  border-radius: var(--radius);
}
.langs a:hover { color: var(--stone); background: var(--shade); }
.langs a[aria-current="true"] { color: var(--stone); box-shadow: inset 0 -2px 0 var(--accent); }

.burger {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px;
  background: transparent; color: var(--stone); border: 2px solid var(--stone); border-radius: var(--radius);
  font: inherit; font-weight: 650; font-size: .9375rem; cursor: pointer;
}
.burger__bars, .burger__bars::before, .burger__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background-color .2s;
}
.burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
.burger__bars::before { top: -6px; }
.burger__bars::after { top: 6px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1179px) {
  .burger { display: inline-flex; }
  .top__tools { margin-left: auto; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    background: var(--lime); border-bottom: 1px solid var(--zinc-line);
    padding: 12px var(--gutter) 28px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    display: block; padding: 14px 0; font-size: 1.5rem; font-weight: 800; font-stretch: var(--display-stretch);
    border-bottom: 1px solid var(--zinc-line); background: none;
  }
  .nav__mobile-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
  .nav__phone { font-weight: 650; font-variant-numeric: tabular-nums; }
}
@media (max-width: 759px) {
  :root { --header-h: 64px; }
  .brand__logo { height: 40px; }
  .top__cta { display: none; }
  .top__in { gap: 12px; }
  .top__tools { gap: 8px; margin-left: auto; }
}
@media (max-width: 559px) {
  /* five language codes + menu button: drop the button label */
  .burger__label { display: none; }
  .burger { padding: 0 11px; }
}
@media (max-width: 479px) {
  .brand__logo { height: 30px; }
  .top__in { gap: 8px; }
  .top__tools { gap: 6px; }
  .langs a { min-width: 28px; font-size: .78rem; }
}
@media (max-width: 379px) {
  .brand__logo { height: 27px; }
  .langs a { min-width: 26px; }
}

/* ---------- hero ---------- */
.hero {
  display: grid; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(32px, 6vw, 88px) clamp(40px, 6vw, 80px);
}
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero__text { min-width: 0; display: grid; gap: 24px; justify-items: start; }
.hero__title {
  font-size: var(--fs-h1); font-weight: 820; font-stretch: var(--display-stretch);
  line-height: .94; letter-spacing: -.01em; hyphens: manual;
}
.hero__lead { font-size: var(--fs-lead); max-width: 34em; color: var(--stone); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__note { color: var(--zinc); font-size: var(--fs-small); }

.hero__gable {
  margin: 0; min-width: 0; position: relative; width: 100%; max-width: 600px; justify-self: center;
  aspect-ratio: 600 / 560;
}
@media (min-width: 960px) { .hero__gable { justify-self: end; } }
/* roof stripe from the logo, parallel to the photo's roof line */
.hero__gable::before {
  content: ""; position: absolute; inset: 0; z-index: 1; background: var(--accent);
  clip-path: polygon(0 42.5%, 50% 6.786%, 100% 42.5%, 100% 36.43%, 50% 0.714%, 0 36.43%);
  animation: roof-set .7s .15s cubic-bezier(.2, .7, .1, 1) both;
}
.hero__gable picture { position: absolute; left: 0; right: 0; bottom: 0; display: block; }
.hero__gable img {
  display: block; width: 100%; max-width: 100%; aspect-ratio: 6 / 5; object-fit: cover;
  clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%);
  background: var(--zinc-line);
}
@keyframes roof-set { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- service index ---------- */
.index {
  display: grid; gap: 16px clamp(16px, 2.5vw, 32px);
  padding-block: 0 clamp(48px, 7vw, 96px);
}
@media (min-width: 720px) { .index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.index__item {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center;
  text-decoration: none; padding-top: 16px; border-top: 2px solid var(--stone);
}
@media (min-width: 720px) { .index__item { grid-template-columns: 1fr; align-items: start; } }
.index__thumb { display: block; overflow: hidden; background: var(--zinc-line); }
.index__thumb img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; transition: transform .4s ease; }
.index__item:hover .index__thumb img { transform: scale(1.04); }
.index__body { display: grid; gap: 4px; min-width: 0; }
.index__name {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; font-stretch: var(--display-stretch); line-height: 1.05;
}
.index__item:hover .index__name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.index__short { color: var(--zinc); font-size: .9375rem; }

/* ---------- services ---------- */
.service { padding-block: clamp(64px, 9vw, 128px); background: var(--paper); }
.service--facade { background: var(--lime); }
.service__in { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) {
  .service__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .service--flip .service__text { order: 2; }
  .service--flip .gallery { order: 1; }
}
.service__text { min-width: 0; display: grid; gap: 22px; justify-items: start; }
.service__title {
  font-size: var(--fs-h2); font-weight: 820; font-stretch: var(--display-stretch); line-height: .98; letter-spacing: -.005em;
  hyphens: manual;
}
.service__intro { font-size: var(--fs-lead); max-width: 32em; }
.service__list { display: grid; gap: 10px; width: 100%; padding-block: 6px 8px; }
.service__list li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; align-items: baseline; }
.service__list li::before {
  content: ""; width: 14px; height: 5px; background: var(--accent); transform: translateY(-3px);
}

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1.2vw, 14px); min-width: 0; }
.gallery__item {
  display: block; padding: 0; border: 0; background: var(--zinc-line); cursor: zoom-in; overflow: hidden;
  border-radius: 0; position: relative;
}
.gallery__item--1 { grid-column: 1 / -1; }
/* portrait lead photo: tall image on the left, two landscape photos stacked on the right */
.gallery--portrait .gallery__item--1 { grid-column: 1; grid-row: 1 / span 2; position: relative; }
.gallery--portrait .gallery__item--1 picture { position: absolute; inset: 0; }
.gallery--portrait .gallery__item--1 img { height: 100%; aspect-ratio: auto; }
.gallery__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.035); }

/* ---------- process ---------- */
.process { background: var(--band-bg); color: var(--band-fg); padding-block: clamp(64px, 9vw, 120px); }
.process__title { font-size: var(--fs-h2); font-weight: 820; font-stretch: var(--display-stretch); line-height: .98; }
.process__steps { display: grid; gap: 28px; margin-top: clamp(32px, 5vw, 64px); counter-reset: none; }
@media (min-width: 640px) { .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (min-width: 1000px) {
  .process__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 0; }
  /* steps rise left to right: each stage builds on the previous one */
  .step:nth-child(1) { margin-top: 108px; }
  .step:nth-child(2) { margin-top: 72px; }
  .step:nth-child(3) { margin-top: 36px; }
  .step + .step { border-left: 1px solid var(--band-line); }
}
.step { display: grid; gap: 10px; align-content: start; padding: 20px 24px 8px 0; border-top: 3px solid var(--band-accent); min-width: 0; }
@media (min-width: 1000px) { .step + .step { padding-left: 24px; } }
.step__n {
  font-size: 3.5rem; line-height: 1; font-weight: 300; font-stretch: var(--display-stretch);
  color: var(--band-accent); font-variant-numeric: tabular-nums;
}
.step__title { font-size: var(--fs-h3); font-weight: 750; }
.step__text { color: var(--band-muted); max-width: 26em; }

/* ---------- contact ---------- */
.contact { padding-block: clamp(64px, 9vw, 128px); }
.contact__in { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 960px) { .contact__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.contact__info { display: grid; gap: 24px; min-width: 0; }
.contact__title { font-size: var(--fs-h2); font-weight: 820; font-stretch: var(--display-stretch); line-height: .98; }
.contact__lead { font-size: var(--fs-lead); max-width: 30em; }
.contact__area { color: var(--zinc); }
.facts { margin: 8px 0 0; display: grid; }
.facts__row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding-block: 14px; border-top: 1px solid var(--zinc-line); }
.facts__row:last-child { border-bottom: 1px solid var(--zinc-line); }
.facts dt { color: var(--zinc); font-size: var(--fs-small); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.facts dd a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.facts address { font-weight: 600; }
.facts__maps { display: inline-block; margin-top: 6px; font-weight: 500; font-size: var(--fs-small); }
@media (max-width: 459px) { .facts__row { grid-template-columns: 1fr; gap: 2px; } }

.form {
  background: var(--paper); border: 1px solid var(--zinc-line);
  padding: clamp(20px, 3.5vw, 40px); min-width: 0; display: grid; gap: 20px;
}
.form__grid { display: grid; gap: 18px 20px; }
@media (min-width: 600px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .9375rem; }
.req { font-weight: 400; color: var(--zinc); font-size: var(--fs-small); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 1rem; color: var(--stone); background: var(--field-bg);
  border: 1.5px solid var(--zinc-line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--zinc); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--stone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--accent); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__privacy { color: var(--zinc); font-size: var(--fs-small); max-width: 26em; }
.form__status { padding: 12px 14px; border-left: 4px solid var(--stone); background: var(--lime); font-weight: 550; }
.form__status.is-error { border-left-color: var(--accent); }
.form__status.is-ok { border-left-color: var(--ok); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.foot { background: var(--foot-bg); color: var(--foot-fg); padding-block: clamp(48px, 6vw, 72px) 24px; font-size: .9375rem; }
.foot__in { display: grid; gap: 32px; }
@media (min-width: 720px) { .foot__in { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.foot__brand { display: grid; gap: 14px; align-content: start; }
.foot__brand img { height: 52px; width: auto; }
.foot__brand address { color: var(--foot-muted); }
.foot__h { font-size: var(--fs-small); font-weight: 600; color: var(--foot-muted); margin-bottom: 10px; }
.foot__col ul { display: grid; gap: 6px; }
.foot__col a { text-decoration: none; overflow-wrap: anywhere; }
.foot__col a:hover { text-decoration: underline; text-decoration-color: var(--band-accent); }
.foot__langs a[aria-current="true"] { font-weight: 700; }
.foot__legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--foot-muted); font-size: var(--fs-small); }

/* ---------- mobile action bar ---------- */
.mbar { display: none; }
@media (max-width: 759px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--lime) 94%, transparent);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid var(--zinc-line);
  }
  .mbar__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    font-weight: 700; text-decoration: none; border: 2px solid var(--stone); border-radius: var(--radius); color: var(--stone);
  }
  .mbar__btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 56px 16px 24px;
  border: 0; background: rgba(10, 14, 16, .94); color: #EDF0F0;
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 12px; }
.lightbox::backdrop { background: rgba(10, 14, 16, .7); }
.lightbox__img { max-width: min(1500px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__cap { font-size: var(--fs-small); color: #B9C3C7; text-align: center; max-width: 60ch; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #fff; border-radius: 50%; cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; } }

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