/* Real Clean Facility Management — stylesheet */

:root {
  --bg: #0e1a3a;
  --bg-alt: #0b1530;
  --surface: #132353;
  --surface-2: #1a2b57;
  --line: rgba(255,255,255,.1);
  --fg: #f3f5fa;
  --muted: #b9c3e0;
  --accent: #2f6fed;
  --accent-2: #4c86ff;
  --on-accent: #ffffff;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1160px;
  --font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", ui-serif, Georgia, serif;
}

html[data-theme="light"] {
  --bg: #f3f5fa;
  --bg-alt: #e9edf7;
  --surface: #ffffff;
  --surface-2: #eef1fa;
  --line: rgba(14,26,58,.1);
  --fg: #0e1a3a;
  --muted: #4a5578;
  --accent: #2f6fed;
  --accent-2: #1f57d1;
  --on-accent: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }
p { margin: 0 0 12px; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
}

.section-lead { max-width: 60ch; }

a { color: var(--accent-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--on-accent);
  box-shadow: 0 10px 24px -6px rgba(47,111,237,.55);
}
.btn-primary:hover { box-shadow: 0 14px 32px -6px rgba(47,111,237,.7); }
.btn-outline { border-color: rgba(255,255,255,.5); color: var(--fg); }
.btn-outline:hover { border-color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); }
html[data-theme="light"] .btn-outline { border-color: rgba(14,26,58,.35); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.brand-mark-photo {
  display: inline-block;
  position: relative;
  overflow: hidden;
  width: 102px;
  height: 84px;
  flex-shrink: 0;
  background-image: url(../images/rc-mark.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: contrast(1.18) brightness(1.06) saturate(1.08);
}
.brand-mark-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.7) 48%, rgba(255,255,255,.15) 54%, transparent 65%);
  background-size: 260% 260%;
  background-position: 130% 0%;
  mix-blend-mode: overlay;
  transition: background-position .8s ease;
  pointer-events: none;
}
.brand:hover .brand-mark-photo::after { background-position: -30% 0%; }
.brand-sub { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.brand-sub-standalone { font-size: .72rem; }

.main-nav { display: flex; gap: 22px; flex: 1; justify-content: center; flex-wrap: wrap; }
.main-nav a { color: var(--fg); text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .85; }
.main-nav a:hover { opacity: 1; color: var(--accent-2); }
.main-nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: flex-end; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(14,26,58,.85) 0%, rgba(14,26,58,.78) 48%, rgba(14,26,58,.55) 66%, rgba(14,26,58,.18) 86%, rgba(14,26,58,0) 100%),
    linear-gradient(180deg, rgba(14,26,58,.08) 0%, rgba(14,26,58,.32) 55%, rgba(14,26,58,.72) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 100px 24px 72px; max-width: 760px; }
