/* ============================================================
   247SiteDesign — Main Stylesheet
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --color-bg:         #0a0f1e;
  --color-surface:    #111827;
  --color-surface-2:  #1e293b;
  --color-border:     #1e2d47;
  --color-accent:     #3b82f6;
  --color-accent-hover: #60a5fa;
  --color-accent-glow: rgba(59, 130, 246, 0.3);
  --color-green:      #10b981;
  --color-text:       #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-text-dim:   #64748b;
  --color-white:      #ffffff;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --container-max: 1180px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);

  --nav-height: 70px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Ensure the HTML hidden attribute is never overridden by display rules */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Anchor targets need breathing room under the fixed nav header,
   otherwise the heading lands hidden behind it */
section[id],
.legal-body h2[id] {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* ---- Utility ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.nav-header.scrolled {
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 0.85; }

/* Image logo — shown when file exists */
.logo-img {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
}

/* Text fallback — hidden when image loads, revealed via onerror */
.logo-text {
  display: none;
  align-items: baseline;
}

.logo-247 {
  color: var(--color-accent);
  font-size: 1.5rem;
}
.logo-site { color: var(--color-white); }
.logo-design { color: var(--color-text-muted); font-weight: 500; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links li a {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.nav-links li a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
}
.nav-cta:hover {
  background: var(--color-accent-hover) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  width: 36px;
  height: 36px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-only nav elements — hidden on desktop, enabled in the 900px media query below */
.nav-links-footer,
.nav-overlay {
  display: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: 5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--color-accent-hover);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero-headline {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  flex-wrap: wrap;
  justify-content: center;
}

.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent-hover);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--color-accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-dim);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

.btn-full { width: 100%; }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--color-surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
}

.service-card--featured {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(160deg, #0f1e3a, #0a0f1e);
  box-shadow: var(--shadow-glow);
}

.service-card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
}

.service-icon {
  width: 38px;
  height: 38px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-hover);
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.coming-soon-tag {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.5rem;
}

.service-card > p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.service-features li {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  padding-left: 1.25rem;
  position: relative;
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

.service-link {
  color: var(--color-accent-hover);
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.service-link:hover { gap: 0.5rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { background: var(--color-surface); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(59, 130, 246, 0.2);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.step-content p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.step-connector {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  flex-shrink: 0;
  align-self: center;
  margin-top: -2rem;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--color-bg); }

.quote-cta {
  text-align: center;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us { background: var(--color-surface); }

.why-us-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-us-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.why-us-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}
.why-us-content .section-tag { margin-bottom: 0.75rem; }

.why-us-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.why-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: border-color var(--transition);
}
.why-card:hover { border-color: rgba(59, 130, 246, 0.35); }

.why-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-hover);
}
.why-card strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.why-card p { font-size: 0.83rem; color: var(--color-text-muted); line-height: 1.5; margin: 0; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--color-bg); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.contact-content > p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-content .section-tag { margin-bottom: 0.75rem; }

.contact-details { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.contact-item a:hover { color: var(--color-accent-hover); }
.contact-item svg { color: var(--color-accent); flex-shrink: 0; }

/* Form */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-x: hidden;
}

/* hCaptcha renders at a fixed ~303px width, which overflows the form's
   available width on narrow phones — clip rather than widen the page */
.h-captcha {
  max-width: 100%;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}
.required { color: var(--color-accent); }

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  color: var(--color-text);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-dim);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option { background: var(--color-surface); }

.form-group textarea { resize: vertical; min-height: 100px; }

.form-note {
  font-size: 0.78rem;
  color: var(--color-text-dim);
  text-align: center;
  margin-top: -0.5rem;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-green);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-top: 3.5rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

.footer-brand {
  max-width: 280px;
}
.footer-brand .logo { margin-bottom: 0.85rem; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.footer-brand p + p {
  margin-top: 0.75rem;
}

.footer-nav {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 120px;
}
.footer-nav-col strong {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.footer-nav-col a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer-nav-col a:hover { color: var(--color-text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--color-text-dim);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--color-text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 900px and below */
@media (max-width: 900px) {
  .why-us-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .step-connector {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--color-border), transparent);
    margin-top: 0;
    align-self: center;
  }

  .step { padding: 0; max-width: 440px; }
}

/* Nav switches to hamburger at 900px — the logo + 5 nav items need
   ~860px minimum, so 900px gives comfortable breathing room and also
   aligns with the existing tablet layout breakpoint */
@media (max-width: 900px) {
  /* Nav bar always opaque so logo stays visible above overlay.
     backdrop-filter on .scrolled creates a compositing layer that breaks
     the fixed overlay rendering on Android — disable it here. */
  .nav-header,
  .nav-header.scrolled {
    background: #0a0f1e;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 10000;
  }

  /* Logo and toggle must be explicitly positioned so their z-index
     is evaluated within nav-header's stacking context — otherwise the
     overlay (z-index:9999) paints over them as non-positioned siblings */
  .nav-inner .logo,
  .nav-toggle {
    position: relative;
    z-index: 10000;
  }

  /* Full-width panel, slides in from the left, below the fixed nav bar.
     Animates `left` rather than `transform` — translateX/Y previously
     caused GPU-compositing rendering bugs for this fixed-position
     overlay on Android (see the fixes above). Width/height are fixed
     (not right:0/bottom:0) so the box doesn't resize mid-transition,
     only moves. */
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100% - var(--nav-height));
    z-index: 9999;
    background: #0a0f1e;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transition: left 0.3s ease;
  }

  .nav-links.open {
    left: 0;
  }

  .nav-links li {
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links li:last-of-type { border-bottom: none; }

  .nav-links li a {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1.1rem 1.25rem;
    transition: background var(--transition), color var(--transition);
  }
  .nav-links li a:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-links .nav-cta {
    display: block !important;
    margin: 1rem 1.25rem !important;
    text-align: center;
  }
  .nav-links li:has(.nav-cta) { border-bottom: none; }

  .nav-links-footer {
    display: block;
    margin-top: auto;
    padding: 1.25rem;
    border-top: 1px solid var(--color-border);
  }
  .nav-links-footer a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    padding: 0;
    color: var(--color-accent-hover);
  }

  /* Dim backdrop behind the slide-in panel */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s ease;
  }

  .nav-toggle { display: flex; }
}

/* Mobile: 640px and below */
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { padding: 1.25rem 1.5rem; gap: 1.25rem; }
  .stat-divider { display: none; }

  .contact-form { padding: 1.25rem; }

  .form-row { grid-template-columns: 1fr; }

  .why-us-cards { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; }
  .footer-nav { gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats { flex-direction: column; gap: 1rem; }
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--color-accent-glow);
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
  opacity: 0;
}

.back-to-top.visible {
  opacity: 1;
}

.back-to-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-3px);
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }
}

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
