/* ==========================================================
   VARIABLES - :root (AAA COMPLIANT, MOBILE-FIRST)
========================================================== */
:root {
  /* Gray palette */
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Core Colors - AAA compliant */
  --primary-color: #0d6efd;    
  --secondary-color: #198754;  
  --secondary-dark: #157347;   
  --accent-color: #fd7e14;

     /* Add yellow options */
  --yellow-bright: #ffde1a;
  --yellow-gold: #ffce00;
  --yellow-tangy: #ffc107; /* Bootstrap's warning yellow */
  
  /* Neutral / background */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --border-color: #e2e8f0;

  /* Section backgrounds */
  --footer-bg: var(--gray-900);
  --hero-bg: #1b1b1b;

  /* Typography */
  --font-body: Arial, Helvetica, sans-serif;
  --fs-base: 18px;
  --fs-sm: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;

  /* Spacing */
  --space-unit: 1rem;
  --space-xs: calc(var(--space-unit) * 0.5);
  --space-sm: calc(var(--space-unit) * 0.75);
  --space-md: calc(var(--space-unit) * 1.5);
  --space-lg: calc(var(--space-unit) * 2);
  --space-xl: calc(var(--space-unit) * 3);

  /* Borders / radius */
  --border-radius: 0.375rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}

/* ==========================================================
   SMOOTH SCROLL & SNAP - DESKTOP AND BEYOND
========================================================== */
  .hero,
  .valore-with-image,
  .core {
    scroll-snap-align: start;
  }

@media (min-width: 1025px) and (max-width: 1440px) {
  html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 70px; /* Match your header height */
  }
}

/* Large screens - adjust separately if needed */
@media (min-width: 1441px) {
  html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 80px; /* Adjust for larger screens if needed */
  }
}

/* ==========================================================
   IMAGE COPY PROTECTION
========================================================== */
/* PREVENT IMAGE COPYING */
img, .hero-image {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

/* ==========================================================
   RESET & BASE STYLES
========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility focus */
.btn:focus,
.form-control:focus,
a:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ==========================================================
   HEADER & NAVIGATION
========================================================== */
header {
  background-color: var(--primary-color);
  min-height: 45px; 
  max-height: 80px;
  padding: 0rem 0rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 80;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  min-height: 45px;
  overflow: hidden;
  margin: 0;
  padding: 0 var(--space-xs);
  flex: 1;
}

/* Logo container */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: #ffffff;
  text-decoration: none;
  height: 100%;
  margin-left: var(--space-xs);
}

/* Logo image */
.logo-img { 
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 1.5px rgba(255,255,255,0.8)); 
  display: block;
}

/* Logo text - single source of truth */
.logo-text { 
  font-size: 1.1rem; 
  font-weight: 600; 
  color: #ffffff;
}

.nav-links {         /* Controls the layout and positioning of the entire navigation menu */
  display: flex;
  gap: var(--space-md);
  list-style: none;       /* Removes bullet points from UL */
  margin-top: 0.7rem;    /* Positions entire menu vertically */
  margin-left: auto;      /* Pushes entire menu to the right */
  margin-right: 0.6rem;     /* Creates space between UL and WhatsApp button */
  padding: 0;
  align-items: center;
  height: 100%;
}

