/* ============================================
   JP Web Solutions — Cinematic Premium Site
   ============================================ */

:root {
  --black: #050505;
  --near-black: #0a0a0a;
  --white: #ffffff;
  --accent-orange: #ff6b2c;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: color 0.7s var(--ease);
}
body.light-mode { color: var(--near-black); }

/* LOADER */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
/* Prevent FOUC / content flash during loader */
html.is-loading body > *:not(#loader) {
  visibility: hidden;
}
html.is-loading #loader {
  visibility: visible;
}
body.loaded > *:not(#loader) {
  visibility: visible;
}

.loader-inner { text-align: center; width: min(280px, 80vw); }
.loader-logo {
  height: 56px; width: auto; margin: 0 auto 32px; display: block;
  animation: loaderPulse 1.6s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
.loader-bar-track {
  height: 2px; background: rgba(255,255,255,0.12);
  border-radius: 2px; overflow: hidden; margin-bottom: 16px;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #fff, #ccc);
  border-radius: 2px; transition: width 0.12s linear;
}
.loader-text {
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.4; color: #fff;
}

/* Background layers */
.bg-layer { position: fixed; inset: 0; z-index: -3; pointer-events: none; }
.bg-dark {
  background:
    radial-gradient(ellipse 80% 50% at 70% 15%, rgba(40,35,50,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(15,25,50,0.4) 0%, transparent 50%),
    linear-gradient(180deg, #030303 0%, #080810 40%, #050508 100%);
  opacity: 1; transition: opacity 1.1s var(--ease);
}
.bg-light {
  background:
    radial-gradient(ellipse 70% 40% at 85% 5%, rgba(240,242,248,0.95) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  opacity: 0; transition: opacity 1.1s var(--ease);
}
body.light-mode .bg-dark { opacity: 0; }
body.light-mode .bg-light { opacity: 1; }

.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px; opacity: 0.5;
  transition: opacity 0.8s, background-image 0.8s;
}
body.light-mode .bg-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
  opacity: 0.6;
}

h1,h2,h3,h4 {
  font-family: var(--font-display); font-weight: 600;
  line-height: 1.1; letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: none; transition: opacity 0.25s; }
a:hover { opacity: 0.75; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section-number {
  display: block; font-family: var(--font-display); font-size: 0.85rem;
  font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  opacity: 0.4; margin-bottom: 16px;
}
.section-header { margin-bottom: 64px; }
.section-header h2 {
  font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 18ch; margin-bottom: 16px;
}
.section-sub { font-size: 1.1rem; opacity: 0.6; max-width: 42ch; line-height: 1.7; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 500; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.3s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--white); color: var(--black); border-color: var(--white); }
body.light-mode .btn-primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.3); opacity: 1; }
.btn-outline { background: transparent; color: inherit; border-color: currentColor; opacity: 0.85; }
.btn-outline:hover { opacity: 1; background: rgba(255,255,255,0.08); }
body.light-mode .btn-outline:hover { background: rgba(0,0,0,0.05); }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  transition: background 0.45s, backdrop-filter 0.45s, border-color 0.45s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(5,5,5,0.72); backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px); border-bottom-color: rgba(255,255,255,0.06);
}
body.light-mode .navbar.scrolled {
  background: rgba(255,255,255,0.82); border-bottom-color: rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; height: 44px; z-index: 1002; }
.logo-img {
  height: 42px; width: auto; object-fit: contain;
  /* white logo on transparent bg */
  filter: none;
  transition: filter 0.45s var(--ease);
}
/* on light page → black logo */
body.light-mode .logo-img { filter: brightness(0); }
/* menu open always dark overlay → keep white logo */
body.menu-open .logo-img,
body.menu-open.light-mode .logo-img { filter: none; }
.footer-logo {
  height: 36px; width: auto; margin-bottom: 14px;
  filter: none; transition: filter 0.5s;
}
body.light-mode .footer-logo { filter: brightness(0); }

