/* ================================================================
   SEOHub360 – Master Stylesheet
   Typography: Syne (headings) + Plus Jakarta Sans (body)
   Colors: Dark Navy #0d1b4b | Accent Orange #ff6b35 | White #ffffff
   ================================================================ */

/* ── CSS Variables ──────────────────────────────────────────────── */
:root {
  --navy: #0d1b4b;
  --navy-dark: #080f2a;
  --navy-mid: #162263;
  --orange: #ff6b35;
  --orange-dark: #e55a24;
  --orange-glow: rgba(255, 107, 53, 0.15);
  --white: #ffffff;
  --off-white: #f7f8fc;
  --light-grey: #eef0f7;
  --text-dark: #1a1a2e;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: rgba(13, 27, 75, 0.1);
  --shadow-sm: 0 2px 12px rgba(13, 27, 75, 0.08);
  --shadow-md: 0 8px 32px rgba(13, 27, 75, 0.12);
  --shadow-lg: 0 20px 60px rgba(13, 27, 75, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-head: "Syne", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--orange-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Prevent font swap CLS ───────────────────────────────────── */
@font-face {
  font-display: swap;
}

p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}

/* ── Page Loader ────────────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
#page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.loader-logo span {
  color: var(--orange);
}

.loader-ring {
  width: 48px;
  height: 48px;
  position: relative;
}
.loader-ring span {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
}
.loader-ring span:nth-child(1) {
  border-top-color: var(--orange);
  animation: spin 0.9s linear infinite;
}
.loader-ring span:nth-child(2) {
  border-right-color: rgba(255, 107, 53, 0.5);
  animation: spin 1.2s linear infinite reverse;
}
.loader-ring span:nth-child(3) {
  border-bottom-color: rgba(255, 107, 53, 0.25);
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Header / Navbar ────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    padding 0.3s ease;
  padding: 0;
}
.site-header.scrolled {
  background: var(--navy-dark);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.navbar {
  padding: 1.25rem 0;
  transition: padding 0.3s ease;
}
.site-header.scrolled .navbar {
  padding: 0.75rem 0;
}

.logo-text {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: -1px;
}
.logo-text span {
  color: var(--orange);
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
  letter-spacing: 0.2px;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--white) !important;
}

.navbar-toggler {
  border: none;
  background: none;
  padding: 0.25rem;
  outline: none;
  box-shadow: none;
}
.toggler-icon {
  font-size: 1.6rem;
  color: var(--white);
}

/* CTA Button */
.btn-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.2px;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.45);
  background: linear-gradient(135deg, var(--orange-dark), #c94a1e);
}

.btn-outline-white {
  background: transparent;
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ── Mobile Nav ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .site-header {
    background: var(--navy-dark);
  }
  #mainNav {
    background: var(--navy-mid);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
  }
  .navbar-nav .nav-link {
    padding: 0.65rem 1rem !important;
  }
  .ms-lg-3 {
    margin-top: 0.75rem;
  }
  /* Rotate chevron when dropdown is open on mobile */
  .nav-dropdown-wrap.open .nav-chevron {
    transform: rotate(180deg) !important;
  }
}

/* ── Section Utilities ──────────────────────────────────────────── */
.section-pad {
  padding: 5rem 0;
}
.section-pad-sm {
  padding: 3.5rem 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-glow);
  color: var(--orange);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 107, 53, 0.25);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.section-title span {
  color: var(--orange);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.1s !important;
}
.reveal-delay-2 {
  transition-delay: 0.2s !important;
}
.reveal-delay-3 {
  transition-delay: 0.3s !important;
}
.reveal-delay-4 {
  transition-delay: 0.4s !important;
}

/* ── Hero Section ───────────────────────────────────────────────── */
.hero-section {
  min-height: 120vh;
  /* Fallback gradient when video hasn't loaded or on mobile */
  background:
    radial-gradient(
      ellipse 80% 60% at 70% 40%,
      rgba(255, 107, 53, 0.08) 0%,
      transparent 60%
    ),
    linear-gradient(
      145deg,
      var(--navy-dark) 0%,
      var(--navy) 50%,
      var(--navy-mid) 100%
    );
  display: flex;
  align-items: top;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

/* ── Hero Background Video ────────────────────────────────────── */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* Slight desaturation + darken so it blends with navy theme */
  filter: saturate(0.7) brightness(0.55);
  pointer-events: none;
}

