/* =============================================================================
   FINCHAT HUB — MAIN STYLESHEET
   Tokens → Reset → Typography → Layout → Components → Sections → Responsive
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   --fc-red extracted from logo: #FF0000 (pure saturated red from FinChat Hub logo)
   To re-extract: python3 extract_brand_red.py logo.png finchat-hub/assets/css/main.css
   ----------------------------------------------------------------------------- */
:root {
  /* Brand colours */
  --fc-red:         #FF0000;
  --fc-red-dark:    #CC0000;
  --fc-red-light:   #FFF0F0;
  --fc-black:       #0D0D0D;
  --fc-white:       #FAFAFA;
  --fc-grey:        #F4F4F4;
  --fc-grey-mid:    #E0E0E0;
  --fc-grey-text:   #6B6B6B;

  /* WhatsApp green — used ONLY on WA button */
  --fc-wa-green:    #25D366;
  --fc-wa-green-dk: #1DA851;

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Sizing */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-nav:  0 2px 16px rgba(0, 0, 0, 0.12);
  --shadow-btn:  0 4px 16px rgba(255, 0, 0, 0.30);

  /* Transitions */
  --transition-fast: 180ms ease;
  --transition-mid:  320ms ease;

  /* Container */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 5vw, 2rem);

  /* Section spacing */
  --section-py: clamp(3rem, 7vw, 6rem);
}

/* -----------------------------------------------------------------------------
   2. RESET & BASE
   ----------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: #0D0D0D;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fc-white);
  background:
    radial-gradient(ellipse 70% 25% at 80% 5%,  rgba(255,0,0,0.16) 0%, transparent 55%),
    radial-gradient(ellipse 55% 20% at 10% 18%, rgba(255,0,0,0.09) 0%, transparent 50%),
    radial-gradient(ellipse 60% 20% at 60% 33%, rgba(255,0,0,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 65% 22% at 15% 50%, rgba(255,0,0,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 55% 18% at 88% 63%, rgba(255,0,0,0.09) 0%, transparent 50%),
    radial-gradient(ellipse 60% 20% at 35% 78%, rgba(255,0,0,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 18% at 75% 92%, rgba(255,0,0,0.07) 0%, transparent 50%),
    linear-gradient(180deg, #0F0000 0%, #0D0D0D 12%, #160000 28%, #0D0D0D 44%, #180000 60%, #0D0D0D 74%, #130000 88%, #0D0D0D 100%);
  overflow-x: hidden;
}

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

a {
  color: var(--fc-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--fc-red-dark); }

ul, ol { list-style: none; }

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

/* -----------------------------------------------------------------------------
   3. TYPOGRAPHY
   ----------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--fc-grey-text);
}

.text-centre { text-align: center; }
.text-white  { color: var(--fc-white); }
.text-red    { color: var(--fc-red); }

/* -----------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   ----------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-py);
}

.section--dark {
  background: transparent;
  color: var(--fc-white);
}
.section--grey {
  background: transparent;
  color: var(--fc-white);
}
.section--red {
  background: linear-gradient(135deg, #FF0000 0%, #CC0000 50%, #E50000 100%);
  color: var(--fc-white);
}
.section--red-lt {
  background: transparent;
  color: var(--fc-white);
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex-centre {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Section heading block */
.section-heading {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-heading .eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fc-red);
  background: var(--fc-red-light);
  border-radius: var(--radius-pill);
  padding: 0.3em 1em;
  margin-bottom: 1rem;
}
.section--dark .section-heading .eyebrow,
.section--grey .section-heading .eyebrow,
.section--red-lt .section-heading .eyebrow,
.how-it-works .section-heading .eyebrow,
.service-categories .section-heading .eyebrow,
.features .section-heading .eyebrow,
.testimonials .section-heading .eyebrow {
  background: rgba(255,255,255,0.1);
  color: var(--fc-red);
}
.section-heading h2 { margin-bottom: 0.75rem; }
.section-heading p  { max-width: 560px; margin-inline: auto; color: var(--fc-grey-text); }
.section--dark .section-heading p,
.section--grey .section-heading p,
.section--red-lt .section-heading p,
.how-it-works .section-heading p,
.service-categories .section-heading p,
.features .section-heading p,
.testimonials .section-heading p { color: rgba(255,255,255,0.65); }