.hero-content h1 { color: #ffffff; }
.hero-lead { color: #dfe6f7; font-size: 1.1rem; max-width: 56ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-actions .btn-outline,
html[data-theme="light"] .hero-actions .btn-outline { border-color: rgba(255,255,255,.6); color: #ffffff; }

.hero-float-card {
  position: absolute;
  right: 6%;
  bottom: 68px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 14px;
  border-radius: 999px;
  background: rgba(20,32,66,.72);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 20px 44px -12px rgba(0,0,0,.6);
  color: #fff;
  perspective: 700px;
  animation: hero-float 4.5s ease-in-out infinite;
  animation-delay: 1.4s;
}
.hero-float-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--accent-2), var(--accent));
  color: #fff;
}
.hero-float-text { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.hero-float-text strong { font-size: .88rem; }
.hero-float-text small { font-size: .74rem; opacity: .75; }
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
body.js-tilt-entrance .hero-float-card {
  opacity: 0;
  transform: perspective(700px) rotateX(-40deg) translateY(30px);
  animation: none;
  transition: transform .8s cubic-bezier(.2,.7,.3,1), opacity .8s ease;
}
body.js-tilt-entrance .hero-float-card.tilt-entered {
  opacity: 1;
  transform: none;
  animation: hero-float 4.5s ease-in-out infinite;
  animation-delay: .3s;
}
@media (max-width: 700px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .hero-float-card {
    position: static;
    align-self: center;
    margin: 0 auto 32px;
  }
  body.js-tilt-entrance .hero-float-card { transform: perspective(700px) rotateX(-40deg) translateY(30px); }
  body.js-tilt-entrance .hero-float-card.tilt-entered { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float-card { animation: none; opacity: 1; transform: none; }
}

/* Feature strip */
.feature-strip { position: relative; background: var(--surface); border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.feature-strip-divider {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 48px;
  transform: translateY(-99%);
  z-index: 1;
}
.feature-strip-divider path { fill: var(--surface); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  color: var(--accent-2);
  background: linear-gradient(155deg, rgba(76,134,255,.18), rgba(76,134,255,.05));
  box-shadow: inset 0 0 0 1px rgba(76,134,255,.25);
}
.feature-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 720px; }
.feature h3 { font-family: var(--font-sans); font-size: 1.05rem; margin-bottom: 6px; }
.feature p { font-size: .92rem; margin: 0; }

/* Service sections */
.service-section { padding: 76px 0; }
.service-section.alt { background: var(--bg-alt); }
.service-intro {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}
.service-intro.reverse { grid-template-columns: 1fr minmax(280px, 460px); }
.service-intro.reverse .service-media { order: 2; }
.service-intro.reverse .service-copy { order: 1; }
.service-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 60px -12px rgba(0,0,0,.5); aspect-ratio: 480 / 340; }
.service-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.08); transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.service-media:hover img { transform: scale(1.06); }
.service-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(47,111,237,.32) 0%, rgba(14,26,58,.15) 45%, rgba(14,26,58,.55) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.service-media::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  border-radius: inherit;
  pointer-events: none;
}
.service-copy p { font-size: 1.02rem; max-width: 52ch; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 14px 30px -18px rgba(0,0,0,.5);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: .6;
}
.card::after {
  content: "";
  position: absolute;
  top: -40%; right: -30%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(76,134,255,.16), transparent 70%);
  pointer-events: none;
}
.card p { font-size: .92rem; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; display: flex; flex-direction: column; gap: 5px; }

/* About */
.about-section { padding: 76px 0; background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 60px -12px rgba(0,0,0,.5); aspect-ratio: 320 / 340; }
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(1.1) contrast(1.08); }
.about-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(47,111,237,.28) 0%, transparent 50%, rgba(14,26,58,.5) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.about-media::before {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  border-radius: inherit;
  pointer-events: none;
}
.about-copy p { font-size: 1.02rem; max-width: 58ch; }

