/* ============================================================
   BAUSERVICE95 — Haupt-Stylesheet
   Bauunternehmen Geislingen · Zollernalbkreis
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --red:         #E63027;
  --red-dark:    #C4251D;
  --black:       #0A0A0A;
  --white:       #FFFFFF;
  --ink:         #1A1A1A;
  --ash:         #F5F5F5;
  --mid:         #888888;
  --border:      #E8E8E8;
  --border-dark: #222222;

  --sp-1:  8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h: 120px;
  --max-w: 1200px;
  --gutter: clamp(24px, 4vw, 48px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:   150ms ease-out;
  --t-base:   200ms ease-out;
  --t-slow:   300ms ease-out;

  --z-sticky:  20;
  --z-overlay: 40;
  --z-modal:  100;
  --z-float: 1000;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section--ash  { background: var(--ash); }
.section--black { background: var(--black); }

.overline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-2);
}

.section-header { margin-bottom: var(--sp-6); }
.section-header--center { text-align: center; }
.section-header--center .section-sub { margin: var(--sp-2) auto 0; }

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section--black .section-title { color: var(--white); }

.section-sub {
  font-size: 1.0625rem;
  color: var(--mid);
  max-width: 60ch;
  margin-top: var(--sp-2);
  line-height: 1.65;
}

.section--black .section-sub { color: rgba(255,255,255,0.5); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--red);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  font-weight: 700;
  font-size: 0.875rem;
}
.skip-link:focus { top: 8px; }

/* Screen reader only */
.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;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--white);
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transition: opacity 300ms cubic-bezier(0.16,1,0.3,1), transform 300ms cubic-bezier(0.16,1,0.3,1);
}

/* Homepage: nav starts hidden (fixed, out of flow so hero is full-viewport) */
body[data-page="home"] .nav {
  position: fixed;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}
body[data-page="home"] .nav.nav--revealed {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: var(--sp-4);
}

.nav__logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  gap: 16px;
  line-height: 1;
}
.nav__logo img {
  height: 80px;
  width: auto;
  transition: height var(--t-base);
}
.nav__tagline {
  display: flex;
  align-items: center;
  height: 48px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  border-left: 2px solid var(--border);
  padding-left: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex: 1;
  justify-content: center;
}

.nav__link {
  color: var(--mid);
  font-size: 0.875rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t-fast);
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--t-base);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--red);
}

.nav__link[aria-current="page"]::after { width: 100%; }

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.nav__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity var(--t-fast);
}
.nav__phone:hover { opacity: 0.8; }
.nav__phone svg { flex-shrink: 0; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--t-base), opacity var(--t-base);
}

/* Mobile overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: var(--z-modal);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
}
.nav__mobile.open { display: flex; }

.nav__mobile .nav__link {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav__mobile .nav__link:hover { color: var(--red); }

.nav__mobile-phone {
  margin-top: var(--sp-3);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
}

.nav__close {
  position: absolute;
  top: var(--sp-3);
  right: var(--gutter);
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}
.nav__close svg { width: 28px; height: 28px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 0;
  cursor: pointer;
  transition:
    background-color var(--t-base),
    border-color var(--t-base),
    color var(--t-base),
    transform var(--t-base),
    box-shadow var(--t-base);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1;
}

.btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,48,39,0.35);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-white:active { transform: translateY(0); }

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,48,39,0.25);
}
.btn-outline-red:active { transform: translateY(0); box-shadow: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.97) 0%,
    rgba(10,10,10,0.6)  35%,
    rgba(10,10,10,0.2)  65%,
    rgba(10,10,10,0.05) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--max-w) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--sp-8) var(--gutter);
}

.hero__overline {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-3);
}

.hero__title {
  font-size: clamp(2.75rem, 7.5vw, 6rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--white);
  max-width: 16ch;
  margin-bottom: var(--sp-3);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: rgba(255,255,255,0.68);
  max-width: 52ch;
  margin-bottom: var(--sp-5);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Hero brand — logo overlaid at top of hero */
.hero-brand {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 24px var(--gutter) 0;
  pointer-events: none;
}
.hero-brand img {
  width: min(380px, 60vw);
  height: auto;
  filter: brightness(0) invert(1) drop-shadow(0 4px 24px rgba(0,0,0,0.4));
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--black);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--sp-3) 0;
}

.trust-bar__list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px var(--sp-5);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  border-right: 1px solid var(--border-dark);
  white-space: nowrap;
}
.trust-bar__item:last-child { border-right: none; }

.trust-bar__icon { color: var(--red); flex-shrink: 0; }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: var(--black);
  padding: var(--sp-7) 0 var(--sp-6);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--sp-4);
}
.breadcrumb__item { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.breadcrumb__item a { color: rgba(255,255,255,0.35); transition: color var(--t-fast); }
.breadcrumb__item a:hover { color: rgba(255,255,255,0.7); }
.breadcrumb__sep { color: rgba(255,255,255,0.2); font-size: 0.75rem; }
.breadcrumb__item--current { color: rgba(255,255,255,0.65); }

.page-header__overline {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--sp-2);
}

