﻿/* The SEO Analyst — global design tokens & utilities (SonarQube-friendly: no !important abuse) */

:root {
  --color-bg: #e8f4fc;
  --color-accent: #0b6bcb;
  --color-accent-soft: #3d9cf0;
  --color-white: #ffffff;
  --color-muted: #5b7390;
  --color-surface: #ffffff;
  --color-surface-alt: #d4eef9;
  --color-border: #b8cfe0;
  --color-text: #0a2540;
  --color-heading: #061a33;
  --color-on-accent: #ffffff;
  --color-dark-text: #ffffff;
  --color-footer: #061a33;
  --color-violet-glow: rgba(11, 107, 203, 0.14);
  --shadow-elevated: 0 24px 48px -16px rgba(10, 40, 70, 0.14);
  --font-heading: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
}

.bg-footer {
  background-color: var(--color-footer);
  color: #dbeafe;
}

.site-footer {
  overflow-x: clip;
  max-width: 100%;
}

.site-footer .mx-auto {
  min-width: 0;
  max-width: min(100%, 80rem);
}

.site-footer .grid > * {
  min-width: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

#main-content {
  min-width: 0;
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 100% 55% at 50% -15%, rgba(11, 107, 203, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 10%, rgba(61, 156, 240, 0.1), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 85%, rgba(255, 255, 255, 0.9), transparent 50%);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 769px) {
  body {
    background-attachment: fixed;
  }
}

::selection {
  background-color: rgba(11, 107, 203, 0.22);
  color: var(--color-heading);
}

/* Mobile menu: full viewport, opaque layer above page + WhatsApp float while open */
#mobile-nav.mobile-nav-overlay {
  z-index: 12000;
  background-color: var(--color-white);
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}

body.mobile-nav-open .wa-float {
  z-index: 11950;
  pointer-events: none;
  opacity: 0.35;
}

.font-heading {
  font-family: var(--font-heading);
}

/* H1 / H2 sizing per spec */
h1.font-display {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.1;
  font-weight: 800;
}

h2.font-section {
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 700;
}

/* Primary CTA — blue with soft glow */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, var(--color-accent) 100%);
  color: var(--color-on-accent);
  font-weight: 700;
  border-radius: 6px;
  padding: 14px 28px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow:
    0 0 0 1px rgba(11, 107, 203, 0.2),
    0 4px 20px rgba(11, 107, 203, 0.28),
    0 12px 32px -8px rgba(6, 26, 51, 0.18);
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-cta:hover {
  background: linear-gradient(180deg, #5cb0f5 0%, #0a5cbd 100%);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(11, 107, 203, 0.35),
    0 6px 28px rgba(11, 107, 203, 0.35),
    0 16px 40px -8px rgba(6, 26, 51, 0.22);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 6px;
  border: 2px solid var(--color-heading);
  color: var(--color-heading);
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-body);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-outline-light:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: rgba(11, 107, 203, 0.06);
  box-shadow: 0 0 24px rgba(11, 107, 203, 0.12);
}

/* Hero noise overlay */
.hero-noise {
  position: relative;
  isolation: isolate;
}

.hero-noise::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-noise > * {
  position: relative;
  z-index: 1;
}

/* Extra mesh glow in hero (paired with .hero-mesh on section) */
.hero-noise.hero-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 90% 10%, rgba(11, 107, 203, 0.12), transparent 58%),
    radial-gradient(ellipse 45% 40% at 5% 55%, var(--color-violet-glow), transparent 52%),
    radial-gradient(ellipse 40% 35% at 75% 95%, rgba(61, 156, 240, 0.08), transparent 50%);
}

