/* ============================================================
   STACKED MARKETING - MAIN FUNNEL STYLESHEET
   Mobile-first | Industrial Premium | South African Workhorse
   ============================================================ */

/* ----- CSS Custom Properties (Design Tokens) ----- */
:root {
  /* Colors — Light Mode */
  --bg-deep:        #FFFFFF;
  --bg-dark:        #F5F5F5;
  --bg-card:        #FFFFFF;
  --bg-lighter:     #F0F0F0;
  --amber:          #E8A000;
  --amber-hover:    #D49200;
  --amber-glow:     rgba(232, 160, 0, 0.2);
  --white:          #1A1A1A;           /* Headings: near-black for contrast */
  --ash:            #444444;           /* Body text: dark grey */
  --ash-muted:      #777777;           /* Muted text */
  --green:          #2E7D32;
  --green-light:    #388E3C;
  --red:            #D32F2F;
  --whatsapp-green: #25D366;
  --border-light:   rgba(0,0,0,0.08);  /* Subtle borders for light mode */
  --shadow-light:   rgba(0,0,0,0.06);  /* Soft card shadows */

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-pad-y:  80px;
  --section-pad-x:  20px;
  --container-max:  1200px;
  --gap:            24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index layers */
  --z-nav:       100;
  --z-sticky:    90;
  --z-whatsapp:  95;
  --z-overlay:   50;
  --z-modal:     200;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ash);
  background-color: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Logo image */
.site-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .site-logo-img {
    height: 64px;
  }
}

.footer-logo-img {
  height: 48px;
  width: auto;
}

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

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--amber-hover);
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
}

/* ----- Utility Classes ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.section-pad {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-ash    { color: var(--ash); }
.text-amber  { color: var(--amber); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 7vw, 4rem);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.6rem, 5vw, 3rem);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 12px;
}

.subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: var(--ash);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--amber-glow);
}

.btn-primary:hover {
  background: var(--amber-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--amber-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Pulse animation for hero CTA */
.btn-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px var(--amber-glow); }
  50%      { box-shadow: 0 4px 40px rgba(255, 184, 0, 0.45); }
}

.btn-outline {
  background: transparent;
  color: var(--amber);
  border: 2px solid var(--amber);
}

.btn-outline:hover {
  background: var(--amber);
  color: var(--bg-deep);
}

.btn-large {
  padding: 20px 48px;
  font-size: 1.15rem;
  max-width: 100%;
}

/* ----- Scroll Reveal Animation ----- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 16px 0;
  transition: background 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px var(--shadow-light);
}

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

.site-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.site-logo span {
  color: var(--amber);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
  cursor: pointer;
  z-index: calc(var(--z-nav) + 10);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: all 0.3s var(--ease-out);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Drawer */
.nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-deep);
  padding: 100px 32px 40px;
  transition: right 0.4s var(--ease-out);
  z-index: var(--z-nav);
  overflow-y: auto;
  box-shadow: -4px 0 20px var(--shadow-light);
  display: flex;
  flex-direction: column;
}

.nav-menu.open {
  right: 0;
}

.nav-menu a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--amber);
}

