/*
Theme Name:   Viatrix Child
Theme URI:    https://viatrix.com
Description:  Viatrix Amazon PPC Agency — Child Theme for GeneratePress
Author:       Viatrix
Template:     generatepress
Version:      1.0.0
Tags:         programmatic-seo, amazon-agency, ppc
Text Domain:  viatrix-child
*/

/* ============================================
   IMPORT PARENT THEME
============================================ */
@import url('../generatepress/style.css');

/* ============================================
   CSS VARIABLES — DESIGN SYSTEM
============================================ */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  background: transparent;
}

html { width: 100%; max-width: 100%; overflow-x: hidden; box-sizing: border-box; }
body { width: 100%; max-width: 100%; overflow-x: hidden; box-sizing: border-box; }

/* Fix for horizontal overflow causing gap */
#wpadminbar + #page,
.generate-sections-container,
.generate-sections-inside-container,
.site-content,
.inside-site-content,
#masthead,
.site-header {
  overflow-x: hidden !important;
}

:root {
  --blue:         #1B4FD8;
  --blue-dark:    #1440B8;
  --blue-pale:    #EEF3FF;
  --blue-mid:     #DBEAFE;
  --blue-border:  #BFDBFE;
  --sky:          #EFF6FF;
  --black:        #0A0C10;
  --navy:         #1E3A5F;
  --slate:        #374151;
  --muted:        #6B7280;
  --border:       #E5E7EB;
  --white:        #FFFFFF;
  --bg-soft:      #F9FAFB;
  --green:        #059669;
  --green-pale:   #ECFDF5;
  --red:          #DC2626;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-serif:   'Instrument Serif', serif;
}

/* ============================================
   GLOBAL RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; }

* {
  box-sizing: border-box;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.site-container,
.site, 
#page, 
#content, 
.site-content, 
.viatrix-main, 
.container, 
section, 
main, 
article, 
header, 
footer {
  max-width: 100%;
  overflow-x: hidden;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

html, body {
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

.site, #page, #content, .site-content, .viatrix-main, .container, section, main, article, header, footer, nav, aside, form, div, ul, ol, li, p, h1, h2, h3, h4, h5, h6 {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

.row, .grid, .flex, .container, .wrapper, .inner {
  max-width: 100% !important;
  overflow-x: hidden;
}

table, tr, td {
  max-width: 100% !important;
}

img, video, iframe, embed, object {
  max-width: 100% !important;
  height: auto !important;
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--black);
}
h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p  { color: var(--slate); line-height: 1.75; }
a  { color: var(--blue); transition: color 0.2s; }
a:hover { color: var(--blue-dark); }

.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

/* ============================================
   LAYOUT
============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}
.section        { padding: 90px 5vw; }
.section-sm     { padding: 60px 5vw; }
.section-white  { background: var(--white); }
.section-soft   { background: var(--bg-soft); }
.section-sky    { background: var(--sky); }
.section-navy   { background: var(--navy); }
.section-dark   { background: var(--black); }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 9px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.92rem;
  text-decoration: none; letter-spacing: 0.01em;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-primary {
  background: var(--blue); color: var(--white);
  box-shadow: 0 4px 20px rgba(27,79,216,0.25);
}
.btn-primary:hover {
  background: var(--blue-dark); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(27,79,216,0.32);
}
.btn-secondary {
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--navy); background: var(--bg-soft); color: var(--navy); }
.btn-outline-blue {
  background: transparent; color: var(--blue);
  border: 1.5px solid var(--blue-border);
}
.btn-outline-blue:hover { background: var(--blue-pale); border-color: var(--blue); color: var(--blue); }
.btn-white {
  background: var(--white); color: var(--blue);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.2); color: var(--blue); }
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: white; }

/* ============================================
   SECTION LABELS
============================================ */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 1rem;
}
.section-label::before {
  content: ''; width: 18px; height: 2px;
  background: var(--blue); border-radius: 2px;
}
.section-navy .section-label,
.section-dark .section-label { color: #93C5FD; }
.section-navy .section-label::before,
.section-dark .section-label::before { background: #93C5FD; }

/* ============================================
   CARDS
============================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  transition: all 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(27,79,216,0.1);
  border-color: var(--blue-border);
}
.card-sky { background: var(--sky); border-color: var(--blue-border); }

/* ============================================
   BADGE
============================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-pale); border: 1px solid var(--blue-border);
  padding: 5px 12px 5px 8px; border-radius: 100px;
  font-size: 0.76rem; font-weight: 700; color: var(--blue);
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center;
  justify-content: center; font-size: 0.65rem; color: white;
  flex-shrink: 0;
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0.3; }
}
.anim-fade-up { animation: fadeUp 0.5s ease both; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

/* ============================================
   BREADCRUMB
============================================ */
.viatrix-breadcrumb {
  padding: 12px 5vw;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--muted);
}
.viatrix-breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 500; }
.viatrix-breadcrumb a:hover { text-decoration: underline; }
.viatrix-breadcrumb .sep { color: var(--border); }
.viatrix-breadcrumb .current { color: var(--slate); font-weight: 600; }

