/* ==========================================================================
   Morina Gebäudereinigung – Stylesheet
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #00afef;
  --blue-600: #0095d0;
  --blue-700: #0079ad;
  --blue-800: #00638f;
  --blue-50: #f2fafe;
  --blue-100: #e1f5fd;
  --blue-200: #bfe9fb;
  --lime: #9ccb48;
  --lime-400: #add95c;
  --lime-700: #557f1b;
  --lime-50: #f3f9e7;
  --ink: #072a3d;
  --ink-2: #0c3a53;
  --text: #33505f;
  --muted: #56717f;
  --line: #dbeaf1;
  --bg: #ffffff;
  --bg-soft: #f4fafd;
  --danger: #c0392b;
  --success: #2f7d32;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(7, 42, 61, .06);
  --shadow: 0 16px 40px -14px rgba(7, 42, 61, .18);
  --shadow-lg: 0 34px 70px -26px rgba(7, 42, 61, .34);
  --container: 1200px;
  --gutter: clamp(1.15rem, 4vw, 2rem);
  --header-h: 78px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base --------------------------------------------------------- */

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-800); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  hyphens: manual;
  text-wrap: balance;
}
@media (max-width: 400px) { h2, h3, h4 { -webkit-hyphens: auto; hyphens: auto; } }

h1 { font-size: clamp(2.05rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--blue-200); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: .75rem 1.1rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout helpers ----------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.75rem, 8vw, 6.75rem); }
.section-soft { background: var(--bg-soft); }
.section-tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4.5vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 4px;
  border-radius: 4px;
  background: var(--lime);
}
.section-head.center .eyebrow::after {
  content: "";
  width: 28px; height: 4px;
  border-radius: 4px;
  background: var(--lime);
}

.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--text); }

.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }

