/* ==========================================================================
   3D MASTER EPOXY — style.css
   Dark premium theme · Royal blue · Mobile-first (600 / 900 / 1100)
   ========================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  --blue-primary: #2B52CC;
  --blue-deep: #1A3A9E;
  --blue-light: #4268D8;
  --blue-highlight: #7AABFF;
  --bg-dark: #07090F;
  --bg-card: #0F1228;
  --white: #FFFFFF;
  --gray-text: #A0A8C8;

  --gold: #F2B33D;
  --gold-deep: #D89A1F;
  --whatsapp: #25D366;
  --whatsapp-deep: #1DA851;

  --border: rgba(122, 171, 255, 0.14);
  --border-strong: rgba(122, 171, 255, 0.3);
  --glow: 0 0 40px rgba(43, 82, 204, 0.35);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);

  --font-head: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-text);
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(ellipse 60% 40% at 85% -5%, rgba(43, 82, 204, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 35% at 5% 40%, rgba(26, 58, 158, 0.10), transparent 65%);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--white);
  line-height: 1.2;
  font-weight: 800;
}

::selection { background: var(--blue-primary); color: var(--white); }

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

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--blue-deep); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-primary); }

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 76px; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-highlight);
  background: rgba(43, 82, 204, 0.14);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 18px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  margin-bottom: 14px;
}

.section-sub { font-size: 1.02rem; }

.grad-text {
  background: linear-gradient(100deg, var(--blue-highlight) 0%, var(--blue-light) 45%, var(--blue-highlight) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-text { color: var(--gold); }

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon.fill { fill: currentColor; stroke: none; }

/* ---------- 4. Buttons (signature: liquid-gloss sweep) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s;
  isolation: isolate;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.32) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform 0.65s var(--ease);
}

.btn:hover::before, .btn:focus-visible::before { transform: translateX(130%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-primary) 55%, var(--blue-deep));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(43, 82, 204, 0.4);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(43, 82, 204, 0.55); }

.btn-outline {
  color: var(--white);
  border: 1px solid var(--border-strong);
  background: rgba(15, 18, 40, 0.55);
}
.btn-outline:hover { border-color: var(--blue-highlight); box-shadow: var(--glow); }

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-deep));
  color: #052e16;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { box-shadow: 0 14px 34px rgba(37, 211, 102, 0.42); }

.btn-gold {
  background: linear-gradient(135deg, #FFD470, var(--gold) 50%, var(--gold-deep));
  color: #241500;
  box-shadow: 0 10px 28px rgba(242, 179, 61, 0.32);
}
.btn-gold:hover { box-shadow: 0 14px 34px rgba(242, 179, 61, 0.45); }

.btn-block { width: 100%; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }

/* ---------- 5. 3D Cube logo ---------- */
.cube-scene { perspective: 500px; display: inline-block; }

.cube {
  --s: 84px;
  position: relative;
  width: var(--s);
  height: var(--s);
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(-34deg);
}

.cube-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--white);
  backface-visibility: hidden;
}

.cf-front {
  background: linear-gradient(145deg, var(--blue-light) 0%, var(--blue-primary) 60%, var(--blue-deep));
  transform: translateZ(calc(var(--s) / 2));
  font-size: calc(var(--s) * 0.42);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.cf-top {
  background: linear-gradient(180deg, #5E82E4, var(--blue-light));
  transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
}

.cf-right {
  background: linear-gradient(200deg, var(--blue-deep), #142C77);
  transform: rotateY(90deg) translateZ(calc(var(--s) / 2));
}

.cube-sm { --s: 34px; }
.cube-sm .cf-front { font-size: 14px; }
.cube-scene-sm {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 6. Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.cube-spin { animation: cubeSpin 2.4s ease-in-out infinite; }

@keyframes cubeSpin {
  0%   { transform: rotateX(-24deg) rotateY(-34deg); }
  50%  { transform: rotateX(-24deg) rotateY(-214deg); }
  100% { transform: rotateX(-24deg) rotateY(-394deg); }
}

.preloader-name {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--white);
}
.preloader-name span { color: var(--blue-highlight); }

.preloader-bar {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: rgba(122, 171, 255, 0.15);
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-highlight));
  animation: loadBar 1.1s ease-in-out infinite;
}

@keyframes loadBar {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(475%); }
}

