/* ==========================================================================
   Cazinivanta24 — Contemporary Australian Renovation Studio
   ========================================================================== */

:root {
  --graphite: #252927;
  --paper: #F7F5F0;
  --sand: #D8C8B2;
  --olive: #78816D;
  --stone: #E7E3DC;
  --white: #FFFFFF;

  --ink: #252927;
  --ink-soft: #4a504c;
  --ink-muted: #6b7169;
  --line: rgba(37, 41, 39, 0.14);
  --line-strong: rgba(37, 41, 39, 0.28);
  --line-dark: rgba(247, 245, 240, 0.16);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6.5rem;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(37, 41, 39, 0.05), 0 10px 30px -12px rgba(37, 41, 39, 0.18);
  --shadow-lift: 0 2px 4px rgba(37, 41, 39, 0.06), 0 18px 44px -14px rgba(37, 41, 39, 0.28);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 78px;
  --container: 1200px;
}

/* ---------- Reset & base ---------- */

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

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.14;
  margin: 0 0 0.6em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  z-index: 200;
  background: var(--graphite);
  color: var(--paper);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--space-sm); }

/* ---------- Layout helpers ---------- */

.container {
  width: min(var(--container), 100% - 2 * clamp(1.25rem, 4vw, 3rem));
  margin-inline: auto;
}

.section { padding-block: clamp(3.5rem, 8vw, var(--space-xl)); }
.section--white { background: var(--white); }
.section--stone { background: var(--stone); }
.section--dark { background: var(--graphite); color: rgba(247, 245, 240, 0.86); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark .eyebrow { color: var(--sand); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.7rem;
  transform: translateY(-2px);
}
.section-head--center .eyebrow::before { display: none; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--ink-soft); }
.section--dark .lead { color: rgba(247, 245, 240, 0.78); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--graphite); color: var(--paper); }
.btn--primary:hover { background: #343a36; color: var(--paper); }

.btn--light { background: var(--paper); color: var(--graphite); }
.btn--light:hover { background: var(--white); color: var(--graphite); }

.btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--graphite); background: var(--graphite); color: var(--paper); }

.btn--outline-light { border-color: rgba(247, 245, 240, 0.4); color: var(--paper); background: transparent; }
.btn--outline-light:hover { border-color: var(--paper); background: var(--paper); color: var(--graphite); }

.btn .btn__arrow { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link-more:hover { border-color: var(--graphite); gap: 0.7rem; }
.link-more svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.site-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-logo img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0;
  color: var(--ink);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--graphite);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after,
.nav__item--parent.is-open > .nav__link::after { transform: scaleX(1); }

.nav__caret { width: 11px; height: 11px; transition: transform 0.25s var(--ease); }
.nav__item--parent.is-open .nav__caret { transform: rotate(180deg); }

/* dropdown */
.nav__item--parent { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 290px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 0.6rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.nav__item--parent.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.dropdown__link {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s var(--ease);
}
.dropdown__link:hover { background: var(--paper); }
.dropdown__title { font-weight: 600; font-size: 0.95rem; }
.dropdown__desc { font-size: 0.82rem; color: var(--ink-muted); }
.dropdown__divider { height: 1px; background: var(--line); margin: 0.4rem 0.9rem; }

.nav__cta { margin-left: 0.5rem; }
.nav__cta .btn { padding: 0.65rem 1.4rem; font-size: 0.88rem; }

/* burger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.8px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__content { max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 5 / 4.4;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  z-index: -1;
}
.hero__badge {
  position: absolute;
  left: -1.2rem; bottom: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 0.9rem 1.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 0.6rem;
}
.hero__badge svg { width: 18px; height: 18px; color: var(--olive); flex-shrink: 0; }

/* page hero (inner pages) */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.page-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.page-hero--dark { background: var(--graphite); color: rgba(247,245,240,0.85); }
.page-hero--dark h1 { color: var(--paper); }
.page-hero--dark .eyebrow { color: var(--sand); }
.page-hero--dark .lead { color: rgba(247,245,240,0.78); }

.breadcrumbs { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 1.4rem; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span + span::before { content: "/"; margin: 0 0.5rem; opacity: 0.5; }
.page-hero--dark .breadcrumbs { color: rgba(247,245,240,0.6); }

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.service-card__media { overflow: hidden; }
.service-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.045); }
.service-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.service-card__index { font-size: 0.75rem; letter-spacing: 0.18em; color: var(--olive); font-weight: 600; }
.service-card__title { margin: 0; font-size: 1.28rem; }
.service-card__text { font-size: 0.93rem; color: var(--ink-soft); flex: 1; }
.service-card__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; font-weight: 600; margin-top: 0.4rem;
}
.service-card__link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.service-card:hover .service-card__link svg { transform: translateX(4px); }