.nav-links li a {         /* Controls the layout and positioning of the entire navigation menu */
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: var(--fs-sm);
  padding: 0.25rem 0.5rem;   /* Clickable area of each link */
  min-height: 45px;       /* Minimum touch target size */
  line-height: 1;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

/* ==========================================================
   MOBILE NAVIGATION MENU - MINIMALIST SIDEBAR
========================================================== */
.nav-links.mobile-active {
  display: flex !important;
  position: fixed;
  top: 0;
  right: 0;
  width: min(25%, 240px);
  background: var(--primary-color);
  flex-direction: column;
  padding: 45px var(--space-sm) var(--space-md);
  gap: 0.25rem;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 85;
  border-radius: 0;
  /* Auto height - adjusts to content */
  height: auto;
  /* Maximum height for safety */
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.nav-links.mobile-active li a {
  justify-content: flex-start;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  text-align: left;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9rem;
  min-height: 42px;
  border: none;
  background: transparent;
}

.nav-links.mobile-active li a:hover,
.nav-links.mobile-active li a:focus {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

/* ==========================================================
   WHATSAPP BUTTON
========================================================== */
.whatsapp-btn {
  background-color: var(--secondary-color);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(25,135,84,0.3);
  font-weight: 500;
  font-size: var(--fs-sm);
  padding: 0rem 0.6rem; /* Reduced balanced padding */
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.25s ease;
  /* Remove fixed heights - let padding determine size */
  min-height: 38px; /* Reduced AAA compliant touch target */
  line-height: 1.1;
  /* Remove align-self and max-height */
}

.whatsapp-btn:hover {
  background-color: var(--secondary-dark);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(25,135,84,0.4);
}

.whatsapp-btn:focus {
  background-color: var(--secondary-dark);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(25,135,84,0.4);
  outline: 3px solid var(--accent-color); /* Orange focus outline */
  outline-offset: 2px;
}

/* Floating WhatsApp */
.floating-whatsapp {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  color: white;
  background-color: var(--secondary-color);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  z-index: 95;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(25,135,84,0.4);
  transition: all 0.3s ease;
}

.floating-whatsapp:hover {
  background-color: var(--secondary-dark);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(25,135,84,0.6);
}

/* ==========================================================
   HAMBURGER MENU
========================================================== */
.hamburger {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  position: relative;
  z-index: 86;
  border-radius: var(--border-radius);
  min-height: 45px;
  min-width: 45px;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #ffffff; /* Explicit hex for contrast */
  display: block;
  border-radius: 2px;
  transition: all 0.3s ease;
  
  /* AAA compliant glow - subtle and non-distracting */
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8));
}

/* Enhanced states - still AAA compliant */
.hamburger:hover span,
.hamburger:focus span {
  background-color: #ffffff;
  filter: 
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.6));
}

/* Focus state for accessibility */
.hamburger:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
  border-color: var(--accent-color);
}

/* Active state - hamburger to X transformation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Active state enhancements */
.hamburger.active:hover span,
.hamburger.active:focus span {
  filter: 
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.9))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.7));
}

/* High contrast mode override */
@media (prefers-contrast: high) {
  .hamburger span {
    filter: none !important;
    background-color: #ffffff !important;
    border: 1px solid #000000 !important;
  }
  
  .hamburger {
    border: 2px solid #ffffff !important;
  }
}

/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
  .hamburger span {
    transition: none !important;
  }
  
  .hamburger:hover span,
  .hamburger:focus span,
  .hamburger.active:hover span,
  .hamburger.active:focus span {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8)) !important;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
  }
}

/* Remove any flashing/pulsing animations to be safe */
/* @keyframes gentle-pulse { ... } */ /* REMOVE THIS - AAA compliance */

/* ==========================================================
   HERO SECTION — PRODUCTION VERSION (MOBILE FIRST)
========================================================== */
.hero,
.hero-half,
.hero-small {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--hero-bg);
}

/* ------------------------------
   BASE: MOBILE PORTRAIT (DEFAULT)
------------------------------ */
.hero       { height: 66dvh; }
.hero-half  { height: 56dvh; }
.hero-small { height: 46dvh; }

.hero-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  z-index:0;
}

.hero-overlay {
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.05);
  z-index:2;
}

.hero-content {
  position: relative;
  max-width: 500px;
  padding: 2rem;
  text-align: center;
  background: rgba(0,0,0,0.05);
  border-radius: var(--border-radius);
  backdrop-filter: blur(2px);
  z-index:2;
  color: #ffffff;
}

/* ---------------------------------------
   MOBILE LANDSCAPE (FORCES TALLER VIEW)
--------------------------------------- */
@media (max-width: 768px) and (orientation: landscape) {
  .hero       { height: 88dvh; min-height: 400px; }
  .hero-image { object-position: center 40%; }
}

/* ---------------------------------------
   SMALL TABLETS (481–768)
--------------------------------------- */
@media (min-width: 481px) and (max-width: 768px) {
  .hero       { height: 60dvh; }
  .hero-half  { height: 50dvh; }
  .hero-small { height: 40dvh; }
}