.menu-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 10px;
  z-index: 1002; width: 44px; height: 44px;
  color: #ffffff; /* visible on dark */
}
body.light-mode .menu-toggle { color: #0a0a0a; }
body.menu-open .menu-toggle { color: #ffffff; }
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s, width 0.3s, background 0.3s;
  transform-origin: center;
  border-radius: 1px;
}
/* Hamburger → X */
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Fullscreen menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1001;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 48px 48px; pointer-events: none; visibility: hidden;
}
.mobile-menu.open { pointer-events: auto; visibility: visible; }
.menu-bg {
  position: absolute; inset: 0; background: #030303;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.mobile-menu.open .menu-bg { opacity: 1; }

/* Explicit close (X) button inside menu */
.menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85) rotate(-45deg);
  transition: opacity 0.35s var(--ease), transform 0.4s var(--ease), background 0.25s, border-color 0.25s;
  pointer-events: none;
}
.mobile-menu.open .menu-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
  transition-delay: 0.15s;
}
.menu-close:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
}
.menu-close:active { transform: scale(0.94); }
.menu-nav {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  gap: 8px; max-width: 600px;
}
.menu-link {
  display: flex; align-items: baseline; gap: 24px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  opacity: 0; transform: translateY(30px); color: #fff;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-menu.open .menu-link { opacity: 1; transform: translateY(0); }
.mobile-menu.open .menu-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .menu-link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open .menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .menu-link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.open .menu-link:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.open .menu-link:nth-child(6) { transition-delay: 0.38s; }
.menu-num {
  font-family: var(--font-display); font-size: 0.75rem;
  opacity: 0.35; letter-spacing: 0.08em; min-width: 28px;
}
.menu-label {
  font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
}
.menu-link:hover { opacity: 0.7 !important; }
.menu-cta .menu-label {
  border-bottom: 2px solid rgba(255,255,255,0.3); padding-bottom: 2px;
}
.menu-footer {
  position: relative; z-index: 1; margin-top: 48px; display: flex; gap: 32px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s 0.45s, transform 0.5s 0.45s;
}
.mobile-menu.open .menu-footer { opacity: 1; transform: translateY(0); }
.menu-footer a { font-size: 0.9rem; opacity: 0.5; color: #fff; }
.menu-footer a:hover { opacity: 1; }

/* Hero + Globe */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; position: relative;
  padding: calc(var(--nav-h) + 24px) 24px 80px; overflow: hidden;
}
.hero-globe-wrap {
  position: absolute; right: -5%; top: 50%; transform: translateY(-50%);
  width: min(58vw, 680px); height: min(58vw, 680px);
  z-index: 1; cursor: grab;
  /* soft blue glow behind globe so it pops on dark bg */
  filter: drop-shadow(0 0 40px rgba(80, 160, 255, 0.35))
          drop-shadow(0 0 90px rgba(40, 100, 220, 0.2));
}
.hero-globe-wrap:active { cursor: grabbing; }
#globe-canvas {
  width: 100% !important; height: 100% !important;
  display: block; border-radius: 50%;
}
.globe-label {
  position: absolute; left: 18%; top: 42%;
  display: flex; flex-direction: column; align-items: flex-start;
  pointer-events: none; z-index: 2; opacity: 0; transition: opacity 0.8s 0.5s;
}
.globe-label.visible { opacity: 1; }
.globe-pin {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 4px rgba(255,107,44,0.25), 0 0 20px rgba(255,107,44,0.5);
  margin-bottom: 8px; animation: pinPulse 2s ease-in-out infinite;
}
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,107,44,0.25), 0 0 16px rgba(255,107,44,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255,107,44,0.15), 0 0 28px rgba(255,107,44,0.55); }
}
.globe-label-text {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(0,0,0,0.55); padding: 4px 10px; border-radius: 4px;
  backdrop-filter: blur(6px);
}
.globe-label-sub {
  font-size: 0.75rem; opacity: 0.7; margin-top: 4px; padding-left: 2px;
  max-width: 140px; line-height: 1.3;
}
.hero-content { max-width: 520px; position: relative; z-index: 3; }
.hero-label {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.45; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 700;
  line-height: 0.95; letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero-title .line { display: block; }
.hero-title .accent { opacity: 0.45; }
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem); opacity: 0.65;
  max-width: 34ch; margin-bottom: 36px; line-height: 1.65;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-indicator {
  position: absolute; bottom: 36px; left: 24px; display: flex;
  align-items: center; gap: 12px; font-size: 0.7rem;
  letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.4; z-index: 3;
}
.scroll-line {
  width: 40px; height: 1px; background: currentColor;
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 50%;
  background: currentColor; animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.statement { padding-top: 80px; }
.statement-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.statement-title { font-size: clamp(2.2rem, 4.5vw, 3.5rem); line-height: 1.05; }
.statement-title .reveal-line { display: block; }
.statement-title .accent { opacity: 0.4; }
.statement-right p {
  margin-bottom: 18px; font-size: 1.05rem; opacity: 0.75; line-height: 1.75;
}
.statement-right .btn { margin-top: 12px; }

.stats-section { padding: 80px 0 120px; }
.stats-intro { font-size: 0.95rem; opacity: 0.45; margin-bottom: 48px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 48px;
}
body.light-mode .stats-grid { border-top-color: rgba(0,0,0,0.1); }
.stat-num {
  font-family: var(--font-display); font-size: clamp(3.2rem, 7vw, 5rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.04em;
}
.stat-plus, .stat-slash {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600; opacity: 0.45; margin-left: 2px;
}
.stat-label { margin-top: 10px; font-size: 0.95rem; opacity: 0.5; }

.services-showcase { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.service-card {
  padding: 36px 28px; border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); background: rgba(255,255,255,0.02);
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
}
body.light-mode .service-card {
  border-color: rgba(0,0,0,0.08); background: rgba(0,0,0,0.02);
}
.service-card:hover {
  border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.04);
  transform: translateY(-4px);
}
body.light-mode .service-card:hover {
  border-color: rgba(0,0,0,0.16); background: rgba(0,0,0,0.03);
}
.service-card.large { grid-row: span 2; display: flex; flex-direction: column; }
.service-num {
  font-family: var(--font-display); font-size: 0.8rem;
  letter-spacing: 0.12em; opacity: 0.35; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-card p { opacity: 0.6; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6; }
.service-card ul { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.service-card li {
  font-size: 0.88rem; opacity: 0.65; padding-left: 14px; position: relative;
}
.service-card li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 1px; background: currentColor; opacity: 0.45;
}

.features-section { padding: 80px 0; overflow: hidden; }
.features-section .container { margin-bottom: 40px; }
.features-marquee {
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.features-track {
  display: flex; gap: 40px; width: max-content;
  animation: marquee 45s linear infinite;
}
.features-track span {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 500; white-space: nowrap; opacity: 0.45;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tech-section { padding: 100px 0; overflow: hidden; }
.tech-section .container { margin-bottom: 48px; }
.tech-marquee {
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto 0;
  padding: 0 24px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.tech-track {
  display: flex; gap: 12px; width: max-content;
  animation: marquee 38s linear infinite;
}
/* hide reverse row by default — only one line */
.tech-marquee.reverse { display: none; }
.tech-track span {
  padding: 12px 22px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px; font-size: 0.9rem; font-weight: 500;
  opacity: 0.7; white-space: nowrap; background: rgba(255,255,255,0.03);
  transition: opacity 0.25s, border-color 0.25s;
}
body.light-mode .tech-track span {
  border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.03);
}
.tech-track span:hover { opacity: 1; border-color: currentColor; }

.process-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.process-step {
  padding: 28px 20px; border-top: 2px solid rgba(255,255,255,0.12);
  transition: border-color 0.3s;
}
body.light-mode .process-step { border-top-color: rgba(0,0,0,0.1); }
.process-step:hover { border-top-color: currentColor; }
.step-num {
  font-family: var(--font-display); font-size: 0.8rem;
  letter-spacing: 0.12em; opacity: 0.35; margin-bottom: 14px;
}
.process-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; opacity: 0.55; line-height: 1.55; }

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 48px; }
.why-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 1.02rem;
}
body.light-mode .why-item { border-bottom-color: rgba(0,0,0,0.07); }
.why-item .check { font-size: 1rem; opacity: 0.55; flex-shrink: 0; }

.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
body.light-mode .faq-item { border-bottom-color: rgba(0,0,0,0.1); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: inherit;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 500;
  padding: 22px 40px 22px 0; cursor: pointer; position: relative;
}
.faq-q:hover { opacity: 0.7; }
.faq-q::after {
  content: '+'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 1.35rem; font-weight: 300; opacity: 0.45;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.4s; }
.faq-item.open .faq-a { max-height: 280px; padding-bottom: 22px; }
.faq-a p { opacity: 0.65; line-height: 1.7; font-size: 0.95rem; }

.quote-form { max-width: 860px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 28px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 500; opacity: 0.65; }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 13px 15px; color: inherit; font-family: inherit;
  font-size: 0.95rem; outline: none; transition: border-color 0.25s, background 0.25s;
}
body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
  background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.12);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06);
}
body.light-mode .form-group input:focus,
body.light-mode .form-group select:focus,
body.light-mode .form-group textarea:focus {
  border-color: rgba(0,0,0,0.28); background: rgba(0,0,0,0.04);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.checkbox-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 18px; margin-top: 4px;
}
.checkbox-grid label {
  display: flex; align-items: center; gap: 8px; font-size: 0.88rem;
  opacity: 0.8; cursor: pointer;
}
.checkbox-grid input[type="checkbox"] { width: 15px; height: 15px; accent-color: currentColor; }
.btn-submit { min-width: 220px; }
.form-note { margin-top: 18px; font-size: 0.85rem; opacity: 0.45; }