.page-header__title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.08;
}

.page-header__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.55);
  margin-top: var(--sp-2);
  max-width: 58ch;
  line-height: 1.6;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
}

.service-card {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-left: 4px solid transparent;
  margin-left: -1px;
  transition: background-color var(--t-base), border-left-color var(--t-base);
}

.service-card:nth-child(even) { border-right: none; }
.service-card:nth-last-child(-n+2) { border-bottom: none; }

.service-card:hover {
  background: #fafafa;
  border-left-color: var(--red);
}

.service-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__icon svg { width: 36px; height: 36px; }

.service-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.vn-card {
  background: var(--black);
  overflow: hidden;
}

.vn-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.vn-after,
.vn-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* After sits behind; before clips from right */
.vn-after { z-index: 0; }
.vn-before { z-index: 1; clip-path: inset(0 50% 0 0); }

.vn-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.vn-handle__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--red);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.vn-handle__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.vn-handle__circle svg {
  width: 20px;
  height: 20px;
  color: var(--ink);
}

.vn-labels {
  position: absolute;
  inset: var(--sp-2);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.vn-label {
  display: inline-block;
  background: rgba(10,10,10,0.72);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}

.vn-info {
  padding: var(--sp-3) var(--sp-4);
}

.vn-info__cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

.vn-info__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

/* Grid layouts for sliders */
.slider-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.slider-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

/* ============================================================
   GALLERY FILTERS
   ============================================================ */
.gallery-filters {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-5);
}

.filter-btn {
  padding: 9px 20px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--ash);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  letter-spacing: 0.01em;
}

.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); color: var(--white); border-color: var(--red); }
.filter-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.gallery-item { transition: opacity var(--t-base); }
.gallery-item.hidden { display: none; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--red);
  padding: var(--sp-7) 0;
}

.cta-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.cta-section__text {}
.cta-section__title {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.cta-section__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  margin-top: var(--sp-2);
  line-height: 1.55;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--sp-7);
  align-items: start;
}

.form-group { margin-bottom: var(--sp-4); position: relative; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  padding: 10px 0;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t-base);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-bottom-color: var(--red); }

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
}

.form-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }

.form-honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.form-dsgvo {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.form-dsgvo input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--red);
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.form-dsgvo label {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.5;
  cursor: pointer;
}
.form-dsgvo a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

.form-success {
  display: none;
  padding: var(--sp-5);
  background: var(--ash);
  border-left: 4px solid var(--red);
  text-align: center;
}
.form-success.visible { display: block; }
.form-success__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.form-success__text { color: var(--mid); }

/* Contact details panel */
.contact-details { display: flex; flex-direction: column; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: none; }

.contact-item__icon {
  width: 22px;
  height: 22px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 3px;
}

.contact-item__val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}
.contact-item__val a { color: var(--ink); transition: color var(--t-fast); }
.contact-item__val a:hover { color: var(--red); }

/* Maps */
.maps-wrap { margin-top: var(--sp-5); }

.maps-placeholder {
  background: var(--ash);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  cursor: pointer;
  transition: background-color var(--t-base);
}
.maps-placeholder:hover { background: #eee; }
.maps-placeholder svg { color: var(--mid); opacity: 0.5; }
.maps-placeholder__text { font-size: 0.875rem; color: var(--mid); text-align: center; padding: 0 var(--sp-3); }
.maps-placeholder__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--red);
  margin-top: 4px;
}

.maps-iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: none;
  display: none;
}
.maps-iframe.loaded { display: block; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}

.about-intro__text p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.about-intro__text p:last-child { margin-bottom: 0; }

.about-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ash);
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Red accent block on image */
.about-img::before {
  content: '';
  position: absolute;
  bottom: -var(--sp-3);
  right: -var(--sp-3);
  width: 120px;
  height: 120px;
  background: var(--red);
  z-index: -1;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.value-card {
  padding: var(--sp-4);
  background: var(--ash);
  border-bottom: 3px solid transparent;
  transition: border-color var(--t-base);
}
.value-card:hover { border-bottom-color: var(--red); }

.value-card__icon { color: var(--red); margin-bottom: var(--sp-2); }
.value-card__title { font-size: 1.0625rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.value-card__desc { font-size: 0.9rem; color: var(--mid); line-height: 1.65; }

.region-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.region-tag {
  background: var(--black);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  letter-spacing: 0.02em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  padding: var(--sp-7) 0 0;
  border-top: 1px solid var(--border-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.25fr 1.25fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-dark);
}

.footer__logo { height: 150px; width: auto; margin-bottom: var(--sp-3); }

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 32ch;
  margin-bottom: var(--sp-3);
}

.footer__addr {
  font-style: normal;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

.footer__col-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: var(--sp-3);
}

.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav-link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast);
}
.footer__nav-link:hover { color: var(--white); }

