/* =============================================================
   KASTEL IT SARL — Stylesheet v2.0
   Mobile-first, clean nav, animations, enhanced UX
   ============================================================= */

/* ---- CSS VARIABLES ---- */
:root {
  --primary: #005fae;
  --primary-2: #0a8bd8;
  --primary-dark: #092247;
  --orange: #f59e0b;
  --orange-2: #ffb020;
  --cyan: #08b7e8;
  --ink: #071426;
  --navy: #0d1d35;
  --muted: #64748b;
  --soft: #f6f9fd;
  --soft-blue: #eaf5ff;
  --line: #dbe5ef;
  --white: #fff;
  --shadow-sm: 0 8px 24px rgba(11,35,64,.08);
  --shadow-md: 0 18px 48px rgba(11,35,64,.14);
  --shadow-lg: 0 28px 70px rgba(11,35,64,.18);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --max: 1180px;
  --header-h: 82px;
  --top-h: 36px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open, body.modal-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

/* ---- SKIP LINK ---- */
.skip-link {
  position: fixed; left: 18px; top: 18px;
  padding: 10px 14px;
  background: var(--primary-dark); color: #fff;
  z-index: 9999; border-radius: 10px;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---- PRELOADER ---- */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fff, #eef7ff);
  transition: opacity .45s var(--ease), visibility .45s var(--ease);
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-card {
  display: grid; place-items: center; gap: 14px;
  padding: 24px 34px; color: var(--primary-dark); font-weight: 900;
}
.preloader-card img {
  width: 190px;
  filter: drop-shadow(0 10px 20px rgba(0,95,174,.14));
  animation: float-logo 3s ease-in-out infinite;
}
.preloader-card::after {
  content: "";
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 4px solid rgba(0,95,174,.14);
  border-top-color: var(--orange);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- TOP BAR ---- */
.top-bar {
  min-height: var(--top-h);
  background: var(--primary-dark);
  color: rgba(255,255,255,.95);
  font-size: 13px; font-weight: 800;
  position: relative; z-index: 1001;
}
.top-bar__inner {
  min-height: var(--top-h);
  display: flex; align-items: center;
  justify-content: space-between; gap: 18px;
}
.top-bar__left, .top-bar__right {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.top-bar i { color: var(--cyan); margin-right: 8px; }
.top-bar a { transition: color .2s var(--ease); }
.top-bar a:hover { color: var(--orange-2); }

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(219,229,239,.8);
  box-shadow: 0 8px 22px rgba(15,23,42,.05);
  transition: height .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-scrolled { height: 72px; box-shadow: var(--shadow-sm); }
.header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; min-width: 168px; }
.brand__logo {
  width: clamp(148px, 14vw, 205px);
  max-height: 66px; object-fit: contain;
  transition: transform .3s var(--ease);
}
.brand:hover .brand__logo { transform: scale(1.03); }
.main-nav { min-width: 0; }
.nav-menu {
  list-style: none;
  display: flex; justify-content: center; align-items: center;
  gap: 4px; padding: 0; margin: 0;
}
.nav-menu li { flex: 0 0 auto; }
.nav-menu a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 13px;
  border-radius: 999px;
  color: #27364e; font-weight: 900; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease),
              box-shadow .2s var(--ease), transform .2s var(--ease);
}
.nav-menu a:hover, .nav-menu a.active {
  background: #eef7ff; color: #0065bf;
  box-shadow: inset 0 -2px 0 var(--orange);
}
.nav-menu a:hover { transform: translateY(-1px); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.round-action {
  width: 46px; height: 46px;
  border-radius: 50%; display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(0,95,174,.24);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.round-action:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,95,174,.32); }
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 46px; height: 46px;
  border: 0; border-radius: 16px;
  background: #eef7ff;
  z-index: 3202; position: relative;
  transition: background .2s var(--ease);
}
.hamburger:hover { background: #ddeeff; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--primary-dark);
  margin: 4px 0; border-radius: 4px;
  transition: transform .3s var(--ease), opacity .25s var(--ease), width .2s var(--ease);
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-backdrop { display: none; }

/* ---- TYPOGRAPHY ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(245,158,11,.4); border-radius: 999px;
  background: rgba(255,248,235,.75);
  color: #de7d00; font-size: 12px; font-weight: 900;
  letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow i {
  width: 12px; height: 12px;
  border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 6px rgba(245,158,11,.15);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 6px rgba(245,158,11,.15); }
  50% { box-shadow: 0 0 0 10px rgba(245,158,11,.05); }
}
h1, h2, h3 {
  font-family: Poppins, Inter, sans-serif;
  line-height: 1.08; color: #061226; margin: 0;
}
h1 { font-size: clamp(42px, 6.4vw, 76px); letter-spacing: -.06em; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.025em; }
p { color: #61728d; font-size: 16px; margin: 0; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-size: 14px; font-weight: 900;
  letter-spacing: .05em; text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease),
              background .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #08a7df);
  box-shadow: 0 14px 30px rgba(0,95,174,.24);
}
.btn--primary:hover { box-shadow: 0 20px 40px rgba(0,95,174,.36); }
.btn--outline, .btn--ghost {
  color: #005fae; background: #fff; border-color: #006bd0;
}
.btn--outline:hover, .btn--ghost:hover { background: #eef7ff; }
.btn--ghost { border-color: transparent; padding-inline: 0; background: transparent; min-height: auto; }

/* ---- HERO ---- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--top-h) - var(--header-h));
  display: flex; align-items: center;
  padding: 78px 0;
  background:
    radial-gradient(circle at 90% 18%, rgba(8,183,232,.28), transparent 33%),
    linear-gradient(115deg, #fff 0%, #f8fbff 50%, #dff0ff 100%);
}
.hero::before {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,183,232,.12), transparent 70%);
  animation: drift 8s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute; left: -160px; bottom: -200px;
  width: 440px; height: 440px;
  border-radius: 50%; background: rgba(245,158,11,.11);
  animation: drift 10s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.08); }
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: 70px; align-items: center;
}
.hero__copy p { max-width: 650px; margin-top: 24px; font-size: 18px; }
.hero__copy h1 { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

/* ---- HERO CARD & CAROUSEL ---- */
.hero-card {
  position: relative; border-radius: 28px;
  background: #fff; padding: 18px; box-shadow: var(--shadow-lg);
  animation: float-card 5s ease-in-out infinite;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-card::before {
  content: ""; position: absolute;
  inset: 8% -6% -10% 10%; z-index: -1;
  border-radius: 30px; background: rgba(8,183,232,.12);
  transform: rotate(-3deg);
}
.carousel {
  position: relative; overflow: hidden;
  border-radius: 18px; aspect-ratio: 4/3; background: #f5f8fb;
}
.carousel__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transform: scale(1.03);
}
.carousel__slide.active { opacity: 1; transform: scale(1); }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: #fff; color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.carousel__btn:hover {
  transform: translateY(calc(-50% - 2px));
  box-shadow: var(--shadow-md);
  background: var(--soft-blue);
}
.carousel__btn--prev { left: 16px; }
.carousel__btn--next { right: 16px; }
.carousel__dots {
  position: absolute; left: 50%; bottom: 20px;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 4;
}
.carousel__dot {
  width: 11px; height: 11px;
  border: 0; border-radius: 999px; background: #c0c9d8;
  transition: width .3s var(--ease), background .3s var(--ease);
  cursor: pointer;
}
.carousel__dot.active { width: 26px; background: var(--orange); }

/* ---- SECTIONS ---- */
.section { padding: 86px 0; }
.section--soft { background: linear-gradient(180deg, #f7fbff, #fff); }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-heading h2 { margin-top: 16px; }
.section-heading p { margin-top: 14px; }
.section-heading--left { text-align: left; margin-left: 0; }

/* ---- SPLIT INTRO ---- */
.split-intro {
  display: grid; grid-template-columns: .8fr 1.2fr;
  gap: 50px; align-items: start;
}
.split-intro h2 { margin-top: 16px; }
.split-intro p { font-size: 18px; }

/* ---- DOMAIN / SERVICE CARDS ---- */
.domain-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.domain-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 28px;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease);
}
.domain-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.domain-card img {
  height: 210px; width: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.domain-card:hover img { transform: scale(1.05); }
.domain-card div { padding: 24px; }
.domain-card span {
  font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 900; color: #0065bf;
}
.domain-card h3 { margin: 8px 0 12px; }
.domain-card .card-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-top: 1px solid var(--line);
  font-weight: 900; color: #005fae;
  transition: background .2s, padding-left .2s var(--ease);
}
.domain-card:hover .card-link { background: #f0f7ff; padding-left: 28px; }

/* ---- SHOWCASE STRIP ---- */
.showcase-strip { display: grid; grid-template-columns: 1fr 480px; gap: 50px; align-items: center; }
.showcase-strip h2 { margin: 16px 0; }
.showcase-strip p { margin-bottom: 26px; }
.poster-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.poster-stack img {
  border-radius: 24px; box-shadow: var(--shadow-md);
  height: 520px; width: 100%; object-fit: cover;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.poster-stack img:nth-child(2) { transform: translateY(34px); }
.poster-stack img:hover { transform: translateY(-6px) !important; box-shadow: var(--shadow-lg); }

/* ---- PARTNERS ---- */
.partners-preview { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: center; }
.partners-preview h2 { margin: 16px 0; }
.partners-preview p { margin-bottom: 26px; }
.mini-logo-grid, .partners-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px;
}
.partners-grid--full { grid-template-columns: repeat(5,1fr); gap: 18px; }
.partner-logo {
  height: 114px;
  border: 1px solid #d7e4f2; border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 9px; padding: 16px; text-align: center;
  box-shadow: 0 10px 24px rgba(15,35,64,.04);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(0,95,174,.3);
}
.partner-logo img { max-height: 45px; max-width: 130px; object-fit: contain; }
.partner-logo strong { font-size: 12px; letter-spacing: .06em; color: #12223c; }
.partner-logo.no-logo strong { font-size: 15px; }
.partner-logo.mini { height: 82px; }
.partner-logo.mini img { max-height: 34px; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  position: relative; overflow: hidden; padding: 74px 0;
  background:
    radial-gradient(circle at 86% 25%, rgba(8,183,232,.18), transparent 28%),
    linear-gradient(115deg, #fff 0, #f7fbff 58%, #eaf6ff 100%);
}
.page-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.page-hero h1 { margin-top: 20px; font-size: clamp(40px, 5vw, 64px); }
.page-hero p { font-size: 18px; max-width: 680px; margin-top: 20px; }
.page-hero__visual { position: relative; }
.page-hero__visual::before {
  content: ""; position: absolute;
  inset: 10% -4% -7% 8%;
  background: rgba(8,183,232,.13); border-radius: 28px; transform: rotate(-3deg);
}
.page-hero__visual img {
  position: relative; border-radius: 26px;
  box-shadow: var(--shadow-lg); height: 370px; width: 100%; object-fit: cover;
}

/* ---- PAGE LAYOUT ---- */
.page-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 34px; align-items: start; }
.page-main { min-width: 0; }
.page-sidebar { position: sticky; top: 98px; display: grid; gap: 18px; }
.sidebar-card { padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 20px; margin-bottom: 14px; }
.sidebar-links { display: grid; gap: 8px; }
.sidebar-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 12px; border-radius: 14px;
  color: #334155; font-weight: 800; background: #f7fbff;
  transition: background .2s, color .2s, transform .15s;
}
.sidebar-links a:hover, .sidebar-links a.active {
  background: #eaf5ff; color: #005fae; transform: translateX(3px);
}
.sidebar-contact p { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; color: #334155; font-weight: 700; }
.sidebar-contact i { color: #08a7df; width: 18px; margin-top: 4px; }

/* ---- SERVICE CARDS ---- */
.services-list { display: grid; gap: 22px; }
.service-card {
  display: grid; grid-template-columns: 250px 1fr; gap: 0;
  overflow: hidden; border: 1px solid var(--line); border-radius: 26px;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-card__media img {
  height: 100%; min-height: 230px; width: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { padding: 26px; position: relative; }
.service-icon {
  width: 52px; height: 52px; border-radius: 18px;
  background: #eaf5ff; color: #005fae;
  display: grid; place-items: center; font-size: 20px; margin-bottom: 14px;
  transition: background .2s, transform .2s;
}
.service-card:hover .service-icon { background: #dbeeff; transform: scale(1.08) rotate(4deg); }
.service-card h3 { margin-bottom: 12px; }
.service-card p { margin-bottom: 18px; }

/* ---- ABOUT / STATS ---- */
.about-content {
  padding: 30px; border: 1px solid var(--line); border-radius: 28px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.about-content p { margin: 18px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 28px; }
.stats-grid div {
  border-radius: 18px; background: #f7fbff; padding: 18px; text-align: center;
  border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.stats-grid div:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.stats-grid strong { display: block; color: #005fae; font-size: 20px; font-family: Poppins; }
.stats-grid span { font-size: 13px; font-weight: 800; color: #64748b; }

/* ---- GALLERY ---- */
.gallery-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.gallery-grid img {
  height: 380px; width: 100%; object-fit: cover;
  border-radius: 26px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.gallery-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

/* ---- CONTACT SECTION ---- */
.section--contact { background: linear-gradient(135deg, #061226, #0b2d58); color: #fff; }
.section--contact p, .section--contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: stretch; }
.contact-card {
  padding: 34px; border-radius: 28px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-lg);
}
.contact-card h2 { margin: 16px 0; }
.contact-list { display: grid; gap: 13px; margin-top: 26px; }
.contact-list a, .contact-list div {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; border-radius: 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.09);
  color: #fff;
  transition: background .2s, transform .2s;
}
.contact-list a:hover { background: rgba(255,255,255,.15); transform: translateX(4px); }
.contact-list i {
  width: 24px; height: 24px; display: grid; place-items: center;
  color: #0dd0ff; margin-top: 2px; flex-shrink: 0;
}
.contact-list strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #bdefff; }
.map-card {
  border-radius: 28px; overflow: hidden;
  min-height: 430px; box-shadow: var(--shadow-lg);
  background: #eaf5ff;
  border: 4px solid rgba(255,255,255,.12);
}
.map-card iframe { width: 100%; height: 100%; min-height: 430px; border: 0; display: block; }

/* ---- FINAL CTA ---- */
.final-cta { text-align: center; max-width: 780px; }
.final-cta h2 { margin-bottom: 16px; }
.final-cta p { margin-bottom: 26px; }

/* ---- FOOTER ---- */
.site-footer { background: #071426; color: #dbeafe; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1.1fr; gap: 44px; padding: 56px 0; }
.footer-logo { width: 170px; margin-bottom: 16px; }
.site-footer p, .site-footer a { color: #cbd5e1; }
.site-footer h3 { color: #fff; font-size: 20px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #ffb020; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; color: #94a3b8; font-size: 13px; }

/* ---- WHATSAPP FLOAT ---- */
.whatsapp-float {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 999;
  width: 58px; height: 58px;
  border-radius: 50%; display: grid; place-items: center;
  background: #21d366; color: #fff; font-size: 30px;
  box-shadow: 0 14px 38px rgba(33,211,102,.36);
  transition: transform .2s var(--ease), box-shadow .2s;
  animation: wa-pulse 3s ease-in-out infinite;
}
.whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 20px 50px rgba(33,211,102,.46);
  animation: none;
}
@keyframes wa-pulse {
  0%, 80%, 100% { box-shadow: 0 14px 38px rgba(33,211,102,.36); }
  40% { box-shadow: 0 14px 38px rgba(33,211,102,.36), 0 0 0 10px rgba(33,211,102,.12); }
}

/* ---- SCROLL TO TOP ---- */
.scroll-top {
  position: fixed;
  left: max(22px, env(safe-area-inset-left));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 998;
  width: 46px; height: 46px;
  border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--primary-dark); color: #fff; font-size: 16px;
  box-shadow: 0 8px 24px rgba(9,34,71,.28);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease),
              transform .3s var(--ease), box-shadow .2s;
  transform: translateY(14px);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(9,34,71,.38); }

/* ---- MOBILE BOTTOM ACTION BAR ---- */
.mobile-action-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 997;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(11,35,64,.1);
  padding: 10px 16px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  gap: 10px;
}
.mobile-action-bar a {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: 8px; height: 48px; border-radius: 14px;
  font-size: 13px; font-weight: 900; letter-spacing: .04em;
  color: #fff; transition: transform .15s, box-shadow .15s;
}
.mobile-action-bar a:active { transform: scale(.96); }
.mobile-action-bar a:first-child {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 18px rgba(0,95,174,.3);
}
.mobile-action-bar a:last-child {
  background: #21d366;
  box-shadow: 0 6px 18px rgba(33,211,102,.3);
}

/* ---- MODAL ---- */
.modal { position: fixed; inset: 0; z-index: 5000; display: none; }
.modal.open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(7,20,38,.68); backdrop-filter: blur(7px); }
.modal__panel {
  position: relative;
  width: min(760px, calc(100% - 32px));
  max-height: min(82vh, 760px); overflow: auto;
  margin: 9vh auto 0; padding: 32px;
  border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg);
  animation: modal-in .3s var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: #eef7ff; color: #092247;
  transition: background .2s, transform .2s;
}
.modal__close:hover { background: #dbeeff; transform: rotate(90deg); }
.modal__eyebrow { font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: #de7d00; font-size: 12px; margin-bottom: 12px; }
.modal__body { margin-top: 16px; }
.modal__body p, .modal__body { color: #334155; }

/* ---- SCROLL REVEAL ---- */
.section-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.section-reveal.revealed { opacity: 1; transform: translateY(0); }

/* Stagger card children */
.domain-grid .domain-card:nth-child(2) { transition-delay: .1s; }
.domain-grid .domain-card:nth-child(3) { transition-delay: .2s; }
.services-list .service-card:nth-child(2) { transition-delay: .08s; }
.services-list .service-card:nth-child(3) { transition-delay: .16s; }
.services-list .service-card:nth-child(4) { transition-delay: .24s; }

/* ===================================
   TABLET — 980px – 1180px
   =================================== */
@media (max-width: 1180px) {
  .nav-menu a { padding: 0 9px; font-size: 12px; }
  .header__inner { gap: 12px; }
  .round-action { width: 42px; height: 42px; }
  .brand__logo { width: 150px; }
  .domain-grid, .partners-grid--full { grid-template-columns: repeat(3,1fr); }
}

/* ===================================
   MOBILE NAV + LAYOUT — max-width: 980px
   Single authoritative block — no !important
   =================================== */
@media (max-width: 980px) {
  :root { --header-h: 72px; }

  /* Hide top bar and desktop-only elements */
  .top-bar { display: none; }
  .header-actions { display: none; }

  /* 3-column grid: logo | spacer | hamburger */
  .header__inner { grid-template-columns: auto 1fr auto; }
  .brand__logo { width: 160px; }

  /* Show hamburger */
  .hamburger { display: flex; justify-self: end; }

  /* Nav container is always in DOM — hidden via transform */
  .main-nav { display: block; position: static; overflow: visible; }

  /* Slide-in drawer from right */
  .nav-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: auto;
    z-index: 3200;
    width: min(340px, 88vw);
    height: 100dvh;
    margin: 0;
    padding: 100px 20px 32px;
    display: flex; flex-direction: column;
    align-items: stretch; gap: 8px;
    list-style: none;
    background: rgba(255,255,255,.99);
    border-left: 1px solid var(--line);
    border-radius: 26px 0 0 26px;
    box-shadow: -24px 0 70px rgba(7,20,38,.22);
    transform: translateX(110%);
    opacity: 0; visibility: hidden; pointer-events: none;
    overflow-y: auto;
    transition: transform .32s var(--ease), opacity .28s ease, visibility .28s ease;
  }
  .nav-menu.open {
    transform: translateX(0);
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    width: 100%; height: 54px; min-height: 54px;
    display: flex; align-items: center; justify-content: flex-start;
    padding: 0 16px;
    border-radius: 16px; font-size: 13px;
    letter-spacing: .04em; text-transform: uppercase;
    color: #27364e; background: #f7fbff;
    gap: 10px;
    transition: background .2s, color .2s, box-shadow .2s;
  }
  .nav-menu a.active, .nav-menu a:hover {
    background: #eaf5ff; color: #005fae;
    box-shadow: inset 0 -2px 0 var(--orange);
  }

  /* Backdrop */
  .mobile-backdrop {
    display: block; position: fixed; inset: 0;
    z-index: 3190;
    background: rgba(7,20,38,.5);
    backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
  }
  .mobile-backdrop.open { opacity: 1; visibility: visible; pointer-events: auto; }

  /* Show mobile bottom bar; push WhatsApp above it */
  .mobile-action-bar { display: flex; }
  body { padding-bottom: 68px; }
  .whatsapp-float { bottom: calc(68px + max(16px, env(safe-area-inset-bottom))); right: 18px; }
  .scroll-top { display: none; }

  /* ---- Layout stacks ---- */
  .hero__inner, .page-hero__inner, .showcase-strip,
  .partners-preview, .contact-grid, .page-layout, .split-intro {
    grid-template-columns: 1fr;
  }
  .hero { padding: 58px 0; }
  .hero__inner { gap: 38px; }
  .hero__copy { text-align: left; }
  .hero-card { max-width: 640px; animation: none; }
  .page-sidebar { position: static; }
  .showcase-strip { gap: 28px; }
  .poster-stack img { height: 420px; }
  .domain-grid { grid-template-columns: 1fr; }
  .partners-grid--full, .mini-logo-grid { grid-template-columns: repeat(2,1fr); }
  .page-hero__visual img { height: 330px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-card { grid-template-columns: 1fr; width: 100%; }
  .service-card__media, .service-card__body { min-width: 0; width: 100%; }
  .service-card__media img { height: 245px; width: 100%; display: block; }
  .map-card { min-height: 360px; }
  .map-card iframe { min-height: 360px; }
}

/* ===================================
   SMALL MOBILE — max-width: 640px
   =================================== */
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  :root { --header-h: 68px; }
  .site-header { height: 68px; }
  .brand__logo { width: 138px; }

  .hero { min-height: auto; padding: 44px 0 56px; }
  .hero__copy h1, .page-hero h1 { font-size: clamp(34px, 11vw, 50px); letter-spacing: -.05em; }
  .hero__copy p, .page-hero p { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .btn { width: 100%; min-height: 52px; padding: 0 18px; font-size: 13px; }
  .hero-card { padding: 12px; border-radius: 22px; }
  .carousel { aspect-ratio: 1/1; }
  .carousel__btn { width: 40px; height: 40px; }

  .section { padding: 54px 0; }
  .section-heading { margin-bottom: 28px; }
  .eyebrow { font-size: 10px; letter-spacing: .15em; padding: 7px 11px; }

  .page-hero { padding: 42px 0; }
  .page-hero__visual img { height: 250px; }
  .page-hero__inner { gap: 28px; }

  .poster-stack { grid-template-columns: 1fr; }
  .poster-stack img, .poster-stack img:nth-child(2) { height: auto; transform: none; }

  .partners-grid--full, .mini-logo-grid { grid-template-columns: repeat(2,1fr); }
  .partner-logo { height: 96px; }
  .partner-logo.mini img { max-height: 30px; }

  .contact-card { padding: 22px; }
  .map-card, .map-card iframe { min-height: 300px; }

  .footer-grid { grid-template-columns: 1fr; padding: 40px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .domain-card img { height: 180px; }

  .whatsapp-float { width: 52px; height: 52px; font-size: 26px; right: 14px; }
  .modal__panel { padding: 24px 18px; margin-top: 6vh; }

  /* Nav on small screens */
  .nav-menu { width: min(320px, 90vw); padding-top: 88px; }
}

/* ===================================
   VERY SMALL — max-width: 400px
   =================================== */
@media (max-width: 400px) {
  .nav-menu { width: 94vw; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero__copy h1, .page-hero h1 { font-size: clamp(30px, 9.5vw, 40px); }
  .mini-logo-grid { grid-template-columns: 1fr 1fr; }
}