.footer {
  padding: 72px 0 36px; border-top: 1px solid rgba(255,255,255,0.07);
}
body.light-mode .footer { border-top-color: rgba(0,0,0,0.07); }
.footer-content {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}

.footer-brand p { opacity: 0.5; font-size: 0.92rem; max-width: 28ch; }
.footer-contact p, .footer-links a { margin-bottom: 7px; font-size: 0.92rem; opacity: 0.65; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem; opacity: 0.35;
}
body.light-mode .footer-bottom { border-top-color: rgba(0,0,0,0.05); }

.fab-container {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  display: flex; flex-direction: column; gap: 12px;
}
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.25s, box-shadow 0.25s;
}
.fab:hover { transform: scale(1.08); opacity: 1; box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.fab svg { width: 24px; height: 24px; }
.fab-whatsapp { background: #25D366; }
.fab-call { background: #1a1a1a; border: 1px solid rgba(255,255,255,0.15); }

.chatbot-container { position: fixed; bottom: 28px; left: 28px; z-index: 900; }
.chat-toggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); color: var(--black); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25); position: relative; transition: transform 0.25s;
}
body.light-mode .chat-toggle { background: var(--black); color: var(--white); }
.chat-toggle:hover { transform: scale(1.06); }
.chat-toggle svg { width: 26px; height: 26px; }
.chat-badge {
  position: absolute; top: -4px; right: -4px; background: #4f46e5; color: #fff;
  font-size: 0.65rem; font-weight: 600; padding: 2px 6px; border-radius: 999px;
}
.chat-window {
  position: absolute; bottom: 70px; left: 0; width: 340px; max-width: calc(100vw - 40px);
  background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
  overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.96);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