/* ---------------------------------------
   TABLETS (769–1024)
--------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero       { height: 80vh; }
  .hero-half  { height: 65vh; }
  .hero-small { height: 50vh; }
}

/* ---------------------------------------
   DESKTOP (1025–1440)
--------------------------------------- */
@media (min-width: 1025px) and (max-width: 1440px) {
  .hero       { height: 88vh; }
  .hero-half  { height: 68vh; }
  .hero-small { height: 48vh; }
}

/* ---------------------------------------
   LARGE DESKTOP (1441+)
--------------------------------------- */
@media (min-width: 1441px) {
  .hero       { height: 93vh; }
  .hero-half  { height: 73vh; }
  .hero-small { height: 53vh; }
}

/* ==========================================================
   CORE SECTION  
========================================================== */

.core {
  --core-spacing: 2rem; /* 36px - decent spacing */
  padding: var(--core-spacing) 0 calc(var(--core-spacing) / 2) 0;
}

.core.bg-light {
  background-color: var(--bg-primary);
}

/* Remove top padding when core sections follow each other */
.core + .core {
  padding-top: 0;
}

/* Tighten service section */
#services + .core .service-grid {
  margin-top: var(--space-md); /* Reduced from var(--space-lg) */
}

/* ==========================================================
   VALORE SECTION WITH ADVISOR IMAGE — PRODUCTION VERSION
========================================================== */

.valore-with-image {
  position: relative;
  background: var(--bg-primary);
  padding: 0;
  overflow: hidden;
}

.valore-content {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60vh;
}

.valore-image {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: center left;
  z-index: 1;
}

.valore-text-overlay {
  position: absolute;
  left: 45%;
  right: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.valore-text {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-lg);
}

.valore-arrow {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.valore-arrow-img {
  width: 120px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(24%) sepia(98%) saturate(1855%) hue-rotate(199deg) brightness(93%) contrast(101%);
}


/* ==========================================================
   TABLETS (769–1024) — MATCH HERO
========================================================== */
@media (min-width: 769px) and (max-width: 1024px) {

  .valore-image {
    width: 100%;
    object-fit: cover;
    object-position: top left;
  }

  .valore-arrow {
    left: 38%;
    top: 58%;
    transform: translateY(-50%);
  }

  .valore-arrow-img {
    width: 90px;
  }
}


/* ==========================================================
   DESKTOP (1025–1440) — MATCH HERO
========================================================== */
@media (min-width: 1025px) and (max-width: 1440px) {

  .valore-content {
    min-height: 88vh;
  }

  .valore-image {
    width: 100%;
    object-fit: cover;
    object-position: 40% 15%;
  }

  .valore-arrow {
    left: 38%;
    top: 70%;
    transform: translateY(-50%);
  }

  .valore-arrow-img {
    width: 80px;
  }
}


/* ==========================================================
   LARGE DESKTOP (1441+)
========================================================== */
@media (min-width: 1441px) {

  .valore-arrow {
    left: 35%;
    top: 62%;
    transform: translateY(-50%);
  }

  .valore-arrow-img {
    width: 70px;
  }
}


/* ==========================================================
   MOBILE PORTRAIT (≤768px)
========================================================== */
@media (max-width: 768px) and (orientation: portrait) {

  .valore-content {
    min-height: 32vh;
    width: 100%;
    overflow: hidden;
  }

  .valore-image {
    width: 100vw;
    height: 200px;
    object-fit: cover;
    object-position: 30% center;
    margin-left: calc(-50vw + 50%);
  }

  .valore-text-overlay {
    top: 50%;
    left: 40%;
    right: 0;
    padding: var(--space-md);
    text-align: center;
    background: transparent;
    transform: translateY(-50%);
  }

  .valore-text {
    font-size: var(--fs-lg);
    line-height: 1.2;
    width: 100%;
    margin-bottom: 0;
  }

  .valore-arrow {
    left: 35%;
    top: 30%;
    transform: rotate(-45deg);
    z-index: 4;
  }

  .valore-arrow-img {
    width: 45px;
  }
}


/* ==========================================================
   MOBILE LANDSCAPE (≤768px)
========================================================== */
@media (max-width: 768px) and (orientation: landscape) {

  .valore-content {
    min-height: 100svh;
    background-color: var(--bg-primary);
  }

  .valore-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    margin-left: calc(-50vw + 50%);
  }

  .valore-text-overlay {
    left: 40%;
    top: 10%;
    width: 55%;
    transform: none;
    text-align: center;
  }

  .valore-arrow {
    left: 35%;
    top: 50%;
    transform: rotate(-45deg);
  }

  .valore-arrow-img {
    width: 36px;
  }
}