/* ============================================
   STATS BAR
============================================ */
.stats-bar {
  display: flex; gap: 2rem; align-items: center;
  padding-top: 1.8rem; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat-item { display: flex; align-items: center; gap: 10px; }
.stat-num {
  font-weight: 800; font-size: 1.3rem; color: var(--black);
  letter-spacing: -0.03em; line-height: 1;
}
.stat-num .accent { color: var(--blue); }
.stat-label { font-size: 0.75rem; color: var(--muted); line-height: 1.3; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ============================================
   RESULTS PANEL (Hero Right Card)
============================================ */
.results-panel {
  background: var(--sky);
  border-radius: 20px;
  overflow: hidden;
  border: 1.5px solid var(--blue-border);
  box-shadow: 0 20px 48px rgba(27,79,216,0.12);
}
.panel-header {
  padding: 1.1rem 1.5rem;
  background: var(--blue-mid);
  border-bottom: 1.5px solid var(--blue-border);
  display: flex; justify-content: space-between; align-items: center;
}
.panel-title {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy);
}
.panel-live {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 600; color: var(--green);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: blink 2s infinite;
}
.panel-body { padding: 1.4rem; }
.panel-client-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.9rem;
}
.panel-client-name { font-size: 0.78rem; font-weight: 600; color: var(--slate); }
.panel-client-tag {
  font-size: 0.68rem; padding: 3px 8px; border-radius: 4px;
  background: var(--blue-mid); color: var(--blue);
  font-weight: 700; letter-spacing: 0.04em;
}
.acos-box {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem; background: var(--white); border-radius: 12px;
  border: 1.5px solid var(--blue-border); margin-bottom: 1rem;
}
.acos-side { text-align: center; flex: 1; }
.acos-val { font-weight: 800; font-size: 2.1rem; letter-spacing: -0.04em; line-height: 1; }
.acos-val.red { color: var(--red); }
.acos-val.green { color: var(--green); }
.acos-lbl { font-size: 0.67rem; color: var(--muted); margin-top: 2px; }
.acos-mid {
  flex-shrink: 0; text-align: center;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--blue-border);
}
.panel-metrics {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0.6rem;
  margin-bottom: 1rem;
}
.panel-metric {
  background: var(--white); border: 1.5px solid var(--blue-border);
  border-radius: 10px; padding: 0.75rem; text-align: center;
}
.pm-val { font-weight: 800; font-size: 1.15rem; color: var(--black); letter-spacing: -0.03em; line-height: 1; }
.pm-val.blue  { color: var(--blue); }
.pm-val.green { color: var(--green); }
.pm-lbl { font-size: 0.64rem; color: var(--muted); margin-top: 3px; }
.panel-divider { height: 1.5px; background: var(--blue-border); margin: 0.9rem 0; }
.panel-cta-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.1rem;
  background: var(--blue-mid); border-radius: 10px;
  border: 1.5px solid #93C5FD;
  text-decoration: none; transition: all 0.2s;
}
.panel-cta-link:hover { background: var(--blue-border); }
.panel-cta-text { font-size: 0.82rem; font-weight: 700; color: var(--blue); }
.panel-cta-sub { font-size: 0.7rem; color: var(--muted); margin-top: 1px; }
.panel-cta-arrow {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--blue); display: flex; align-items: center;
  justify-content: center; color: white; font-size: 1rem;
  transition: transform 0.2s;
}
.panel-cta-link:hover .panel-cta-arrow { transform: translateX(3px); }

