/* ================================================================
   SHOPNEX — STYLESHEET (Non-critical / deferred)
   Design: Mobile-first, Premium Agency, Trust Blue
   Primary: #2563EB  Secondary: #0F172A  Accent: #F59E0B
   ================================================================ */

/* ---- Variables ---- */
:root {
  --blue: #2563EB;
  --blue-dark: #1E40AF;
  --navy: #0F172A;
  --gold: #F59E0B;
  --gold-dark: #D97706;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --muted-light: #94A3B8;
  --border: #E2E8F0;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 8px 32px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.14);
  --trans: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base Extras ---- */
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
main { display: block; }

/* ---- Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  z-index: 999;
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* ---- Container ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ---- Sections ---- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: #F1F5F9; }

/* ---- Section headers ---- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
  display: inline-block;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.section-tag--gold {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.25);
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--navy);
}

.section-header h2 em {
  color: var(--blue);
  font-style: normal;
}

.section-header h2 em.gold { color: var(--gold); }

.section-header p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
}

/* ---- Fade-in scroll animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ---- Navigation ---- */
.nav-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.125rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  border-top: 1px solid var(--border);
}

.nav-menu.open { display: flex; }

.nav-link {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--trans), color var(--trans);
  display: block;
}

.nav-link:hover, .nav-link.active {
  background: rgba(37, 99, 235, 0.07);
  color: var(--blue);
}

.nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  justify-content: center;
}

.nav-toggle {
  background: none;
  border: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 6px;
  transition: background var(--trans);
}

.nav-toggle:hover { background: rgba(37, 99, 235, 0.07); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    border: none;
    align-items: center;
    gap: 0.25rem;
  }
  .nav-cta { margin-top: 0; }
  .nav-toggle { display: none; }
}

/* ---- Hero: Platform badges ---- */
.hero-platforms {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.platforms-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.platform-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid;
  line-height: 1.4;
}

.platform-badge.shopify   { background: rgba(149,191,71,0.12); border-color: rgba(149,191,71,0.35); color: #86EFAC; }
.platform-badge.magento   { background: rgba(242,99,34,0.12);  border-color: rgba(242,99,34,0.35);  color: #FCA5A5; }
.platform-badge.woo       { background: rgba(127,84,179,0.12); border-color: rgba(127,84,179,0.35); color: #C4B5FD; }
.platform-badge.bigcom    { background: rgba(52,185,251,0.12); border-color: rgba(52,185,251,0.35); color: #7DD3FC; }
.platform-badge.custom    { background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.35); color: #A5B4FC; }

/* ---- Hero Illustration ---- */
.hero-illustration {
  display: none;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .hero-illustration {
    display: block;
    width: clamp(340px, 38vw, 520px);
    animation: float 5s ease-in-out infinite;
  }
}

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

/* ---- Hero 2-col on desktop ---- */
@media (min-width: 1024px) {
  .hero-inner {
    display: flex;
    align-items: center;
    gap: clamp(3rem, 5vw, 5rem);
  }

  .hero-copy { flex: 1; min-width: 0; }
}

/* ---- Services ---- */
.services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: box-shadow var(--trans), transform var(--trans), border-color var(--trans);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
  border-radius: var(--radius) var(--radius) 0 0;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.25);
}

.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--trans);
}

.service-card:hover .service-icon { background: rgba(37, 99, 235, 0.14); }
.service-icon svg { width: 26px; height: 26px; stroke: var(--blue); }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.service-card > p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  flex: 1;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.service-features li {
  font-size: 0.8rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.4;
}

.service-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.9rem;
}

.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.125rem;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  justify-content: center;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  margin-top: auto;
}

.btn-service:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* ---- Process ---- */
.process { background: var(--navy); }
.process .section-header h2 { color: #fff; }
.process .section-header p { color: rgba(255, 255, 255, 0.6); }

.process-track {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* Mobile: vertical */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-connector {
  width: 2px;
  height: 2.5rem;
  background: linear-gradient(to bottom, rgba(37,99,235,0.6), rgba(245,158,11,0.6));
  margin: 0 auto;
  border-radius: 2px;
  flex-shrink: 0;
}

.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}

.process-step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.step-number {
  font-size: 2rem;
  font-weight: 900;
  color: rgba(245, 158, 11, 0.18);
  line-height: 1;
  min-width: 2.5rem;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  user-select: none;
}

.step-body { flex: 1; min-width: 0; }

.step-icon {
  width: 42px;
  height: 42px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.step-icon svg { width: 22px; height: 22px; stroke: #93C5FD; }

.process-step h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.process-step p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* Desktop: horizontal 4-col grid */
@media (min-width: 900px) {
  .process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: start;
  }

  .process-connector { display: none; }

  .process-step {
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    gap: 0.75rem;
    padding: 1.75rem;
  }

  .step-number {
    font-size: 3rem;
    color: rgba(245, 158, 11, 0.15);
    min-width: auto;
  }
}

/* ---- Tech Stack ---- */
.tech-stack-section { background: var(--bg); }

.tech-stack-wrapper {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  box-shadow: var(--shadow);
}

.tech-stack-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  margin-bottom: 2rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.tech-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color var(--trans), background var(--trans), transform var(--trans);
  min-width: 90px;
  text-align: center;
}

.tech-logo:hover {
  background: var(--bg);
  border-color: var(--border);
  transform: translateY(-3px);
}

.tech-logo span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Logo color accents */
.shopify-logo .tech-icon { background: rgba(149,191,71,0.1); }
.magento-logo .tech-icon { background: rgba(242,99,34,0.1); }
.woo-logo .tech-icon     { background: rgba(127,84,179,0.1); }
.bigcom-logo .tech-icon  { background: rgba(52,185,251,0.1); }
.headless-logo .tech-icon{ background: rgba(99,102,241,0.1); }

.tech-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
}

