/* Fre’s Style: logo-driven dark / copper */

:root {
  --black: #0a0a0a;
  --black-2: #121212;
  --black-3: #1a1a1a;
  --copper: #b07848;
  --copper-hot: #c48955;
  --white: #f5f2ed;
  --muted: rgba(245, 242, 237, 0.62);
  --line: rgba(245, 242, 237, 0.12);

  --font: "Outfit", "Segoe UI", sans-serif;
  --container: 1120px;
  --gutter: clamp(1.15rem, 4vw, 2.25rem);
  --header-h: 4.75rem;
  --space: clamp(4.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  /* Anchor offset is handled per-target via scroll-margin (avoids double offset). */
  scroll-padding-top: 0;
}

/* Default section anchors: sit the target just under the top / fixed header */
h2[id]:not(#over-ons),
#top,
#binnen,
#buiten,
#mortex,
#technieken {
  scroll-margin-top: 1.25rem;
}

/* Over Ons: keep the previous (deeper) landing position */
#over-ons {
  scroll-margin-top: calc((var(--header-h) + 0.75rem) * 2);
}

@media (max-width: 960px) {
  /* Fixed header on small screens: clear it once for all section titles */
  h2[id]:not(#over-ons),
  #top,
  #binnen,
  #buiten,
  #mortex,
  #technieken {
    scroll-margin-top: calc(var(--header-h) + 1.15rem);
  }

  #over-ons {
    scroll-margin-top: calc((var(--header-h) + 0.75rem) * 2);
  }
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--copper);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--copper-hot);
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.sep {
  display: inline-block;
  padding-inline: 0.55em;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--copper);
  color: var(--black);
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding: var(--space) 0;
}

.section-top {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-top h2 {
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  margin-bottom: 0.4em;
}

.section-top p {
  max-width: 36rem;
  font-size: 1.05rem;
}

/* Intro: who we are */
.intro {
  background: var(--black);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.intro-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.intro-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
}

.intro-lead {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--white);
}

.intro-copy > p:not(.intro-label):not(.intro-lead) {
  margin: 0 0 1rem;
  max-width: 34rem;
  color: var(--muted);
}

.intro-copy .btn {
  margin-top: 1.25rem;
}

.intro-media {
  margin: 0;
}

.intro-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Ambacht in beeld */
.craft {
  background: var(--black-2);
  border-top: 1px solid var(--line);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.craft-shot {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.craft-shot-frame {
  overflow: hidden;
  background: var(--black);
  aspect-ratio: 3 / 4;
}

.craft-shot-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.craft-shot.is-playing .craft-shot-img {
  animation: craft-drift 18s ease-in-out infinite alternate;
}

.craft-shot.is-playing .craft-shot-img--alt {
  animation-name: craft-drift-alt;
  animation-duration: 22s;
}

@keyframes craft-drift {
  from { transform: scale(1.08) translate3d(-1.5%, 0, 0); }
  to { transform: scale(1.16) translate3d(1.5%, -1%, 0); }
}

@keyframes craft-drift-alt {
  from { transform: scale(1.1) translate3d(1%, -1%, 0); }
  to { transform: scale(1.18) translate3d(-1.5%, 1%, 0); }
}

.craft-shot figcaption {
  display: grid;
  gap: 0.2rem;
}

.craft-shot-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.craft-shot-text {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .craft-shot-img {
    transform: none;
  }

  .craft-shot.is-playing .craft-shot-img {
    animation: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-accent {
  background: var(--copper);
  color: var(--black);
}

.btn-accent:hover {
  background: var(--copper-hot);
  color: var(--black);
}

.btn-full { width: 100%; }

/* Header: anchored in dark hero panel; scrolls away with hero */
.site-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
  width: max(280px, 38vw);
  height: var(--header-h);
}

.header-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(1.5rem, 4vw, 3.5rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 2.85rem;
  width: auto;
  display: block;
}

.nav-desktop {
  width: 100%;
}

.nav-desktop ul {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-desktop a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 1.2rem;
  height: 1.5px;
  background: var(--white);
  transform: translateX(-50%);
  transition: transform 0.2s ease;
}

.nav-toggle span:first-child { top: 1rem; }
.nav-toggle span:last-child { top: 1.4rem; }

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 1.2rem;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 1.2rem;
  transform: translateX(-50%) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  inset: var(--header-h) 0 auto;
  background: var(--black);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem var(--gutter) 1.75rem;
}

.nav-mobile[hidden] { display: none; }

.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  color: var(--white);
  text-decoration: none;
  font-size: 1.35rem;
  border-bottom: 1px solid var(--line);
}

body.nav-open { overflow: hidden; }
body.nav-open .site-header { background: var(--black); }

/* Hero: logo panel over photo */
.hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 38vw);
}