/* Scroll-animation utility */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-up[data-delay="1"] { transition-delay: 0.1s; }
.fade-in-up[data-delay="2"] { transition-delay: 0.2s; }
.fade-in-up[data-delay="3"] { transition-delay: 0.3s; }
.fade-in-up[data-delay="4"] { transition-delay: 0.4s; }
.fade-in-up[data-delay="5"] { transition-delay: 0.5s; }
.fade-in-up[data-delay="6"] { transition-delay: 0.6s; }

/* -----------------------------------------------------------------------------
   5. BUTTONS
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75em 1.6em;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary — red */
.btn-primary {
  background-color: var(--fc-red);
  color: var(--fc-white);
  border-color: var(--fc-red);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background-color: var(--fc-red-dark);
  border-color: var(--fc-red-dark);
  color: var(--fc-white);
  box-shadow: 0 6px 20px rgba(255,0,0,0.4);
}

/* Outline white */
.btn-outline-white {
  background-color: transparent;
  color: var(--fc-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: var(--fc-white);
  color: var(--fc-white);
}

/* WhatsApp button */
.btn-whatsapp {
  background-color: var(--fc-wa-green);
  color: var(--fc-white);
  border-color: var(--fc-wa-green);
  font-size: 1.05rem;
  padding: 0.85em 2em;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background-color: var(--fc-wa-green-dk);
  border-color: var(--fc-wa-green-dk);
  color: var(--fc-white);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.btn-whatsapp svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Nav CTA */
.btn-nav-cta {
  background-color: var(--fc-red);
  color: var(--fc-white);
  border-color: var(--fc-red);
  font-size: 0.875rem;
  padding: 0.55em 1.3em;
}
.btn-nav-cta:hover {
  background-color: var(--fc-red-dark);
  color: var(--fc-white);
}

/* -----------------------------------------------------------------------------
   6. NAVIGATION
   ----------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color var(--transition-mid),
              box-shadow var(--transition-mid),
              padding var(--transition-mid);
}

.site-header.is-transparent {
  background-color: transparent;
}

.site-header.is-sticky {
  background-color: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  transition: padding var(--transition-mid);
}
.site-header.is-sticky .nav-inner { padding-block: 0.6rem; }

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img { height: 44px; width: auto; }
.site-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fc-white);
  letter-spacing: -0.02em;
}
.site-logo .logo-text span { color: var(--fc-red); }
.site-header.is-sticky .site-logo .logo-text { color: var(--fc-black); }
.site-header.is-sticky .site-logo .logo-text span { color: var(--fc-red); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 0.4em 0.85em;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--fc-white);
  background-color: rgba(255,255,255,0.1);
}
.site-header.is-sticky .nav-links a {
  color: var(--fc-black);
}
.site-header.is-sticky .nav-links a:hover {
  color: var(--fc-red);
  background-color: var(--fc-red-light);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--fc-white);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.site-header.is-sticky .hamburger span { background-color: var(--fc-white); }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--fc-black);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-mid);
}
.mobile-nav.is-open {
  display: block; /* Ensure display override regardless of viewport timing */
  transform: translateX(0);
}
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fc-white);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.mobile-nav a:hover { color: var(--fc-red); padding-left: 0.5rem; }
.mobile-nav .btn-whatsapp {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  background: var(--fc-red);
  color: var(--fc-white);
  padding: 0.5rem 1rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { top: 0; }

/* -----------------------------------------------------------------------------
   7. HERO SECTION
   ----------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-block: 7rem 4rem;
}

/* Interactive canvas — replaces static SVG pattern */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* mouse tracked via hero section */
  display: block;
}

/* Kept for CTA banner; hidden in hero */
.hero-pattern { display: none; }

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(700px, 60vw);
  height: min(700px, 60vw);
  background: radial-gradient(circle, rgba(255,0,0,0.12) 0%, transparent 65%);
  pointer-events: none;
  animation: glow-drift 8s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-40px, 30px) scale(1.1); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-content { color: var(--fc-white); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,0,0,0.15);
  border: 1px solid rgba(255,0,0,0.3);
  color: #FF8080;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35em 1em;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fc-red);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-content h1 {
  color: var(--fc-white);
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}
.hero-content h1 .accent { color: var(--fc-red); }