/* ---------- Split (asymmetric text+media) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split--wide-media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--wide-text { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split__media img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: var(--radius); }
.split__media--tall img { aspect-ratio: 4 / 4.8; }
.split--reverse .split__media { order: 2; }

.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: var(--olive);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.34rem; top: 0.72em;
  width: 0.42rem; height: 0.24rem;
  border-left: 1.6px solid var(--paper);
  border-bottom: 1.6px solid var(--paper);
  transform: rotate(-45deg);
}
.section--dark .check-list li { color: rgba(247,245,240,0.82); }
.section--dark .check-list li::before { background: var(--sand); }
.section--dark .check-list li::after { border-color: var(--graphite); }

/* ---------- Approach / steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--line); }
.step {
  padding: 2rem 1.8rem 2.2rem 0;
  border-right: 1px solid var(--line);
}
.step + .step { padding-left: 1.8rem; }
.step:last-child { border-right: 0; }
.step__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--sand);
  line-height: 1;
  display: block;
  margin-bottom: 1.1rem;
}
.section--dark .step__num { color: rgba(216, 200, 178, 0.55); }
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.93rem; color: var(--ink-soft); margin: 0; }
.section--dark .steps { border-top-color: var(--line-dark); }
.section--dark .step { border-right-color: var(--line-dark); }
.section--dark .step p { color: rgba(247,245,240,0.72); }

/* ---------- Gallery / inspiration ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery__tile {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover .gallery__tile { transform: scale(1.04); }
.gallery__item--a { grid-column: 1 / 6; aspect-ratio: 4/4.6; }
.gallery__item--b { grid-column: 6 / 10; aspect-ratio: 4/3; margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.gallery__item--c { grid-column: 10 / 13; aspect-ratio: 3/4; }
.gallery__item--d { grid-column: 3 / 8; aspect-ratio: 16/10; margin-top: calc(-1 * clamp(0.5rem, 2vw, 2rem)); }
.gallery__item--e { grid-column: 8 / 12; aspect-ratio: 4/3; margin-top: clamp(0.5rem, 2vw, 1.5rem); }
.gallery__caption {
  position: absolute;
  left: 0.9rem; bottom: 0.9rem;
  background: rgba(37,41,39,0.72);
  color: var(--paper);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.8rem); }
.duo figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; }
.duo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; transition: transform 0.6s var(--ease); }
.duo figure:hover img { transform: scale(1.04); }

@media (max-width: 620px) {
  .duo { grid-template-columns: 1fr; }
}

/* ---------- Feature / why choose ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1.4rem,3vw,2.4rem); }
.feature {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.6rem;
}
.feature svg { width: 30px; height: 30px; color: var(--olive); margin-bottom: 1rem; }
.feature h3 { font-size: 1.18rem; }
.feature p { font-size: 0.95rem; color: var(--ink-soft); }
.section--dark .feature { border-top-color: var(--line-dark); }
.section--dark .feature p { color: rgba(247,245,240,0.72); }
.section--dark .feature svg { color: var(--sand); }

.wide-media { margin: 0; }
.wide-media img {
  width: 100%;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Service detail rows (services page) ---------- */

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.service-row:first-of-type { border-top: 0; padding-top: 0; }
.service-row--reverse .service-row__media { order: 2; }
.service-row__media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.service-row__index { font-size: 0.78rem; letter-spacing: 0.2em; color: var(--olive); font-weight: 600; }
.service-row h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0.5rem 0 0.9rem; }
.service-row__list { columns: 2; column-gap: 2.2rem; font-size: 0.94rem; color: var(--ink-soft); margin: 1.2rem 0 1.6rem; }
.service-row__list li { break-inside: avoid; }

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band__inner { max-width: 46rem; margin-inline: auto; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2.2rem; }