.hero-media {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: clamp(2rem, 5vw, 4rem);
  padding-top: calc(var(--header-h) + 1.5rem);
  background: var(--black);
  border-left: 1px solid var(--line);
}

.hero-brand {
  width: min(100%, 220px);
  height: auto;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0;
}

.hero-panel > p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.hero .btn {
  align-self: flex-start;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.85rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: rgba(245, 242, 237, 0.45);
  text-decoration: none;
  transition: color 0.25s ease;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  color: var(--copper);
}

.hero-scroll svg {
  display: block;
  animation: hero-scroll-nudge 2.2s var(--ease) infinite;
}

@keyframes hero-scroll-nudge {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(0.4rem);
    opacity: 1;
  }
}

/* Services blocks */
.services {
  background: var(--black-2);
  border-top: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.service {
  background: var(--black);
  position: relative;
}

.service:last-child {
  grid-column: 1 / -1;
}

.service-link {
  display: grid;
  grid-template-rows: auto auto;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.service-link img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s var(--ease), z-index 0s;
}

.service:last-child img {
  aspect-ratio: 21 / 9;
}

.service-link img:hover {
  z-index: 2;
  transform: scale(1.06);
}

.service-copy {
  padding: 1.25rem 1.35rem 1.4rem;
  border-top: 1px solid var(--line);
}

.service-copy h3 {
  margin: 0 0 0.35em;
  font-size: 1.25rem;
  color: var(--white);
}

.service-copy p {
  margin: 0;
  font-size: 0.95rem;
}

.service-link:hover .service-copy h3 {
  color: var(--copper);
}

/* Service detail sections */
.service-detail {
  background: var(--black);
  border-top: 1px solid var(--line);
}

.service-detail--alt {
  background: var(--black-2);
}

.service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.service-detail-layout--reverse .service-detail-media {
  order: 2;
}

.service-detail-layout--stack {
  grid-template-columns: 1fr;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.service-detail-layout--stack .service-detail-copy {
  max-width: 40rem;
}

.service-detail-media {
  margin: 0;
}

.service-detail-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.service-detail-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.service-detail-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 1.3rem + 1.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--white);
}

.service-detail-copy p {
  margin: 0 0 1rem;
  max-width: 34rem;
  color: var(--muted);
}

.service-detail-copy p:last-child {
  margin-bottom: 0;
}

/* Techniques */
.techniques {
  background: var(--black);
  border-top: 1px solid var(--line);
}

.technique-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.technique {
  display: grid;
  gap: 1rem;
}

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

.technique h3 {
  margin: 0 0 0.25em;
  font-size: 1.35rem;
  color: var(--white);
}

.technique p {
  margin: 0;
  font-size: 0.95rem;
}

/* Materiaalwoordenboek */
.glossary-term {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px dotted var(--copper);
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: help;
  vertical-align: baseline;
}

.glossary-term:hover,
.glossary-term:focus-visible,
.glossary-term.is-active {
  color: var(--copper-hot);
  border-bottom-style: solid;
  outline: none;
}

.glossary-term--title {
  border-bottom-color: rgba(176, 120, 72, 0.45);
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.glossary-hint {
  margin-top: 1.25rem !important;
  font-size: 0.85rem !important;
  color: rgba(245, 242, 237, 0.45) !important;
}

.glossary-hint--mobile {
  display: none;
}

.glossary-popover {
  position: fixed;
  z-index: 140;
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line);
  background: var(--black-3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.glossary-popover-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.glossary-popover-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--white);
}

/* Portfolio */
.portfolio {
  background: var(--black-2);
  border-top: 1px solid var(--line);
}

.portfolio-grid {
  columns: 3;
  column-gap: 0.75rem;
}

.shot {
  break-inside: avoid;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0;
  display: block;
  overflow: hidden;
  background: var(--black);
  cursor: zoom-in;
}

.shot img {
  width: 100%;
  display: block;
  transition: transform 0.7s var(--ease), opacity 0.3s ease;
}

.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.03);
  opacity: 0.9;
}

.shot:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.portfolio-more {
  display: none;
}