/* ============================================
   CITY CONTEXT CARDS
============================================ */
.city-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 2rem;
}
.city-stat-card {
  padding: 1.2rem; border-radius: 12px;
  background: var(--white); border: 1px solid var(--border);
  transition: all 0.2s;
}
.city-stat-card:hover { border-color: var(--blue-border); box-shadow: 0 4px 16px rgba(27,79,216,0.08); }
.csn { font-weight: 800; font-size: 1.5rem; color: var(--blue); letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; }
.csl { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }

.context-point {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; border-radius: 12px;
  background: var(--white); border: 1px solid var(--border);
  margin-bottom: 0.8rem;
}
.cp-icon {
  width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0;
  background: var(--blue-pale); display: flex; align-items: center;
  justify-content: center; font-size: 1rem;
}
.cp-title { font-weight: 700; font-size: 0.88rem; color: var(--black); margin-bottom: 3px; }
.cp-text  { font-size: 0.82rem; line-height: 1.55; color: var(--muted); }

/* ============================================
   SERVICES GRID
============================================ */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.service-card {
  padding: 1.8rem 1.5rem; border-radius: 14px;
  border: 1px solid var(--border); background: var(--white);
  transition: all 0.25s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--blue); transform: scaleX(0);
  transform-origin: left; transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(27,79,216,0.1); border-color: var(--blue-border); }
.service-card.featured { background: var(--sky); border-color: var(--blue-border); }
.service-card.featured::before { transform: scaleX(1); }
.svc-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--blue-pale); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; margin-bottom: 1.1rem;
}
.service-card.featured .svc-icon { background: var(--blue-mid); }

/* ============================================
   NUMBERS STRIP
============================================ */
.numbers-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding: 2rem; background: var(--white); border: 1.5px solid var(--blue-border);
  border-radius: 16px; margin: 3rem 0;
}
.num-item { text-align: center; }
.num-val { font-weight: 800; font-size: 2.4rem; letter-spacing: -0.05em; line-height: 1; color: var(--black); }
.num-val .accent { color: var(--blue); }
.num-label { font-size: 0.78rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* ============================================
   CASE STUDY CARDS
============================================ */
.case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.case-card {
  border-radius: 14px; overflow: hidden;
  background: var(--white); border: 1.5px solid var(--blue-border);
  transition: all 0.25s;
}
.case-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(27,79,216,0.1); border-color: #93C5FD; }
.case-top {
  padding: 1.1rem 1.3rem;
  background: var(--blue-mid); border-bottom: 1.5px solid var(--blue-border);
  display: flex; justify-content: space-between; align-items: center;
}
.case-type { font-size: 0.72rem; font-weight: 700; color: var(--blue); letter-spacing: 0.06em; text-transform: uppercase; }
.case-body { padding: 1.3rem; }
.case-brand  { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.5rem; }
.case-title  { font-weight: 700; font-size: 0.92rem; color: var(--black); margin-bottom: 1rem; line-height: 1.35; }
.case-metrics { display: flex; align-items: center; gap: 0.8rem; }
.cm-num-red   { font-size: 1.4rem; font-weight: 800; color: var(--red); letter-spacing: -0.04em; line-height: 1; }
.cm-num-green { font-size: 1.4rem; font-weight: 800; color: var(--green); letter-spacing: -0.04em; line-height: 1; }
.cm-lbl { font-size: 0.65rem; color: var(--muted); }
.cm-sep { font-size: 1.2rem; color: var(--border); }
.case-badge {
  display: inline-block; margin-top: 1rem;
  padding: 4px 10px; border-radius: 5px;
  background: var(--green-pale); color: var(--green);
  font-size: 0.7rem; font-weight: 700;
}

/* ============================================
   CITY PILLS (Nearby Cities)
============================================ */
.cities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.city-pill {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none; transition: all 0.2s;
}
.city-pill:hover { border-color: var(--blue); background: var(--blue-pale); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,79,216,0.1); }
.city-pill-name { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.city-pill:hover .city-pill-name { color: var(--blue); }
.city-pill-arrow { font-size: 0.75rem; color: var(--muted); transition: transform 0.2s; }
.city-pill:hover .city-pill-arrow { transform: translateX(3px); color: var(--blue); }

/* ============================================
   CROSS SERVICE CARDS
============================================ */
.cross-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cross-card {
  padding: 2rem; border-radius: 14px;
  border: 1px solid var(--border); background: var(--white);
  text-decoration: none; transition: all 0.25s;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.cross-card::after {
  content: '→'; position: absolute; bottom: 1.5rem; right: 1.5rem;
  font-size: 1.1rem; color: var(--border); transition: all 0.25s;
}
.cross-card:hover::after { color: var(--blue); transform: translateX(4px); }
.cross-card:hover { border-color: var(--blue-border); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(27,79,216,0.09); }
.cross-card.highlight { background: var(--sky); border-color: var(--blue-border); }
.cross-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-pale); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; margin-bottom: 1.2rem;
}
.cross-tag {
  display: inline-block; margin-top: 1.2rem;
  padding: 4px 10px; border-radius: 5px;
  background: var(--blue-pale); color: var(--blue);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
}