/* Dual-layer overlay:
   Layer 1 — navy brand gradient (left heavy) keeps brand color
   Layer 2 — pure dark vignette on edges for depth
   Combined opacity ensures WCAG 4.5:1 contrast ratio for all white text */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
        /* Strong left-side navy for text area */
    linear-gradient(
      105deg,
      rgba(9, 19, 55, 0.88) 0%,
      rgba(13, 27, 75, 0.82) 40%,
      rgba(13, 27, 75, 0.65) 65%,
      rgba(9, 19, 55, 0.55) 100%
    ),
    /* Edge vignette for cinematic depth */
    radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(5, 10, 35, 0.45) 100%
      );
  pointer-events: none;
}

/* Keep all hero content above video and overlay */
.hero-content,
.hero-visual,
.hero-title-full,
.hero-badge {
  position: relative;
  z-index: 2;
}

/* ── Responsive utility ── */
@media (min-width: 576px) {
  .w-sm-auto {
    width: auto !important;
  }
}

/* Mobile — video visible, slightly stronger overlay for smaller screens */
@media (max-width: 991px) {
  .hero-bg-video {
    object-position: center center;
  }
  .hero-video-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(9, 19, 55, 0.88) 0%,
        rgba(13, 27, 75, 0.8) 50%,
        rgba(9, 19, 55, 0.88) 100%
      ),
      radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(5, 10, 35, 0.5) 100%
      );
  }
}

/* Animated mesh background */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 80%,
      rgba(255, 107, 53, 0.07) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 107, 53, 0.05) 0%,
      transparent 50%
    );
  animation: meshMove 8s ease-in-out infinite alternate;
}
@keyframes meshMove {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.05) translate(1%, -1%);
  }
}

/* Grid overlay */
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--orange), #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Full-width H1 — typewriter version ───────────────────────── */
/* Static H1 with fade-in — no CLS */
.hero-title-full {
  animation: fadeInUp 0.6s ease forwards;
  /* Scale to fit full container width on one line */
  font-size: clamp(1.15rem, 2.55vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 2rem;
  margin-top: 0.25rem;
  /* min-height removed — text is now static, no reservation needed */
  display: block;
  width: 100%;
}

/* Blinking cursor */
.hero-cursor-static {
  display: inline-block;
  color: var(--orange);
  animation: cursorBlink 1.2s step-end infinite;
  opacity: 0.7;
  margin-left: 2px;
}
.hero-cursor {
  display: inline-block;
  color: var(--orange);
  font-weight: 400;
  margin-left: 2px;
  animation: cursorBlink 0.75s step-end infinite;
  -webkit-text-fill-color: var(--orange);
}
@keyframes cursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
/* Hide cursor after typing completes */
.hero-cursor.done {
  animation: cursorBlink 1.5s step-end infinite;
  opacity: 0.6;
}

/* Mobile — allow wrapping, bigger font */
@media (max-width: 767px) {
  /* Static H1 with fade-in — no CLS */
.hero-title-full {
  animation: fadeInUp 0.6s ease forwards;
    font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    letter-spacing: -0.3px;
    margin-bottom: 1.5rem;
    min-height: 2.8em;
    white-space: normal;
  }
}
@media (max-width: 480px) {
  /* Static H1 with fade-in — no CLS */
.hero-title-full {
  animation: fadeInUp 0.6s ease forwards;
    font-size: clamp(1.1rem, 5vw, 1.5rem);
  }
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item {
}
.stat-number {
  min-width: 4ch; /* prevents layout shift as numbers count up */
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-number span {
  color: var(--orange);
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 1;
  /* Align card top with the hero-title — offset = badge height + its margin-bottom */
  padding-top: 3.8rem;
}
@media (max-width: 991px) {
  .hero-visual {
    padding-top: 0;
  }
}
.hero-card-stack {
  position: relative;
}

.seo-score-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
}
.seo-score-card .score-ring {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(
    var(--orange) 0deg 302deg,
    rgba(255, 255, 255, 0.1) 302deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
}
.seo-score-card .score-ring::before {
  content: "";
  position: absolute;
  width: 75px;
  height: 75px;
  background: rgba(13, 27, 75, 0.9);
  border-radius: 50%;
}
.seo-score-card .score-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  z-index: 1;
  position: relative;
}
.score-label {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}
.score-metrics {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-name {
  font-size: 0.8rem;
  opacity: 0.7;
}
.metric-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 0 0.75rem;
}
.metric-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), #ffb347);
  transition: width 1.5s ease;
}
.metric-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
}