/* Contact */
.contact {
  background: var(--black-2);
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-people {
  display: grid;
  gap: 1.5rem;
}

.person {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.person h3 {
  color: var(--copper);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.person p {
  font-size: 0.95rem;
  line-height: 1.75;
}

.person a {
  color: var(--white);
  text-decoration: none;
}

.person a:hover {
  color: var(--copper);
}

.contact-form {
  display: grid;
  gap: 0.95rem;
  padding: 1.5rem;
  background: var(--black);
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.field-optional {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
  color: rgba(245, 242, 237, 0.4);
}

.contact-form input:not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--black-2);
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  box-shadow: none;
}

.contact-form select {
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  cursor: pointer;
  padding-right: 2.75rem;
  background-color: var(--black-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6L8 10.5L12.5 6' stroke='%23b07848' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  background-size: 0.9rem;
}

.contact-form select:not(:focus):invalid,
.contact-form select.is-placeholder {
  color: var(--muted);
}

.contact-form select option {
  background: var(--black-2);
  color: var(--white);
}

.contact-form select option[value=""] {
  color: var(--muted);
}

.contact-form input:not([type="checkbox"]):focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--copper);
}

.contact-form textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.check {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.9rem !important;
  color: var(--muted) !important;
}

.contact-form .check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 0.9rem;
  height: 0.9rem;
  min-width: 0.9rem;
  min-height: 0.9rem;
  max-width: 0.9rem;
  max-height: 0.9rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 1px solid rgba(245, 242, 237, 0.45);
  border-radius: 0.12rem;
  background: transparent;
  background-color: transparent;
  color: inherit;
  font-size: 0;
  line-height: 0;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: none;
}

.contact-form .check input[type="checkbox"]:checked {
  border-color: var(--copper);
  background-color: var(--copper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
  background-size: 0.65rem 0.65rem;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-form .check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.check a { color: var(--white); }

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--copper);
}

.form-note.is-error { color: #d27a6a; }

.form-alt {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--black);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  width: 100%;
}

.footer-nav-primary,
.footer-nav-secondary {
  display: contents;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 0.85rem;
  margin-left: auto;
}

.footer-social a {
  color: var(--muted);
  line-height: 0;
}

.footer-social a:hover { color: var(--copper); }

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.social-links {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
}

.social-link {
  color: var(--muted);
  line-height: 0;
  text-decoration: none;
}

.social-link:hover {
  color: var(--copper);
}

.social-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1.25rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(245, 242, 237, 0.4);
}

.footer-bottom a {
  color: rgba(245, 242, 237, 0.55);
}

/* Floating */
.whatsapp-float {
  position: fixed;
  right: var(--gutter);
  bottom: 1.15rem;
  z-index: 95;
  height: 3.2rem;
  min-width: 3.2rem;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 1.6rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: padding 0.45s var(--ease);
}

.whatsapp-float:hover,
.whatsapp-float:active,
.whatsapp-float:focus,
.whatsapp-float:focus-visible {
  color: #fff;
  background: #25d366;
}

.whatsapp-float svg {
  flex-shrink: 0;
}

.whatsapp-float__label {
  display: inline-block;
  max-width: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    max-width 0.45s var(--ease),
    opacity 0.3s ease,
    margin 0.45s var(--ease);
}

.whatsapp-float.is-expanded {
  padding-left: 1.1rem;
  padding-right: 0.95rem;
}

.whatsapp-float.is-expanded .whatsapp-float__label {
  max-width: 15.5rem;
  margin-right: 0.65rem;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float.is-intro {
    animation: wa-intro-pad 0.9s var(--ease) 0.35s both;
  }

  .whatsapp-float.is-intro .whatsapp-float__label {
    transition: none;
    animation: wa-intro-label 0.9s var(--ease) 0.35s both;
  }
}

@keyframes wa-intro-pad {
  from {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  to {
    padding-left: 1.1rem;
    padding-right: 0.95rem;
  }
}

@keyframes wa-intro-label {
  from {
    max-width: 0;
    margin-right: 0;
    opacity: 0;
  }
  to {
    max-width: 15.5rem;
    margin-right: 0.65rem;
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover,
  .whatsapp-float:focus-visible {
    padding-left: 1.1rem;
    padding-right: 0.95rem;
  }

  .whatsapp-float:hover .whatsapp-float__label,
  .whatsapp-float:focus-visible .whatsapp-float__label {
    max-width: 15.5rem;
    margin-right: 0.65rem;
    opacity: 1;
  }
}

/* Cookie */
.cookie-banner {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  z-index: 220;
  max-width: 36rem;
  margin-inline: auto;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  background: var(--black-3);
  border: 1px solid var(--line);
}

.cookie-banner h2 {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
}

body.has-cookie-banner { padding-bottom: 6rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 1100px);
}

.lightbox-dialog figure {
  margin: 0;
  text-align: center;
}

.lightbox-dialog img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.lightbox-dialog figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  color: var(--white);
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  background: rgba(255, 255, 255, 0.06);
}