/* ---- Testimonials ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--trans), transform var(--trans), border-color var(--trans);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.2);
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 3px;
  display: flex;
  gap: 2px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
  display: inline-block;
}

.testimonial-quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(37, 99, 235, 0.1);
  width: 36px;
  height: 36px;
}

.testimonial-card blockquote {
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.testimonial-author strong {
  display: block;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
}

.testimonial-author span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ---- CTA Section ---- */
.cta-section { background: var(--navy); padding: clamp(4rem, 8vw, 7rem) 0; }

.cta-box {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem);
  background: linear-gradient(145deg, #1E3A8A 0%, #0F172A 100%);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(37, 99, 235, 0.3);
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
}

.cta-box > * { position: relative; z-index: 1; }

/* Higher specificity (0,2,0) beats the wildcard rule above (0,1,0) */
.cta-box .cta-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-box .cta-glow-2 {
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-box h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-box h2 em { color: var(--gold); font-style: normal; }

.cta-box p {
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: 2.25rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.25rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--trans);
  text-decoration: none;
}

.contact-item:hover { color: rgba(255, 255, 255, 0.9); }
.contact-item svg { flex-shrink: 0; }

/* ---- Footer ---- */
.footer {
  background: #060E1E;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

@media (min-width: 640px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-top { grid-template-columns: 2.5fr 1fr 1fr; gap: 3rem; }
}

.footer-brand-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.875rem;
}

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

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}

.footer-social-link:hover {
  background: rgba(37, 99, 235, 0.2);
  color: #fff;
  border-color: rgba(37, 99, 235, 0.4);
}

.footer-social-link svg { width: 16px; height: 16px; }

.footer-links h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.modal-trigger {
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color var(--trans);
  text-align: left;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.4;
  display: inline-block;
}

.footer-links a:hover, .modal-trigger:hover { color: var(--gold); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
}

.footer-bottom-links button {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: color var(--trans);
  padding: 0;
}

.footer-bottom-links button:hover { color: rgba(255, 255, 255, 0.6); }

/* ---- Modals ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 32, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-overlay[hidden] { display: none !important; }

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 680px;
  width: 100%;
  position: relative;
  margin: auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.75rem;
  padding-right: 2.5rem;
  line-height: 1.25;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 0.375rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.modal-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  padding-left: 0.75rem;
  border-left: 3px solid var(--blue);
  margin-top: 0.375rem;
}

.modal-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}

.modal-body strong { color: var(--navy); }
.modal-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.modal-body a:hover { color: var(--blue-dark); }

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  padding: 0;
}

.modal-close:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ---- WhatsApp FAB ---- */
.wa-fab {
  position: fixed;
  bottom: clamp(1.25rem, 3vw, 2rem);
  right: clamp(1.25rem, 3vw, 2rem);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
  z-index: 900;
  transition: transform var(--trans), box-shadow var(--trans);
  text-decoration: none;
}

.wa-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55);
}

.wa-fab svg { width: 30px; height: 30px; flex-shrink: 0; }

.wa-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 3px solid rgba(37, 211, 102, 0.45);
  animation: waPulse 2.5s ease-out infinite;
  pointer-events: none;
}

.wa-fab-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.wa-fab-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--navy);
}

.wa-fab:hover .wa-fab-tooltip { opacity: 1; }

@keyframes waPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---- Utility ---- */
.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;
}

/* ---- Print ---- */
@media print {
  .nav, .wa-fab, .scroll-progress, .modal-overlay { display: none !important; }
  .fade-in { opacity: 1 !important; transform: none !important; }
  .hero { min-height: auto; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: none; opacity: 1; transform: none; }
  .hero-illustration, .wa-pulse { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
