/* Montix Bauelemente — modern static site */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --white: #ffffff;
  --grey-50: #f8f9fb;
  --grey-100: #f1f3f7;
  --grey-200: #e4e8ef;
  --grey-400: #94a3b8;
  --grey-600: #64748b;
  --grey-800: #1e293b;
  --grey-900: #0f172a;
  --blue-900: #0c2340;
  --blue-800: #1b3a6b;
  --blue-700: #234876;
  --blue-600: #2d5a8f;
  --blue-500: #3b72b4;
  --blue-100: #e8eef7;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(12, 35, 64, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --header-top: 72px;
  --header-nav: 56px;
  --header-total: calc(var(--header-top) + var(--header-nav));
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grey-800);
  background: var(--grey-50);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.container--narrow {
  width: min(860px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ── Header ── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-top {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  height: var(--header-top);
  display: flex;
  align-items: center;
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 52px;
  width: auto;
}

.header-top__contact {
  display: none;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--grey-600);
}

.header-top__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-top__pipe {
  color: var(--grey-300);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1;
  user-select: none;
}

.header-top__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--grey-700);
}

.header-top__phone-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--blue-700);
  transition: color 0.2s;
}

.header-top__phone:hover {
  color: var(--blue-800);
}

.header-top__phone:hover .header-top__phone-icon {
  color: var(--blue-800);
}

.header-top__email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--grey-700);
}

.header-top__email-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--blue-700);
  transition: color 0.2s;
}

.header-top__email:hover {
  color: var(--blue-800);
}

.header-top__email:hover .header-top__email-icon {
  color: var(--blue-800);
}

@media (min-width: 900px) {
  .header-top__contact {
    display: flex;
  }
}

.header-top__link {
  font-weight: 600;
  color: var(--grey-700);
  white-space: nowrap;
}

.header-top__link:hover,
.header-top__link--active {
  color: var(--blue-800);
}

.header-top__sep {
  width: 1px;
  height: 1rem;
  background: var(--grey-300);
  flex-shrink: 0;
}

.header-top__meta {
  white-space: nowrap;
}

.header-top__meta:hover {
  color: var(--blue-800);
}

.header-nav {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  height: var(--header-nav);
  overflow: visible;
}

.header-nav__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
  height: 100%;
  overflow: visible;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  height: 100%;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
}

.nav-main > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-main > li > a,
.nav-main > li > button.nav-link,
.nav-main > li > .nav-item-split > .nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.75rem;
  height: 100%;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-main > li > a:hover,
.nav-main > li > button.nav-link:hover,
.nav-main > li > .nav-item-split > .nav-link:hover,
.nav-main > li > a.active,
.nav-main > li.is-open > button.nav-link,
.nav-main > li.is-open > .nav-item-split > .nav-link {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-main .chevron {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.25s var(--ease);
}

.nav-main li.is-open .chevron {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 1100;
}

.nav-main li.is-open > .dropdown:not(.mega-dropdown),
.nav-main li.has-dropdown:hover > .dropdown,
.nav-main li.has-dropdown.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--grey-800);
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background: var(--blue-100);
  color: var(--blue-800);
}

.dropdown a span {
  display: block;
  font-size: 0.75rem;
  color: var(--grey-600);
  margin-top: 0.15rem;
  font-weight: 400;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.social-links svg {
  width: 16px;
  height: 16px;
}

.btn-angebot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(59, 114, 180, 0.35);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  white-space: nowrap;
}

.btn-angebot:hover {
  background: #4a8fd4;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(59, 114, 180, 0.45);
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

@media (min-width: 1200px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle__label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.menu-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  flex-shrink: 0;
}

.menu-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.is-active .menu-toggle__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .menu-toggle__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1199px) {
  .header-nav__inner {
    justify-content: space-between;
    gap: 0.75rem;
    width: min(1180px, calc(100% - 2rem));
  }

  .header-actions {
    order: 1;
    margin-left: 0;
  }

  .header-actions .btn-angebot {
    order: 1;
  }

  .header-actions .social-links {
    order: 2;
  }

  .menu-toggle {
    order: 2;
    flex-shrink: 0;
  }

  .nav-main {
    position: fixed;
    top: var(--header-total);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--blue-900);
    padding: 0.5rem 0.75rem 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 1200;
  }

  .nav-main.is-open {
    transform: translateX(0);
  }

  .nav-main > li {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-main > li > a,
  .nav-main > li > button.nav-link,
  .nav-main > li > .nav-item-split > .nav-link {
    padding: 0.65rem 0.85rem;
    height: auto;
    min-height: 44px;
  }

  .nav-item-split {
    flex-direction: row;
  }

  .nav-link--toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0 0.75rem !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-main li.has-mega.is-open > .dropdown,
  .nav-main li.has-dropdown.is-open > .dropdown {
    display: block;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin: 0 0.35rem 0.35rem;
    padding: 0.2rem 0;
    display: none;
  }

  .nav-main li.is-open .dropdown {
    display: block;
  }

  .dropdown a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
  }

  .dropdown a span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
  }

  .dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
  }
}

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-total);
  overflow: hidden;
  background: var(--grey-100);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1.00;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(248, 249, 251, 0.97) 0%,
    rgba(241, 243, 247, 0.92) 42%,
    rgba(232, 238, 247, 0.55) 68%,
    rgba(232, 238, 247, 0.35) 100%
  );
}