/* Process */
.process-section { padding: 76px 0; }
.process-grid {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-step {
  position: relative;
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px 22px;
  overflow: hidden;
  box-shadow: 0 14px 30px -20px rgba(0,0,0,.5);
}
.process-step::after {
  content: "";
  position: absolute;
  top: -30%; right: -20%;
  width: 55%; height: 70%;
  background: radial-gradient(circle, rgba(76,134,255,.14), transparent 70%);
  pointer-events: none;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem;
  color: var(--accent-2);
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(155deg, rgba(76,134,255,.2), rgba(76,134,255,.05));
  box-shadow: inset 0 0 0 1px rgba(76,134,255,.3);
}
.process-step p { position: relative; font-size: .9rem; margin: 0; }

/* FAQ */
.faq-section { padding: 76px 0; background: var(--surface); }
.accordion { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.accordion-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.accordion-item h3 { margin: 0; }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
}
.accordion-icon {
  flex-shrink: 0; font-size: 1.2rem; color: var(--accent-2); line-height: 1;
  display: inline-block; transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: perspective(200px) rotateY(180deg) rotateZ(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  padding: 0 20px;
}
.accordion-panel p { padding-bottom: 18px; margin: 0; font-size: .92rem; }
.accordion-item.open .accordion-panel { max-height: 220px; }

/* Estimator */
.estimator-section { padding: 76px 0; }
.estimator-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.field-group { margin-bottom: 26px; }
.field-group:last-child { margin-bottom: 0; }
.field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: .85rem;
  cursor: pointer;
}
.pill[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.estimator-result {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.estimate-value { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; color: var(--accent-2); margin: 0; }
.estimate-note { font-size: .82rem; margin: 0 0 8px; }

/* Contact */
.contact-section { padding: 76px 0; background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-list { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.contact-list a { color: var(--fg); }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 20px; }
.whatsapp-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: #25D366; font-weight: 600; text-decoration: none;
}
.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; }
.contact-form input, .contact-form textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  resize: vertical;
}
.form-status { color: var(--accent-2); font-weight: 600; margin: 0; }

/* Footer */
.site-footer { position: relative; background: var(--bg-alt); padding: 56px 0 24px; }
.footer-divider {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40px;
  transform: translateY(-100%);
}
.footer-divider path { fill: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid nav, .footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer-grid h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-family: var(--font-sans); }
.footer-grid a { color: var(--fg); text-decoration: none; font-size: .92rem; opacity: .85; }
.footer-grid a:hover { opacity: 1; }
.footer-brand { display: inline-block; position: relative; overflow: hidden; text-decoration: none; perspective: 700px; }
.footer-logo-full {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
  filter: contrast(1.12) brightness(1.04) saturate(1.06);
}
.footer-brand:hover .footer-logo-full { transform: rotateY(-10deg) rotateX(4deg) translateZ(6px); }
.footer-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.6) 48%, rgba(255,255,255,.15) 54%, transparent 65%);
  background-size: 260% 260%;
  background-position: 130% 0%;
  mix-blend-mode: overlay;
  transition: background-position .8s ease;
  pointer-events: none;
}
.footer-brand:hover::after { background-position: -30% 0%; }
.footer-tagline { font-size: .88rem; margin-top: 14px; max-width: 32ch; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: .8rem; margin: 0; }

/* Floating buttons */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 92px;
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 54px; height: 54px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  z-index: 90;
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-primary { display: none; }
  .brand-sub { display: none; }
  .hero-media img { object-position: 50% 60%; }
  .feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .service-intro, .service-intro.reverse { grid-template-columns: 1fr; }
  .service-intro.reverse .service-media, .service-intro.reverse .service-copy { order: initial; }
  .card-grid-2, .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .estimator-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .card-grid-2, .card-grid-4 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 76px 20px 56px; }
}

/* Utilities */
.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;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}
.preloader-mark {
  width: 100px; height: 72px;
  background-color: var(--accent-2);
  -webkit-mask-image: url(../images/logo-mark.png);
  mask-image: url(../images/logo-mark.png);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  animation: preloader-pulse 1.1s ease-in-out infinite;
}
@keyframes preloader-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.9); opacity: .6; } }
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .preloader-mark { animation: none; } }

/* Scroll reveal — visible by default; JS opts in to the hidden/animated state
   so content never disappears if JS fails, loads late, or a renderer doesn't
   dispatch real scroll/intersection events (progressive enhancement). */
.reveal {
  opacity: 1; transform: none;
  transform-style: preserve-3d;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}