.lightbox-close { top: -0.25rem; right: -0.25rem; }
.lightbox-prev { left: -0.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -0.25rem; top: 50%; transform: translateY(-50%); }

/* Legal pages reuse */
.page-legal .site-header {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid var(--line);
}

.page-legal .header-inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  padding-inline: 0;
  justify-content: space-between;
  gap: 1.25rem;
}

.page-legal .nav-desktop {
  width: auto;
  margin-left: auto;
}

.page-legal .nav-desktop ul {
  gap: 1.75rem;
  justify-content: flex-end;
}

.page-legal .nav-toggle {
  margin-left: 0;
}

.legal-main {
  padding: calc(var(--header-h) + 3rem) 0 var(--space);
}

.legal-content {
  max-width: 44rem;
}

.legal-content h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  color: var(--white);
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-content section { margin-bottom: 2rem; }

.legal-content h2 {
  font-size: 1.45rem;
  color: var(--copper);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.legal-cards {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (min-width: 700px) {
  .legal-cards { grid-template-columns: 1fr 1fr; }
}

.legal-cards article {
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: var(--black-2);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--line);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-table th {
  color: var(--copper);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-company {
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-company p { margin: 0 0 0.5rem; color: var(--muted); }
.footer-company a { color: var(--muted); }

.text-link {
  color: var(--copper);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 960px) {
  .site-header {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.55), transparent);
  }

  body.nav-open .site-header {
    background: var(--black);
  }

  .header-inner {
    padding-inline: var(--gutter);
    justify-content: flex-end;
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .hero-panel {
    order: 1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding-block: 2.25rem;
    padding-top: calc(var(--header-h) + 1.75rem);
    align-items: center;
    text-align: center;
  }

  .hero-brand {
    width: min(100%, 180px);
    margin-inline: auto;
  }

  .hero .btn {
    align-self: center;
  }

  .hero-scroll {
    display: none;
  }

  .hero-media {
    display: none;
  }

  .intro-layout,
  .services-grid,
  .craft-grid,
  .technique-rows,
  .contact-layout,
  .service-detail-layout {
    grid-template-columns: 1fr;
  }

  .contact-form {
    order: -1;
  }

  .glossary-hint--mobile {
    display: inline;
  }

  .glossary-hint--desktop {
    display: none;
  }

  .check {
    font-size: 0.78rem !important;
    gap: 0.45rem;
  }

  .contact-form .check input[type="checkbox"] {
    width: 0.75rem;
    height: 0.75rem;
    min-width: 0.75rem;
    min-height: 0.75rem;
    max-width: 0.75rem;
    max-height: 0.75rem;
    margin-top: 0.18rem;
  }

  .contact-form .check input[type="checkbox"]:checked {
    background-size: 0.55rem 0.55rem;
  }

  .craft-shot-frame {
    aspect-ratio: 5 / 4;
  }

  .service-detail-layout--reverse .service-detail-media {
    order: 0;
  }

  .service-detail-media img {
    aspect-ratio: 5 / 4;
  }

  .intro-media {
    order: -1;
    max-width: 28rem;
  }

  .intro-media img {
    aspect-ratio: 5 / 4;
  }

  .service:last-child img {
    aspect-ratio: 16 / 9;
  }

  .portfolio-grid {
    columns: 2;
  }
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 901px) {
  .nav-mobile {
    display: none !important;
  }
}

@media (max-width: 640px) {
  :root { --header-h: 4.25rem; }

  .logo img { height: 2.45rem; }

  .portfolio-grid {
    columns: 2;
    column-gap: 0.55rem;
  }

  .shot {
    margin-bottom: 0.55rem;
  }

  .shot img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .portfolio:not(.is-expanded) .shot:nth-child(n + 7) {
    display: none;
  }

  .portfolio-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--white);
    font: inherit;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .portfolio-more:hover,
  .portfolio-more:focus-visible {
    color: var(--copper);
    border-color: var(--copper);
  }

  .technique img { aspect-ratio: 5 / 4; }

  .footer-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .footer-nav-primary,
  .footer-nav-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
  }

  .footer-nav-secondary .footer-social {
    margin-left: auto;
  }

  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem 1rem;
    padding-right: 0;
  }

  .site-footer {
    padding-bottom: 5.5rem;
  }

  body.has-cookie-banner .whatsapp-float {
    display: none;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
}