.floating-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  animation: floatBob 3s ease-in-out infinite;
}
.floating-badge .fb-icon {
  font-size: 1.25rem;
}
.floating-badge-1 {
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}
.floating-badge-2 {
  bottom: -40px;
  left: -30px;
  animation-delay: 1.5s;
}

@keyframes floatBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ── Services Overview ──────────────────────────────────────────── */
.services-section {
  background: var(--off-white);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 53, 0.2);
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  background: var(--orange-glow);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: var(--transition);
}
.service-card:hover .service-icon-wrap {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--navy);
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.service-link i {
  transition: transform 0.3s ease;
}
.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* ── Why Choose Us ──────────────────────────────────────────────── */
.why-section {
  background: var(--white);
}
/* ── Nav Dropdown ────────────────────────────────────────────── */
.nav-dropdown-wrap {
  position: relative;
}

.nav-chevron {
  font-size: 0.65rem;
  margin-left: 0.2rem;
  transition: transform 0.25s ease;
  vertical-align: middle;
}

.nav-dropdown-wrap:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow:
    0 20px 60px rgba(13, 27, 75, 0.18),
    0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(13, 27, 75, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s;
  transform: translateX(-50%) translateY(-8px);
  z-index: 9999;
}

/* arrow pointer */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid rgba(13, 27, 75, 0.06);
  border-top: 1px solid rgba(13, 27, 75, 0.06);
  border-radius: 3px 0 0 0;
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-inner {
  padding: 0.5rem;
}

.nav-dropdown-all {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--navy);
  text-decoration: none;
  background: var(--off-white);
  transition:
    background 0.18s,
    color 0.18s;
  letter-spacing: -0.1px;
}

.nav-dropdown-all:hover {
  background: rgba(255, 107, 53, 0.1);
  color: var(--orange);
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(13, 27, 75, 0.07);
  margin: 0.4rem 0.5rem;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition:
    background 0.18s,
    color 0.18s,
    padding-left 0.18s;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: rgba(255, 107, 53, 0.08);
  color: var(--orange);
  padding-left: 1.25rem;
}

.nav-dropdown-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

/* ── Mobile Dropdown — complete rewrite for reliability ─────────── */
@media (max-width: 991px) {
  /* Fix Bootstrap navbar-collapse overflow clipping the dropdown */
  #mainNav,
  #mainNav .navbar-nav {
    overflow: visible !important;
  }

  /* Disable ALL desktop dropdown behaviour */
  .nav-dropdown {
    /* Reset desktop absolute positioning */
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    /* Reset desktop visibility tricks */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    /* Hide until .open is toggled by JS */
    display: none;
    /* Solid, clearly visible mobile panel */
    background: #1a2d6b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    width: 100%;
    margin: 0.4rem 0 0.5rem 0;
    /* No desktop transition — instant show/hide on mobile */
    transition: none !important;
    z-index: 10;
    min-width: unset;
  }

  /* Show when JS adds .open class */
  .nav-dropdown-wrap.open .nav-dropdown {
    display: block !important;
  }

  /* Arrow pointer — not needed on mobile */
  .nav-dropdown::before {
    display: none !important;
  }

  /* No hover-open on mobile */
  .nav-dropdown-wrap:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .nav-dropdown-wrap:hover .nav-chevron {
    transform: none;
  }

  /* Inner padding */
  .nav-dropdown-inner {
    padding: 0.5rem;
  }

  /* "All Services" button */
  .nav-dropdown-all {
    display: flex;
    align-items: center;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.35);
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    text-decoration: none;
    letter-spacing: 0;
  }
  .nav-dropdown-all:hover,
  .nav-dropdown-all:focus {
    background: rgba(255, 107, 53, 0.35);
    color: #fff !important;
  }

  /* Divider */
  .nav-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0.5rem 0.3rem;
  }

  /* Individual service links */
  .nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition:
      background 0.15s,
      padding-left 0.15s;
  }
  .nav-dropdown-item:hover,
  .nav-dropdown-item.active {
    background: rgba(255, 107, 53, 0.2);
    color: var(--orange) !important;
    padding-left: 1.2rem;
  }

  /* Icon */
  .nav-dropdown-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
  }
}