.mark {
  background: linear-gradient(transparent 62%, rgba(156, 203, 72, .5) 62%, rgba(156, 203, 72, .5) 94%, transparent 94%);
  border-radius: 2px;
}
.grad {
  background: linear-gradient(100deg, var(--blue-800), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.55rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .icon { transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 14px 26px -14px rgba(0, 121, 173, .9); }
.btn-primary:hover { background: var(--blue-800); color: #fff; }

.btn-accent { background: var(--lime); color: var(--ink); box-shadow: 0 14px 26px -14px rgba(120, 170, 40, .95); }
.btn-accent:hover { background: var(--lime-400); color: var(--ink); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-800); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-50); color: var(--ink); }

.btn-outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

.btn-sm { padding: .7rem 1.15rem; font-size: .94rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  color: var(--blue-700);
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Top bar ------------------------------------------------------ */

.topbar {
  background: var(--ink);
  color: #cfe3ee;
  font-size: .875rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 42px;
}
.topbar ul { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.topbar li, .topbar a { display: inline-flex; align-items: center; gap: .5rem; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--lime-400); }
.topbar .icon { color: var(--lime); width: 1.05em; height: 1.05em; }
.topbar .social {
  width: 30px; height: 30px;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.topbar .social .icon { color: #fff; }
.topbar .social:hover { background: var(--blue); }

/* ---------- Header / Navigation ------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(7, 42, 61, .35); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .75rem; margin-right: auto; color: var(--ink); }
.brand img { width: 50px; height: 50px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.42rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.brand-text span { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--blue-700); }

.nav > ul { display: flex; align-items: center; gap: .15rem; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .6rem .9rem;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}
.nav-link .icon { width: 1em; height: 1em; transition: transform .2s ease; }
.nav-link:hover { background: var(--blue-50); color: var(--blue-800); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--blue-700); background: var(--blue-100); }

.has-sub { position: relative; }
.sub-toggle { display: none; }
.sub {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .2rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-sub:hover > .sub,
.has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover > .nav-link .icon,
.has-sub:focus-within > .nav-link .icon { transform: rotate(180deg); }
.sub a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .75rem;
  border-radius: 12px;
  font-size: .96rem;
  font-weight: 600;
  color: var(--ink);
}
.sub a .icon {
  width: 36px; height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  transition: background-color .2s ease, color .2s ease;
}
.sub a:hover, .sub a[aria-current="page"] { background: var(--blue-50); color: var(--blue-800); }
.sub a:hover .icon, .sub a[aria-current="page"] .icon { background: var(--blue-700); color: #fff; }

.header-cta { display: flex; align-items: center; gap: 1.1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.header-phone .icon {
  width: 40px; height: 40px;
  padding: 10px;
  border-radius: 50%;
  background: var(--lime-50);
  color: var(--lime-700);
}
.header-phone small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); line-height: 1.2; }
.header-phone span { display: block; line-height: 1.2; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-extra { display: none; }

@media (max-width: 1180px) {
  .header-phone { display: none; }
}

@media (max-width: 1020px) {
  :root { --header-h: 70px; }
  .topbar .topbar-hide { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.25rem; }
  .brand-text span { font-size: .7rem; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: .75rem var(--gutter) 1.5rem;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 30px 40px -20px rgba(7, 42, 61, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav-link { justify-content: space-between; padding: .9rem 1rem; border-radius: 14px; font-size: 1.05rem; }
  .nav-link .icon { display: none; }

  .has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .4rem; }
  .sub-toggle {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
  }
  .sub-toggle .icon { transition: transform .2s ease; }
  .has-sub.open .sub-toggle .icon { transform: rotate(180deg); }
  .sub {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    display: none;
    grid-template-columns: 1fr;
    margin: .3rem 0 .5rem;
    padding: .4rem;
    box-shadow: none;
    background: var(--bg-soft);
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .sub::before { display: none; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { transform: none; }
  .has-sub.open > .sub { display: grid; }
  .sub a .icon { background: #fff; }

  .nav-mobile-extra { display: grid; gap: .7rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .topbar .topbar-hide-sm { display: none; }
  .topbar .container { justify-content: center; }
  .topbar ul { gap: 1.1rem; justify-content: center; }
}

/* ---------- Hero --------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 5.25rem) clamp(5.5rem, 9vw, 8rem);
  background:
    radial-gradient(900px 520px at 88% -8%, #d6f1fd 0%, rgba(214, 241, 253, 0) 62%),
    radial-gradient(620px 460px at -8% 38%, #eef7da 0%, rgba(238, 247, 218, 0) 62%),
    linear-gradient(180deg, #fbfeff 0%, #fff 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.4rem;
  padding: .5rem 1rem .5rem .6rem;
  border: 1px solid var(--blue-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  font-size: .88rem;
  font-weight: 700;
  color: var(--blue-800);
  box-shadow: var(--shadow-sm);
}
.pill .icon {
  width: 26px; height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}
.hero h1 { margin-bottom: .5em; font-size: clamp(2.05rem, 4.1vw, 2.9rem); }
@media (min-width: 961px) { .hero h1 .grad { display: block; } }
.hero .lead { max-width: 580px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero-checks { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; }
.hero-checks li { display: inline-flex; align-items: center; gap: .5rem; font-size: .96rem; font-weight: 700; color: var(--ink); }
.hero-checks .icon {
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--lime-50);
  color: var(--lime-700);
  stroke-width: 3;
}

.hero-art { position: relative; padding: 1.2rem 1.2rem 2.2rem 0; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: -4% -14% 6% 12%;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--blue) 0%, #6fd3f7 100%);
  opacity: .16;
}
.hero-art::after {
  content: "";
  position: absolute;
  right: -7%;
  bottom: 1%;
  width: 46%;
  aspect-ratio: 1;
  border: 16px solid var(--lime);
  border-left-color: transparent;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
  opacity: .9;
}
.hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 5 / 5.3;
  object-fit: cover;
  border-radius: 36px 36px 36px 150px;
  box-shadow: var(--shadow-lg);
}
.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.2rem .9rem .9rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .icon {
  width: 46px; height: 46px;
  padding: 11px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-700);
}
.float-card strong { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.15; color: var(--ink); }
.float-card span { display: block; font-size: .84rem; font-weight: 600; line-height: 1.3; color: var(--muted); }
.float-a { left: -2.2rem; bottom: 4.2rem; }
.float-a .icon { background: var(--lime-50); color: var(--lime-700); }
.float-b { right: -.6rem; top: 2.4rem; animation-delay: -3s; }

.sparkle { position: absolute; z-index: 2; color: var(--blue); animation: twinkle 3.6s ease-in-out infinite; }
.sparkle.s1 { top: -.4rem; left: 12%; width: 34px; }
.sparkle.s2 { top: 34%; left: -1.6rem; width: 22px; color: var(--lime); animation-delay: -1.2s; }
.sparkle.s3 { bottom: 1rem; left: 30%; width: 26px; animation-delay: -2.2s; }

@keyframes floaty { 50% { transform: translateY(-10px); } }
@keyframes twinkle { 50% { transform: scale(.6) rotate(20deg); opacity: .45; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin-inline: auto; padding: 1rem .6rem 1.6rem; }
  .hero-img { aspect-ratio: 5 / 4; object-position: 50% 72%; border-radius: 28px 28px 28px 110px; }
  .float-a { left: -.4rem; bottom: 2.6rem; }
  .float-b { right: -.4rem; top: 1.6rem; }
}
@media (max-width: 520px) {
  .float-card { padding: .65rem .9rem .65rem .65rem; gap: .6rem; border-radius: 16px; }
  .float-card .icon { width: 38px; height: 38px; padding: 9px; border-radius: 12px; }
  .float-card strong { font-size: 1rem; }
  .float-card span { font-size: .76rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- USP strip ---------------------------------------------------- */

.usp { position: relative; z-index: 3; margin-top: clamp(-4.2rem, -6vw, -3rem); }
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.usp-item { display: flex; gap: 1rem; padding: 1.6rem 1.5rem; }
.usp-item + .usp-item { border-left: 1px solid var(--line); }
.usp-item .icon {
  width: 50px; height: 50px;
  padding: 12px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue-700);
}
.usp-item h3 { margin: .1rem 0 .3rem; font-size: 1.04rem; }
.usp-item p { font-size: .93rem; line-height: 1.5; color: var(--muted); }

@media (max-width: 1020px) {
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .usp-item:nth-child(3) { border-left: 0; }
  .usp-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .usp-grid { grid-template-columns: 1fr; }
  .usp-item + .usp-item { border-left: 0; border-top: 1px solid var(--line); }
  .usp-item { padding: 1.25rem; }
}

/* ---------- Service cards ------------------------------------------------ */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2.4vw, 1.9rem); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--blue-200); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--blue-50); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 42, 61, 0) 55%, rgba(7, 42, 61, .28) 100%);
}
.card-icon {
  position: relative;
  z-index: 2;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 18px;
  background: var(--blue-700);
  color: #fff;
  transition: background-color .3s ease, color .3s ease;
}
.card-icon .icon { width: 26px; height: 26px; }
.card:hover .card-icon { background: var(--lime); color: var(--ink); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 0 1.5rem 1.6rem; }
.card-body .card-icon { margin: -29px 0 1rem; }
.card-body h3 { margin-bottom: .5rem; font-size: 1.28rem; }
.card-body h3 a { color: inherit; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.card-body p { margin-bottom: 1.3rem; font-size: .98rem; line-height: 1.6; color: var(--muted); }
.card-body .link-arrow { margin-top: auto; font-size: .96rem; }
.card:hover .link-arrow .icon { transform: translateX(4px); }

@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Split (media + text) ----------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 5 / 4.2;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}
.split-media::before {
  content: "";
  position: absolute;
  left: -22px; bottom: -22px;
  width: 58%; height: 62%;
  border-radius: 30px;
  background: linear-gradient(140deg, var(--blue-100), var(--lime-50));
}
.split.reverse .split-media::before { left: auto; right: -22px; }
.split-media::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -20px; top: -20px;
  width: 120px; height: 120px;
  background-image: radial-gradient(var(--blue-200) 2.5px, transparent 2.5px);
  background-size: 18px 18px;
}
.split.reverse .split-media::after { right: auto; left: -20px; }
.media-badge {
  position: absolute;
  z-index: 2;
  right: 1.4rem; bottom: -1.3rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1.25rem;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}