.nav-menu .nav-cta {
  margin-top: 24px;
  text-align: center;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: calc(var(--z-nav) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Desktop Nav */
@media (min-width: 768px) {
  .hamburger { display: none !important; }
  .nav-overlay { display: none !important; }

  .nav-menu {
    position: static !important;
    right: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    background: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 32px;
    box-shadow: none !important;
    overflow-y: visible !important;
    margin-left: auto;
  }

  .nav-menu a {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0;
    border: none;
    color: #333;
    white-space: nowrap;
    position: relative;
  }

  /* Underline hover effect */
  .nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width 0.3s var(--ease-out);
  }

  .nav-menu a:not(.btn):hover::after {
    width: 100%;
  }

  .nav-menu a:hover {
    color: var(--amber);
  }

  .nav-menu .nav-cta {
    margin-top: 0;
    margin-left: 8px;
    font-size: 0.75rem;
    padding: 10px 24px;
  }

  .nav-menu .nav-cta::after {
    display: none;
  }
}

/* ============================================================
   SECTION 1: HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.80);
  z-index: 2;
}

/* Fallback gradient when no video */
.hero-bg-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    #f8f9fa 0%,
    #e8ecf1 30%,
    #f0e6d3 60%,
    #f8f9fa 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 120px var(--section-pad-x) 60px;
  max-width: 800px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(1.75rem, 7vw, 3.8rem);
  margin-bottom: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero .subtitle {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: #555555;
}

.hero .btn {
  margin-bottom: 32px;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555555;
  font-weight: 500;
  white-space: nowrap;
}

.trust-badge .badge-icon {
  font-size: 1.2rem;
}

/* ============================================================
   SECTION 2: PORTFOLIO SLIDER
   ============================================================ */
.portfolio-section {
  background: var(--bg-dark);
  padding-top: 60px;
  padding-bottom: 60px;
  overflow: hidden;
}

.portfolio-section h2 {
  text-align: center;
  padding: 0 var(--section-pad-x);
  margin-bottom: 40px;
}

/* Marquee / Auto-scroll carousel */
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.mockup-card {
  flex-shrink: 0;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 4px 20px var(--shadow-light), 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid var(--border-light);
  transition: transform 0.3s var(--ease-out);
}

.mockup-card:hover {
  transform: scale(1.03);
}

.mockup-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mockup-label {
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mockup-label span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--ash-muted);
  text-transform: none;
  margin-top: 4px;
}

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

@media (min-width: 768px) {
  .mockup-card { width: 340px; }
}

/* ============================================================
   SECTION 3: AGITATION (THE PAIN)
   ============================================================ */
.agitation {
  background: var(--bg-deep);
}

.agitation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.agitation-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
}

.agitation-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.1);
}

/* Heatmap-style gradient overlay */
.agitation-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 50, 50, 0.1) 0%,
    rgba(255, 184, 0, 0.08) 30%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.agitation-copy h2 {
  margin-bottom: 16px;
}

.agitation-copy p {
  font-size: 1.05rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .agitation-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

/* ============================================================
   SECTION 4: THE STACKED SOLUTION
   ============================================================ */
.solution {
  background: var(--bg-deep);
  position: relative;
}

.solution > .container > h2 {
  text-align: center;
  margin-bottom: 48px;
}

.stack-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.stack-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px 24px;
  border-left: 4px solid var(--amber);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--amber);
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  box-shadow: 0 2px 12px var(--shadow-light);
}

.stack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.stack-card-number {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: var(--amber);
  color: var(--bg-deep);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  text-transform: none;
}

.stack-card p {
  font-size: 0.95rem;
  color: var(--ash-muted);
}

.stack-card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

/* Bonus callout */
.bonus-callout {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 24px;
  border: 2px solid var(--amber);
  border-radius: 12px;
  background: rgba(232, 160, 0, 0.06);
  text-align: center;
}

.bonus-callout p {
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 500;
}

.bonus-callout .bonus-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

/* ============================================================
   SECTION 5: THE PROCESS
   ============================================================ */
.process {
  background: var(--bg-dark);
}

.process > .container > h2 {
  text-align: center;
  margin-bottom: 48px;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
}

/* Vertical timeline line on mobile */
.process-steps::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--amber);
  opacity: 0.3;
}

.step {
  display: flex;
  gap: 20px;
  position: relative;
}

.step-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--bg-deep);
  border: 2px solid var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.step-content h3 {
  text-transform: none;
  margin-bottom: 6px;
}

