/* =========================================================
   JALIX WATER SOLUTIONS — main stylesheet
   Theme colours are taken from the logo (navy, blue, cyan, teal)
   ========================================================= */

:root {
  --navy: #14285f;
  --navy-dark: #0c1a40;
  --blue: #1f63b5;
  --cyan: #2aa7d8;
  --teal: #4fd1c5;
  --light: #f3f9fd;
  --white: #ffffff;
  --text: #46546e;
  --heading: #14285f;
  --grad: linear-gradient(135deg, #14285f 0%, #1f63b5 55%, #2aa7d8 100%);
  --grad-soft: linear-gradient(135deg, #1f63b5 0%, #2aa7d8 60%, #4fd1c5 100%);
  --shadow-sm: 0 4px 14px rgba(20, 40, 95, .08);
  --shadow-md: 0 12px 34px rgba(20, 40, 95, .14);
  --radius: 16px;
  --ease: cubic-bezier(.22, .8, .28, 1);
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }
body {
  max-width: 100%;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Montserrat', 'Poppins', sans-serif; color: var(--heading); line-height: 1.25; font-weight: 700; }
button, input, select, textarea { font: inherit; }

.container { width: min(var(--container), 92%); margin-inline: auto; }
.section { padding: 90px 0; position: relative; overflow-x: hidden; overflow-x: clip; }
.stats, .cta, .footer, .page-banner, .hero { overflow-x: clip; }
.section.alt { background: var(--light); }
.center { text-align: center; }

/* ---------- Section titles ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad-soft); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 1.9rem); margin-bottom: 14px; }
.section-sub { max-width: 640px; margin-bottom: 46px; }
.center .section-sub { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 30px; border-radius: 50px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s;
  position: relative; overflow: hidden;
}
.btn i { transition: transform .35s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(5px); }
.btn-primary { background: var(--grad-soft); color: #fff; box-shadow: 0 8px 22px rgba(42, 167, 216, .4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42, 167, 216, .55); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); transform: translateY(-3px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--blue); transform: translateY(-3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #cfe3f7; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0; flex-wrap: wrap; }
.topbar a:hover { color: var(--teal); }
.topbar i { color: var(--teal); margin-right: 7px; }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }

/* ---------- Header / Nav ---------- */
.header {
  /* NOTE: no backdrop-filter here — it would turn the header into the containing block of the
     fixed mobile menu and break its position / cause horizontal overflow on phones */
  position: sticky; top: 0; z-index: 1000; background: #fff; transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(20, 40, 95, .12); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.logo img { height: 62px; width: auto; transition: height .3s; }
.header.scrolled .logo img { height: 52px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 10px 16px; font-weight: 500; font-size: .95rem; color: var(--navy);
  border-radius: 30px; position: relative; transition: color .3s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 0; height: 3px; border-radius: 3px;
  background: var(--grad-soft); transition: width .35s var(--ease), left .35s var(--ease);
}
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { width: 22px; left: calc(50% - 11px); }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--blue); }
.nav-links .btn { margin-left: 10px; padding: 11px 24px; color: #fff; }
.nav-links .btn:hover { color: #fff; }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 1100; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 3px; background: var(--navy); transition: .35s var(--ease); }
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: clamp(520px, 82vh, 760px); overflow: hidden; background: var(--navy-dark); }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s;
}
.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.12); transition: transform 7s ease-out;
}
.slide.active .slide-bg { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12, 26, 64, .92) 0%, rgba(20, 40, 95, .72) 45%, rgba(31, 99, 181, .25) 100%);
}
.slide-content { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; }
.slide-text { max-width: 650px; color: #fff; }
.slide-text .tag {
  display: inline-block; padding: 7px 18px; border-radius: 40px; font-size: .8rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; background: rgba(79, 209, 197, .18);
  border: 1px solid rgba(79, 209, 197, .6); color: var(--teal); margin-bottom: 20px;
}
.slide-text h1 { color: #fff; font-size: clamp(1.5rem, 3.8vw, 3.6rem); margin-bottom: 18px; }
.slide-text h1 span { color: var(--teal); }
.slide-text p { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #dbe9f8; margin-bottom: 32px; max-width: 540px; }
.slide-text .btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* staggered text entrance */
.slide .tag, .slide h1, .slide p, .slide .btns { opacity: 0; transform: translateX(-60px); }
.slide.active .tag { animation: slideInLeft .9s var(--ease) .3s forwards; }
.slide.active h1 { animation: slideInLeft .9s var(--ease) .5s forwards; }
.slide.active p { animation: slideInLeft .9s var(--ease) .7s forwards; }
.slide.active .btns { animation: slideInLeft .9s var(--ease) .9s forwards; }
@keyframes slideInLeft { to { opacity: 1; transform: translateX(0); } }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
  backdrop-filter: blur(6px); transition: .3s; font-size: 1rem;
}
.hero-arrow:hover { background: var(--cyan); border-color: var(--cyan); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }
.hero-dots { position: absolute; bottom: 62px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: .35s var(--ease); }
.hero-dots button.active { width: 36px; border-radius: 10px; background: var(--teal); }
.hero-progress { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--grad-soft); z-index: 10; }

/* waves at bottom of hero & page headers */
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; line-height: 0; z-index: 5; pointer-events: none; }
.wave svg { width: 100%; height: 60px; display: block; }
.wave path { fill: #fff; }
.wave.light path { fill: var(--light); }

/* floating bubbles */
.bubbles { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.bubbles i {
  position: absolute; bottom: -60px; border-radius: 50%; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3); animation: rise linear infinite;
}
@keyframes rise { 0% { transform: translateY(0) translateX(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-110vh) translateX(40px); opacity: 0; } }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative; padding: 110px 0 120px; text-align: center; color: #fff; background: var(--grad); overflow: hidden;
}
.page-banner h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 10px; animation: fadeDown .9s var(--ease) both; }
.page-banner .crumbs { color: #cfe3f7; font-size: .95rem; animation: fadeDown .9s var(--ease) .2s both; }
.page-banner .crumbs a:hover { color: var(--teal); }
.page-banner .crumbs i { margin: 0 8px; font-size: .7rem; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal animations ---------- */
.reveal { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); will-change: transform, opacity; }
.reveal.from-left { transform: translateX(-90px); }
.reveal.from-right { transform: translateX(90px); }
.reveal.from-up { transform: translateY(60px); }
.reveal.from-down { transform: translateY(-60px); }
.reveal.zoom { transform: scale(.85); }
.reveal.flip { transform: perspective(900px) rotateY(-25deg) translateX(-40px); }
.reveal.show { opacity: 1; transform: none; }

/* ---------- Problem / solution cards (like EcoWater "If you have…") ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.problem-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); display: flex; flex-direction: column;
}
.problem-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.problem-card .img { height: 210px; overflow: hidden; position: relative; background: var(--grad-soft); }
.problem-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.problem-card:hover .img img { transform: scale(1.1); }
.problem-card .badge {
  position: absolute; left: 18px; bottom: -26px; width: 56px; height: 56px; border-radius: 16px; background: var(--grad-soft);
  color: #fff; display: grid; place-items: center; font-size: 1.4rem; box-shadow: 0 8px 20px rgba(42, 167, 216, .45); z-index: 2;
}
.problem-card .body { padding: 40px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.problem-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.problem-card .need { color: var(--cyan); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.problem-card ul { margin-bottom: 18px; flex: 1; }
.problem-card li { padding: 3px 0 3px 26px; position: relative; font-size: .93rem; }
.problem-card li::before { content: "\f043"; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 4px; font-size: .78rem; color: var(--teal); }
.link-arrow { font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 8px; transition: gap .3s, color .3s; }
.link-arrow:hover { gap: 14px; color: var(--cyan); }

/* ---------- Two column (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3.2; background: var(--grad-soft); }
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.split-media:hover .frame img { transform: scale(1.06); }
.split-media::before {
  content: ""; position: absolute; width: 70%; height: 70%; left: -22px; bottom: -22px; border-radius: 24px; z-index: -1;
  background: var(--grad-soft); opacity: .25;
}
.float-badge {
  position: absolute; right: -14px; top: 28px; background: #fff; border-radius: 16px; padding: 14px 20px; box-shadow: var(--shadow-md);
  display: flex; gap: 12px; align-items: center; animation: floaty 4s ease-in-out infinite;
}
.float-badge i { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.float-badge strong { display: block; color: var(--navy); font-size: 1rem; line-height: 1.2; }
.float-badge small { color: var(--text); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.split p { margin-bottom: 16px; }
.check-list { margin: 20px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.check-list li { position: relative; padding-left: 30px; font-weight: 500; color: var(--navy); font-size: .95rem; }
.check-list li::before { content: "\f00c"; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-soft); color: #fff; font-size: .65rem; display: grid; place-items: center; }

/* ---------- Feature cards ("Proven solutions") ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature {
  background: #fff; padding: 36px 26px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s;
}
.feature::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .45s; z-index: 0; }
.feature > * { position: relative; z-index: 1; transition: color .4s; }
.feature:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.feature:hover::before { opacity: 1; }
.feature:hover h3, .feature:hover p { color: #fff; }
.feature .icon {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; font-size: 1.8rem;
  background: var(--light); color: var(--blue); transition: .45s var(--ease);
}
.feature:hover .icon { background: rgba(255, 255, 255, .18); color: #fff; transform: rotateY(360deg); }
.feature h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature p { font-size: .92rem; }

/* ---------- Stats band ---------- */
.stats { background: var(--grad); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.stats::before, .stats::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.stats::before { width: 360px; height: 360px; left: -120px; top: -160px; }
.stats::after { width: 280px; height: 280px; right: -80px; bottom: -140px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; position: relative; z-index: 2; }
.stat .num { font-family: 'Montserrat', sans-serif; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1.1; }
.stat .num span { color: var(--teal); }
.stat p { color: #cfe3f7; margin-top: 6px; font-weight: 500; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.product {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid #e6eef6;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.product .img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--light); position: relative; }
.product .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .img img { transform: scale(1.1); }
.product .cat { position: absolute; top: 14px; left: 14px; background: var(--grad-soft); color: #fff; font-size: .74rem; font-weight: 600; padding: 5px 14px; border-radius: 30px; letter-spacing: .5px; }
.product .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product h3 { font-size: 1.12rem; margin-bottom: 8px; }
.product p { font-size: .92rem; margin-bottom: 14px; flex: 1; }
.product .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.product .tags span { font-size: .75rem; background: var(--light); color: var(--blue); padding: 4px 12px; border-radius: 20px; font-weight: 500; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 44px; left: 12%; right: 12%; height: 3px; background: repeating-linear-gradient(90deg, var(--cyan) 0 10px, transparent 10px 20px); opacity: .5; }
.step { text-align: center; position: relative; z-index: 1; padding: 0 8px; }
.step .circle {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 20px; background: #fff; border: 3px solid var(--cyan);
  display: grid; place-items: center; font-size: 1.8rem; color: var(--blue); position: relative; transition: .45s var(--ease); box-shadow: var(--shadow-sm);
}
.step:hover .circle { background: var(--grad-soft); color: #fff; border-color: transparent; transform: scale(1.1) rotate(8deg); }
.step .circle::after {
  counter-increment: s; content: counter(s); position: absolute; top: -6px; right: -6px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700; display: grid; place-items: center;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .9rem; }

/* ---------- CTA band ---------- */
.cta { position: relative; background: var(--grad); color: #fff; text-align: center; padding: 90px 0; overflow: hidden; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.cta p { max-width: 640px; margin: 0 auto 30px; color: #dbe9f8; }
.cta .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .drop {
  position: absolute; width: 140px; height: 140px; border-radius: 0 50% 50% 50%; transform: rotate(45deg); background: rgba(255, 255, 255, .07);
  animation: floaty 6s ease-in-out infinite;
}
.cta .drop.d1 { left: 6%; top: 18%; }
.cta .drop.d2 { right: 8%; bottom: 12%; width: 90px; height: 90px; animation-delay: 1.5s; }

/* ---------- Services list ---------- */
.service-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service {
  background: #fff; border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow-sm); border-bottom: 4px solid transparent;
  transition: .45s var(--ease);
}
.service:hover { transform: translateY(-8px); border-color: var(--teal); box-shadow: var(--shadow-md); }
.service .icon { width: 64px; height: 64px; border-radius: 18px; background: var(--grad-soft); color: #fff; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 20px; transition: transform .5s var(--ease); }
.service:hover .icon { transform: rotate(-10deg) scale(1.1); }
.service h3 { font-size: 1.12rem; margin-bottom: 10px; }
.service p { font-size: .93rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: start; }
.info-card { background: var(--grad); color: #fff; border-radius: 24px; padding: 40px 34px; position: relative; overflow: hidden; }
.info-card::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -90px; bottom: -90px; background: rgba(255, 255, 255, .08); }
.info-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.info-card > p { color: #cfe3f7; margin-bottom: 26px; }
.info-item { display: flex; gap: 16px; margin-bottom: 22px; position: relative; z-index: 2; }
.info-item .ic { flex: none; width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-size: 1.15rem; color: var(--teal); transition: .35s; }
.info-item:hover .ic { background: var(--teal); color: var(--navy); transform: scale(1.1); }
.info-item h4 { color: #fff; font-size: 1rem; margin-bottom: 2px; }
.info-item p, .info-item a { color: #dbe9f8; font-size: .94rem; }
.info-item a:hover { color: var(--teal); }

.form-card { background: #fff; border-radius: 24px; padding: 40px 36px; box-shadow: var(--shadow-md); border: 1px solid #e6eef6; }
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > p { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .86rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 2px solid #e1ebf5; border-radius: 12px; background: #f9fcff; color: var(--navy);
  transition: border-color .3s, box-shadow .3s, background .3s; outline: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(42, 167, 216, .15); }
.field .err { display: none; color: #d64545; font-size: .78rem; margin-top: 4px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d64545; }
.field.invalid .err { display: block; }
.form-note { font-size: .82rem; margin-top: 14px; }
.form-success { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px; background: #e5f8f5; color: #17706a; font-weight: 500; }

.map-wrap { margin-top: 50px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-md); line-height: 0; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: 14px; margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid #e6eef6; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 24px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-size: 1rem; }
.faq-q i { transition: transform .4s var(--ease); color: var(--cyan); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a p { padding: 0 24px 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: #b9cde6; padding-top: 80px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer .f-logo { background: #fff; display: inline-block; padding: 8px 14px; border-radius: 12px; margin-bottom: 18px; }
.footer .f-logo img { height: 54px; width: auto; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 3px; background: var(--grad-soft); }
.footer li { margin-bottom: 11px; }
.footer li a { transition: .3s; display: inline-flex; gap: 8px; align-items: center; }
.footer li a:hover { color: var(--teal); transform: translateX(6px); }
.footer li a i { font-size: .65rem; color: var(--teal); }
.footer .contact-line { display: flex; gap: 12px; margin-bottom: 14px; font-size: .94rem; }
.footer .contact-line i { color: var(--teal); margin-top: 5px; }
.footer .contact-line a:hover { color: var(--teal); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; transition: .35s var(--ease); }
.socials a:hover { background: var(--grad-soft); border-color: transparent; color: #fff; transform: translateY(-5px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; text-align: center; font-size: .88rem; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: 22px; z-index: 900; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); transition: transform .35s var(--ease), opacity .35s; }
.fab:hover { transform: scale(1.12); }
.fab.whatsapp { bottom: 90px; background: #25d366; animation: pulse 2.2s infinite; }
.fab.top { bottom: 24px; background: var(--grad-soft); border: 0; cursor: pointer; opacity: 0; pointer-events: none; }
.fab.top.show { opacity: 1; pointer-events: auto; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); } 70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- Page loader ---------- */
.loader { position: fixed; inset: 0; z-index: 3000; background: #fff; display: grid; place-items: center; transition: opacity .6s, visibility .6s; }
.loader.hide { opacity: 0; visibility: hidden; }
.loader .drop { width: 54px; height: 54px; border-radius: 0 50% 50% 50%; transform: rotate(45deg); background: var(--grad-soft); animation: dropBounce 1s ease-in-out infinite; }
@keyframes dropBounce { 0%, 100% { transform: rotate(45deg) translate(0, 0); } 50% { transform: rotate(45deg) translate(-14px, -14px) scale(.9); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid, .service-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .section { padding: 70px 0; }
  .topbar .tb-right { display: none; }
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(310px, 82vw); background: #fff; flex-direction: column; align-items: stretch;
    padding: 100px 24px 30px; gap: 4px; transform: translateX(105%); visibility: hidden; box-shadow: none;
    transition: transform .5s var(--ease), visibility .5s, box-shadow .5s; z-index: 1050; overflow-y: auto;
  }
  .nav-links.open { transform: none; visibility: visible; box-shadow: -10px 0 40px rgba(0, 0, 0, .15); }
  .reveal.from-left:not(.show) { transform: translateX(-40px); }
  .reveal.from-right:not(.show) { transform: translateX(40px); }
  .nav-links a { padding: 14px 16px; font-size: 1.02rem; border-bottom: 1px solid #eef3f8; border-radius: 0; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin: 16px 0 0; border-radius: 50px; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(12, 26, 64, .55); opacity: 0; visibility: hidden; transition: .4s; z-index: 999; }
  .nav-overlay.show { opacity: 1; visibility: visible; }

  .problem-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .split.rev .split-media { order: 0; }
  .float-badge { right: 8px; top: 14px; }
  .split-media::before { left: 0; bottom: -14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .steps::before { display: none; }
  .hero-arrow { display: none; }
}

@media (max-width: 640px) {
  .logo img { height: 50px; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar .tb-left { justify-content: center; gap: 6px 16px; }
  .feature-grid, .product-grid, .service-row { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card, .info-card { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { height: clamp(500px, 88vh, 640px); }
  .hero-dots { bottom: 52px; }
  .slide-text .btns .btn { width: 100%; }
  .map-wrap iframe { height: 320px; }
  .cta .btns .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
/* =========================
   FIXED TOPBAR
   ========================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
}

/* =========================
   FIXED HEADER
   ========================= */
.header {
  position: fixed;
  top: 40px; /* topbar height */
  left: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
}

/* Space for topbar + header */
body {
  padding-top: 120px;
}