.hero-content .hero-subtext {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-trust {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}
.hero-trust-avatars {
  display: flex;
}
.hero-trust-avatars span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fc-red);
  color: var(--fc-white);
  font-size: 0.7rem;
  font-weight: 700;
  border: 2px solid var(--fc-black);
  margin-right: -8px;
}
.hero-trust-avatars span:nth-child(2) { background: #660000; }
.hero-trust-avatars span:nth-child(3) { background: #880000; }

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  width: 260px;
  height: 520px;
  position: relative;
  animation: float-up 3.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.phone-frame {
  width: 100%;
  height: 100%;
  background: #1A1A1A;
  border-radius: 40px;
  border: 3px solid #333;
  box-shadow:
    0 0 0 1px #444,
    0 30px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}

/* Notch */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #0D0D0D;
  border-radius: 12px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #EFEFEF;
  padding: 50px 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.chat-header {
  background: var(--fc-wa-green);
  margin: -50px -10px 6px;
  padding: 50px 12px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--fc-wa-green);
  flex-shrink: 0;
}
.chat-header-info { flex: 1; overflow: hidden; }
.chat-header-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-header-status { font-size: 0.6rem; color: rgba(255,255,255,0.8); }

.chat-bubble {
  max-width: 85%;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.68rem;
  line-height: 1.4;
}
.chat-bubble.incoming {
  background: white;
  border-radius: 0 10px 10px 10px;
  align-self: flex-start;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.chat-bubble.outgoing {
  background: #DCF8C6;
  border-radius: 10px 10px 0 10px;
  align-self: flex-end;
  color: #333;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.chat-bubble.bot {
  background: var(--fc-red-light);
  border: 1px solid rgba(255,0,0,0.15);
  border-radius: 0 10px 10px 10px;
  align-self: flex-start;
  color: #333;
}

.phone-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at center, rgba(255,0,0,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* -----------------------------------------------------------------------------
   8. STATS BAR
   ----------------------------------------------------------------------------- */
.stats-bar {
  background: linear-gradient(135deg, #FF1A00 0%, #CC0000 45%, #E50000 75%, #FF0000 100%);
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.stats-grid {
  display: grid;
  /* 3 stat items separated by 2 thin divider columns */
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  gap: 0;
  text-align: center;
}

.stat-item { padding: 0.5rem 2rem; }
.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--fc-white);
  line-height: 1;
  display: block;
}
.stat-item .stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin-top: 0.3rem;
  display: block;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.25);
  justify-self: center;
}

/* -----------------------------------------------------------------------------
   9. HOW IT WORKS
   ----------------------------------------------------------------------------- */
.how-it-works {
  background: transparent;
  color: var(--fc-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: start;
  gap: 0;
}

.step-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2.4rem;
}
.step-connector svg { width: 28px; height: 28px; color: var(--fc-red); opacity: 0.5; }

.step-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 6px 32px rgba(0,0,0,0.25);
  text-align: center;
  position: relative;
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.30);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fc-red);
  color: var(--fc-white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}

.step-icon {
  width: 56px;
  height: 56px;
  background: var(--fc-red-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-icon svg { width: 28px; height: 28px; color: var(--fc-red); }

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--fc-black);
}
.step-card p { font-size: 0.88rem; color: var(--fc-grey-text); }

/* -----------------------------------------------------------------------------
   10. SERVICE CATEGORIES
   ----------------------------------------------------------------------------- */
.service-categories {
  background: transparent;
  color: var(--fc-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 4px solid transparent;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 6px 32px rgba(0,0,0,0.25);
  transition: border-color var(--transition-fast),
              transform var(--transition-mid),
              box-shadow var(--transition-mid);
}
.service-card:hover {
  border-left-color: var(--fc-red);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.30);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--fc-red-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-icon svg { width: 28px; height: 28px; color: var(--fc-red); }

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--fc-black);
}
.service-card p {
  font-size: 0.85rem;
  color: var(--fc-grey-text);
  margin-bottom: 1.25rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fc-red);
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}
.service-link:hover { gap: 0.6rem; color: var(--fc-red-dark); }
.service-link svg { width: 16px; height: 16px; }

/* -----------------------------------------------------------------------------
   11. FEATURES GRID
   ----------------------------------------------------------------------------- */
.features {
  background: transparent;
  color: var(--fc-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 6px 32px rgba(0,0,0,0.25);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.30);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--fc-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--fc-red); }

.feature-text h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--fc-black);
}
.feature-text p { font-size: 0.88rem; color: var(--fc-grey-text); }

/* -----------------------------------------------------------------------------
   12. LEAD MARKETPLACE TEASER
   ----------------------------------------------------------------------------- */