.step-content .step-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--ash-muted);
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .process-steps::before {
    display: none;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step-icon-wrap {
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
}

/* ============================================================
   SECTION 6: OBJECTIONS / REALITY CHECK
   ============================================================ */
.objections {
  background: var(--bg-lighter);
}

.objections > .container > h2 {
  text-align: center;
  margin-bottom: 48px;
}

.checklist {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s var(--ease-out);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px var(--shadow-light);
}

.check-item:hover {
  transform: translateX(4px);
}

.check-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.check-icon.yes {
  background: rgba(46, 125, 50, 0.2);
  color: var(--green-light);
}

.check-icon.no {
  background: rgba(211, 47, 47, 0.2);
  color: var(--red);
}

.check-item-text .question {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 4px;
}

.check-item-text .answer {
  font-size: 0.9rem;
  color: var(--ash-muted);
}

/* ============================================================
   ACTIVE NAV LINK HIGHLIGHTING
   ============================================================ */
.nav-menu a.active:not(.btn) {
  color: var(--amber);
}

.nav-menu a.active:not(.btn)::after {
  width: 100%;
}

/* ============================================================
   SKIP TO CONTENT (Accessibility)
   ============================================================ */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: calc(var(--z-modal) + 10);
  padding: 12px 24px;
  background: var(--amber);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  color: #FFFFFF;
}

/* ============================================================
   FOCUS-VISIBLE STYLES (Accessibility)
   ============================================================ */
*:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--amber-glow);
}

.check-item:focus-within {
  border-color: var(--amber);
  box-shadow: 0 2px 8px var(--shadow-light), 0 0 0 3px var(--amber-glow);
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-hover));
  z-index: calc(var(--z-modal) + 5);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   PAGE LOAD ANIMATION
   ============================================================ */
.page-loaded .hero-content {
  animation: heroFadeIn 1s var(--ease-out) forwards;
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: var(--z-whatsapp);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 16px var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.2s, box-shadow 0.2s;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 6px 24px var(--amber-glow);
}

.back-to-top:hover svg {
  stroke: #FFFFFF;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--ash);
  stroke-width: 2.5;
  fill: none;
  transition: stroke 0.2s;
}

/* Push up when sticky bar is visible on mobile */
.back-to-top.pushed-up {
  bottom: 80px;
}

/* ============================================================
   ENHANCED PORTFOLIO CARD HOVER (Image Zoom)
   ============================================================ */
.mockup-card {
  overflow: hidden;
}

.mockup-card img {
  transition: transform 0.5s var(--ease-out);
}

.mockup-card:hover img {
  transform: scale(1.08);
}

/* ============================================================
   SECTION HEADING ACCENT UNDERLINE
   ============================================================ */
.solution > .container > h2,
.process > .container > h2,
.objections > .container > h2,
.final-cta h2 {
  position: relative;
  display: inline-block;
  width: 100%;
}

.solution > .container > h2::after,
.process > .container > h2::after,
.objections > .container > h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--amber);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ============================================================
   ENHANCED STACK CARD INTERACTIONS
   ============================================================ */
.stack-card {
  position: relative;
  overflow: hidden;
}

.stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber-glow), transparent);
  transition: width 0.4s var(--ease-out);
  pointer-events: none;
  border-radius: 12px;
}

.stack-card:hover::before {
  width: 100%;
}

/* ============================================================
   ENHANCED STEP HOVER
   ============================================================ */
.step-icon-wrap {
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s var(--ease-out);
}

.step:hover .step-icon-wrap {
  transform: scale(1.1);
  box-shadow: 0 4px 20px var(--amber-glow);
  border-color: var(--amber);
  background: var(--amber);
}

/* ============================================================
   ENHANCED CHECK-ITEM INTERACTION
   ============================================================ */
.check-item {
  position: relative;
  overflow: hidden;
}

.check-item::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(270deg, rgba(232, 160, 0, 0.04), transparent);
  transition: width 0.3s var(--ease-out);
  pointer-events: none;
}

.check-item:hover::after {
  width: 100%;
}

/* ============================================================
   WHATSAPP BUTTON BREATHING ANIMATION
   ============================================================ */
.whatsapp-float {
  animation: whatsapp-breathe 3s ease-in-out infinite;
}

@keyframes whatsapp-breathe {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50%      { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.6); }
}

/* ============================================================
   GUARANTEE BADGE SHIMMER
   ============================================================ */