/* ---------- 7. Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(7, 9, 15, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo { display: inline-flex; align-items: center; gap: 12px; }

.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.25;
  display: flex;
  flex-direction: column;
}

.nav-logo-text em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  color: var(--blue-highlight);
}

/* Mobile: slide-in panel */
.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(320px, 86vw);
  background: #0A0D1E;
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: calc(var(--nav-h) + 26px) 30px 40px;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
}

.nav-menu.open { transform: translateX(0); visibility: visible; }

.nav-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  padding: 12px 4px;
  border-bottom: 1px solid rgba(122, 171, 255, 0.08);
  transition: color 0.25s;
}

.nav-link:hover, .nav-link.active { color: var(--blue-highlight); }

.nav-cta { margin-top: 18px; }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 1001;
  border-radius: 8px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 46px) 0 70px;
  overflow: hidden;
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 75% 20%, rgba(43, 82, 204, 0.22), transparent 65%),
    radial-gradient(ellipse 40% 35% at 15% 85%, rgba(26, 58, 158, 0.18), transparent 65%);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 54px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(242, 179, 61, 0.1);
  border: 1px solid rgba(242, 179, 61, 0.32);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.3rem, 6.5vw, 3.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.06rem;
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}

.hero-stat strong {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--white);
  display: block;
  line-height: 1.1;
}

.hero-stat span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-visual { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }

.hero-figure {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), var(--glow);
  position: relative;
}

/* epoxy gloss reflection over the hero image */
.hero-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, transparent 34%),
              linear-gradient(0deg, rgba(7, 9, 15, 0.35), transparent 45%);
  pointer-events: none;
}

.hero-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 18, 40, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 13px 18px;
  box-shadow: var(--shadow);
  animation: floatBob 5s ease-in-out infinite;
}

.float-badge strong {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--white);
  font-size: 1.05rem;
  display: block;
  line-height: 1.2;
}

.float-badge span { font-size: 0.74rem; color: var(--gray-text); display: block; }

.fb-price { top: -20px; right: 2px; flex-direction: column; align-items: flex-start; gap: 1px; }
.fb-price strong { color: var(--gold); font-size: 1.3rem; }

.fb-inspect { bottom: -20px; left: 2px; animation-delay: 2.5s; }
.fb-inspect .icon { color: var(--blue-highlight); }

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ---------- 9. About ---------- */
.about-grid { display: grid; gap: 60px; align-items: center; }

.about-visual { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }

.about-main {
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-float {
  position: absolute;
  right: -14px;
  bottom: 46px;
  width: 52%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid var(--bg-dark);
  box-shadow: var(--shadow), var(--glow);
}

.about-award {
  position: absolute;
  top: 22px;
  left: -10px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-deep));
  border-radius: 14px;
  padding: 13px 18px;
  box-shadow: 0 14px 34px rgba(43, 82, 204, 0.45);
  color: var(--white);
}

.about-award strong { font-family: var(--font-head); font-weight: 800; display: block; line-height: 1.2; }
.about-award span { font-size: 0.74rem; opacity: 0.85; }
.about-award .icon { color: var(--gold); }

.about-content .section-title { margin-bottom: 18px; }
.about-content > p { margin-bottom: 16px; }

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}

.feature-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.feature-card .icon { color: var(--blue-highlight); margin-top: 3px; }
.feature-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.feature-card p { font-size: 0.83rem; line-height: 1.5; }

/* ---------- 10. Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

/* gloss sheen across card top */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 171, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(43, 82, 204, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--glow), var(--shadow);
}

.service-card:hover::before, .service-card:hover::after { opacity: 1; }

.service-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(66, 104, 216, 0.22), rgba(26, 58, 158, 0.3));
  border: 1px solid var(--border);
  color: var(--blue-highlight);
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease), color 0.35s;
}

.service-card:hover .service-icon { transform: scale(1.08); color: var(--white); }

.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { font-size: 0.875rem; line-height: 1.6; }