.lead-marketplace {
  background: transparent;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pricing-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 32px rgba(0,0,0,0.25);
  transition: border-color var(--transition-mid), transform var(--transition-mid), box-shadow var(--transition-mid);
  position: relative;
}
.pricing-card:hover {
  border-color: var(--fc-red);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.30);
}

.pricing-card.is-featured {
  border-color: var(--fc-red);
  border-width: 2px;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fc-red);
  color: var(--fc-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fc-grey-text);
  margin-bottom: 0.5rem;
}

.pricing-card h3 {
  font-size: 1.3rem;
  color: var(--fc-black);
  margin-bottom: 0.25rem;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--fc-black);
  line-height: 1;
  margin: 0.75rem 0;
}
.pricing-price sup {
  font-size: 1rem;
  vertical-align: super;
  font-weight: 500;
  color: var(--fc-grey-text);
}
.pricing-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--fc-grey-text);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--fc-grey-text);
  margin-bottom: 1.5rem;
}

.pricing-card .btn-primary {
  width: 100%;
  justify-content: center;
}

.marketplace-cta {
  text-align: center;
  margin-top: 2.5rem;
}
.marketplace-cta p {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* -----------------------------------------------------------------------------
   13. TESTIMONIALS
   ----------------------------------------------------------------------------- */
.testimonials {
  background: transparent;
  color: var(--fc-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 6px 32px rgba(0,0,0,0.25);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.30);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}
.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: var(--fc-red);
}

.testimonial-quote {
  font-size: 0.93rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after  { content: '\201D'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fc-red);
  color: var(--fc-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fc-black);
  display: block;
}
.author-city {
  font-size: 0.78rem;
  color: var(--fc-grey-text);
}

/* -----------------------------------------------------------------------------
   14. CTA BANNER
   ----------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, #FF1A00 0%, #CC0000 40%, #FF0000 70%, #E50000 100%);
  text-align: center;
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg-pattern.svg');
  background-size: 400px auto;
  opacity: 0.06;
  pointer-events: none;
}

.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
  color: var(--fc-white);
  margin-bottom: 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Pulse animation on WA button */
.btn-pulse {
  animation: pulse-wa 2.5s ease-in-out infinite;
}
@keyframes pulse-wa {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  60%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* -----------------------------------------------------------------------------
   15. FOOTER
   ----------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(175deg, #0F0505 0%, #0D0D0D 30%, #150000 65%, #0A0A0A 100%);
  color: rgba(255,255,255,0.7);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fc-white);
  display: block;
  margin-bottom: 0.75rem;
}
.footer-brand .logo-text span { color: var(--fc-red); }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
}

/* Social icons */
.social-links {
  display: flex;
  gap: 0.6rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.social-link:hover { background-color: var(--fc-red); color: var(--fc-white); }
.social-link svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--fc-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer-links a:hover { color: var(--fc-white); padding-left: 4px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-contact-item a:hover { color: var(--fc-white); }

.footer-bottom {
  padding-block: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}
.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--fc-white); }

/* Floating WhatsApp widget */
.wa-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.wa-widget-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fc-wa-green);
  color: var(--fc-white);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.wa-widget-btn:hover {
  transform: scale(1.1);
  color: var(--fc-white);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.wa-widget-btn svg { width: 28px; height: 28px; }
.wa-widget-tooltip {
  background: var(--fc-black);
  color: var(--fc-white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35em 0.85em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
}
.wa-widget:hover .wa-widget-tooltip { opacity: 1; transform: translateX(0); }

/* -----------------------------------------------------------------------------
   16. PAGE TEMPLATES
   ----------------------------------------------------------------------------- */
/* Generic page */
.page-content {
  padding-block: var(--section-py);
  max-width: 800px;
  margin: 0 auto;
}
.page-hero {
  background: var(--fc-black);
  color: var(--fc-white);
  text-align: center;
  padding: 7rem var(--container-pad) 4rem;
}
.page-hero h1 { color: var(--fc-white); }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 560px; margin-inline: auto; }

/* 404 */
.error-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-py) var(--container-pad);
}
.error-404 .error-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  color: var(--fc-red);
  line-height: 1;
  display: block;
  opacity: 0.15;
}
.error-404 h1 { margin-bottom: 1rem; }
.error-404 p { color: var(--fc-grey-text); margin-bottom: 2rem; }