.guarantee {
  position: relative;
  overflow: hidden;
}

.guarantee::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(46, 125, 50, 0.08), transparent);
  animation: guarantee-shimmer 3s ease-in-out infinite;
}

@keyframes guarantee-shimmer {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

/* ============================================================
   BONUS CALLOUT PULSE BORDER
   ============================================================ */
.bonus-callout {
  position: relative;
  transition: box-shadow 0.3s var(--ease-out);
}

.bonus-callout:hover {
  box-shadow: 0 4px 20px var(--amber-glow);
}

/* ============================================================
   SECTION TRANSITIONS (Alternating backgrounds with smooth edges)
   ============================================================ */
.agitation::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
}

.agitation {
  position: relative;
}

/* ============================================================
   SECTION 8: FINAL CTA (THE CLOSER)
   ============================================================ */
.final-cta {
  position: relative;
  background: var(--bg-deep);
  text-align: center;
  overflow: hidden;
}

/* Amber glow effect behind content */
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 160, 0, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  z-index: 2;
}

.final-cta h2 {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  margin-bottom: 16px;
}

.final-cta .subtitle {
  max-width: 600px;
  margin: 0 auto 36px;
}

.final-cta .btn {
  margin-bottom: 20px;
}

.guarantee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--green);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--green);
  background: rgba(46, 125, 50, 0.06);
}

.guarantee-icon {
  font-size: 1.1rem;
}

/* ============================================================
   SECTION 9: FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-logo span {
  color: var(--amber);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--ash-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--ash-muted);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-whatsapp);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
}

/* Push up when sticky bar is visible on mobile */
.whatsapp-float.pushed-up {
  bottom: 80px;
}

/* ============================================================
   STICKY CONVERSION BAR
   ============================================================ */
.sticky-bar {
  position: fixed;
  z-index: var(--z-sticky);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -2px 12px var(--shadow-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  /* Mobile: bottom */
  bottom: 0;
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-bar-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #1A1A1A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sticky-bar .btn {
  padding: 10px 20px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .sticky-bar {
    /* Desktop: top */
    bottom: auto;
    top: 0;
    border-top: none;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 12px var(--shadow-light);
    transform: translateY(-100%);
    justify-content: center;
    gap: 24px;
    padding: 12px 24px;
  }

  .sticky-bar.visible {
    transform: translateY(0);
  }

  .sticky-bar-text {
    font-size: 0.9rem;
  }

  .sticky-bar .btn {
    padding: 10px 28px;
    font-size: 0.85rem;
  }
}

/* ============================================================
   MODAL (Terms / Privacy)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-deep);
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  border: 1px solid var(--border-light);
}

.modal-box h3 {
  margin-bottom: 16px;
}

.modal-box p {
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.modal-close {
  float: right;
  background: none;
  font-size: 1.5rem;
  color: var(--ash-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--white);
}

/* ============================================================
   RESPONSIVE FINE-TUNING
   ============================================================ */

/* iPhone SE / Small screens (320px) */
@media (max-width: 360px) {
  :root {
    --section-pad-x: 16px;
    --section-pad-y: 60px;
  }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }

  .btn { padding: 14px 20px; font-size: 0.85rem; }
  .btn-large { padding: 16px 24px; font-size: 0.92rem; }

  .trust-badges { flex-direction: column; align-items: center; }

  .hero-content {
    padding: 90px 16px 40px;
  }

  .hero .subtitle {
    font-size: 0.9rem;
  }

  .stack-card {
    padding: 24px 18px;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --section-pad-y: 100px;
    --section-pad-x: 40px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --section-pad-y: 120px;
    --section-pad-x: 40px;
  }

  .hero h1 {
    font-size: 3.6rem;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .whatsapp-float,
  .sticky-bar,
  .site-header,
  .nav-menu,
  .nav-overlay,
  .back-to-top,
  .scroll-progress,
  .skip-to-content { display: none !important; }

  body {
    background: #fff;
    color: #333;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
