/* ==========================================================================
   Wille Wohnen Immobilienservice GmbH — Stylesheet
   ========================================================================== */

:root {
  --color-primary: #3fa9f5;
  --color-primary-dark: #2b86cc;
  --color-primary-light: #eaf5fd;
  --color-ink: #12161c;
  --color-ink-soft: #454c56;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f8fb;
  --color-surface: #ffffff;
  --color-border: #e3e9ef;
  --color-white: #ffffff;
  --color-charcoal: #12161c;
  --header-bg: rgba(255, 255, 255, 0.92);

  --font-base: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(18, 22, 28, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 22, 28, 0.12);

  --container-width: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary: #55b8ff;
    --color-primary-dark: #8dd0ff;
    --color-primary-light: #17293a;
    --color-ink: #eef2f6;
    --color-ink-soft: #a7b1bd;
    --color-bg: #0e1218;
    --color-bg-alt: #151b23;
    --color-surface: #1a212b;
    --color-border: #2a323d;
    --header-bg: rgba(14, 18, 24, 0.86);
  }
}

:root[data-theme="dark"] {
  --color-primary: #55b8ff;
  --color-primary-dark: #8dd0ff;
  --color-primary-light: #17293a;
  --color-ink: #eef2f6;
  --color-ink-soft: #a7b1bd;
  --color-bg: #0e1218;
  --color-bg-alt: #151b23;
  --color-surface: #1a212b;
  --color-border: #2a323d;
  --header-bg: rgba(14, 18, 24, 0.86);
}