.split.reverse .media-badge { right: auto; left: 1.4rem; }
.media-badge .icon { width: 30px; height: 30px; color: var(--lime); }
.media-badge strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.media-badge span { display: block; font-size: .82rem; color: #b9d3e0; line-height: 1.3; }

.collage {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  aspect-ratio: 1 / .9;
}
.collage::before {
  content: "";
  position: absolute;
  left: -22px; bottom: -22px;
  width: 56%; height: 60%;
  border-radius: 30px;
  background: linear-gradient(140deg, var(--blue-100), var(--lime-50));
}
.collage img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.collage img:first-of-type { grid-row: 1 / 3; border-radius: 26px 26px 26px 110px; }
.collage .media-badge { right: auto; left: 1.4rem; bottom: -1.3rem; }

.checks { display: grid; gap: .8rem; margin: 1.6rem 0 2rem; }
.checks li { display: flex; align-items: flex-start; gap: .75rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
.checks .icon {
  width: 24px; height: 24px;
  margin-top: .1rem;
  padding: 4px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  stroke-width: 3;
}
.checks.cols { grid-template-columns: 1fr 1fr; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media, .collage { max-width: 600px; }
  .split > * { min-width: 0; }
  .checks.cols { grid-template-columns: 1fr; }
}

/* ---------- Dark feature band -------------------------------------------- */

.band {
  position: relative;
  color: #cfe3ee;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(0, 175, 239, .26) 0%, rgba(0, 175, 239, 0) 60%),
    radial-gradient(560px 380px at 0% 100%, rgba(156, 203, 72, .16) 0%, rgba(156, 203, 72, 0) 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  overflow: hidden;
}
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: #7fd6f8; }
.band .section-head p { color: #b9d3e0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.feature {
  padding: 1.9rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .055);
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
}
.feature:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .09); border-color: rgba(156, 203, 72, .5); }
.feature .icon {
  width: 54px; height: 54px;
  margin-bottom: 1.2rem;
  padding: 13px;
  border-radius: 16px;
  background: rgba(0, 175, 239, .18);
  color: #7fd6f8;
}
.feature:nth-child(even) .icon { background: rgba(156, 203, 72, .18); color: var(--lime-400); }
.feature h3 { margin-bottom: .5rem; }
.feature p { font-size: .98rem; line-height: 1.6; color: #b9d3e0; }

.features.light .feature { border-color: var(--line); background: #fff; }
.features.light .feature:hover { border-color: var(--blue-200); box-shadow: var(--shadow); }
.features.light .feature .icon { background: var(--blue-50); color: var(--blue-700); }
.features.light .feature:nth-child(even) .icon { background: var(--lime-50); color: var(--lime-700); }
.features.light .feature h3 { color: var(--ink); }
.features.light .feature p { color: var(--muted); }
.features.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1020px) { .features.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .features, .features.four { grid-template-columns: 1fr; } }

/* ---------- Steps -------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); counter-reset: step; }
.step { position: relative; padding: 2.2rem 1.7rem 1.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--blue-100);
}
.step .icon {
  position: relative;
  width: 56px; height: 56px;
  margin-bottom: 1.3rem;
  padding: 14px;
  border-radius: 18px;
  background: var(--blue-700);
  color: #fff;
}
.step:nth-child(2) .icon { background: var(--lime); color: var(--ink); }
.step:nth-child(3) .icon { background: var(--ink); }
.step h3 { margin-bottom: .45rem; }
.step p { font-size: .98rem; color: var(--muted); }

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

/* ---------- CTA band ----------------------------------------------------- */

.cta { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cta-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(2.2rem, 5vw, 4rem);
  border-radius: 34px;
  color: #d5e8f2;
  background:
    linear-gradient(100deg, rgba(7, 42, 61, .96) 0%, rgba(7, 42, 61, .86) 45%, rgba(0, 121, 173, .62) 100%),
    url("../img/cta-bg.webp") center / cover no-repeat,
    var(--ink);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-box::after {
  content: "";
  position: absolute;
  right: -90px; top: -90px;
  width: 260px; height: 260px;
  border: 22px solid rgba(156, 203, 72, .55);
  border-radius: 50%;
}
.cta-box h2 { margin-bottom: .4em; color: #fff; }
.cta-box p { max-width: 560px; font-size: 1.1rem; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .8rem; }

@media (max-width: 860px) {
  .cta-box { grid-template-columns: 1fr; border-radius: 26px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 520px) { .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- Page hero (sub pages) ---------------------------------------- */

.page-hero {
  position: relative;
  padding-block: clamp(2.6rem, 6vw, 4.6rem);
  background:
    radial-gradient(760px 420px at 92% 0%, #d6f1fd 0%, rgba(214, 241, 253, 0) 62%),
    radial-gradient(520px 360px at 0% 100%, #eef7da 0%, rgba(238, 247, 218, 0) 62%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -70px; bottom: -110px;
  width: 300px; height: 300px;
  border: 22px solid var(--lime);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  opacity: .5;
  transform: rotate(20deg);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 880px; margin-bottom: .35em; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero p { max-width: 720px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.1rem; font-size: .9rem; font-weight: 600; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; color: #9db6c3; }
.breadcrumb a { color: var(--blue-700); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Service detail ----------------------------------------------- */

.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: clamp(2rem, 5vw, 4rem); }
.service-figure { position: relative; margin: 0 0 2.4rem; }
.service-figure img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); }
.service-figure .card-icon { position: absolute; bottom: 0; left: 2rem; width: 68px; height: 68px; border-radius: 22px; transform: translateY(50%); }
.service-figure .card-icon .icon { width: 30px; height: 30px; }

.prose { max-width: 760px; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > h2 { margin-top: 1.6em; font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.prose > h3 { margin-top: 1.5em; font-size: 1.25rem; }
.prose > h4 { margin-top: 1.4em; }
.prose > h5 { margin-top: 1.4em; font-size: 1rem; font-weight: 800; color: var(--ink); }
.prose > .checks { margin-top: 1.2rem; }
.prose blockquote p { margin: 0; }
.prose ul:not([class]) { display: grid; gap: .6rem; }
.prose ul:not([class]) li { position: relative; padding-left: 1.6rem; }
.prose ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: .2rem; top: .72em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose .intro { font-size: 1.2rem; font-weight: 600; color: var(--ink); line-height: 1.55; }

.note {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--blue-200);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--ink);
}
.note .icon { width: 28px; height: 28px; margin-top: .15rem; color: var(--blue-700); }
.note p { font-weight: 600; }

.question-list { display: grid; gap: .7rem; }
.question-list li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink);
}
.question-list .icon { width: 22px; height: 22px; color: var(--blue-700); }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.5rem; }
.side-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.side-card h2 { margin-bottom: 1rem; font-size: 1.15rem; letter-spacing: -.01em; }
.side-nav { display: grid; gap: .3rem; }
.side-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .7rem .9rem;
  border-radius: 12px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-soft);
  transition: background-color .2s ease, color .2s ease;
}
.side-nav a .icon { width: 1em; height: 1em; color: var(--blue-700); transition: transform .2s ease; }
.side-nav a:hover { background: var(--blue-100); color: var(--blue-800); }
.side-nav a:hover .icon { transform: translateX(3px); }
.side-nav a[aria-current="page"] { background: var(--blue-700); color: #fff; }
.side-nav a[aria-current="page"] .icon { color: #fff; }

.side-contact {
  color: #cfe3ee;
  border: 0;
  background:
    radial-gradient(300px 220px at 100% 0%, rgba(0, 175, 239, .32) 0%, rgba(0, 175, 239, 0) 65%),
    linear-gradient(160deg, var(--ink), var(--ink-2));
}
.side-contact h2 { color: #fff; }
.side-contact p { font-size: .96rem; margin-bottom: 1.2rem; }
.side-contact ul { display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.side-contact li, .side-contact li a { display: flex; align-items: center; gap: .65rem; color: #fff; font-weight: 700; font-size: .96rem; overflow-wrap: anywhere; }
.side-contact li .icon { color: var(--lime); }
.side-contact li a:hover { color: var(--lime-400); }

@media (max-width: 980px) {
  .service-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) { .sidebar { grid-template-columns: 1fr; } }

/* ---------- Contact ------------------------------------------------------ */

.contact-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: start; gap: clamp(1.8rem, 4vw, 3.4rem); }
.info-list { display: grid; gap: 1rem; margin-top: 2rem; }
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.info-item:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.info-item .icon {
  width: 52px; height: 52px;
  padding: 13px;
  border-radius: 16px;
  background: var(--blue-50);
  color: var(--blue-700);
}
.info-item:nth-child(even) .icon { background: var(--lime-50); color: var(--lime-700); }
.info-item h3 { margin: .1rem 0 .2rem; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-item p, .info-item a { font-size: 1.08rem; font-weight: 700; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.info-item a:hover { color: var(--blue-700); }
.info-item small { display: block; font-size: .92rem; font-weight: 600; color: var(--muted); }

.form-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.form-card > p { color: var(--muted); margin-bottom: 1.8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 700; color: var(--ink); }
.field label span { color: var(--muted); font-weight: 600; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23072a3d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 18px;
}
/* Custom dropdown – enhances the native <select>, which stays in the form for submission
   and remains the visible control when JavaScript is unavailable. */
.select { position: relative; display: none; }
.js .select { display: block; }
.js .select-native {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  padding: .9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.select-trigger:hover { border-color: var(--blue-200); }
.select-trigger:focus-visible,
.select.is-open .select-trigger {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 175, 239, .18);
}
.select-value { display: flex; align-items: center; gap: .6rem; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.select-value.is-placeholder { color: var(--muted); }
.select-value .icon { width: 20px; height: 20px; color: var(--blue-700); }
.select-trigger > .icon { width: 18px; height: 18px; stroke-width: 2.4; transition: transform .2s ease; }
.select.is-open .select-trigger > .icon { transform: rotate(180deg); }

.select-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0; right: 0;
  max-height: 322px;
  margin: 0;
  padding: .4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top center;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-200) transparent;
}
.select.is-open .select-list { opacity: 1; visibility: visible; transform: none; }
.select.drop-up .select-list { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; }
.select-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem .65rem;
  border-radius: 12px;
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.select-option + .select-option { margin-top: 2px; }
.select-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  transition: background-color .15s ease, color .15s ease;
}
.select-ico .icon { width: 18px; height: 18px; }
.select-option .select-check { width: 18px; height: 18px; margin-left: auto; color: var(--blue-700); stroke-width: 3; opacity: 0; }
.select-option.is-active { background: var(--blue-50); }
.select-option.is-active .select-ico { background: var(--blue-700); color: #fff; }
.select-option[aria-selected="true"] { background: var(--blue-100); color: var(--blue-800); }
.select-option[aria-selected="true"] .select-ico { background: var(--blue-700); color: #fff; }
.select-option[aria-selected="true"] .select-check { opacity: 1; }
.select-option.is-empty { font-weight: 500; color: var(--muted); }
.select-option.is-empty .select-ico { background: var(--bg-soft); color: var(--muted); }
.select-option.is-empty.is-active .select-ico,
.select-option.is-empty[aria-selected="true"] .select-ico { background: var(--muted); color: #fff; }
.field.has-error .select-trigger { border-color: var(--danger); background: #fff8f7; }

.field input::placeholder, .field textarea::placeholder { color: #8aa3b0; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue-200); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 175, 239, .18);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background-color: #fff8f7; }
.field-error { min-height: 0; font-size: .86rem; font-weight: 600; color: var(--danger); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.turnstile-wrap { min-height: 65px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.form-hint { flex: 1 1 260px; margin: 0; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.form-hint a { text-decoration: underline; text-underline-offset: 2px; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.is-sending .spinner { display: block; }
.is-sending .icon-send { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  display: none;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1.4rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.5;
}
.form-status .icon { width: 24px; height: 24px; margin-top: .1rem; }
.form-status.is-success { display: flex; border: 1px solid #b9dfbb; background: #eef8ee; color: #1f5c22; }
.form-status.is-error { display: flex; border: 1px solid #f1c1bb; background: #fdf1ef; color: #9a2a1e; }

.embed {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(rgba(244, 250, 253, .9), rgba(244, 250, 253, .9)),
    repeating-linear-gradient(0deg, transparent 0 46px, var(--blue-200) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, var(--blue-200) 46px 48px),
    var(--bg-soft);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-consent {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}
.embed-consent > .icon {
  width: 68px; height: 68px;
  padding: 17px;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-700);
  box-shadow: var(--shadow);
}
.embed-consent h3 { margin: 0; font-size: 1.3rem; }
.embed-consent p { max-width: 520px; margin: 0; font-size: .95rem; color: var(--muted); }
.embed-consent .btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.embed.tall { min-height: 440px; }
.embed.tall.is-loaded { min-height: 720px; max-width: 520px; margin-inline: auto; background: #fff; }

@media (max-width: 940px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- Legal -------------------------------------------------------- */

.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: clamp(2rem, 5vw, 4.5rem); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.toc h2 { margin-bottom: .8rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { display: grid; gap: .15rem; }
.toc a { display: block; padding: .5rem .7rem; border-radius: 10px; font-size: .94rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.toc a:hover { background: #fff; color: var(--blue-700); }
.legal { max-width: 820px; font-size: 1rem; }
.legal h2 { margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.legal > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin-top: 1.9em; }
.legal address { font-style: normal; padding: 1.3rem 1.5rem; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font-weight: 600; line-height: 1.8; }
.legal .caps { font-size: .93rem; font-weight: 600; color: var(--ink); }
.legal blockquote { margin: 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--blue-200); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--bg-soft); font-size: .97rem; }

@media (max-width: 940px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* ---------- 404 ---------------------------------------------------------- */

.notfound { padding-block: clamp(4rem, 10vw, 8rem); text-align: center; }
.notfound .code {
  font-size: clamp(6rem, 22vw, 12rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.06em;
  background: linear-gradient(120deg, var(--blue-700), var(--blue), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound p { max-width: 520px; margin-inline: auto; margin-bottom: 2rem; font-size: 1.12rem; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Footer ------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: clamp(1rem, 3vw, 2rem);
  padding-top: clamp(3.2rem, 7vw, 5rem);
  color: #b9d3e0;
  font-size: .98rem;
  background:
    radial-gradient(600px 360px at 100% 0%, rgba(0, 175, 239, .2) 0%, rgba(0, 175, 239, 0) 60%),
    linear-gradient(170deg, var(--ink) 0%, #05202f 100%);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1.1fr 1.2fr; gap: clamp(1.8rem, 4vw, 3.5rem); padding-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: #7fd6f8; }
.site-footer .brand { margin-bottom: 1.2rem; }
.site-footer .brand img { padding: 4px; border-radius: 14px; background: #fff; }
.footer-about p { max-width: 380px; line-height: 1.7; }
.site-footer h2 { margin-bottom: 1.2rem; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { display: inline-flex; align-items: center; gap: .4rem; color: #b9d3e0; font-weight: 500; transition: color .2s ease, transform .2s ease; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-contact { display: grid; gap: .9rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .75rem; line-height: 1.5; }
.footer-contact .icon { margin-top: .2rem; color: var(--lime); }
.footer-contact a { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.footer-contact a:hover { color: var(--lime-400); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1rem .6rem .7rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease;
}
.footer-social a:hover { background: var(--blue-700); border-color: var(--blue-700); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #fff; font-weight: 600; }
.footer-bottom a:hover { color: var(--lime-400); }

@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 4.5rem; } }

/* ---------- Floating call button (mobile) -------------------------------- */

.call-fab {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 90;
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 16px 30px -12px rgba(7, 42, 61, .55);
}
.call-fab:hover { color: var(--ink); background: var(--lime-400); }
@media (max-width: 1020px) { .call-fab { display: inline-flex; } }

/* ---------- Reveal on scroll --------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .cta, .call-fab, .embed { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { font-size: 11pt; }
}