.why-visual {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why-visual::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.15),
    transparent 70%
  );
  border-radius: 50%;
}

.why-stat {
  padding: 1.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  overflow: hidden;
}
.why-stat:hover {
  background: rgba(255, 107, 53, 0.12);
  border-color: rgba(255, 107, 53, 0.3);
}
.why-stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1.1;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
}
.why-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.4rem;
  line-height: 1.3;
}
.why-suffix {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.why-feature {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--orange-glow);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.15rem;
}
.why-feature-text h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.why-feature-text p {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
}

/* ── Process Section ────────────────────────────────────────────── */
.process-section {
  background: var(--off-white);
}
.process-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
}
.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}
.step-content h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--navy);
}
.step-content p {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin: 0;
}

/* ── Testimonials ───────────────────────────────────────────────── */
.testimonials-section {
  background: var(--navy-dark);
}
.testimonials-section .section-title {
  color: var(--white);
}
.testimonials-section .section-subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 107, 53, 0.25);
  transform: translateY(-4px);
}

.stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  color: var(--orange);
  line-height: 0;
  vertical-align: -1rem;
  margin-right: 0.25rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.reviewer-name {
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
}
.reviewer-role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── FAQ Section ────────────────────────────────────────────────── */
.faq-section {
  background: var(--off-white);
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.3s ease;
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  transition: var(--transition);
}
.faq-question:hover {
  color: var(--orange);
}
.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--orange-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 0.85rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--orange);
  color: var(--white);
}
.faq-item.active .faq-question {
  color: var(--orange);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.3s ease;
  padding: 0 1.5rem;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}
.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.7;
}

/* ── Blog Cards ─────────────────────────────────────────────────── */
.blog-section {
  background: var(--white);
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 53, 0.2);
}
.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  overflow: hidden;
  position: relative;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}