/* Hero — panel overlay (homepage) */

.hero--panel {
  align-items: stretch;
  overflow: hidden;
}

/* Mobile: image on top, text panel below */

@media (max-width: 767px) {
  .hero.hero--panel {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding-top: var(--header-total);
    padding-bottom: 0;
  }

  .hero--panel .hero__bg {
    position: relative;
    inset: auto;
    order: -1;
    flex-shrink: 0;
    height: clamp(240px, 46vw, 340px);
    overflow: hidden;
  }

  .hero--panel .hero__bg img {
    transform: none;
    object-fit: cover;
    object-position: 60% 35%;
  }

  .hero--panel .hero__layout {
    position: relative;
    order: 0;
    min-height: auto;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  .hero--panel .hero__panel {
    width: 100%;
    background: var(--blue-900);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 2rem 1.5rem 2rem;
  }

  .hero--panel .hero__title {
    max-width: none;
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .hero--panel .hero__text {
    max-width: none;
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero--panel .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero--panel .hero__actions .btn {
    width: 100%;
  }

  .hero--panel .scroll-hint {
    display: none;
  }

  .hero--panel + .bg-white {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }
}

/* Desktop: image full-bleed, panel overlay on left */

@media (min-width: 768px) {
  .hero--panel .hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .hero--panel .hero__bg img {
    opacity: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
    transform: scale(0.92);
    transform-origin: center right;
  }

  .hero--panel .hero__layout {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - var(--header-total));
  }

  .hero__panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: min(62%, 780px);
    min-height: calc(100vh - var(--header-total));
    padding: clamp(3rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5.5rem);
    background: rgba(12, 35, 64, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
  }
}

@media (min-width: 1200px) {
  .hero--panel .hero__panel {
    width: min(58%, 820px);
    padding-left: clamp(3rem, 6vw, 6rem);
  }
}

.hero--panel .hero__overlay {
  display: none;
}

.hero--panel .hero__panel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  color: var(--white);
}

.hero--panel .hero__eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.hero--panel .hero__eyebrow::before {
  background: var(--blue-500);
}

.hero--panel .hero__title {
  color: var(--white);
  max-width: 20ch;
}

.hero--panel .hero__title em {
  color: #9ec5ef;
}

.hero--panel .hero__text {
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
}

.hero--panel .scroll-hint {
  color: rgba(255, 255, 255, 0.65);
}

.hero--panel .scroll-hint__line {
  background: rgba(255, 255, 255, 0.35);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 3rem 0 6rem;
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

@media (min-width: 992px) {
  .hero__layout {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 4rem 0 6rem;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__blob-wrap {
  position: relative;
  width: min(100%, 480px);
}

.hero__blob-shadow {
  position: absolute;
  inset: 6% 4% 2% 8%;
  background: linear-gradient(145deg, var(--blue-500) 0%, var(--blue-900) 100%);
  clip-path: url(#hero-blob-clip);
  opacity: 0.22;
  transform: rotate(-4deg) scale(1.04);
  filter: blur(2px);
}

.hero__blob {
  position: relative;
  aspect-ratio: 4 / 5;
  clip-path: url(#hero-blob-clip);
  box-shadow: 0 24px 60px rgba(12, 35, 64, 0.18);
}

.hero__blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 1.5rem;
}

.hero__eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--blue-600);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--grey-900);
  max-width: 13ch;
  margin: 0 0 1.5rem;
}

@media (min-width: 992px) {
  .hero__title {
    max-width: 14ch;
  }
}

.hero__title em {
  font-style: normal;
  color: var(--blue-800);
}

.hero__text {
  font-size: 1.125rem;
  color: var(--grey-600);
  max-width: 52ch;
  margin: 0 0 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--blue-800);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(27, 58, 107, 0.25);
}

.btn--primary:hover {
  background: var(--blue-900);
}

.btn--outline {
  background: transparent;
  color: var(--blue-800);
  border-color: var(--blue-800);
}

.btn--outline:hover {
  background: var(--blue-100);
}

.btn--accent {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(59, 114, 180, 0.35);
}

.btn--accent:hover {
  background: #4a8fd4;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-600);
  animation: float 2.5s ease-in-out infinite;
}

.scroll-hint__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--blue-600), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ── */