/* ---------- Process list (service pages) ---------- */

.process-list { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem minmax(0,1fr);
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--olive);
}
.process-list h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.process-list p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-details { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.contact-details li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0,1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.contact-details svg { width: 22px; height: 22px; color: var(--olive); margin-top: 0.15rem; }
.contact-details strong { display: block; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.15rem; font-weight: 600; }
.contact-details span { font-size: 1rem; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-note { font-size: 0.85rem; color: var(--ink-muted); margin-top: 0.8rem; }

/* form */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-card); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; }
.field label .field__opt { font-weight: 400; color: var(--ink-muted); font-size: 0.82rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--olive); background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.field--invalid input, .field--invalid textarea { border-color: #a5503c; background: #faf3f1; }
.field__error { display: none; font-size: 0.82rem; color: #a5503c; margin-top: 0.35rem; }
.field--invalid .field__error { display: block; }
.form__note { font-size: 0.82rem; color: var(--ink-muted); margin-top: 1rem; }
.form__submit { margin-top: 0.4rem; }

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(30, 33, 31, 0.55); backdrop-filter: blur(4px); }
.modal__dialog {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 30rem;
  width: 100%;
  padding: 2.6rem 2.4rem 2.2rem;
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.modal__icon {
  width: 58px; height: 58px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: var(--olive);
  display: flex; align-items: center; justify-content: center;
}
.modal__icon svg { width: 26px; height: 26px; color: var(--paper); }
.modal__close {
  position: absolute;
  top: 0.9rem; right: 0.9rem;
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--ink-muted);
}
.modal__close:hover { background: var(--stone); color: var(--ink); }
.modal__close svg { width: 16px; height: 16px; }

/* ---------- Cookie banner & settings ---------- */

.cookie-banner {
  position: fixed;
  left: 1.25rem; right: 1.25rem; bottom: 1.25rem;
  z-index: 250;
  max-width: 30rem;
  margin-left: auto;
  background: var(--graphite);
  color: rgba(247,245,240,0.88);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-lift);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h2 { font-size: 1.15rem; color: var(--paper); margin-bottom: 0.4rem; }
.cookie-banner p { font-size: 0.87rem; margin-bottom: 1.1rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-banner .btn { padding: 0.6rem 1.15rem; font-size: 0.85rem; }

.cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.cookie-settings.is-open { display: flex; }
.cookie-settings__backdrop { position: absolute; inset: 0; background: rgba(30,33,31,0.55); }
.cookie-settings__dialog {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 34rem;
  width: 100%;
  max-height: min(85vh, 640px);
  overflow-y: auto;
  padding: 2.2rem;
}
.cookie-settings__dialog h2 { font-size: 1.5rem; }
.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.cookie-option__text strong { display: block; font-size: 0.98rem; margin-bottom: 0.2rem; }
.cookie-option__text p { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.cookie-option__status { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; padding-top: 0.25rem; }

.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; margin-top: 0.15rem; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch__track {
  position: absolute; inset: 0;
  background: var(--stone);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 0.2s var(--ease);
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.22s var(--ease);
}
.switch input:checked + .switch__track { background: var(--olive); border-color: var(--olive); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--olive); outline-offset: 3px; }
.switch input:disabled + .switch__track { background: var(--stone); opacity: 0.7; }

.cookie-settings__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }

/* ---------- Legal pages ---------- */

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.12rem; margin-top: 1.8rem; font-family: var(--font-body); font-weight: 600; }
.prose p, .prose li { color: var(--ink-soft); font-size: 0.98rem; }
.prose .updated { font-size: 0.85rem; color: var(--ink-muted); letter-spacing: 0.04em; }