.blog-img-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.3;
}
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-date {
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.blog-card-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-card-body p {
  font-size: 0.85rem;
  color: var(--text-mid);
  flex: 1;
  margin-bottom: 1rem;
}
.read-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.read-more i {
  transition: transform 0.3s ease;
}
.blog-card:hover .read-more i {
  transform: translateX(4px);
}

/* Blog Detail Page */
.blog-detail {
  max-width: 780px;
  margin: 0 auto;
}
.blog-detail-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.blog-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--navy);
}
.blog-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--navy);
}
.blog-content p {
  margin-bottom: 1.25rem;
  color: var(--text-mid);
  line-height: 1.85;
}
.blog-content ul,
.blog-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.blog-content li {
  color: var(--text-mid);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.blog-content a {
  color: var(--orange);
  border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

/* ── CTA Banner ─────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(
    135deg,
    var(--navy-dark) 0%,
    var(--navy-mid) 100%
  );
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 60% 50%,
    rgba(255, 107, 53, 0.12),
    transparent 70%
  );
}
.cta-section .section-title {
  color: var(--white);
}
.cta-section p {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Contact Form ───────────────────────────────────────────────── */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-control,
.form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: var(--transition);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
  outline: none;
}
textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.alert-success-custom {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.alert-error-custom {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #991b1b;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
  height: 100%;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.ci-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ci-text strong {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
}
.ci-text span,
.ci-text a {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
}

/* ── Service Detail Page ────────────────────────────────────────── */
.service-hero {
  background: linear-gradient(145deg, var(--navy-dark), var(--navy-mid));
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.service-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 0.75rem;
  transition: var(--transition);
}
.benefit-item:hover {
  border-color: rgba(255, 107, 53, 0.3);
  background: var(--orange-glow);
}
.benefit-check {
  width: 22px;
  height: 22px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.breadcrumb-wrap {
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.breadcrumb {
  background: none;
  margin: 0;
  padding: 0;
}
.breadcrumb-item a {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 500;
}
.breadcrumb-item.active {
  color: var(--text-mid);
  font-size: 0.85rem;
}
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-light);
}

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination {
  gap: 0.35rem;
}
.page-link {
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0.9rem;
  transition: var(--transition);
}
.page-link:hover {
  background: var(--orange-glow);
  border-color: var(--orange);
  color: var(--orange);
}
.page-item.active .page-link {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

/* ── Newsletter Bar ─────────────────────────────────────────────── */
.newsletter-bar {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  padding: 3rem 0;
}
.nl-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.nl-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0;
}
.nl-input-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.nl-input {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 1.25rem;
  border-radius: 50px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}
.newsletter-bar .btn-cta {
  background: var(--navy-dark);
  box-shadow: none;
}
.newsletter-bar .btn-cta:hover {
  background: var(--navy);
}
.nl-msg {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  display: inline-block;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.footer-logo span {
  color: var(--orange);
}
.footer-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-links a::before {
  content: "→";
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.footer-links a:hover {
  color: var(--orange);
}
.footer-links a:hover::before {
  opacity: 1;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-contact i {
  color: var(--orange);
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
}
.footer-contact a:hover {
  color: var(--orange);
}

.footer-main {
  padding: 4rem 0 2.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.25rem 0;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}
.heart {
  color: var(--orange);
}

/* ── WhatsApp Float ─────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  color: var(--white);
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #25d366;
  border-radius: 50%;
  animation: wa-pulse 2.5s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
.wa-tooltip {
  position: absolute;
  right: 110%;
  background: var(--navy-dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
  pointer-events: none;
}
.whatsapp-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── Inner Page Hero ────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(145deg, var(--navy-dark), var(--navy-mid));
  padding: 9rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto;
}

/* Scroll to top */
#scrollTopBtn {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}
#scrollTopBtn.visible {
  opacity: 1;
  transform: translateY(0);
}
#scrollTopBtn:hover {
  background: var(--orange);
}

/* ── Utilities ──────────────────────────────────────────────────── */
.text-orange {
  color: var(--orange) !important;
}
.bg-navy {
  background: var(--navy-dark) !important;
}
.bg-light-custom {
  background: var(--off-white) !important;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE / MOBILE-FIRST CSS  — SEOHub360
   Breakpoints:
     Tablet landscape : max-width 991px & min-width 768px
     Tablet portrait  : max-width 767px
     Phone            : max-width 575px
     Small phone      : max-width 380px
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet landscape (768–991px) ──────────────────────────────── */
@media (max-width: 991px) and (min-width: 768px) {
  .hero-section {
    padding-top: 100px;
  }
  .hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .section-pad {
    padding: 4rem 0;
  }
  .section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
  }
  .hero-stats {
    gap: 1.5rem;
  }
  .footer-main {
    padding: 3rem 0 2rem;
  }
}

/* ── Tablet portrait + all phones (max 767px) ───────────────────── */
@media (max-width: 767px) {
  /* ─ Container breathing room ─ */
  .container {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  /* ─ Hero Section ─ */
  .hero-section {
    min-height: auto;
    padding-top: 85px;
    padding-bottom: 2.5rem;
  }
  /* Fix gutter — target the row directly via child combinator */
  .hero-section > .container > .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1.75rem;
  }
  .hero-content {
    z-index: 2;
  }
  .hero-visual {
    z-index: 2;
    padding-top: 0;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7.5vw, 2.8rem);
    letter-spacing: -0.5px;
    margin-bottom: 0.85rem;
    line-height: 1.12;
  }
  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.75rem;
  }
  .hero-actions .btn-cta,
  .hero-actions .btn-outline-white {
    width: 100%;
    justify-content: center;
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Hero stats — 2x2 grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.25rem;
    padding-top: 1.25rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 0.72rem;
    margin-top: 0.2rem;
  }

  /* Score card */
  .seo-score-card {
    padding: 1.25rem;
    max-width: 100%;
  }
  .seo-score-card .score-ring {
    width: 80px;
    height: 80px;
  }
  .seo-score-card .score-ring::before {
    width: 60px;
    height: 60px;
  }
  .score-value {
    font-size: 1.2rem;
  }
  .score-label {
    font-size: 0.78rem;
  }
  .score-metrics {
    gap: 0.55rem;
    margin-top: 1rem;
  }
  .metric-name,
  .metric-val {
    font-size: 0.72rem;
  }

  /* Hide floating badges on mobile — they overflow */
  .floating-badge-1,
  .floating-badge-2 {
    display: none;
  }

  /* ─ Section globals ─ */
  .section-pad {
    padding: 2.75rem 0;
  }
  .section-pad-sm {
    padding: 2rem 0;
  }
  .section-label {
    font-size: 0.7rem;
  }
  .section-title {
    font-size: clamp(1.65rem, 6vw, 2.4rem);
    margin-bottom: 0.75rem;
  }
  .section-subtitle {
    font-size: 0.88rem;
  }
  /* Tighter mb on section heading blocks */
  .text-center.mb-4,
  .text-center.mb-4.mb-lg-5 {
    margin-bottom: 1.75rem !important;
  }

  /* ─ Tools Marquee ─ */
  .tools-label {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
  }
  .tool-item {
    padding: 0.18rem 0.5rem;
    gap: 0.35rem;
  }
  .tool-item span {
    font-size: 0.7rem;
  }
  .tool-item img {
    width: 16px;
    height: 16px;
  }

  /* ─ Services ─ */
  .service-card {
    padding: 1.35rem;
  }
  .service-icon-wrap {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .service-card h4 {
    font-size: 1rem;
  }
  .service-card p {
    font-size: 0.83rem;
  }

  /* ─ Why Choose Us ─ */
  .why-section > .container > .row {
    --bs-gutter-y: 1.5rem;
  }
  .why-visual {
    padding: 1.25rem;
  }
  .why-stat {
    padding: 1rem 0.6rem;
  }
  .why-stat-num {
    font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
  }
  .why-suffix {
    font-size: 1rem !important;
  }
  .why-stat-label {
    font-size: 0.65rem;
  }
  .why-feature {
    gap: 0.65rem;
    margin-bottom: 1rem;
  }
  .why-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    flex-shrink: 0;
  }
  .why-feature-text h5 {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
  }
  .why-feature-text p {
    font-size: 0.82rem;
  }

  /* ─ Process Steps ─ */
  .process-step {
    gap: 0.85rem;
    margin-bottom: 0;
  }
  .step-number {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }
  .step-content h5 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }
  .step-content p {
    font-size: 0.82rem;
  }

  /* ─ Testimonials ─ */
  .testimonial-card {
    padding: 1.25rem;
  }
  .testimonial-text {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
  }
  .testimonial-text::before {
    font-size: 2.2rem;
    vertical-align: -0.7rem;
  }
  .stars {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }
  .reviewer-name {
    font-size: 0.85rem;
  }
  .reviewer-role {
    font-size: 0.72rem;
  }

  /* ─ Blog ─ */
  .blog-section .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem !important;
  }
  .blog-section .d-flex.justify-content-between .btn {
    width: 100%;
    justify-content: center;
  }
  .blog-card-img {
    height: 160px;
  }
  .blog-card-body {
    padding: 1.1rem;
  }
  .blog-card-body h4 {
    font-size: 0.95rem;
  }

  /* ─ FAQ ─ */
  .faq-section > .container > .row {
    --bs-gutter-y: 1.5rem;
  }
  .faq-section .col-lg-4 {
    text-align: center;
  }
  .faq-section .col-lg-4 .btn-cta {
    width: 100%;
    justify-content: center;
  }
  .faq-question {
    font-size: 0.88rem;
    padding: 0.9rem 1.1rem;
  }
  .faq-answer {
    padding: 0 1.1rem;
  }
  .faq-item.active .faq-answer {
    padding: 0 1.1rem 1rem;
  }
  .faq-answer p {
    font-size: 0.85rem;
  }
  .faq-icon {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }

  /* ─ CTA Banner ─ */
  .cta-section .section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .cta-section .d-flex .btn-cta,
  .cta-section .d-flex .btn-outline-white,
  .w-100.w-sm-auto {
    width: 100% !important;
    justify-content: center;
  }

  /* ─ Footer ─ */
  .footer-main {
    padding: 2.25rem 0 1.25rem;
  }
  .footer-desc {
    font-size: 0.83rem;
    margin-bottom: 1.1rem;
  }
  .footer-heading {
    font-size: 0.88rem;
    margin-bottom: 0.9rem;
    margin-top: 1.25rem;
  }
  .footer-links a {
    font-size: 0.82rem;
  }
  .footer-contact li {
    font-size: 0.82rem;
  }
  .footer-bottom {
    padding: 0.85rem 0;
  }
  .footer-bottom > .container > div {
    flex-direction: column !important;
    gap: 0.4rem !important;
    text-align: center;
  }

  /* ─ Contact page ─ */
  .contact-form-wrap {
    padding: 1.35rem;
  }
  .contact-info-card {
    padding: 1.35rem;
    margin-top: 1.25rem;
  }

  /* ─ Inner page hero ─ */
  .page-hero {
    padding: 6.5rem 0 2.5rem;
  }
  .page-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.4rem);
    margin-bottom: 0.75rem;
  }
  .page-hero p {
    font-size: 0.9rem;
  }

  /* ─ Blog detail page ─ */
  .blog-detail-img {
    height: 200px;
    border-radius: 0.75rem;
  }
  .blog-content h2 {
    font-size: 1.3rem;
  }
  .blog-content h3 {
    font-size: 1.1rem;
  }

  /* ─ Service detail page ─ */
  .service-hero {
    padding: 6rem 0 3rem;
  }

  /* ─ WhatsApp + Scroll Top ─ */
  .whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    bottom: 1.25rem;
    right: 1.25rem;
  }
  .wa-tooltip {
    display: none;
  }
  #scrollTopBtn {
    width: 38px;
    height: 38px;
    bottom: 4.75rem;
    right: 1.25rem;
  }
}

