/* ===== ReinGlas Gebäudereinigung ===== */
:root {
  --blue-900: #123a5c;
  --blue-700: #1a5c8a;
  --blue-500: #1e88c7;
  --blue-400: #3aa5e0;
  --blue-100: #e3f2fc;
  --green-500: #3fae2a;
  --ink: #12283a;
  --muted: #5b6f80;
  --bg: #f6fafd;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18, 58, 92, 0.10);
  --shadow-lg: 0 20px 50px rgba(18, 58, 92, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ===== Topbar ===== */
.topbar {
  background: var(--blue-900);
  color: #cfe6f7;
  font-size: 0.82rem;
  padding: 0.45rem 0;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(18, 58, 92, 0.08);
}
.header-inner { display: flex; align-items: center; gap: 2rem; padding: 0.65rem 0; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { height: 54px; width: 54px; object-fit: contain; }
.brand-text { font-weight: 800; font-size: 1.35rem; color: var(--blue-900); line-height: 1.1; display: flex; flex-direction: column; }
.brand-text b { font-weight: 800; }
.brand-text span { color: var(--blue-500); }
.brand-text small { font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav { display: flex; gap: 1.5rem; margin-left: auto; align-items: center; }
.nav > a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; position: relative; padding: 0.35rem 0; }
.nav > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2.5px;
  background: var(--blue-500); border-radius: 2px; transition: width 0.25s ease;
}
.nav > a:hover::after, .nav > a.active::after { width: 100%; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: 0; cursor: pointer; padding: 0.35rem 0;
  font: inherit; font-weight: 600; font-size: 0.95rem; color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.nav-chevron {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform 0.2s ease; flex-shrink: 0;
}
.nav-dropdown.open > .nav-dropdown-toggle > .nav-chevron,
.nav-submenu.open > .nav-submenu-toggle > .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; padding-top: 12px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s; z-index: 120;
}
.nav-dropdown-menu-inner {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 0.55rem; min-width: 280px; max-width: min(360px, calc(100vw - 2rem));
  border: 1px solid rgba(18, 58, 92, 0.08);
  display: flex; flex-direction: column; gap: 0.2rem;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.nav-submenu { border-radius: 12px; }
.nav-submenu-toggle {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; font-weight: 700; font-size: 0.92rem; color: var(--blue-900);
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.75rem 0.9rem; border-radius: 12px; transition: background 0.15s ease;
}
.nav-submenu-toggle:hover,
.nav-submenu.open > .nav-submenu-toggle { background: var(--bg, #f4f9fc); }
.nav-submenu-list {
  display: none; flex-direction: column; gap: 0.1rem;
  padding: 0.15rem 0.45rem 0.55rem 0.9rem;
}
.nav-submenu.open > .nav-submenu-list { display: flex; }
.nav-submenu-list a {
  text-decoration: none; color: var(--muted); font-size: 0.88rem; font-weight: 600;
  padding: 0.45rem 0.55rem; border-radius: 8px; line-height: 1.35;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-submenu-list a:hover { color: var(--blue-500); background: rgba(30, 136, 199, 0.08); }
.nav-submenu-list a::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--blue-900); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; cursor: pointer;
  border: 0; border-radius: 999px; padding: 0.7rem 1.5rem; font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; box-shadow: 0 8px 20px rgba(30, 136, 199, 0.35); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(30, 136, 199, 0.45); }
.btn-ghost { background: var(--white); color: var(--blue-700); border: 2px solid var(--blue-100); }
.btn-ghost:hover { border-color: var(--blue-400); }
.btn-light { background: #fff; color: var(--blue-900); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-light:hover { border-color: #fff; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.header-cta { white-space: nowrap; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 0;
  background: #0a2036;
}
.hero-frame {
  position: relative; overflow: hidden; border-radius: 0; box-shadow: none;
  min-height: calc(100svh - 7.25rem);
  height: calc(100svh - 7.25rem);
  display: flex; align-items: center;
}
.hero-carousel {
  position: absolute; inset: 0; overflow: hidden; z-index: 1;
}
.hero-carousel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.9s ease;
}
.hero-carousel img.active { opacity: 1; }
.hero-overlay {
  position: relative; z-index: 2; width: 100%; height: 100%; pointer-events: none;
  display: flex; align-items: center; justify-content: flex-start;
  background: linear-gradient(105deg, rgba(10, 32, 54, 0.8) 0%, rgba(10, 32, 54, 0.48) 52%, rgba(10, 32, 54, 0.2) 100%);
  padding: clamp(1.4rem, 3.5vw, 2.5rem) clamp(4rem, 7vw, 5.5rem);
  box-sizing: border-box;
}
.hero-content {
  max-width: min(34rem, 100%); pointer-events: auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.05; font-weight: 800;
  color: #fff; letter-spacing: -0.02em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
  margin: 0;
}
.hero p {
  margin: 0; font-size: clamp(0.92rem, 1.45vw, 1.1rem);
  color: rgba(255, 255, 255, 0.95); max-width: 28rem; font-weight: 500;
  line-height: 1.4; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}
.hero-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.35rem;
}
.hero .btn-lg { padding: 0.75rem 1.35rem; font-size: 0.95rem; }
.hero .btn-primary {
  background: linear-gradient(135deg, #6fc3ef, var(--blue-400));
  color: #fff; border: 0;
  box-shadow: 0 8px 20px rgba(58, 165, 224, 0.4);
}
.hero .btn-primary:hover {
  background: linear-gradient(135deg, #8ad0f4, #56b4e8);
  box-shadow: 0 12px 26px rgba(58, 165, 224, 0.5);
}
.hero .btn-ghost {
  background: rgba(227, 242, 252, 0.92); color: var(--blue-700);
  border: 2px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
}
.hero .btn-ghost:hover {
  background: #fff; color: var(--blue-500); border-color: #fff;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.88); color: var(--blue-900);
  font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  padding-bottom: 4px; box-shadow: 0 3px 10px rgba(18, 58, 92, 0.25);
  transition: background 0.2s ease;
}
.carousel-btn:hover { background: #fff; }
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }

/* ===== Stats ===== */
.stats { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: #fff; padding: 2.2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat strong { display: block; font-size: 2.3rem; font-weight: 800; }
.stat span { color: #bcdcf2; font-size: 0.9rem; }

/* ===== Sections ===== */
.section { padding: 5rem 0; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem;
  font-weight: 800; color: var(--blue-500); margin-bottom: 0.6rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--blue-900); font-weight: 800; }
.section-head p { margin-top: 0.8rem; color: var(--muted); }

/* ===== Features ===== */
.features { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.feature {
  background: var(--bg); border-radius: var(--radius); padding: 1.8rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--blue-100); border-radius: 14px; margin-bottom: 1rem;
}
.feature h3 { font-size: 1.05rem; color: var(--blue-900); margin-bottom: 0.45rem; }
.feature p { font-size: 0.92rem; color: var(--muted); }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-media { overflow: hidden; aspect-ratio: 4/2.7; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { padding: 1.3rem 1.4rem 1.5rem; }
.service-body h3 { color: var(--blue-900); font-size: 1.1rem; margin-bottom: 0.4rem; }
.service-body p { font-size: 0.92rem; color: var(--muted); }
a.service-card { text-decoration: none; color: inherit; display: block; }
.service-more {
  display: inline-block; margin-top: 0.8rem; font-weight: 700; font-size: 0.88rem;
  color: var(--blue-500); transition: transform 0.2s ease;
}
.service-card:hover .service-more { transform: translateX(4px); }

/* ===== Leistung detail pages ===== */
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--blue-500); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.leistung-hero {
  min-height: 0; display: block; padding: 3.5rem 0 4rem;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(58, 165, 224, 0.18), transparent 60%),
    radial-gradient(600px 400px at 5% 90%, rgba(63, 174, 42, 0.10), transparent 60%),
    linear-gradient(180deg, #eef7fd 0%, var(--bg) 100%);
}
.leistung-hero .hero-bg { display: none; }
.leistung-hero .hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center;
}
.leistung-hero .hero-content { max-width: none; }
.leistung-hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem); color: var(--blue-900); text-shadow: none;
}
.leistung-hero p {
  margin: 1.1rem 0 1.6rem; font-size: 1.05rem; color: var(--muted); font-weight: 500;
  text-shadow: none;
}
.leistung-hero .btn-ghost {
  background: var(--white); color: var(--blue-700); border: 2px solid var(--blue-100);
  backdrop-filter: none;
}
.leistung-hero .btn-ghost:hover { border-color: var(--blue-400); background: var(--white); }
.leistung-hero .hero-media { position: relative; }
.leistung-hero .hero-media img {
  width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.4; object-fit: cover;
}
@media (max-width: 1020px) {
  .leistung-hero .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .leistung-hero .hero-media img { aspect-ratio: 16/10; }
}
.leistung-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.leistung-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--blue-900); font-weight: 800; margin-bottom: 1rem; }
.leistung-text p { color: var(--muted); margin-bottom: 1.1rem; }
.leistung-box {
  background: var(--white); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow);
  position: sticky; top: 110px;
}
.leistung-box h3 { color: var(--blue-900); margin-bottom: 1.1rem; font-size: 1.15rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.6rem; }
.check-list li { padding-left: 1.8rem; position: relative; font-size: 0.93rem; font-weight: 600; color: var(--ink); }
.check-list li::before { content: "✔"; position: absolute; left: 0; color: var(--green-500); font-weight: 800; }
.why-reinglas { background: var(--white); }
.why-grid { grid-template-columns: repeat(3, 1fr); }