body.js-reveal .reveal { opacity: 0; transform: perspective(900px) rotateX(-10deg) translateY(36px); }
body.js-reveal .reveal.in-view { opacity: 1; transform: perspective(900px) rotateX(0) translateY(0); }
@media (prefers-reduced-motion: reduce) {
  body.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* 3D hover-tilt cards: JS tracks the cursor and sets --rx/--ry per element;
   this just applies them as a perspective transform. Falls back to a flat
   card (no JS, or reduced-motion) since the custom properties default to 0. */
.tilt-3d {
  --rx: 0deg;
  --ry: 0deg;
  --tz: 0px;
  --ty: 0px;
  --sc: 1;
  opacity: 1;
  transform: perspective(800px) translateY(var(--ty)) scale(var(--sc)) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(var(--tz));
  transition: transform .6s cubic-bezier(.2,.7,.3,1), box-shadow .5s ease, opacity .6s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Scroll-triggered 3D entrance — every tilt card flies in individually as it
   scrolls into view, on touch devices too (not just desktop mouse-hover).
   Visible by default; JS opts into the hidden pre-entrance state so nothing
   ever gets stuck invisible if a script fails or loads late. */
body.js-tilt-entrance .tilt-3d:not(.tilt-entered) { opacity: 0; }
.tilt-3d.tilt-active { transition: transform .08s linear; box-shadow: 0 22px 40px rgba(0,0,0,.35); }
@media (prefers-reduced-motion: reduce) {
  .tilt-3d { transform: none !important; transition: none; opacity: 1 !important; }
}

/* 3D button press */
.btn { transform-style: preserve-3d; transform: perspective(600px) translateZ(0); }
.btn:hover { transform: perspective(600px) translateZ(6px) translateY(-2px); }
.btn:active { transform: perspective(600px) translateZ(1px) translateY(0); }

/* 3D nav link lift */
.main-nav a { display: inline-block; transform-style: preserve-3d; transition: transform .3s ease, opacity .2s ease, color .2s ease; }
.main-nav a:hover { transform: perspective(400px) translateZ(8px) rotateX(6deg); }

/* 3D logo hover */
.brand { perspective: 500px; }
.brand-mark-photo { transition: transform .4s cubic-bezier(.2,.7,.3,1); transform-style: preserve-3d; }
.brand:hover .brand-mark-photo { transform: rotateY(18deg) rotateX(6deg); }

/* 3D floating action buttons */
.scroll-top, .whatsapp-fab { transform-style: preserve-3d; transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease; }
.scroll-top:hover, .whatsapp-fab:hover { transform: perspective(500px) rotateY(360deg) translateZ(4px); }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active,
  .main-nav a, .main-nav a:hover,
  .brand-mark-photo, .brand:hover .brand-mark-photo,
  .footer-logo-full, .footer-brand:hover .footer-logo-full,
  .scroll-top, .scroll-top:hover, .whatsapp-fab, .whatsapp-fab:hover {
    transform: none !important; transition: none !important;
  }
}

/* Active nav link (scrollspy) */
.main-nav a.active { opacity: 1; color: var(--accent-2); }

/* Trust badges */
.trust-strip { background: var(--surface); padding: 26px 0; border-bottom: 1px solid var(--line); }
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
}
.trust-badge svg {
  color: var(--accent-2);
  flex-shrink: 0;
  background: radial-gradient(circle, rgba(76,134,255,.18), transparent 75%);
  border-radius: 50%;
  padding: 7px;
  width: 34px; height: 34px;
  box-sizing: border-box;
}