/* ── Small phones (max 480px) ───────────────────────────────────── */
@media (max-width: 480px) {
  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
  .hero-title {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }
  .hero-stats {
    gap: 0.6rem 0.9rem;
  }
  .stat-number {
    font-size: 1.35rem;
  }
  .why-stat-num {
    font-size: 1.2rem !important;
  }
  .section-title {
    font-size: clamp(1.5rem, 7.5vw, 2rem);
  }
  .testimonial-text {
    font-size: 0.82rem;
  }
  .footer-heading {
    font-size: 0.82rem;
  }
  .btn-cta,
  .btn-outline-white {
    font-size: 0.84rem;
    padding: 0.7rem 1.1rem;
  }
}

/* ── Very small phones (max 360px) ─────────────────────────────── */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .hero-badge {
    font-size: 0.65rem;
  }
  .stat-number {
    font-size: 1.2rem;
  }
  .why-stat-num {
    font-size: 1.1rem !important;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .navbar {
    padding: 0.85rem 0;
  }
}

/* ── Tools Marquee Bar ──────────────────────────────────────── */
.tools-bar {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
}

.tools-label {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.6rem;
}

.tools-track-wrap {
  overflow: hidden;
  position: relative;
  /* fade edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.tools-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: toolsScroll 35s linear infinite;
}

.tools-track:hover {
  animation-play-state: paused;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  transition:
    background 0.2s,
    border-color 0.2s;
  cursor: default;
}

.tool-item:hover {
  background: rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.25);
}

.tool-item img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.tool-item span {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: -0.2px;
}

.tool-item:hover span {
  color: var(--orange);
}

@keyframes toolsScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}