/* ============================================
   FAQ ACCORDION
============================================ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 0; cursor: pointer;
  font-weight: 600; font-size: 0.88rem; color: var(--black);
  line-height: 1.4; gap: 1rem; list-style: none; user-select: none;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--blue); }
.faq-icon {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--muted); flex-shrink: 0; transition: all 0.2s;
}
.faq-item.open .faq-q  { color: var(--blue); }
.faq-item.open .faq-icon { background: var(--blue-pale); border-color: var(--blue-border); color: var(--blue); transform: rotate(45deg); }
.faq-a {
  font-size: 0.85rem; line-height: 1.7; color: var(--slate);
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding-bottom: 0;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.1rem; }

/* ============================================
   CTA SECTION
============================================ */
.cta-block {
  padding: 100px 5vw; background: var(--navy);
  position: relative; overflow: hidden; text-align: center;
}
.cta-block::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(27,79,216,0.3) 0%, transparent 65%);
  pointer-events: none;
}
.cta-eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #93C5FD; margin-bottom: 1.2rem;
  position: relative; z-index: 1;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.08; color: var(--white);
  margin-bottom: 1rem; position: relative; z-index: 1;
}
.cta-sub {
  font-size: 1rem; color: rgba(255,255,255,0.45);
  margin-bottom: 2.5rem; position: relative; z-index: 1;
}
.cta-btns {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; position: relative; z-index: 1;
}
.cta-guarantee {
  margin-top: 1.5rem; font-size: 0.78rem; color: rgba(255,255,255,0.3);
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cta-guarantee::before { content: '🔒'; }

/* ============================================
   NAV OVERRIDE
============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: auto;
  min-height: 64px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.viatrix-nav {
  height: auto;
  min-height: 64px;
  max-width: 100%;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}
.viatrix-logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  color: var(--black); text-decoration: none; letter-spacing: -0.04em;
}
.viatrix-logo span { color: var(--blue); }
.viatrix-nav-links { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.viatrix-nav-links > li { list-style: none; }
.viatrix-nav-links a {
  text-decoration: none; color: var(--slate);
  font-size: 0.88rem; font-weight: 500; transition: all 0.2s;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
}
.viatrix-nav-links a:hover { 
  color: var(--blue);
  background: var(--blue-pale);
}
.nav-cta-btn {
  background: var(--blue); color: var(--white) !important;
  padding: 9px 20px; border-radius: 7px;
  font-weight: 700 !important; font-size: 0.82rem;
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.nav-cta-btn:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }

/* ============================================
   FOOTER
============================================ */
.viatrix-footer {
  background: #060810; padding: 60px 5vw 28px;
  color: rgba(255,255,255,0.35);
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo-link {
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  color: white; text-decoration: none; letter-spacing: -0.04em;
  display: block; margin-bottom: 0.9rem;
}
.footer-logo-link span { color: var(--blue); }
.footer-desc { font-size: 0.82rem; line-height: 1.7; max-width: 240px; }
.footer-col h5 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-bottom: 1rem; padding: 0; text-align: left;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; padding: 0; margin: 0; text-align: left; }
.footer-col li { padding: 0; margin: 0; }
.footer-col a { text-decoration: none; font-size: 0.82rem; color: rgba(255,255,255,0.3); transition: color 0.2s; display: inline-block; padding: 0; }
.footer-col a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ============================================
   LEADS CRM (Admin)
============================================ */
.viatrix-crm-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.viatrix-crm-table th {
  background: var(--navy); color: white; padding: 10px 14px;
  text-align: left; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em;
}
.viatrix-crm-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.viatrix-crm-table tr:hover td { background: var(--blue-pale); }
.lead-status {
  display: inline-block; padding: 3px 9px; border-radius: 5px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
}
.status-new    { background: var(--blue-pale); color: var(--blue); }
.status-called { background: #FEF9C3; color: #854D0E; }
.status-closed { background: var(--green-pale); color: var(--green); }
.status-lost   { background: #FEF2F2; color: var(--red); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2,1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .case-cards, .numbers-strip, .cross-grid { grid-template-columns: 1fr 1fr; }
  .cities-grid  { grid-template-columns: repeat(2,1fr); }
  .viatrix-nav-links { display: none; }
  .stats-bar { flex-wrap: wrap; gap: 1rem; }
  .stat-divider { display: none; }
}
@media (max-width: 500px) {
  .services-grid, .case-cards, .numbers-strip, .cross-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr 1fr; }
  .city-stat-grid, .panel-metrics { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
  position: relative; overflow: hidden;
  padding: 100px 5vw 80px;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.35; pointer-events: none;
}
.hero-glow {
  position: absolute; top: -150px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(27,79,216,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center;
}
.hero-left h1 { max-width: 580px; }
.hero-sub { font-size: 1.05rem; max-width: 500px; margin-bottom: 2.2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================
   TRUST BAR
============================================ */
.trust-bar {
  padding: 14px 5vw;
  background: var(--black); color: rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 2rem; overflow-x: auto;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
  white-space: nowrap; scrollbar-width: none;
}
.trust-bar::-webkit-scrollbar { display: none; }

/* ============================================
   COUNTRIES GRID
============================================ */
.countries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.country-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.3rem 1.4rem; border-radius: 14px;
  background: var(--white); border: 1px solid var(--border);
  text-decoration: none; transition: all 0.25s;
}
.country-card:hover { border-color: var(--blue-border); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(27,79,216,0.1); }
.country-flag { font-size: 2rem; flex-shrink: 0; }
.country-name  { font-weight: 700; font-size: 0.92rem; color: var(--black); }
.country-market { font-size: 0.75rem; color: var(--muted); margin-top: 1px; }
.country-cities { font-size: 0.72rem; color: var(--blue); font-weight: 600; margin-top: 2px; }
.country-arrow  { margin-left: auto; color: var(--border); transition: all 0.2s; font-size: 1.1rem; }
.country-card:hover .country-arrow { color: var(--blue); transform: translateX(3px); }

/* ============================================
   PROCESS STEPS
============================================ */
.process-steps {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0; align-items: start;
  max-width: 1200px; margin: 0 auto;
}
.process-step {
  padding: 2rem; border-radius: 14px; background: var(--white); border: 1.5px solid var(--blue-border);
}
.step-num {
  font-size: 2.5rem; font-weight: 800; color: var(--blue-border);
  letter-spacing: -0.05em; line-height: 1; margin-bottom: 0.8rem;
}
.step-connector {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 2.8rem; color: var(--blue-border); font-size: 1.5rem;
}

/* ============================================
   TESTIMONIALS
============================================ */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  padding: 2rem; border-radius: 14px; background: var(--white);
  border: 1px solid var(--border); transition: all 0.25s;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(27,79,216,0.08); border-color: var(--blue-border); }
.testi-stars { color: #F59E0B; font-size: 0.85rem; margin-bottom: 0.8rem; letter-spacing: 2px; }
.testi-quote { font-size: 0.88rem; line-height: 1.7; color: var(--slate); margin-bottom: 1.2rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 0.8rem; }
.testi-initial {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 0.85rem; color: var(--black); }
.testi-meta { font-size: 0.75rem; color: var(--muted); }

/* ============================================
   PRICING CARDS
============================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pricing-card {
  padding: 2rem; border-radius: 16px; border: 1.5px solid var(--border); background: var(--white);
  display: flex; flex-direction: column;
}
.pricing-card.featured-price { border-color: var(--blue); box-shadow: 0 8px 32px rgba(27,79,216,0.12); }
.price-tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.price-val { margin-bottom: 0.3rem; }
.price-num { font-size: 2rem; font-weight: 800; color: var(--black); letter-spacing: -0.04em; }
.price-period { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.price-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.5rem; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.price-features li { font-size: 0.85rem; color: var(--slate); }

/* ============================================
   FOOTER TRUST LINE
============================================ */
.footer-trust {
  display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem;
  font-size: 0.72rem; color: rgba(255,255,255,0.25);
}
.footer-brand { max-width: 280px; }

/* Footer Social Icons */
.footer-social {
  display: flex; gap: 12px; margin-top: 1.25rem;
}
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  transition: all 0.2s ease;
}
.footer-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  transform: translateY(-2px);
}

/* Footer Contact */
.footer-contact { margin-top: 1.5rem; }
.footer-contact h5 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
}
.footer-email {
  display: inline-block; font-size: 0.82rem;
  color: rgba(255,255,255,0.4) !important; text-decoration: none;
  transition: color 0.2s;
}
.footer-email:hover { color: rgba(255,255,255,0.9) !important; }