/* ---------- Footer ---------- */

.site-footer { background: var(--graphite); color: rgba(247,245,240,0.75); }
.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 2.5fr) minmax(0, 2.5fr) minmax(0, 3fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
.site-footer__brand img { height: 32px; width: auto; margin-bottom: 1.1rem; }
.site-footer__brand p { font-size: 0.92rem; max-width: 26rem; }
.site-footer h2, .site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.1rem;
}
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.55rem; }
.footer-nav a { color: rgba(247,245,240,0.78); text-decoration: none; font-size: 0.93rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--paper); }

.site-footer__contact p { font-size: 0.93rem; margin-bottom: 0.7rem; }
.site-footer__contact .footer-email { color: var(--paper); }

.social { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: rgba(247,245,240,0.8);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
}
.social a:hover { background: var(--paper); color: var(--graphite); border-color: var(--paper); }
.social svg { width: 17px; height: 17px; }

.site-footer__bar {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  font-size: 0.84rem;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; }
.site-footer__legal a, .site-footer__legal button {
  color: rgba(247,245,240,0.65);
  text-decoration: none;
  font-size: 0.84rem;
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
}
.site-footer__legal a:hover, .site-footer__legal button:hover { color: var(--paper); text-decoration: underline; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 0; }
  .step { border-top: 1px solid var(--line); padding: 1.6rem 1.4rem 1.8rem 0; }
  .step:nth-child(even) { border-right: 0; }
  .section--dark .step { border-top-color: var(--line-dark); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  :root { --header-h: 66px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem clamp(1.25rem, 4vw, 3rem) 1.6rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-top: 1px solid var(--line); }
  .nav__link { display: flex; justify-content: space-between; width: 100%; padding: 0.95rem 0.2rem; font-size: 1.05rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
  .nav__link::after { display: none; }

  .nav__item--parent .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0.8rem 1rem;
    background: transparent;
  }
  .nav__item--parent.is-open .dropdown { display: block; transform: none; }
  .dropdown__link { padding: 0.55rem 0.4rem; }
  .dropdown__desc { display: none; }
  .dropdown__divider { display: none; }
  .nav__cta { margin: 0.9rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }

  .hero__grid, .page-hero__grid, .split, .split--wide-media, .split--wide-text,
  .service-row, .service-row--reverse, .contact-grid {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media, .service-row--reverse .service-row__media { order: 0; }
  .hero__media::before { inset: 0.9rem -0.9rem -0.9rem 0.9rem; }
  .hero__badge { left: 0.9rem; bottom: 0.9rem; }
  .service-row__list { columns: 1; }

  .gallery__item--a { grid-column: 1 / 8; }
  .gallery__item--b { grid-column: 8 / 13; margin-top: 0; }
  .gallery__item--c { grid-column: 1 / 7; aspect-ratio: 4/3; }
  .gallery__item--d { grid-column: 7 / 13; margin-top: 0; }
  .gallery__item--e { grid-column: 3 / 11; aspect-ratio: 16/9; margin-top: 0; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .card-grid, .steps, .feature-grid, .form__row, .site-footer__main { grid-template-columns: 1fr; }
  .step { border-right: 0; padding-right: 0; }
  .step + .step { padding-left: 0; }
  .gallery { display: block; }
  .gallery__item { margin-bottom: 1rem; aspect-ratio: 4/3 !important; }
  .hero__actions .btn, .cta-band .btn-row .btn { width: 100%; justify-content: center; }
  .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; }
  .site-footer__bar { flex-direction: column; align-items: flex-start; }
  .map-frame iframe { height: 300px; }
}

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