/* Search */
.search-results { padding-block: var(--section-py); }
.search-header { margin-bottom: 2rem; }
.search-form { display: flex; gap: 0.5rem; margin-top: 1rem; }
.search-form input[type="search"] {
  flex: 1;
  padding: 0.7em 1.2em;
  border: 2px solid var(--fc-grey-mid);
  border-radius: var(--radius-pill);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.search-form input[type="search"]:focus { border-color: var(--fc-red); }
.search-form button { font-family: var(--font-display); font-weight: 600; }

/* Post/archive cards */
.post-card {
  background: var(--fc-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--fc-grey-mid);
  transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.1); }
.post-card h2 a { color: var(--fc-black); font-size: 1.2rem; }
.post-card h2 a:hover { color: var(--fc-red); }
.post-meta { font-size: 0.8rem; color: var(--fc-grey-text); margin-bottom: 0.75rem; }

/* -----------------------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS
   ----------------------------------------------------------------------------- */

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────────────────────────────────── */

/* ≤ 1024px — Tablets (iPad landscape / small laptop) */
@media (max-width: 1024px) {
  /* Hero — stack content, hide phone mockup */
  .hero-inner          { grid-template-columns: 1fr; text-align: center; }
  .hero-content .hero-subtext { margin-inline: auto; }
  .hero-actions        { justify-content: center; }
  .hero-trust          { justify-content: center; }
  .hero-visual         { display: none; }

  /* Steps — stack vertically */
  .steps-grid          { grid-template-columns: 1fr; gap: 1.5rem; }
  .step-connector      { display: none; }

  /* Grids — 2 columns */
  .services-grid       { grid-template-columns: repeat(2, 1fr); }
  .features-grid       { grid-template-columns: repeat(2, 1fr); }

  /* Pricing — stays 3 cols on tablet; collapses at 768px */
  .pricing-grid        { gap: 1rem; }

  /* Testimonials — 2 cols on tablet */
  .testimonials-grid   { grid-template-columns: repeat(2, 1fr); }

  /* Footer — 2 cols */
  .footer-grid         { grid-template-columns: repeat(2, 1fr); }
}

/* ≤ 768px — Mobile */
@media (max-width: 768px) {
  /* Nav */
  .hamburger   { display: flex; }
  .nav-links   { display: none; }
  .btn-nav-cta { display: none; }
  .mobile-nav  { display: block; }

  /* Hero */
  .hero { padding-block: 5.5rem 3rem; }
  .hero-actions                   { flex-direction: column; align-items: center; }
  .hero-actions .btn              { width: 100%; justify-content: center; max-width: 320px; }
  .hero-badge                     { font-size: 0.72rem; text-align: center; }

  /* Stats */
  .stats-grid   { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat-divider { display: none; }
  .stat-item    { padding: 0; }

  /* Grids — 1 column */
  .services-grid     { grid-template-columns: 1fr; }
  .features-grid     { grid-template-columns: 1fr; }
  .pricing-grid      { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Lead marketplace */
  .marketplace-cta .btn { width: 100%; justify-content: center; max-width: 340px; margin-inline: auto; }

  /* CTA banner */
  .cta-banner .btn-whatsapp { width: 100%; max-width: 340px; justify-content: center; }
}

/* ≤ 480px — Small phones */
@media (max-width: 480px) {
  :root { --container-pad: 1.1rem; }

  /* Typography scale-down */
  h2 { font-size: 1.5rem; }
  .hero-content h1 { font-size: 1.85rem; }

  /* Section spacing */
  :root { --section-py: clamp(2.5rem, 8vw, 4rem); }

  /* Steps */
  .step-card { padding: 1.25rem; }

  /* Services */
  .service-card { padding: 1.25rem 1rem; }

  /* Pricing price */
  .pricing-price { font-size: 2rem; }

  /* Footer */
  .social-links { justify-content: flex-start; }
  .footer-brand .logo-text { font-size: 1.2rem; }
}

/* ≤ 375px — Very small (iPhone SE) */
@media (max-width: 375px) {
  :root { --container-pad: 1rem; }
  .hero-content h1  { font-size: 1.65rem; }
  .btn              { font-size: 0.875rem; padding: 0.7em 1.2em; }
  .btn-whatsapp     { font-size: 0.9rem; }
  .section-heading h2 { font-size: 1.4rem; }
  .pricing-price    { font-size: 1.75rem; }
}