/* ==========================================================
   SERVICE GRID
========================================================== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.service-item {
  background: var(--bg-secondary);
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.service-item:hover,
.service-item:focus {
  outline: 2px solid rgba(13, 110, 253, 0.7); /* Dim outline */
  outline-offset: 2px;
  transform: translateY(-5px); 
  box-shadow: var(--shadow-md);
}

.service-icon { 
  font-size: var(--fs-2xl); 
  margin-bottom: var(--space-sm); 
  color: var(--primary-color);
}

.service-title { 
  font-size: var(--fs-lg); 
  font-weight: 600; 
  color: var(--text-primary); 
  margin-bottom: var(--space-sm);
}

.service-description { 
  color: var(--text-secondary); 
  font-size: var(--fs-sm); 
  line-height: 1.6;
}

/* ==========================================================
   SERVICE GRID - Prevent Text Selection
========================================================== */
.service-grid,
.service-item,
.service-title,
.service-description {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* ==========================================================
   SERVICE GRID RESPONSIVE BREAKPOINTS
========================================================== */

/* MOBILE (0-768px) */
@media (max-width: 768px) {
  .service-grid { 
    grid-template-columns: 1fr; 
    gap: var(--space-sm);
  }
}

/* TABLET (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .service-grid { 
    grid-template-columns: repeat(3, 1fr);  /* 3 columns on tablet */
    gap: var(--space-md);
  }
}

/* DESKTOP (1025px +) */
@media (min-width: 1025px) {
  .service-grid { 
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
}

/* ==========================================================
   CONTENT LAYOUT GRIDS
========================================================== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.content-main {
  /* Main content area styles */
}

/* ==========================================================
   CONTENT LAYOUT GRIDS
========================================================== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.content-main {
  /* Main content area styles */
}

/* Approach content styles */
.approach-content .lead {
  margin-top: calc(var(--space-xl) * 0.25);
  margin-bottom: calc(var(--space-xl) * 0.5);
  text-align: left;
}

.approach-content h2 {
  margin-bottom: calc(var(--space-xl) * 0.25);
  text-align: center;
}

.approach-points {
  margin-top: calc(var(--space-xl) * 0.5);
}

/* ==========================================================
   CALCULATOR STYLES
========================================================== */
.calculator-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.calc-group {
  margin-bottom: var(--space-md);
}

.calc-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.calc-group input[type="number"],
.calc-group select {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--fs-base);
}

.calc-group input[type="range"] {
  width: 100%;
  margin-top: var(--space-sm);
}

.calc-group small {
  display: block;
  margin-top: var(--space-xs);
  color: var(--text-secondary);
  font-style: italic;
}

/* ==========================================================
   COMMISSION SPECIFIC STYLES
========================================================== */
/* Negative commission styling */
#commissionResult {
  color: var(--secondary-color); /* Green for negative numbers */
  font-weight: 700;
}

/* Highlight negative values in results */
.result-item .negative {
  color: var(--secondary-color);
}

/* ==========================================================
   CALCULATOR RESULTS
========================================================== */
.calc-results {
  background: var(--gray-100);
  padding: var(--space-md);
  border-radius: var(--border-radius);
  margin: var(--space-md) 0;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}

.result-item.total {
  font-size: var(--fs-lg);
  font-weight: 700;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.calc-cta {
  text-align: center;
  border-top: 2px solid var(--border-color);
  padding-top: var(--space-md);
}

.calc-cta .disclaimer {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

/* ==========================================================
   LEFT RAIL AD
========================================================== */
.ad-rail-container {
  position: relative;
}

.left-rail-ad {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  z-index: 70;
  display: none;
}

/* Show on desktop only */
@media (min-width: 1025px) {
  .left-rail-ad {
    display: block;
  }
}

/* ==========================================================
   MOBILE STICKY AD  
========================================================== */
.mobile-ad-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 10px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 90;
}

/* Hide sticky ad if Google doesn't serve actual ad content */
.mobile-ad-sticky ins[style*="display: none"],
.mobile-ad-sticky ins:not([style]) {
  display: none !important;
}

.mobile-ad-sticky:empty,
.mobile-ad-sticky:not(:has(ins[style*="display: block"])) {
  display: none !important;
}

@media (max-width: 1024px) {
  .mobile-ad-sticky:has(ins[style*="display: block"]) {
    display: block;
  }
}

/* ==========================================================
   FORM STYLING
========================================================== */
.form-container {
  max-width: 700px; margin:0 auto; background: var(--bg-secondary);
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--border-radius); box-shadow: var(--shadow-sm);
}