.chat-window.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
body.light-mode .chat-window {
  background: #fff; border-color: rgba(0,0,0,0.1); color: var(--near-black);
}
.chat-header {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.light-mode .chat-header { border-bottom-color: rgba(0,0,0,0.08); }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #333, #111); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.8rem;
}
.chat-header strong { display: block; font-size: 0.9rem; }
.chat-header span { font-size: 0.75rem; opacity: 0.5; }
.chat-close {
  margin-left: auto; background: none; border: none; color: inherit;
  font-size: 1.4rem; cursor: pointer; opacity: 0.5; line-height: 1;
}
.chat-messages {
  height: 260px; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.msg {
  padding: 10px 14px; border-radius: 12px; font-size: 0.9rem;
  line-height: 1.5; max-width: 85%;
}
.msg.bot { background: rgba(255,255,255,0.08); align-self: flex-start; }
body.light-mode .msg.bot { background: rgba(0,0,0,0.06); }
.msg.user { background: rgba(255,255,255,0.15); align-self: flex-end; }
body.light-mode .msg.user { background: rgba(0,0,0,0.1); }
.chat-input-area {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
body.light-mode .chat-input-area { border-top-color: rgba(0,0,0,0.08); }
.chat-input-area input {
  flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 10px 12px; color: inherit; font-size: 0.9rem; outline: none;
}
body.light-mode .chat-input-area input {
  background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1);
}
.chat-input-area button {
  background: var(--white); color: var(--black); border: none; border-radius: 8px;
  padding: 10px 16px; font-weight: 500; cursor: pointer; font-size: 0.85rem;
}
body.light-mode .chat-input-area button { background: var(--black); color: var(--white); }

.reveal, .reveal-line { will-change: transform, opacity; }

@media (max-width: 960px) {
  .hero-globe-wrap { width: min(72vw, 460px); height: min(72vw, 460px); right: -12%; opacity: 1; }
  .statement-grid { grid-template-columns: 1fr; gap: 36px; }
  .services-showcase { grid-template-columns: 1fr; }
  .service-card.large { grid-row: auto; }
  .process-timeline { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-content { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .hero-globe-wrap { width: 95vw; height: 95vw; right: -28%; top: 28%; opacity: 0.95; }
  .globe-label { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .mobile-menu { padding: 100px 28px 40px; }
  .fab-container { bottom: 18px; right: 14px; }
  .chatbot-container { bottom: 18px; left: 14px; }
  .chat-window { width: calc(100vw - 28px); }
}
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; }
}

/* ===== Quote Form - Professional Card Style ===== */
.simple-form {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 2.5rem 2.2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.form-block {
  margin-bottom: 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #eee;
}
.form-block:last-of-type {
  border-bottom: none;
  margin-bottom: 1.2rem;
  padding-bottom: 0;
}

.form-block-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111;
  letter-spacing: 0.01em;
}

.form-grid.simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group.full { grid-column: 1 / -1; }

.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fafafa;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #333;
  user-select: none;
}

.radio-card span {
  flex: 1;
  line-height: 1.35;
}

.radio-card:hover {
  border-color: #bbb;
  background: #f5f5f5;
}

.radio-card input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  margin: 0;
}

.radio-card input[type="radio"]:checked {
  border-color: #111;
  background: #111;
  box-shadow: inset 0 0 0 3px #fff;
}

.radio-card:has(input:checked) {
  border-color: #111;
  background: #f0f0f0;
  color: #111;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.simple-form .form-group label {
  color: #444;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  display: block;
}

.simple-form input[type="text"],
.simple-form input[type="email"],
.simple-form input[type="tel"],
.simple-form select,
.simple-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  font-size: 0.95rem;
  color: #111;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.simple-form input:focus,
.simple-form select:focus,
.simple-form textarea:focus {
  outline: none;
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.simple-form .btn-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 10px;
}

.simple-form .form-note {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .simple-form {
    padding: 1.5rem 1.2rem;
    border-radius: 12px;
    margin: 0 0.5rem;
  }
  .form-grid.simple {
    grid-template-columns: 1fr !important;
  }
  .radio-grid {
    grid-template-columns: 1fr !important;
  }
  .radio-card {
    padding: 1rem 1.1rem;
  }
}