/* Stats */
.stats-section { position: relative; padding: 60px 0; background: var(--bg-alt); overflow: hidden; }
.stats-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(76,134,255,.12), transparent 60%),
    radial-gradient(600px 300px at 85% 100%, rgba(76,134,255,.1), transparent 60%);
  pointer-events: none;
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: var(--radius); }
.stat-value { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 700; background: linear-gradient(160deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-suffix { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; background: linear-gradient(160deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 10px; font-size: .85rem; color: var(--muted); }

/* Service section supporting-photo strip */
.service-gallery {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.service-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.service-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.service-gallery figure:hover img { transform: scale(1.06); }
.service-gallery figure:only-child { max-width: 420px; }

.team-role { color: var(--accent-2); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.symbolbild-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  vertical-align: middle;
}

/* Unser Versprechen */
.promise-section { padding: 76px 0; }
.promise-section .card-grid-4 { margin-top: 32px; }
.promise-section .card h3 { font-size: 1.02rem; margin: 0 0 6px; }
.promise-section .card p { margin: 0; }

/* Career */
.career-section {
  position: relative;
  padding: 52px 0;
  background-image: url(../images/career.jpg);
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
.career-section::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent-2) 88%, transparent) 0%, color-mix(in srgb, var(--accent) 80%, transparent) 55%, rgba(20,15,40,.82) 130%),
    radial-gradient(500px 260px at 90% 0%, rgba(255,255,255,.16), transparent 60%);
  pointer-events: none;
}
.career-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.career-inner h2, .career-inner p { color: #fff; }
.career-inner p { opacity: .92; margin: 0; max-width: 56ch; }
.btn-dark { border-color: rgba(255,255,255,.6); color: #fff; flex-shrink: 0; }

/* Map */
.map-embed { position: relative; margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-fallback {
  min-height: 260px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 20px;
  background: linear-gradient(155deg, var(--surface), var(--surface-2));
  color: var(--fg);
}
.map-fallback-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 4px;
  background: linear-gradient(155deg, var(--accent-2), var(--accent)); color: #fff;
}
.map-fallback span:not(.map-fallback-icon) { font-size: .88rem; color: var(--muted); }
.map-fallback .btn { margin-top: 8px; }

/* Footer newsletter + legal */
.footer-newsletter form { display: flex; gap: 8px; margin-top: 4px; }
.footer-newsletter input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font-size: .85rem;
}
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-legal a { color: var(--muted); font-size: .8rem; }
.footer-ai-notice { flex-basis: 100%; margin: 0; font-size: .76rem; color: var(--muted); opacity: .8; }
.footer-ai-notice a { color: var(--muted); text-decoration: underline; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  max-width: 640px;
  margin: 0 auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { padding: 20px 22px; }
.cookie-banner p { font-size: .88rem; margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Mobile sticky CTA bar */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: none;
  gap: 1px;
  background: var(--line);
  box-shadow: 0 -8px 24px rgba(0,0,0,.3);
}
.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
}
.mobile-cta-primary { background: var(--accent); color: #fff; }

@media (max-width: 980px) {
  .mobile-cta-bar { display: flex; }
  .whatsapp-fab { bottom: 78px; }
  .scroll-top { bottom: 142px; }
}

/* Legal pages */
.legal-section { padding: 64px 0 96px; }
.legal-content { max-width: 760px; }
.legal-content h1 { margin-bottom: 24px; }
.legal-content h2 { font-family: var(--font-sans); font-size: 1.1rem; margin-top: 32px; }
.legal-content p { font-size: .95rem; }
.legal-note { margin-top: 40px; padding: 14px 16px; border-radius: 8px; background: var(--surface-2); font-size: .82rem; }

/* 404 page */
.error-section { padding: 120px 0; text-align: center; }
.error-content { max-width: 560px; margin: 0 auto; }
.error-links { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

/* Mobile nav drawer */
body.nav-open .main-nav {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  justify-content: flex-start;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  width: auto;
  margin: 0;
  background: var(--bg);
  flex-direction: column;
  padding: 24px;
  gap: 4px;
  z-index: 99;
  overflow-y: auto;
}
body.nav-open .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
body.nav-open .main-nav .nav-cta { display: block; color: var(--accent-2); font-weight: 700; border-bottom: none; }

/* Responsive overrides for components defined above (must come after their
   base rules so the cascade picks them up at these widths). */
@media (max-width: 980px) {
  .trust-grid { justify-content: center; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-value { font-size: 2rem; }
  .career-inner { flex-direction: column; align-items: flex-start; }
  .footer-newsletter form { flex-direction: column; }
}