body {
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.eyebrow {
  display: inline-block;
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-head p {
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(63, 169, 245, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-dark {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.btn-dark:hover {
  background: #000;
}

.btn-block {
  width: 100%;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Header / Nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.25s ease, box-shadow 0.2s ease, padding 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(18, 22, 28, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

.site-header.scrolled .nav {
  padding: 12px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 76px;
  width: auto;
  transition: height 0.2s ease;
}

.site-header.scrolled .nav-logo img {
  height: 58px;
}

.nav-logo .logo-dark-img {
  display: block;
}

.nav-logo .logo-light-img {
  display: none;
}

:root[data-theme="dark"] .nav-logo .logo-dark-img {
  display: none;
}

:root[data-theme="dark"] .nav-logo .logo-light-img {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-logo .logo-dark-img {
    display: none;
  }

  :root:not([data-theme="light"]) .nav-logo .logo-light-img {
    display: block;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  padding: 6px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
  padding: 10px 18px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-ink);
}

.nav-links a.active {
  color: var(--color-primary-dark);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-actions .btn {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--color-white);
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 22, 30, 0.78) 0%, rgba(15, 22, 30, 0.55) 45%, rgba(15, 22, 30, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--color-primary);
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-page {
  min-height: 46vh;
  padding: 150px 0 70px;
}

/* ---- Trust bar ------------------------------------------------------------ */
.trust-bar {
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 22px 0;
}

.trust-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.trust-bar li {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease;
}

.trust-bar li:hover {
  transform: translateY(-2px);
}

.trust-bar li svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ---- Intro / About-on-home ------------------------------------------------ */
.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.intro-grid img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.logo-animation-box {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4 / 5;
  background: radial-gradient(circle at 50% 45%, var(--color-primary-light) 0%, var(--color-bg-alt) 70%);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-animation-box img {
  width: 48%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(63, 169, 245, 0.35));
  animation: logoLoop 4.5s ease-in-out infinite;
}

.logo-animation-box .logo-light-img {
  display: none;
}

:root[data-theme="dark"] .logo-animation-box .logo-dark-img {
  display: none;
}

:root[data-theme="dark"] .logo-animation-box .logo-light-img {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-animation-box .logo-dark-img {
    display: none;
  }

  :root:not([data-theme="light"]) .logo-animation-box .logo-light-img {
    display: block;
  }
}

@keyframes logoLoop {
  0%, 100% {
    transform: scale(1) rotate(0deg) translateY(0);
  }
  50% {
    transform: scale(1.1) rotate(-4deg) translateY(-6px);
  }
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border);
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}

.video-placeholder .play-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder .play-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary-dark);
}

.video-placeholder strong {
  color: var(--color-ink);
  font-size: 1.05rem;
}

.video-placeholder span {
  color: var(--color-ink-soft);
  font-size: 0.92rem;
  max-width: 220px;
}

.intro-grid h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.intro-grid p {
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}

/* ---- Service cards -------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card .media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-primary-light);
}

.service-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .media img {
  transform: scale(1.06);
}

.service-card .media.icon-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card .media.icon-media svg {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
}

.service-card .body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.service-card .tag {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* Detailed service sections on leistungen.html */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--color-border);
  scroll-margin-top: 100px;
}

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

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

.service-detail .media-col img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-detail .media-col.icon-box {
  aspect-ratio: 4 / 3;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail .media-col.icon-box svg {
  width: 96px;
  height: 96px;
  color: var(--color-primary);
}

.service-detail .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 800;
  margin-bottom: 16px;
}

.service-detail h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.service-detail p {
  color: var(--color-ink-soft);
  font-size: 1.02rem;
}

/* ---- Values / icon list ---------------------------------------------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
}

.value-card .icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.value-card .icon-circle svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary-dark);
}

.value-card h3 {
  font-size: 1.1rem;
}

.value-card p {
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- CTA band --------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--color-charcoal) 0%, #1c2733 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  margin: 0 24px;
  max-width: calc(var(--container-width) - 48px);
  margin-left: auto;
  margin-right: auto;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0 auto 28px;
}

.cta-band .cta-row {
  justify-content: center;
}

/* ---- Team / About ------------------------------------------------------ */
.team-hero-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.team-hero-wrap img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-columns img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---- Gallery ------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-grid button {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid button:hover img {
  transform: scale(1.07);
}

.gallery-grid .tall {
  grid-row: span 2;
  aspect-ratio: 3 / 5;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 13, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(900px, 92vw);
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---- Contact page -------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item .icon-circle {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item .icon-circle svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary-dark);
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--color-ink-soft);
  font-size: 0.98rem;
}

.contact-item a:hover {
  color: var(--color-primary-dark);
}

.placeholder-note {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b5590f;
  background: #fff3e6;
  border: 1px solid #f6d9b8;
  padding: 3px 9px;
  border-radius: 999px;
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Legal pages --------------------------------------------------------- */
.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}

.legal-content p,
.legal-content li {
  color: var(--color-ink-soft);
}

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

.fill-me {
  color: #b5590f;
  background: #fff3e6;
  border: 1px solid #f6d9b8;
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92em;
}

.legal-notice {
  background: var(--color-primary-light);
  border: 1px solid #cfe8fb;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 40px;
  font-size: 0.95rem;
}

/* ---- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

.footer-grid h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

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

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 980px) {
  .intro-grid,
  .about-columns,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 760px) {
  .nav-links,
  .nav-actions .btn-outline-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    background: var(--color-surface);
    padding: 12px 24px 20px;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .site-header.menu-open .nav-links a {
    width: 100%;
    padding: 12px 4px;
    border-radius: 0;
  }

  .site-header.menu-open .nav-links a.active {
    background: none;
    box-shadow: none;
  }

  .hero {
    min-height: auto;
    padding: 130px 0 70px;
    text-align: left;
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-bar ul {
    gap: 10px 22px;
    font-size: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-band {
    padding: 40px 24px;
    margin: 0 16px;
  }
}

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

/* ---- Scroll-reveal & motion --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-group .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.reveal-group .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.reveal-group .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal-group .reveal:nth-child(5) {
  transition-delay: 0.32s;
}

.reveal-group .reveal:nth-child(6) {
  transition-delay: 0.4s;
}

.reveal-group .reveal:nth-child(7) {
  transition-delay: 0.48s;
}

.reveal-group .reveal:nth-child(8) {
  transition-delay: 0.56s;
}

.reveal-group .reveal:nth-child(9) {
  transition-delay: 0.64s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-bg img {
    animation: none;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