section {
  padding: 6rem 0;
}

section.hero {
  padding-bottom: 0;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--grey-900);
  margin: 0 0 1rem;
}

.section-text {
  font-size: 1.0625rem;
  color: var(--grey-600);
  margin: 0;
}

.section-callout {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--blue-800);
  font-weight: 600;
  margin: 0.75rem 0 1.75rem;
}

.bg-white { background: var(--white); }
.bg-grey { background: var(--grey-100); }

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background-color: var(--blue-100);
  border-color: rgba(45, 90, 143, 0.12);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue-800);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--grey-800);
}

.stat-card__desc {
  font-size: 0.8125rem;
  color: var(--grey-600);
  margin-top: 0.35rem;
}

/* Service cards */

/* ── Services slider ── */

.services-slider {
  position: relative;
}

.services-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 1.25rem) / 3);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.25rem;
}

.services-grid::-webkit-scrollbar {
  display: none;
}

.services-grid > .service-card {
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-auto-columns: calc((100% - 1.25rem) / 2);
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-auto-columns: 86%;
  }
}

/* grab-and-drag with the mouse; touch devices keep native swiping */
@media (hover: hover) and (pointer: fine) {
  .services-grid {
    cursor: grab;
  }

  .services-grid.is-grabbing {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }

  .services-grid img {
    -webkit-user-drag: none;
    user-select: none;
  }
}

/* arrows — pointer devices only; touch users simply swipe */
.services-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--grey-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-800);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, opacity 0.25s, box-shadow 0.25s;
}

@media (hover: hover) and (pointer: fine) {
  .services-slider__nav {
    display: flex;
  }
}

.services-slider__nav--prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.services-slider__nav--next {
  right: 0;
  transform: translate(50%, -50%);
}

.services-slider__nav:hover {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(59, 114, 180, 0.4);
}

.services-slider__nav[disabled] {
  opacity: 0;
  pointer-events: none;
}

.services-slider__nav svg {
  width: 20px;
  height: 20px;
}

/* progress dots */
.services-slider__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.services-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--grey-400, #9aa4b2);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.25s, width 0.25s, background 0.25s;
}

.services-slider__dot.is-active {
  width: 22px;
  opacity: 1;
  background: var(--blue-500);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background-color: var(--blue-100);
  border-color: rgba(45, 90, 143, 0.12);
}

.service-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-card:hover .service-card__image img {
  transform: scale(1.05);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.75rem;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--grey-900);
  margin: 0 0 0.75rem;
}

.service-card__text {
  font-size: 0.9375rem;
  color: var(--grey-600);
  margin: 0 0 1.25rem;
  line-height: 1.6;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-800);
}

.service-card__link svg {
  width: 16px;
  transition: transform 0.25s;
}

.service-card:hover .service-card__link svg {
  transform: translateX(4px);
}

/* Homepage showcase + actions */

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.home-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .home-showcase {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.home-showcase__card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.bg-white .home-showcase__card {
  box-shadow: var(--shadow-sm);
}

.home-showcase__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background-color: var(--blue-100);
  border-color: rgba(45, 90, 143, 0.12);
}

.home-showcase__media {
  display: block;
  overflow: hidden;
}

.home-showcase__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.home-showcase__card:hover .home-showcase__media img {
  transform: scale(1.04);
}

.home-showcase__body {
  padding: 1.5rem;
}

.home-showcase__body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.home-showcase__body h3 a {
  color: var(--grey-900);
}

.home-showcase__body h3 a:hover {
  color: var(--blue-800);
}

.home-showcase__body p {
  font-size: 0.9375rem;
  color: var(--grey-600);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.home-showcase__link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue-700);
}

.home-showcase__link:hover {
  color: var(--blue-900);
}

/* Feature split */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .split--reverse .split__media {
    order: 2;
  }
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.about-page__media {
  margin-bottom: 2.5rem;
}

.about-page__media img {
  aspect-ratio: 21 / 9;
  max-height: 400px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-100);
  color: var(--blue-800);
  border-radius: 10px;
}

.feature-item__icon svg {
  width: 22px;
  height: 22px;
}

.feature-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--grey-900);
  margin: 0 0 0.25rem;
}

.feature-item__text {
  font-size: 0.9375rem;
  color: var(--grey-600);
  margin: 0;
}

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 50%);
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 1rem;
  position: relative;
}