.footer__phone-big {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: var(--sp-2);
  transition: opacity var(--t-fast);
}
.footer__phone-big:hover { opacity: 0.8; }

.footer__contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color var(--t-fast);
}
.footer__contact-row:hover { color: var(--white); }
.footer__contact-row svg { color: var(--red); flex-shrink: 0; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
}

.footer__copy { font-size: 0.8125rem; color: rgba(255,255,255,0.25); }

.footer__legal { display: flex; gap: var(--sp-3); }
.footer__legal-link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.25);
  transition: color var(--t-fast);
}
.footer__legal-link:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-float);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: transform var(--t-base), box-shadow var(--t-base), opacity var(--t-base);
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
}
.wa-float.visible { opacity: 1; pointer-events: auto; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(0,0,0,0.4); }
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: calc(var(--z-float) - 10);
  background: var(--black);
  border-top: 2px solid var(--red);
  padding: var(--sp-3) var(--gutter);
  display: none;
}
.cookie-banner.visible { display: block; }

.cookie-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  flex: 1;
  min-width: 240px;
  line-height: 1.5;
}
.cookie-banner__text a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

.cookie-banner__actions { display: flex; gap: var(--sp-2); flex-shrink: 0; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content { max-width: 780px; }

.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: var(--sp-5) 0 var(--sp-2);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: var(--sp-4) 0 var(--sp-2);
  color: var(--ink);
}

.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: var(--sp-3);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.legal-content ul li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 6px;
}

.legal-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

.legal-notice {
  background: #FFF8E1;
  border-left: 4px solid #F9A825;
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-5);
  font-size: 0.875rem;
  color: #5D4037;
  line-height: 1.65;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__tagline { display: none; }
  .nav__logo img { height: 78px; }

  .about-intro { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: var(--sp-5); }
}

@media (max-width: 767px) {
  :root {
    --nav-h: 110px;
  }
  .nav__logo img { height: 70px; }
  .footer__logo { height: 90px; }

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

  .hero__content { padding: var(--sp-6) var(--gutter); }
  .hero__actions { flex-direction: column; align-items: flex-start; }

  .trust-bar__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .trust-bar__item {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
    padding: 12px var(--sp-3);
    white-space: normal;
  }
  .trust-bar__item:nth-child(odd) { border-right: 1px solid var(--border-dark); }
  .trust-bar__item:nth-last-child(-n+2) { border-bottom: none; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; margin-left: 0; }
  .service-card:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .service-card:last-child { border-bottom: none; }

  .slider-grid-2,
  .slider-grid-3,
  .gallery-grid { grid-template-columns: 1fr; }

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

  .cta-section__inner { flex-direction: column; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-5); }

  .page-header { padding: var(--sp-5) 0 var(--sp-4); }

  .nav__phone .nav__phone-text { display: none; }
}

@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
  .hero__actions .btn { width: auto; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SCROLL REVEAL + MICRO-INTERACTIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.16,1,0.3,1), transform 700ms cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger: applied via JS data-delay, kept as utility */
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* Hero entrance — fires on load, not scroll */
.hero__overline,
.hero__title,
.hero__sub,
.hero__actions {
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn 900ms cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero__overline { animation-delay: 200ms; }
.hero__title    { animation-delay: 350ms; }
.hero__sub      { animation-delay: 550ms; }
.hero__actions  { animation-delay: 750ms; }
.hero-brand img {
  opacity: 0;
  animation: heroBrandIn 1200ms cubic-bezier(0.16,1,0.3,1) 100ms forwards;
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroBrandIn {
  to { opacity: 0.4; }
}

/* Service card hover lift */
.service-card {
  transition: transform var(--t-base), box-shadow var(--t-base), background-color var(--t-base);
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-card__icon {
  transition: transform var(--t-base), color var(--t-base);
}
.service-card:hover .service-card__icon {
  transform: scale(1.08) rotate(-3deg);
  color: var(--red);
}

/* Gallery / value card hover */
.gallery-item,
.value-card {
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.gallery-item:hover {
  transform: translateY(-3px);
}

/* Button micro-interaction */
.btn {
  transition: transform var(--t-fast), background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* WhatsApp pulse */
.wa-float.visible {
  animation: waPulse 2.4s ease-in-out 1.5s infinite;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 4px 18px rgba(37,211,102,0.4), 0 0 0 14px rgba(37,211,102,0); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__overline,
  .hero__title,
  .hero__sub,
  .hero__actions { opacity: 1; transform: none; }
  .hero-brand img { opacity: 0.4; }
}