.text-gradient-accent {
  background: linear-gradient(105deg, #7ec8ff 0%, var(--color-accent) 45%, #064a8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(11, 107, 203, 0.22);
  background: rgba(11, 107, 203, 0.06);
  font-weight: 500;
}

.lead-card {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(165deg, #ffffff 0%, #f0f8ff 100%);
  border: 1px solid rgba(11, 107, 203, 0.2);
  box-shadow:
    var(--shadow-elevated),
    0 0 0 1px rgba(11, 107, 203, 0.08),
    0 0 48px -16px rgba(11, 107, 203, 0.15);
}

.lead-card:hover {
  border-color: rgba(11, 107, 203, 0.35);
  box-shadow:
    var(--shadow-elevated),
    0 0 0 1px rgba(11, 107, 203, 0.15),
    0 0 56px -12px rgba(11, 107, 203, 0.2);
}

.stat-card {
  position: relative;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 36px rgba(10, 40, 70, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.stat-card:hover {
  border-color: rgba(11, 107, 203, 0.35);
  box-shadow:
    0 14px 44px rgba(10, 40, 70, 0.12),
    0 0 40px -8px rgba(11, 107, 203, 0.12);
  transform: translateY(-3px);
}

.cta-banner {
  background: linear-gradient(180deg, #d4eef9 0%, #e8f4fc 100%);
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(11, 107, 203, 0.1), transparent 65%);
}

.city-chip {
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.city-chip:hover {
  border-color: rgba(11, 107, 203, 0.45);
  color: var(--color-accent);
  background-color: rgba(11, 107, 203, 0.06);
  box-shadow: 0 0 20px rgba(11, 107, 203, 0.08);
}

.city-chip-accent {
  border-color: rgba(11, 107, 203, 0.45);
  background: rgba(11, 107, 203, 0.1);
  font-weight: 600;
  color: var(--color-accent);
}

.city-chip-accent:hover {
  background: rgba(11, 107, 203, 0.16);
}

.link-accent-arrow {
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.link-accent-arrow:hover {
  color: var(--color-accent-soft);
  text-shadow: 0 0 20px rgba(11, 107, 203, 0.25);
}

/* Card hover */
.card-hover {
  border: 1px solid var(--color-border);
  background: linear-gradient(165deg, #ffffff 0%, #f5f9fc 100%);
  border-radius: 0.75rem;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  box-shadow: 0 8px 28px rgba(10, 40, 70, 0.08);
}

.card-hover:hover {
  border-color: rgba(11, 107, 203, 0.4);
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(10, 40, 70, 0.12),
    0 0 40px -8px rgba(11, 107, 203, 0.1);
}

/* Section label */
.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  text-shadow: 0 0 24px rgba(11, 107, 203, 0.2);
}

/* Sticky header — overflow visible so dropdown panels are not clipped */
.site-header {
  overflow: visible;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 32px rgba(10, 40, 70, 0.1);
  border-bottom-color: rgba(11, 107, 203, 0.15);
  background-color: rgba(255, 255, 255, 0.97);
}

.logo-mark {
  background: linear-gradient(135deg, #7ec8ff 0%, var(--color-accent) 50%, #064a8f 100%);
  box-shadow: 0 0 20px rgba(11, 107, 203, 0.35);
}

/* Brand logo sizing guard: prevent overlap with nav on all devices */
#site-header .brand-link {
  width: clamp(160px, 25vw, 260px);
  max-width: 260px;
}

#site-header .brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

@media (max-width: 1023px) {
  #site-header .brand-link {
    width: clamp(150px, 44vw, 230px);
    max-width: 230px;
  }

  #site-header .brand-logo {
    max-height: 50px;
  }
}

@media (max-width: 639px) {
  #site-header .brand-link {
    width: clamp(132px, 56vw, 190px);
    max-width: 190px;
  }

  #site-header .brand-logo {
    max-height: 40px;
  }
}

.nav-toggle-btn {
  border-color: rgba(11, 107, 203, 0.25);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Mobile nav visibility guard */
#site-header .nav-toggle-btn {
  display: inline-flex !important;
}

#site-header a.btn-cta.hidden {
  display: none !important;
}

@media (min-width: 40rem) {
  #site-header a.btn-cta.hidden {
    display: inline-flex !important;
  }
}

@media (min-width: 64rem) {
  #site-header .nav-toggle-btn {
    display: none !important;
  }
}

.nav-toggle-btn:hover {
  border-color: rgba(11, 107, 203, 0.45);
  background-color: rgba(11, 107, 203, 0.06);
  box-shadow: 0 0 16px rgba(11, 107, 203, 0.1);
}

/* Dropdown panel */
.nav-dropdown-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  border: 1px solid rgba(11, 107, 203, 0.12);
  box-shadow:
    0 20px 50px rgba(10, 40, 70, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.8);
}

.nav-dropdown-panel:not(.nav-mega-panel) a:hover {
  border-left: 3px solid var(--color-accent);
  padding-left: calc(0.75rem - 3px);
}

.nav-mega-panel {
  box-sizing: border-box;
  max-width: min(56rem, calc(100vw - 1.5rem));
  scrollbar-gutter: stable;
}

.nav-mega-panel .grid {
  min-width: 0;
}

.nav-mega-panel a.block:hover {
  border-left: none;
  padding-left: 1rem;
}

.nav-mega-panel .nav-mega-link:hover {
  border-left: 3px solid var(--color-accent);
  padding-left: calc(1rem - 3px);
}

.nav-chevron svg {
  display: block;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
  animation: wa-pulse 2s ease-in-out infinite;
  isolation: isolate;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

@keyframes wa-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

.wa-float[title],
.wa-float[data-tooltip] {
  position: fixed;
}

/* Service tabs */
.service-tab {
  border-radius: 0.5rem 0.5rem 0 0;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.service-tab:hover {
  color: var(--color-white);
  background-color: rgba(166, 235, 56, 0.08);
}

.service-tab.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  background: linear-gradient(180deg, rgba(166, 235, 56, 0.12) 0%, transparent 100%);
  text-shadow: 0 0 20px rgba(166, 235, 56, 0.2);
}

.service-panel[hidden] {
  display: none;
}

/* Stat numbers */
.stat-num {
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100000;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Partner logo marquee */
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee-scroll 45s linear infinite;
}

.marquee-track img {
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.marquee-track img:hover {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(11, 107, 203, 0.22));
  transform: scale(1.04);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Scroll reveal (homepage / optional sections) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal.reveal-delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

  .wa-float {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal.reveal-delay-1,
  .reveal.reveal-delay-2,
  .reveal.reveal-delay-3 {
    transition-delay: 0s;
  }
}

.site-header a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 700;
}

.readable-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--color-heading);
}

.readable-content h4 {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-heading);
}

.readable-content p {
  margin-top: 0.55rem;
  margin-bottom: 0.75rem;
  max-width: 78ch;
  line-height: 1.8;
  color: var(--color-text);
}

.faq-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.faq-card {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  padding: 1rem 1rem 0.85rem;
  box-shadow: 0 10px 24px rgba(10, 40, 70, 0.06);
}