.cta-band__text {
  font-size: 1.0625rem;
  opacity: 0.88;
  max-width: 520px;
  margin: 0 auto 2rem;
  position: relative;
}

.cta-band .btn--primary {
  background: var(--white);
  color: var(--blue-900);
  position: relative;
}

/* CTA split (homepage) */

.cta-split {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .cta-split {
    grid-template-columns: 1.15fr 1fr;
  }
}

.cta-split__primary {
  background: linear-gradient(145deg, var(--blue-800) 0%, var(--blue-900) 100%);
  color: var(--white);
  padding: clamp(2.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-split__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.cta-split__text {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.9;
  margin: 0;
  max-width: 38ch;
}

.cta-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.cta-split__aside {
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.cta-split__block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(2rem, 3vw, 2.5rem);
}

.cta-split__block + .cta-split__block {
  border-top: 1px solid var(--grey-200);
}

.cta-split__heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--grey-900);
  margin: 0 0 0.5rem;
}

.cta-split__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--grey-600);
  margin: 0 0 0.75rem;
}

.cta-split__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-top: auto;
  transition: color 0.2s, gap 0.2s;
}

.cta-split__link:hover {
  color: var(--blue-900);
  gap: 0.5rem;
}

/* Google reviews (homepage) */

.google-reviews {
  margin-top: 3rem;
}

.google-reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-bottom: 1.75rem;
}

.google-reviews__logo {
  height: 100px;
  width: auto;
  flex-shrink: 0;
}

.google-reviews__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  color: var(--grey-900);
  margin: 0 0 0.35rem;
}

.google-reviews__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--grey-700);
}

.google-reviews__stars,
.review-card__stars {
  color: #fbbc04;
  letter-spacing: 0.05em;
  font-size: 1rem;
  line-height: 1;
}

.google-reviews__rating {
  font-weight: 700;
  color: var(--grey-900);
}

.google-reviews__count {
  color: var(--grey-600);
}

.google-reviews__note {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--grey-500);
}

.google-reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .google-reviews__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.review-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background-color: var(--blue-100);
  border-color: rgba(45, 90, 143, 0.12);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.review-card__date {
  font-size: 0.75rem;
  color: var(--grey-500);
  white-space: nowrap;
}

.review-card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--grey-700);
  margin: 0 0 1rem;
}

.review-card__author {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--grey-900);
}

/* Page hero (inner pages) */

.page-hero {
  padding-top: calc(var(--header-total) + 4rem);
  padding-bottom: 4rem;
  background: linear-gradient(180deg, var(--grey-100) 0%, var(--grey-50) 100%);
  border-bottom: 1px solid var(--grey-200);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--grey-900);
  margin: 0 0 1rem;
}

.page-hero__text {
  font-size: 1.125rem;
  color: var(--grey-600);
  max-width: 60ch;
  margin: 0;
}

/* About content */

.content-block {
  max-width: 720px;
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--grey-900);
  margin: 2.5rem 0 1rem;
}

.content-block p {
  margin: 0 0 1.25rem;
  color: var(--grey-600);
}

.content-block p:first-of-type {
  font-size: 1.125rem;
  color: var(--grey-800);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 2rem;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue-800);
  margin: 0 0 0.75rem;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--grey-600);
  margin: 0;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-100);
  color: var(--blue-800);
  border-radius: 12px;
  flex-shrink: 0;
}

.contact-item__icon svg {
  width: 22px;
  height: 22px;
}

.contact-item__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin-bottom: 0.25rem;
}

.contact-item__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-900);
}

.contact-item__value a:hover {
  color: var(--blue-800);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 600px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--grey-800);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--grey-800);
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 114, 180, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-feedback--success {
  background: #ecfdf3;
  border: 1px solid #86efac;
  color: #166534;
}

.form-feedback--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* Services detail */

.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--grey-200);
}

.service-detail:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
  }

  .service-detail:nth-child(even) .service-detail__media {
    order: 2;
  }
}

.service-detail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.service-detail__media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.service-detail__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.service-detail h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--grey-900);
  margin: 0 0 1rem;
}

.service-detail p {
  color: var(--grey-600);
  margin: 0 0 1rem;
}

.service-detail ul {
  margin: 1.5rem 0 0;
}

.service-detail li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--grey-700);
}

.service-detail li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--blue-600);
  border-radius: 50%;
}

/* Footer */

.site-footer {
  background: var(--grey-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand__logo {
  display: inline-block;
  background: var(--white);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  margin-bottom: 1rem;
  line-height: 0;
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 0;
  display: block;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.9375rem;
  padding: 0.35rem 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.footer-legal__sep {
  opacity: 0.45;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.25s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

/* Animations */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