/* ---------- 11. Stats bar ---------- */
.stats-bar {
  background: rgba(43, 82, 204, 0.12);
  border-top: 1px solid rgba(43, 82, 204, 0.25);
  border-bottom: 1px solid rgba(43, 82, 204, 0.25);
  position: relative;
  overflow: hidden;
  padding-block: 44px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  text-align: center;
  position: relative;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  color: var(--white);
  line-height: 1.1;
}

.stat strong .stat-plus {
  display: inline;
  font-size: 0.55em;
  font-weight: 800;
  color: var(--blue-highlight);
  vertical-align: 0.35em;
  margin-left: 2px;
}

.stat span {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-text);
}

/* ---------- 12. Gallery ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--gray-text);
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 100px;
  padding: 10px 22px;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.filter-btn:hover { color: var(--white); border-color: var(--border-strong); }

.filter-btn.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-light), var(--blue-primary));
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(43, 82, 204, 0.4);
}

/* Masonry technique: 10px row tracks, zero row-gap, spacing via item margin */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 10px;
  grid-auto-flow: dense;
  column-gap: 16px;
  row-gap: 0;
}

.gallery-item {
  position: relative;
  grid-row: span 28;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

.g-tall { grid-row: span 38; }

.gallery-item.hidden-item { display: none; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover, .gallery-item:focus-visible {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--glow), var(--shadow);
}

.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }

.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 18px 16px;
  background: linear-gradient(0deg, rgba(7, 9, 15, 0.92) 0%, rgba(7, 9, 15, 0.55) 55%, transparent 100%);
  transform: translateY(28%);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s;
}

.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: 0.98rem;
}

.gallery-item figcaption span { font-size: 0.75rem; color: var(--blue-highlight); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- 13. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(4, 5, 10, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
}

.lightbox[hidden] { display: none; }

.lb-figure {
  max-width: min(1000px, 92vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lb-figure img {
  max-height: 74vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.lb-figure figcaption {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
}

.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 18, 40, 0.85);
  border: 1px solid var(--border-strong);
  color: var(--white);
  transition: background-color 0.25s, transform 0.25s;
  z-index: 2;
}

.lb-btn:hover { background: var(--blue-primary); transform: scale(1.06); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }

/* ---------- 14. Calculator ---------- */
.calculator {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(43, 82, 204, 0.12), transparent 65%),
    var(--bg-dark);
}

.calc-wrap {
  display: grid;
  gap: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
}

.calc-field { margin-bottom: 26px; }

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.calc-label label { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 0.95rem; }

.calc-label output {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--blue-highlight);
  font-size: 1.05rem;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--blue-primary) var(--fill, 20%), rgba(122, 171, 255, 0.16) var(--fill, 20%));
  outline-offset: 6px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 5px solid var(--blue-primary);
  box-shadow: 0 0 0 5px rgba(43, 82, 204, 0.22);
  transition: box-shadow 0.25s;
}

input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 8px rgba(43, 82, 204, 0.3); }

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 5px solid var(--blue-primary);
  box-shadow: 0 0 0 5px rgba(43, 82, 204, 0.22);
}

input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 6px;
  background: rgba(122, 171, 255, 0.16);
}

input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 6px;
  background: var(--blue-primary);
}

.calc-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-top: 8px;
  color: var(--gray-text);
}

.calc-included h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-highlight);
}

.calc-included li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  padding-block: 5px;
}

.calc-included .icon { color: var(--whatsapp); }

.calc-result {
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(66, 104, 216, 0.25), transparent 70%),
    linear-gradient(160deg, rgba(26, 58, 158, 0.35), rgba(15, 18, 40, 0.9));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px dashed rgba(122, 171, 255, 0.2);
  padding-bottom: 14px;
}

.calc-result-row span { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }

.calc-result-row strong {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--white);
}

.calc-total { border-bottom: 0; padding-bottom: 0; }
.calc-total strong { font-size: clamp(1.9rem, 5vw, 2.6rem); color: var(--gold); text-shadow: 0 0 30px rgba(242, 179, 61, 0.25); }

.calc-note { font-size: 0.76rem; line-height: 1.6; }

/* ---------- 15. Quote form ---------- */
.quote-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px 22px;
  max-width: 900px;
  margin-inline: auto;
  box-shadow: var(--shadow);
}