/* ===== Legal pages ===== */
.legal-page { padding-top: 2.5rem; }
.legal-content { max-width: 780px; }
.legal-content h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: var(--blue-900); font-weight: 800; margin-bottom: 0.4rem; }
.legal-content h2 { font-size: 1.15rem; color: var(--blue-900); font-weight: 800; margin: 2rem 0 0.8rem; }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.75; margin-bottom: 0.9rem; }
.legal-content ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-content a { color: var(--blue-500); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-updated { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.5rem; }

@media (max-width: 1020px) {
  .leistung-grid { grid-template-columns: 1fr; }
  .leistung-box { position: static; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ===== Before / After ===== */
.before-after { background: var(--white); }
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.ba-grid-single { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
.ba-item { margin: 0; }
.ba-item figcaption { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 0.8rem; font-weight: 600; }
.results-links {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.results-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.results-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.results-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.results-card-body { padding: 1.2rem 1.3rem 1.4rem; }
.results-card-body h3 { color: var(--blue-900); font-size: 1.05rem; margin-bottom: 0.35rem; }
.results-card-body p { font-size: 0.9rem; color: var(--muted); }

.ba-slider {
  position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 3/3.4; cursor: ew-resize; user-select: none; touch-action: none;
}
.ba-slider img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { position: absolute; inset: 0; }
.ba-slider { --pos: 50%; }
.ba-before-wrap {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-before-wrap img { width: 100%; height: 100%; position: absolute; inset: 0; }
.ba-before-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--pos) - 1.5px);
  width: 3px; background: #fff;
}

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); transform: translateX(-50%);
  display: flex; align-items: center; pointer-events: none;
}
.ba-handle span {
  width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  display: grid; place-items: center; font-weight: 800; color: var(--blue-700);
}
.ba-handle span::before { content: "⇔"; font-size: 1.2rem; }

.ba-label {
  position: absolute; top: 12px; padding: 0.25rem 0.8rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; z-index: 3;
}
.ba-label-before { left: 12px; background: rgba(18, 40, 58, 0.82); color: #fff; }
.ba-label-after { right: 12px; background: var(--green-500); color: #fff; }
.ba-label-neutral { left: 12px; background: var(--blue-500); color: #fff; }

/* Videos */
.ba-videos { margin-top: 3.5rem; }
.ba-videos h3 { text-align: center; color: var(--blue-900); font-size: 1.4rem; margin-bottom: 1.6rem; }
.ba-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 1100px; margin-inline: auto; }
.ba-video-grid-1 { grid-template-columns: 1fr; max-width: 360px; }
.ba-video-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
.leistung-results .ba-videos { margin-top: 2.5rem; }
.ba-video { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.ba-video video { width: 100%; display: block; aspect-ratio: 9/16; object-fit: cover; max-height: 520px; }
.ba-video .ba-label { z-index: 5; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-900));
  color: #fff; padding: 4rem 0; text-align: center;
}
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.cta-inner p { margin: 0.8rem auto 1.8rem; max-width: 36rem; color: #d6ecfa; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== FAQ ===== */
.faq-list { max-width: 46rem; margin-inline: auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq-list details {
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid transparent; transition: border-color 0.2s;
}
.faq-list details[open] { border-color: var(--blue-400); }
.faq-list summary {
  cursor: pointer; font-weight: 700; color: var(--blue-900); padding: 1.1rem 1.4rem;
  list-style: none; position: relative; padding-right: 3rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--blue-500); transition: transform 0.25s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 1.4rem 1.2rem; color: var(--muted); font-size: 0.95rem; }

/* ===== Contact ===== */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--blue-900); font-weight: 800; margin-bottom: 0.8rem; }
.contact-info > p { color: var(--muted); margin-bottom: 1.8rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci {
  width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center;
  background: var(--blue-100); border-radius: 12px; font-size: 1.15rem;
}
.contact-list strong { display: block; color: var(--blue-900); font-size: 0.95rem; }
.contact-list a, .contact-list li span:not(.ci) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.contact-list a:hover { color: var(--blue-500); }

.contact-form {
  background: var(--bg); border-radius: 20px; padding: 2.2rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.contact-form h3 { color: var(--blue-900); font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: 600; font-size: 0.88rem; color: var(--blue-900); }
.contact-form input, .contact-form textarea {
  border: 2px solid #dcebf5; border-radius: 12px; padding: 0.75rem 1rem; font-family: inherit;
  font-size: 0.95rem; background: #fff; color: var(--ink); resize: vertical; transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue-400); }
.form-success { color: var(--green-500); font-weight: 700; text-align: center; }
.form-error { color: #c0392b; font-weight: 700; text-align: center; }
.hp-field {
  position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important;
  opacity: 0 !important; pointer-events: none !important;
}
.contact-form button:disabled { opacity: 0.7; cursor: wait; }

/* ===== Footer ===== */
.footer { background: var(--blue-900); color: #b9d6ea; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem;
}
.footer-brand-mark { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.footer-brand-logo {
  flex-shrink: 0; background: #fff; border-radius: 14px; padding: 8px;
  display: flex; align-items: center; justify-content: center;
}
.footer-brand-logo img { width: 64px; height: 64px; margin: 0; display: block; object-fit: contain; }
.footer-brand .footer-brand-text { color: #fff; font-size: 1.35rem; }
.footer-brand .footer-brand-text b { color: #fff; }
.footer-brand .footer-brand-text span { color: #fff; }
.footer-brand .footer-brand-text small { color: rgba(255, 255, 255, 0.88); }
.footer-brand p { font-size: 0.9rem; }
.footer-col h4 { color: #fff; margin-bottom: 0.9rem; font-size: 1rem; }
.footer-col a, .footer-col span { display: block; color: #b9d6ea; text-decoration: none; font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.1rem 0; font-size: 0.83rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom a { color: #b9d6ea; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .hero-frame {
    min-height: calc(100svh - 6.75rem);
    height: calc(100svh - 6.75rem);
  }
  .hero-overlay { padding: 1.6rem 3.5rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .results-links { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hero-frame {
    min-height: calc(100svh - 6.25rem);
    height: calc(100svh - 6.25rem);
  }
  .hero-overlay {
    padding: 1.25rem 1.35rem;
    background: linear-gradient(180deg, rgba(10, 32, 54, 0.55) 0%, rgba(10, 32, 54, 0.78) 100%);
    align-items: center;
  }
  .hero-actions { width: 100%; }
  .hero .btn-lg { flex: 1 1 auto; text-align: center; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  .carousel-btn { width: 40px; height: 40px; }
  .topbar-left { display: none; }
  .topbar-inner { justify-content: center; }
  .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 6rem 1.4rem 2.5rem; gap: 0.4rem; box-shadow: var(--shadow-lg);
    transform: translateY(-100%); transition: transform 0.35s ease; z-index: 90;
    max-height: 100vh; overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav > a { padding: 0.7rem 0.2rem; }
  .nav-toggle { position: relative; z-index: 95; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%; justify-content: space-between; padding: 0.7rem 0.2rem;
  }
  .nav-dropdown-menu {
    position: static; padding-top: 0; display: none;
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav-dropdown-menu-inner {
    min-width: 0; max-width: none; width: 100%; box-shadow: none; border: 0;
    background: var(--bg, #f4f9fc); padding: 0.4rem; margin: 0.2rem 0 0.6rem;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .ba-video-grid,
  .ba-video-grid-2 { grid-template-columns: 1fr; max-width: 420px; }
  .results-links { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .section { padding: 3.5rem 0; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .nav-dropdown-menu-inner {
    min-width: 260px;
  }
}