/* ============================================
   MOBILE NAV TOGGLE
============================================ */
.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 4px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: all 0.2s;
}
.nav-phone { font-size: 0.82rem; font-weight: 600; color: var(--slate); text-decoration: none; }
.nav-phone:hover { color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: 1.2rem; }

/* ============================================
   NAV DROPDOWN
============================================ */
.has-dropdown,
.menu-item-has-children { 
  position: relative; 
}

/* WordPress default submenu class */
.viatrix-nav-links .sub-menu,
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
  list-style: none !important;
  margin: 0;
}

/* Show dropdown on hover */
.has-dropdown:hover > .sub-menu,
.has-dropdown:hover .nav-dropdown,
.menu-item-has-children:hover > .sub-menu,
.nav-item:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(4px);
}

/* Dropdown inner container */
.nav-dropdown-inner,
.sub-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.nav-dropdown-inner li,
.sub-menu li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

/* Dropdown links */
.nav-dropdown a,
.sub-menu a {
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate) !important;
  text-decoration: none;
  transition: all 0.15s;
  display: block;
  list-style: none !important;
}

.nav-dropdown a:hover,
.sub-menu a:hover {
  background: var(--blue);
  color: white !important;
}

.nav-chevron {
  font-size: 0.65rem;
  margin-left: 4px;
  transition: transform 0.2s;
}