.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 22px; }

.form-field { display: flex; flex-direction: column; gap: 7px; }

.form-field label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--white);
}

.form-field label em { color: var(--gold); font-style: normal; }

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(7, 9, 15, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 13px 15px;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}

.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(160, 168, 200, 0.5); }

.form-field select { cursor: pointer; }
.form-field select option { background: var(--bg-card); color: var(--white); }

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue-highlight);
  box-shadow: 0 0 0 3px rgba(122, 171, 255, 0.18);
}

.form-field textarea { resize: vertical; min-height: 110px; }

.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 26px 18px;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
  color: var(--gray-text);
}

.file-drop:hover, .file-drop.dragover { border-color: var(--blue-highlight); background: rgba(43, 82, 204, 0.07); }
.file-drop .icon { color: var(--blue-highlight); }
.file-drop strong { color: var(--white); font-size: 0.92rem; font-family: var(--font-head); font-weight: 700; }
.file-drop span { font-size: 0.78rem; }

.form-error {
  color: #FF8A8A;
  background: rgba(255, 90, 90, 0.08);
  border: 1px solid rgba(255, 90, 90, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.form-success {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #9BE8B8;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.form-success .icon { color: var(--whatsapp); margin-top: 2px; }
.form-success strong { color: var(--white); }

/* ---------- 16. Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.process-step:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--glow); }

.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.2rem;
  line-height: 1;
  background: linear-gradient(160deg, var(--blue-highlight), var(--blue-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.process-step h3 { font-size: 1rem; margin-bottom: 7px; }
.process-step p { font-size: 0.85rem; line-height: 1.6; }

/* ---------- 17. Applications ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 12px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.app-card .icon { color: var(--blue-highlight); }

.app-card span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--white);
}

.app-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--glow); }

/* ---------- 18. Advantages ---------- */
.adv-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.adv-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--glow); }

.adv-card .icon { color: var(--gold); margin-bottom: 14px; }
.adv-card h3 { font-size: 0.98rem; margin-bottom: 6px; }
.adv-card p { font-size: 0.83rem; line-height: 1.55; }

/* ---------- 19. FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 0 22px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item.open { border-color: var(--border-strong); box-shadow: var(--glow); }

.faq-item h3 { font-size: inherit; font-weight: inherit; }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 17px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  transition: color 0.25s;
}

.faq-q:hover { color: var(--blue-highlight); }

.faq-q .icon { color: var(--blue-highlight); transition: transform 0.35s var(--ease); }
.faq-item.open .faq-q .icon { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s var(--ease);
}

.faq-a p {
  padding: 0 18px 18px;
  font-size: 0.88rem;
  line-height: 1.65;
}

.faq-a strong { color: var(--white); }

/* ---------- 20. Testimonials ---------- */
.carousel { max-width: 1000px; margin-inline: auto; }

.carousel-viewport { overflow: hidden; }

.carousel-track {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.t-card {
  flex: 0 0 100%;
  min-width: 0;
  padding: 10px 8px 4px;
}

.t-card > p {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  font-size: 0.95rem;
  line-height: 1.75;
  position: relative;
  margin-bottom: 18px;
}

.t-quote { color: var(--blue-primary); margin-bottom: 10px; opacity: 0.9; }

.t-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 12px; }

.t-person { display: flex; align-items: center; gap: 13px; }

.t-avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-deep));
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(43, 82, 204, 0.4);
}

.t-person strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 0.92rem; line-height: 1.3; }
.t-person div span { font-size: 0.78rem; }

.t-city {
  margin-left: auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-highlight);
  background: rgba(43, 82, 204, 0.14);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 13px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--white);
  transition: background-color 0.25s, transform 0.25s, border-color 0.25s;
}

.carousel-btn:hover { background: var(--blue-primary); border-color: transparent; transform: scale(1.07); }

.carousel-dots { display: flex; gap: 8px; }

.carousel-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 100px;
  background: rgba(122, 171, 255, 0.25);
  transition: background-color 0.3s, width 0.3s var(--ease);
  padding: 0;
}

.carousel-dots .dot.active { background: var(--blue-highlight); width: 26px; }