.form-title { font-size: var(--fs-xl); font-weight:600; color: var(--text-primary); margin-bottom:var(--space-md); text-align:center;}

.iframe { border-radius: var(--border-radius); border:none; width:100%; height:1100px; background: var(--bg-secondary);}

/* ==========================================================
   NEWSLETTER STYLING  
========================================================== */
.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form .input-group {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form .form-control {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  flex: 1;
  /* Consistent focus state matching service grid */
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline 0.2s ease;
}

.newsletter-form .form-control:focus {
  outline: 2px solid rgba(13, 110, 253, 0.7);
  outline-offset: 2px;
}

/* ==========================================================
   SOCIAL LINKS
========================================================== */

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-300);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

/* ==========================================================
   FOOTER
========================================================== */
.extFooter {
  background: var(--gray-900); color: var(--gray-400); padding: var(--space-unit) 0; margin-top:auto; font-size:14px;
}

.extFooter .footer-links a { text-decoration:none; color: var(--gray-500); transition:color 0.2s; }
.extFooter .footer-links a:hover { color: var(--gray-400); text-decoration:underline; text-underline-offset:0.2em; }

/* ==========================================================
   RESPONSIVE BREAKPOINTS - MOBILE-FIRST
========================================================== */

/* MOBILE (0-768px) */
@media(max-width:768px){
  .logo { margin-top: 2px; }
  .logo-text { display:none; }
  .nav-links:not(.mobile-active) { display:none; }
  .hamburger { display:flex; }
  .whatsapp-btn { display:none; }
  .floating-whatsapp { display:flex; }
}

/* TABLET (769px - 1024px) */
@media(min-width:769px) and (max-width:1024px){
  .logo { margin-top: 2px; }
  .logo-text { display:none; }
  .nav-links:not(.mobile-active) { display:none; }
  .whatsapp-btn { display:none; }
  .hamburger { display:flex; }
  .floating-whatsapp { display:flex; }
  .hero-content { padding: var(--space-lg); margin:0;}
  .footer-content { grid-template-columns: repeat(2,1fr);}
}

/* DESKTOP (1025px +) */
@media(min-width:1025px){
  .nav-links { display:flex;}
  .whatsapp-btn { display:flex;}
  .hamburger { display:none;}
  .floating-whatsapp { display:none;}
  .footer-content { grid-template-columns: repeat(3,1fr);}
}

/* ==========================================================
   ACCESSIBILITY
========================================================== */
.sr-only, .visually-hidden {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; white-space:nowrap; border:0;
}

.skip-link {
  position:absolute; top:-40px; left:var(--space-md); background:var(--primary-color); color:white;
  padding:var(--space-sm); border-radius:var(--border-radius); z-index:100; transition: top 0.3s ease;
}
.skip-link:focus { top:var(--space-md); outline:3px solid var(--accent-color); outline-offset:2px; }

/* HIGH CONTRAST */
@media (prefers-contrast: high){
  :root { --text-secondary:#000; --border-color:#000; --shadow-sm:0 2px 4px rgba(0,0,0,0.3); --shadow-md:0 4px 6px rgba(0,0,0,0.3);}
  .service-item { border:2px solid var(--border-color);}
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce){
  * { transition:none !important; animation:none !important; }
  .service-item:hover, .whatsapp-btn:hover, .floating-whatsapp:hover { transform:none !important; }
}

/* PRINT STYLES */
@media print{
  .floating-whatsapp, .nav-links .whatsapp-btn, .hero::before { display:none; }
  .hero { background:white; color:black; height:auto; }
  .hero-content .text-white { color:black; text-shadow:none;}
  .service-item { break-inside:avoid; border:1px solid #000;}
}