.has-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Remove bullets from all navigation lists */
.viatrix-nav-links,
.viatrix-nav-links ul,
.viatrix-nav-links li,
.sub-menu,
.sub-menu ul,
.sub-menu li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.viatrix-nav-links li {
  list-style: none !important;
}

/* ============================================
   RESPONSIVE UPDATES
============================================ */
@media (max-width: 1024px) {
  .countries-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .step-connector { display: none; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  /* Mobile drawer handles nav - old inline nav removed */
  .nav-dropdown { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border: none; padding: 0; }
  .countries-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SVG ICON SYSTEM
============================================ */
.viatrix-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.viatrix-icon svg {
  width: 100%;
  height: 100%;
}
.viatrix-flag {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

/* Icon inside a box (services, features) */
.icon-box {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border: 1.5px solid var(--blue-border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-box--sm { width: 40px; height: 40px; border-radius: 9px; }
.icon-box--lg { width: 64px; height: 64px; border-radius: 16px; }
.icon-box--dark { background: var(--blue); border-color: var(--blue); }
.icon-box--dark svg path,
.icon-box--dark svg line,
.icon-box--dark svg circle,
.icon-box--dark svg rect,
.icon-box--dark svg polyline,
.icon-box--dark svg polygon { stroke: white !important; }
.icon-box--dark svg circle[fill]:not([fill="none"]) { fill: white !important; }

/* Step number with icon */
.step-icon-num {
  width: 48px; height: 48px;
  background: var(--blue);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: white;
  flex-shrink: 0;
}

/* Country card flag layout */
.country-card .viatrix-flag {
  width: 28px; height: 20px;
  flex-shrink: 0;
}

/* Service card icon */
.service-card .icon-box { margin-bottom: 1.2rem; }

/* Context point icon */
.context-point .icon-box { margin-top: 2px; }

/* ============================================
   MOBILE RESPONSIVENESS — 375px+
============================================ */

/* Base mobile adjustments */
@media (max-width: 768px) {
  body { font-size: 15px; }
  
  /* Spacing */
  .section { padding: 60px 5vw !important; }
  .section-sm { padding: 40px 5vw !important; }
  
  /* Typography */
  h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
  h3 { font-size: 1.1rem; }
  
  /* Containers */
  .container { padding: 0 4vw; }
  
  /* Grid layouts - switch to single column */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Flex wrapping */
  .stats-bar { flex-direction: column; gap: 1.5rem; }
  .stat-divider { display: none; }
  .trust-bar { padding: 1rem 5vw; }
  .trust-bar > div { flex-direction: column; gap: 0.75rem; }
  
  /* Buttons */
  .btn { padding: 12px 20px; font-size: 0.85rem; width: 100%; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { width: 100% !important; }
  
  /* Forms */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  
  form input, form select, form textarea {
    width: 100% !important;
    font-size: 16px !important; /* Prevent zoom on focus */
  }
  
  /* Cards */
  .card { padding: 1.2rem; }
  
  /* Navigation - handled by mobile drawer */
  .viatrix-nav-links { display: none; }

  /* Hero section */
  .hero-section { 
    grid-template-columns: 1fr !important;
    min-height: auto;
    padding: 60px 5vw !important;
  }
  .hero-section > div:last-child { display: none; }
  
  /* Case study cards */
  .case-metrics { flex-direction: column; gap: 1rem; }
  .cm-sep { display: none; }
  
  /* Feature list */
  [class*="feature"] { grid-template-columns: 1fr !important; }
  
  /* FAQ */
  details summary { padding: 1.2rem 1rem; }
  details > div { padding: 1.2rem 1rem; }
  
  /* Testimonials */
  .testimonial-card { padding: 1.5rem; }
  
  /* Blog cards */
  .card-blog { margin-bottom: 1rem; }
  .card-blog img { height: 150px; }
}

/* Tablet (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .section { padding: 70px 5vw !important; }
  
  /* 2 column grid on tablet */
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Hero section */
  .hero-section { gap: 2rem; grid-template-columns: 1.2fr 0.8fr !important; }
  .hero-section > div:last-child { display: block; }
  
  /* Buttons */
  .hero-ctas { flex-direction: row; }
  .btn { font-size: 0.9rem; }
}

/* Large screens (1024px+) */
@media (min-width: 1025px) {
  .section { padding: 90px 5vw !important; }
  
  /* 3+ column grid */
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* Very small phones (375px - 414px) */
@media (max-width: 414px) {
  body { font-size: 14px; }
  
  h1 { font-size: clamp(1.3rem, 3vw, 2rem); }
  h2 { font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
  p { font-size: 0.9rem; }
  
  .btn { padding: 10px 16px; font-size: 0.8rem; }
  
  /* Minimal hero section on tiny screens */
  .badge { padding: 4px 10px; font-size: 0.65rem; }
  
  /* Reduce spacing */
  .section { padding: 40px 4vw !important; }
  .container { padding: 0 3vw; }
  
  /* Form labels smaller */
  form label { font-size: 0.7rem; }
  form input, form textarea, form select { padding: 10px 12px; }
  
  /* Remove fancy effects on mobile */
  .hero-grid-bg { opacity: 0; }
  .hero-glow { opacity: 0; }
  
  /* Hero stats - make them tight */
  .stats-bar > div:nth-child(odd) { display: none; } /* Hide half the stats on tiny screens */
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn, a, button { 
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Tap feedback */
  .btn:active { opacity: 0.8; }
  
  /* Remove hover effects */
  .btn:hover { transform: none; }
  .card:hover { transform: none; }
}

/* Landscape orientation optimizations */
@media (max-height: 600px) and (orientation: landscape) {
  .section { padding: 40px 5vw !important; }
  
  h1 { font-size: clamp(1.2rem, 3vw, 2rem); }
  h2 { font-size: clamp(1rem, 2.5vw, 1.6rem); }
  
  .hero-section { min-height: auto; padding: 40px 5vw !important; }
}

/* Print styles */
@media print {
  .viatrix-nav, .viatrix-footer, .btn, .cta-block { display: none !important; }
  body { background: white; }
  .section { padding: 20px; page-break-inside: avoid; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Define dark mode variables if needed */
  /* Currently keeping light theme as per design */
}

/* ============================================================
   MOBILE DRAWER STYLES (Right-side drawer)
============================================================ */

/* Logo Wrapper */
.viatrix-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.viatrix-logo-image {
  max-height: 50px;
  width: auto;
}

/* Mobile header adjustments */
@media (max-width: 1023px) {
  .site-header {
    height: auto;
    min-height: 60px;
  }

  .viatrix-nav {
    height: auto;
    padding: 12px 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
  }

  /* Reduce logo size on mobile */
  .viatrix-logo-wrap {
    flex: 0 0 auto;
  }

  .viatrix-logo {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .viatrix-logo-image {
    max-height: 32px;
    width: auto;
  }

  /* Keep nav-actions (CTA button) in header */
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    order: 3;
  }

  /* Hide phone on mobile, keep CTA */
  .nav-phone {
    display: none;
  }

  /* Compact CTA button for mobile header */
  .nav-cta-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  /* Hamburger button */
  .nav-mobile-toggle {
    display: flex;
    flex-shrink: 0;
    order: 2;
    padding: 8px;
  }
}

/* Desktop Menu Wrapper */
.nav-menu-wrapper {
  display: flex;
  flex: 1;
  justify-content: center;
}

.viatrix-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-item {
  position: relative;
  list-style: none;
  display: inline-flex;
  align-items: center;
}

.nav-item > a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item > a:hover {
  color: var(--blue);
}

/* Ensure parent li with dropdown has proper positioning */
.nav-item.has-dropdown {
  position: relative;
}

/* Hamburger Button - Only Show on Mobile */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--navy);
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Show hamburger on mobile only */
@media (max-width: 1023px) {
  .nav-mobile-toggle {
    display: flex;
  }
}

/* Hamburger Animation - Open State */
.nav-mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(12px, 12px);
}

.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Drawer - Slides from Right */
.mobile-drawer {
  position: fixed;
  right: -300px;
  top: 0;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  display: block; /* Default for mobile */
}

/* Ensure drawer is completely hidden when not open */
.mobile-drawer:not(.open) {
  right: -300px;
  visibility: hidden;
}

.mobile-drawer.open {
  right: 0;
  visibility: visible;
}

/* Drawer Header */
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  background: var(--blue);
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-drawer-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: background 0.2s;
  line-height: 1;
}

.mobile-drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-drawer-close:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Drawer Menu Links */
.mobile-drawer-menu {
  padding: 0.5rem 0;
}

.mobile-menu-links {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.mobile-menu-links li {
  margin: 0;
  list-style: none !important;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-links li:last-child {
  border-bottom: none;
}

/* Remove bullets from all nested lists */
.mobile-menu-links li li,
.mobile-menu-links ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.mobile-menu-links a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  background: transparent;
}

/* Hover/Active state - Blue background with white text */
.mobile-menu-links a:hover,
.mobile-menu-links a:active,
.mobile-menu-links a:focus {
  background: var(--blue);
  color: white;
}

/* Submenu items styling */
.mobile-menu-links .sub-menu {
  background: var(--bg-soft);
  border-left: 3px solid var(--blue-pale);
  margin: 0;
}

.mobile-menu-links .sub-menu li {
  border-bottom: 1px solid var(--border);
}

.mobile-menu-links .sub-menu a {
  padding-left: 2.5rem;
  font-size: 0.88rem;
  color: var(--slate);
}

.mobile-menu-links .sub-menu a:hover,
.mobile-menu-links .sub-menu a:active {
  background: var(--blue);
  color: white;
}

/* Overlay Backdrop */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Hide desktop menu on mobile */
@media (max-width: 1023px) {
  .viatrix-nav {
    justify-content: space-between;
    align-items: center;
  }
  
  .nav-menu-wrapper {
    display: none;
  }
}

/* Desktop - Full menu visible, hide ALL mobile elements */
@media (min-width: 1024px) {
  .mobile-drawer,
  .mobile-drawer-header,
  .mobile-drawer-menu,
  .mobile-drawer-overlay,
  .nav-mobile-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .nav-menu-wrapper {
    display: flex !important;
  }

  .viatrix-nav-links {
    display: flex !important;
  }
}

/* ============================================
   HOMEPAGE NEW SECTIONS — RESPONSIVE
   Problem-Agitator, Dashboard, Roadmap, Sectors,
   Comparison, Testimonials, Why-Fail
============================================ */

@media (max-width: 768px) {
  /* Problem-Agitator: stack columns */
  .problem-column + .solution-column {
    grid-column: 1 / -1;
  }

  /* Dashboard: stack content + mockup */
  .container > div[style*="grid-template-columns: 1fr 1fr"],
  .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Comparison table: scrollable */
  .comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table > div {
    min-width: 600px;
  }

  /* Why-Fail: stack problem/solution */
  .fail-item {
    grid-template-columns: 1fr !important;
  }
  .fail-item > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .roadmap-grid,
  .sector-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