/* ---------- 21. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 34px; }

.contact-info { display: flex; flex-direction: column; gap: 13px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

a.contact-card:hover { transform: translateX(5px); border-color: var(--border-strong); box-shadow: var(--glow); }

.contact-card .icon { color: var(--blue-highlight); }
.contact-card strong { display: block; color: var(--white); font-family: var(--font-head); font-size: 0.9rem; }
.contact-card span { font-size: 0.88rem; word-break: break-word; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 6px;
  filter: grayscale(35%) contrast(1.05);
}

.map-wrap iframe { width: 100%; height: 240px; border: 0; display: block; }

.contact-right { display: flex; flex-direction: column; gap: 22px; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.contact-form h3 { font-size: 1.2rem; }

.cities-banner {
  background: linear-gradient(135deg, rgba(43, 82, 204, 0.2), rgba(26, 58, 158, 0.32));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.cities-banner h3 { font-size: 1rem; margin-bottom: 8px; color: var(--gold); }
.cities-banner p { font-size: 0.86rem; line-height: 1.9; }
.cities-banner p span { color: var(--white); font-weight: 600; }

/* ---------- 22. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: #05070D;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 44px;
}

.footer-brand p { font-size: 0.88rem; margin: 16px 0 20px; max-width: 300px; }

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--gray-text);
  transition: color 0.25s, border-color 0.25s, transform 0.25s, background-color 0.25s;
}

.footer-social a:hover {
  color: var(--white);
  background: var(--blue-primary);
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h3 {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-col a, .footer-col p {
  font-size: 0.88rem;
  color: var(--gray-text);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color 0.25s, transform 0.25s var(--ease);
}

.footer-col a:hover { color: var(--blue-highlight); transform: translateX(4px); }
.footer-col .icon { color: var(--blue-highlight); }

.footer-bottom {
  border-top: 1px solid rgba(122, 171, 255, 0.08);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p { font-size: 0.8rem; }

/* ---------- 23. Floating buttons ---------- */
.floating-btns {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.float-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.float-btn:hover { transform: translateY(-3px) scale(1.05); }

.wa-btn {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-deep));
  color: var(--white);
  width: 58px;
  height: 58px;
  position: relative;
}

.wa-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}

.call-btn {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-deep));
  color: var(--white);
}

.back-top {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease);
}

.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top.visible:hover { transform: translateY(-3px) scale(1.05); background: var(--blue-primary); }

/* ---------- 24. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   BREAKPOINT ≥ 600px
   ========================================================================== */
@media (min-width: 600px) {
  .section { padding-block: 90px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-wide { grid-column: span 2; }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  .calc-wrap { padding: 36px 32px; }
  .quote-form { padding: 40px 36px; }
}

/* ==========================================================================
   BREAKPOINT ≥ 900px
   ========================================================================== */
@media (min-width: 900px) {
  .container { padding-inline: 28px; }

  /* Navbar becomes a row */
  .hamburger { display: none; }

  .nav-menu {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    padding: 0;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav-link { padding: 6px 0; border-bottom: 0; font-size: 0.88rem; position: relative; }

  .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--blue-highlight);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }

  .nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

  .nav-cta { margin-top: 0; padding: 11px 22px; font-size: 0.84rem; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .app-grid { grid-template-columns: repeat(4, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }

  .calc-wrap { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .calc-result { position: sticky; top: calc(var(--nav-h) + 20px); }

  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }

  .t-card { flex: 0 0 50%; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }

  .about-grid { grid-template-columns: 1fr 1.1fr; }
}

/* ==========================================================================
   BREAKPOINT ≥ 1100px
   ========================================================================== */
@media (min-width: 1100px) {
  .section { padding-block: 110px; }

  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 60px; }
  .hero-visual { margin-inline: 0 0; }

  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .app-grid { grid-template-columns: repeat(7, 1fr); }
  .adv-grid { grid-template-columns: repeat(5, 1fr); }
  .gallery-grid { column-gap: 20px; }
  .gallery-item { margin-bottom: 20px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .cube-spin { animation: none; }
  .float-badge { animation: none; }
  .wa-btn::after { animation: none; display: none; }
}
