/* ==========================================================================
   CALL GEN SEO - ULTIMATE MASTER STYLESHEET (MAY 2026)
   Includes full mobile responsiveness fixes — May 2026 patch applied.
   ========================================================================== */

/* ── 1. VARIABLES & RESETS ────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0f2744; --navy2: #1a3a5c; --navy3: #0a1e35;
  --teal: #00b4b4; --teal2: #00d4d4; --teal3: #007f7f; --teal-pale: #e8f8f8;
  --white: #fff; --off: #f4f8fb; --text: #3a4a5c; --muted: #7a909f;
  --border: #e2ecf3; --dark: #090f1a;
  --fd: 'Poppins', sans-serif; --fb: 'DM Sans', sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
}
html { scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--text); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.2s var(--ease); }
ul { list-style: none; }

/* ── 2. GLOBAL UTILITIES & TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--fd); color: var(--navy); }
h1 { font-size: clamp(38px, 5vw, 64px); font-weight: 800; line-height: 1.1; margin-bottom: 22px; }
h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--teal); }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 24px; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }

/* HERO H1 TEXT COLOR FIX */
.hero h1, 
.approach-hero h1 { color: var(--white) !important; }

.text-center { text-align: center; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; width: 100%; position: relative; z-index: 2; }
.wrap-sm { max-width: 820px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; position: relative; z-index: 1; }
.section-alt { background: var(--off); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,180,180,.1); color: var(--teal); font-family: var(--fd); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; border: 1px solid rgba(0,180,180,.22); margin-bottom: 18px; }
.tag::before { content: ''; width: 18px; height: 1.5px; background: var(--teal); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 8px; font-family: var(--fd); font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: all 0.3s var(--ease); }
.btn-teal { background: var(--teal); color: var(--navy); }
.btn-teal:hover { background: var(--teal2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,180,180,0.35); }
.btn-ghost { background: transparent; color: rgba(255,255,255,0.78); border: 1.5px solid rgba(255,255,255,0.2); margin-left: 1rem;}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.hide-mobile { display: none; }
@media(min-width: 1000px) { .hide-mobile { display: inline; } }

/* ── 3. NAVIGATION & MENU ─────────────────────────────────────────────── */
.main-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; height: 90px; padding: 0 40px; background: rgba(9, 15, 26, 0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(0, 180, 180, 0.12); display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--fd); font-size: 21px; font-weight: 800; color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links > li > a { font-size: 13.5px; font-weight: 400; color: rgba(255,255,255,0.65); padding: 0 16px; height: 90px; display: flex; align-items: center; border-bottom: 2px solid transparent; }
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--teal); border-bottom-color: var(--teal); }

.nav-cta { background: var(--teal) !important; color: var(--navy) !important; font-family: var(--fd) !important; font-weight: 700 !important; font-size: 13px !important; padding: 8px 20px !important; border-radius: 6px !important; height: auto !important; border-bottom: none !important; margin-left: 12px; }
.nav-cta:hover { background: var(--teal2) !important; transform: translateY(-1px); }

/* Dropdowns */
.dropdown { position: relative; }
.drop-trigger { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; margin-left: 4px; transition: transform 0.25s var(--ease); }
.dropdown:hover .chevron { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(15px); background: rgba(9,15,26,0.98); min-width: 280px; padding: 12px 0; border-radius: 12px; border: 1px solid rgba(0,180,180,0.2); box-shadow: 0 15px 35px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: all 0.3s var(--ease); display: flex; flex-direction: column; z-index: 10000; }
.dropdown-menu::before { content: ''; position: absolute; top: -20px; left: 0; width: 100%; height: 20px; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a { padding: 12px 24px !important; height: auto !important; color: rgba(255,255,255,0.7) !important; font-size: 13.5px !important; border: none !important; transition: all 0.2s var(--ease) !important; }
.dropdown-menu a:hover { background: rgba(13,148,136,0.05); color: var(--teal) !important; padding-left: 30px !important; }

/* Mobile Hamburger */
.mobile-toggle { display: none; background: transparent; border: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 10000; padding: 10px; }
.mobile-toggle span { display: block; width: 26px; height: 3px; background-color: #00b4b4 !important; border-radius: 3px; transition: all 0.3s var(--ease); }
.mobile-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── 4. HERO SECTIONS ─────────────────────────────────────────────────── */
.page { padding-top: 90px; display: block; min-height: 100vh; }
.hero { min-height: calc(100vh - 90px); background: var(--navy3); display: flex; align-items: center; position: relative; overflow: visible; padding: 60px 0; }
.approach-hero { padding: 150px 0 80px 0; background: var(--navy3); position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.approach-hero h1 { margin-bottom: 20px; color: var(--white); }
.approach-hero p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 700px; margin: 0 auto; line-height: 1.7; }

.hero-grid { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(0,180,180,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(0,180,180,.055) 1px, transparent 1px); background-size: 64px 64px; animation: gridDrift 28s linear infinite; }
.hero-glow { position: absolute; width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(circle, rgba(0,180,180,.16) 0%, transparent 68%); top: -280px; right: -180px; animation: glow 7s ease-in-out infinite; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1fr 450px; gap: 64px; align-items: center; z-index: 2; position: relative; }
.hero-eye { font-family: var(--fd); font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); display: flex; align-items: center; gap: 10px; margin-bottom: 20px; animation: fadeUp .6s ease both; }
.hero-eye::before { content: ''; width: 28px; height: 1.5px; background: var(--teal); }
.hero-sub { font-size: 16.5px; font-weight: 300; line-height: 1.75; color: rgba(255,255,255,.6); max-width: 520px; margin-bottom: 38px; animation: fadeUp .6s .16s ease both; }
.hero-btns { display: flex; gap: 13px; flex-wrap: wrap; animation: fadeUp .6s .24s ease both; }

/* ── 5. PIPELINE DASHBOARD & GLOBAL BAR GRAPHS ────────────────────────── */
.hero-graphic { position: relative; width: 100%; perspective: 1000px; z-index: 10; animation: floatUpDown 6s ease-in-out infinite; }
.glass-panel { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(13,148,136, 0.2); border-radius: 20px; padding: 28px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); transform: rotateY(-15deg) rotateX(5deg); transform-style: preserve-3d; color: var(--white); }
.live-badge { display: flex; align-items: center; gap: 7px; font-size: 11px; color: rgba(255, 255, 255, 0.38); font-family: var(--fd); font-weight: 700; }
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; }

/* Homepage Glass Card Container (Live Pipeline) */
.glass-card-homepage {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  color: #fff;
  font-family: var(--fb);
}

.glass-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.header-titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #a0aec0;
}
.subtitle {
  font-size: 14px;
  font-weight: 500;
}
.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.pulse-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Pipeline Flow Animation */
.pipeline-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #cbd5e1;
  text-align: center;
}
.node .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.active-node {
  color: #4ade80;
  font-weight: 700;
}
.active-node .icon {
  background: rgba(74, 222, 128, 0.15);
  border-color: #4ade80;
}

.connector {
  flex-grow: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  margin: 0 10px;
  top: -10px;
  overflow: hidden;
}
.flowing-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: flow 2.5s infinite linear;
}
.flowing-line.delay {
  animation-delay: 1.25s;
}

.glass-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px;
  border-radius: 12px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-label {
  font-size: 10px;
  text-transform: uppercase;
  color: #a0aec0;
  letter-spacing: 0.05em;
}
.metric-value {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.motto {
  font-size: 12px;
  font-style: italic;
  color: #94a3b8;
  max-width: 140px;
  text-align: right;
}

/* End Homepage Glass Card */

/* Mini Graph for Homepage Glass Card */
.mini-graph {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
  padding-bottom: 2px;
}
.mini-bar {
  width: 5px;
  background: var(--teal);
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  transform: scaleY(0);
  opacity: 0.7;
}
.mini-bar.highlight {
  background: #4ade80;
  opacity: 1;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
}

/* Staggered entrance animation */
.reveal.visible .mini-bar:nth-child(1) { animation: miniBarUp 1s ease-out forwards 0.2s; height: 40%; }
.reveal.visible .mini-bar:nth-child(2) { animation: miniBarUp 1s ease-out forwards 0.3s; height: 60%; }
.reveal.visible .mini-bar:nth-child(3) { animation: miniBarUp 1s ease-out forwards 0.4s; height: 45%; }
.reveal.visible .mini-bar:nth-child(4) { animation: miniBarUp 1s ease-out forwards 0.5s; height: 75%; }
.reveal.visible .mini-bar:nth-child(5) { animation: miniBarUp 1s ease-out forwards 0.6s; height: 100%; }

@keyframes miniBarUp {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Reset on scroll away */
.reveal:not(.visible) .mini-bar { 
  animation: none !important; 
  transform: scaleY(0); 
}
.pipeline-stage { position: relative; }
.floating-badge { position: absolute; background: var(--navy); border: 1px solid rgba(13,148,136,0.3); padding: 12px 18px; border-radius: 12px; font-family: var(--fd); box-shadow: 0 10px 25px rgba(0,0,0,0.4); transform: translateZ(40px); }
.trust-bar { background: var(--navy); border-bottom: 1px solid rgba(0,180,180,0.15); padding: 25px 0; position: relative; z-index: 5; }

.efficiency-dashboard { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 40px; box-shadow: 0 20px 50px rgba(15,39,68,0.05); position: relative; }
.roi-callout { 
  position: absolute; 
  top: -45px; /* Changed from -20px to raise it further */
  right: 30px; 
  background: var(--navy); 
  color: var(--white); 
  padding: 15px 20px; 
  border-radius: 12px; 
  border: 1px solid var(--teal); 
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.15); 
  text-align: center; 
  z-index: 2; 
}
.roi-value { font-family: var(--fd); font-size: 24px; font-weight: 800; color: #4ade80; line-height: 1; margin-bottom: 4px; }
.roi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.7); }
.ed-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.ed-title { font-family: var(--fd); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }

/* GLOBAL BAR GRAPH FIX (Homepage & Approach) */
.bar-track, .track-bar-container {
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
  background: rgba(255,255,255,0.05); 
  border-radius: 3px; 
  height: 6px;
}
.comp-chart .bar-track {
  height: 22px; 
  background: rgba(15,39,68,0.06); 
  border-radius: 4px; 
  margin-bottom: 6px;
}
.track-bar {
  position: relative !important; 
  top: auto !important;
  left: auto !important;
  height: 100% !important;
  min-height: 22px; 
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end; 
  padding-right: 8px; 
  font-size: 11px; 
  color: var(--navy); 
  font-weight: 700; 
  width: 0; 
  border-radius: 4px;
}
.reveal.visible .track-bar { animation: loadBar 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.reveal.visible .track-bar.delay-1 { animation-delay: 0.2s; }

/* ── 6. SERVICE SUBPAGE ARCHITECTURE ──────────────────────────────────── */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding-top: 40px; }
.svc-detail p { font-size: 16px; line-height: 1.8; color: var(--muted); margin-bottom: 24px; }
.svc-bullets { margin-bottom: 30px; list-style: none; }
.svc-bullets li { position: relative; padding-left: 24px; margin-bottom: 12px; color: var(--navy); font-weight: 600; }
.svc-bullets li::before { content: '▸'; color: var(--teal); position: absolute; left: 0; font-weight: bold; }

.svc-visual { position: relative; perspective: 1000px; width: 100%; }
.svc-visual-wrapper { transform-style: preserve-3d; transform: rotateY(-10deg) rotateX(5deg); transition: transform 0.5s var(--ease); }
.svc-glass-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08); position: relative; z-index: 2; overflow: hidden;}
.svc-badge { position: absolute; padding: 8px 16px; border-radius: 12px; font-family: var(--fd); font-size: 11px; font-weight: 700; border: 1px solid; z-index: 10; background: var(--navy); color: var(--teal); border-color: rgba(0,180,180,.3); box-shadow: 0 10px 20px rgba(0,0,0,.15); }

.methods-section { background: var(--off); padding: 100px 0; }
.methods-header { text-align: center; max-width: 700px; margin: 0 auto 60px auto; }
.methods-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.method-card { background: var(--white); padding: 40px 30px; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); transition: all 0.3s var(--ease); }
.method-card:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: 0 20px 40px rgba(13, 148, 136, 0.1); }
.method-icon { font-size: 40px; margin-bottom: 20px; }

/* ── 7. ORIGINAL GRAPHICAL ANIMATIONS & CAPABILITY CARDS ──────────────── */
.cap-visual-box { height: 120px; background: var(--off); border-radius: 8px; margin-bottom: 24px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); position: relative; overflow: hidden; }
.search-ui { display: flex; align-items: center; background: white; padding: 10px 15px; border-radius: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid var(--border); width: 80%; animation: slideUpFade 4s infinite alternate; }
.search-icon { width: 12px; height: 12px; border: 2px solid var(--teal); border-radius: 50%; position: relative; margin-right: 10px; }
.search-icon::after { content: ''; position: absolute; width: 2px; height: 6px; background: var(--teal); bottom: -4px; right: -4px; transform: rotate(-45deg); }
.search-text { font-size: 10px; color: var(--navy); font-weight: 600; font-family: monospace; }
.map-ui { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, rgba(0,180,180,0.03) 0, rgba(0,180,180,0.03) 2px, transparent 2px, transparent 10px); }
.map-pin { width: 20px; height: 20px; background: var(--teal); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); position: relative; z-index: 2; animation: bouncePin 2s infinite ease-in-out; }
.map-pulse { position: absolute; width: 40px; height: 40px; background: rgba(0,180,180,0.3); border-radius: 50%; z-index: 1; animation: pulseRing 2s infinite ease-out; }
.ads-ui { display: flex; flex-direction: column; gap: 8px; width: 70%; }
.ad-bar { height: 10px; background: var(--border); border-radius: 4px; width: 100%; position: relative; overflow: hidden; }
.ad-bar::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent); animation: shimmer 2.5s infinite; }
.ad-bar:nth-child(1) { background: var(--teal); width: 80%; }
.ad-bar:nth-child(2) { width: 60%; }
.ad-bar:nth-child(3) { width: 90%; }

.conv-btn-viz { font-family: var(--fb); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; padding: 10px 20px; border-radius: 4px; cursor: default; box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1); color: var(--white); background-color: var(--navy); transform: scale(0.95); transition: all 0.3s ease; }
.reveal.visible .conv-btn-viz { animation: btnPulseSequence 3s ease-in-out infinite; }
@keyframes btnPulseSequence { 0%, 100% { transform: scale(0.95); background-color: var(--navy); box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1); } 50% { transform: scale(1.05); background-color: var(--teal); box-shadow: 0 0 20px rgba(13, 148, 136, 0.4); } }

.auto-ui { display: flex; flex-direction: column; gap: 10px; width: 80%; }
.chat-bubble { font-family: var(--fb); font-size: 9px; padding: 8px 12px; border-radius: 12px; font-weight: 600; max-width: 85%; opacity: 0; animation: chatPop 4s infinite; }
.chat-1 { background: var(--white); border: 1px solid var(--border); color: var(--muted); align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-2 { background: var(--teal); color: var(--navy); align-self: flex-end; border-bottom-right-radius: 2px; animation-delay: 1.5s; }
.star-ui { display: flex; gap: 6px; }
.star { width: 18px; height: 18px; background: #fbbf24; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transform: scale(0); animation: starPop 3s infinite forwards; }
.star:nth-child(1) { animation-delay: 0.1s; } .star:nth-child(2) { animation-delay: 0.2s; } .star:nth-child(3) { animation-delay: 0.3s; } .star:nth-child(4) { animation-delay: 0.4s; } .star:nth-child(5) { animation-delay: 0.5s; }

.animated-graph { display: flex; align-items: flex-end; gap: 8px; height: 120px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.graph-bar { width: 100%; flex: 1; background: linear-gradient(0deg, var(--teal), #4ade80); border-radius: 4px 4px 0 0; transform-origin: bottom; transform: scaleY(0); }

.glass-float-container { perspective: 1000px; display: flex; justify-content: center; }
.glass-meta-card { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(13, 148, 136, 0.3); box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.8); animation: floatCard 6s ease-in-out infinite; font-family: var(--fb); text-align: left; transform: scale(0.85); transform-origin: center; padding: 24px; border-radius: 16px; }
.meta-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.meta-favicon { width: 24px; height: 24px; background-color: var(--teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 180, 180, 0.3); position: relative; }
.meta-favicon::before { content: ''; width: 10px; height: 10px; background: white; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.meta-url-group { display: flex; flex-direction: column; }
.meta-brand { font-family: var(--fd); font-weight: 700; font-size: 14px; color: var(--navy); line-height: 1.2; }
.meta-url { font-size: 11px; color: var(--muted); line-height: 1.2; }
.meta-title { font-family: var(--fd); font-size: 18px; font-weight: 700; color: #1a0dab; margin-bottom: 6px; line-height: 1.3; }
.meta-desc { font-size: 13px; color: var(--text); line-height: 1.5; }

/* ── 8. GENERAL CONTENT BLOCKS & BLOG GRID ────────────────────────────── */
.feature-timeline .feature-item { margin-bottom: 32px; padding-left: 24px; border-left: 2px solid var(--teal); }
.feature-timeline .feature-item p { color: var(--muted); line-height: 1.7; }
.card { background: var(--white); padding: 2.5rem; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: all 0.3s var(--ease); }
.card:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: 0 15px 40px rgba(13,148,136,0.1); }
.cta-band { background: var(--navy); padding: 80px 0; color: var(--white); position: relative; overflow: hidden; }

/* Case Studies & Blog Grid */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.blog-card:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: 0 20px 40px rgba(13,148,136,0.1); }
.blog-card-img { height: 200px; background: var(--off); display: flex; align-items: center; justify-content: center; font-size: 50px; border-bottom: 1px solid var(--border); }
.blog-card-content { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-family: var(--fd); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--teal); letter-spacing: 0.05em; margin-bottom: 12px; }
.blog-card h3 { font-family: var(--fd); font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.3; margin-bottom: 12px; }
.blog-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.blog-card-link { margin-top: auto; font-size: 13.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; color: var(--teal); }
.blog-card:hover .blog-card-link { gap: 10px; }

/* ── 9. FOOTER (OPTIMIZED ALIGNMENT & SAFEGUARD) ──────────────────────── */
footer { background: var(--navy3) !important; color: var(--white) !important; position: relative; overflow: hidden; border-top: 1px solid rgba(0, 180, 180, 0.15); display: block; width: 100%; }
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--teal), transparent); opacity: 0.6; z-index: 3; }
.ft-top { padding: 80px 24px 50px; position: relative; z-index: 2; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; max-width: 1160px; margin: 0 auto; }
.ft-brand { display: flex; flex-direction: column; align-items: flex-start; }
.ft-logo { height: 48px; width: auto; margin-bottom: 20px; filter: grayscale(100%) opacity(0.6); transition: all 0.3s var(--ease); display: block; }
.ft-logo:hover { filter: grayscale(0%) opacity(1); transform: scale(1.05); }
.ft-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 320px; margin-bottom: 20px; }
.ft-socials { display: flex; gap: 12px; }
.ft-social-btn { width: 36px; height: 36px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-weight: 800; font-size: 14px; color: var(--muted); transition: all 0.3s; }
.ft-social-btn:hover { background: rgba(0,180,180,0.1); border-color: var(--teal); color: var(--teal); transform: translateY(-3px); }
.ft-col h5 { font-family: var(--fd); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.ft-col h5::before { content: ''; width: 8px; height: 8px; background: var(--teal); border-radius: 50%; display: inline-block; box-shadow: 0 0 8px rgba(0,180,180,0.5); }
.ft-col ul { list-style: none; padding: 0; margin: 0; }
.ft-col li { margin-bottom: 12px; }
.ft-col a { font-size: 14px; color: rgba(255,255,255,0.5); transition: all 0.2s var(--ease); display: inline-block; }
.ft-col a:hover { color: var(--teal); transform: translateX(5px); }
.ft-contact-item { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: rgba(255,255,255,0.6); font-size: 14px; transition: color 0.2s; }
.ft-contact-item:hover { color: var(--white); }
.ft-contact-icon { width: 40px; height: 40px; background: rgba(0, 180, 180, 0.05); border: 1px solid rgba(0, 180, 180, 0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 16px; flex-shrink: 0; transition: all 0.3s; }
.ft-contact-item:hover .ft-contact-icon { background: var(--teal); color: var(--navy); transform: scale(1.1); box-shadow: 0 4px 15px rgba(0,180,180,0.3); }
.ft-bot { max-width: 1160px; margin: 0 auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid rgba(255,255,255,0.05); position: relative; z-index: 2; }
.ft-bot p { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0; }
.ft-bot-links { display: flex; gap: 24px; }
.ft-bot-links a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.ft-bot-links a:hover { color: var(--teal); }

/* ── 10. KEYFRAME ANIMATIONS & OVERRIDES ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(25px); transition: all 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes loadBar { to { width: var(--target-w); } }
@keyframes floatUpDown { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatCard { 0%, 100% { transform: scale(0.85) translateY(0px); } 50% { transform: scale(0.85) translateY(-8px); } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes glow { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.07); opacity: 0.65; } }
@keyframes gridDrift { from { background-position: 0 0; } to { background-position: 64px 64px; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUpFade { 0%, 20% { opacity: 0; transform: translateY(10px); } 40%, 80% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes bouncePin { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 50% { transform: rotate(-45deg) translate(-5px, -5px); } }
@keyframes pulseRing { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
@keyframes shimmer { 100% { left: 200%; } }
@keyframes pulseScale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes chatPop { 0%, 10% { opacity: 0; transform: translateY(10px); } 20%, 90% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes starPop { 0%, 10% { transform: scale(0); } 20%, 90% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes growBar { to { transform: scaleY(1); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Homepage Animation Extensions */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); } 70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@keyframes flow { 0% { left: -100%; } 100% { left: 200%; } }
@keyframes ring { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }
.ring-animation { animation: ring 0.5s ease-in-out infinite; transform-origin: center; }

/* SCROLL-TRIGGERED ANIMATION OVERRIDES (For the approach.html graphs) */
.graph-bar {
  animation-name: growBar !important;
  animation-duration: 1.5s !important;
  animation-timing-function: ease-out !important;
  animation-iteration-count: 1 !important;
  animation-fill-mode: forwards !important;
}

.bar-fill {
  animation-name: loadBar !important;
  animation-duration: 2s !important;
  animation-timing-function: ease-out !important;
  animation-iteration-count: 1 !important;
  animation-fill-mode: forwards !important;
}

.rev-bar {
  animation-name: revGrow !important;
  animation-duration: 2s !important;
  animation-timing-function: ease-out !important;
  animation-iteration-count: 1 !important;
  animation-fill-mode: forwards !important;
}

/* Pause logic to keep delays intact */
.reveal:not(.visible) .graph-bar,
.reveal:not(.visible) .bar-fill,
.reveal:not(.visible) .rev-bar,
.reveal:not(.visible) .track-bar { 
  animation-play-state: paused !important; 
}

/* Ensure the button pulse explicitly plays when visible */
.reveal.visible .svc-glass-card div[style*="btnPulse"] {
    animation-play-state: running !important;
}

/* ── 11. MOBILE RESPONSIVENESS (< 1000px) ─────────────────────────────── */
@media (max-width: 1000px) {
  .hero-inner, .svc-detail, .split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-eye { justify-content: center; }
  .hero-eye::before { display: none; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-btns { display: flex; flex-direction: column; gap: 16px; }
  .btn-ghost { margin-left: 0; }
  .svc-visual-wrapper { transform: none; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  
  .mobile-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 90px; left: 0; right: 0; background: var(--navy);
    padding: 20px 40px; gap: 10px; border-bottom: 1px solid rgba(0, 180, 180, 0.2);
  }
  .nav-links.nav-open { display: flex; box-shadow: 0 20px 40px rgba(0,0,0,0.5); animation: fadeDown 0.3s ease; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a { height: auto; padding: 15px 0; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; justify-content: space-between; }
  .nav-cta { text-align: center; margin-left: 0; margin-top: 10px; padding: 15px !important; }
  
  .dropdown-menu { position: static; transform: none; box-shadow: none; border: none; background: transparent; padding-left: 20px; display: none; opacity: 1; visibility: visible; }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown.open .chevron { transform: rotate(180deg); }
}

@media (max-width: 768px) {
  .ft-grid { grid-template-columns: 1fr; text-align: center; }
  .ft-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .ft-col h5 { justify-content: center; }
  
  /* UPDATED: Added align-items to center the icons in the column stack */
  .ft-contact-item { 
    text-align: center; 
    justify-content: center; 
    flex-direction: column; 
    align-items: center; /* This centers the icons horizontally */
    gap: 8px;
    margin-bottom: 24px; /* Optional: adds a bit more space between contact methods */
  }
  
  .ft-bot { flex-direction: column; justify-content: center; text-align: center; }
  .ft-bot-links { justify-content: center; width: 100%; }
}

/* ==========================================================================
   GLASS CARD OVERFLOW PATCH
   ========================================================================== */

/* 1. Give the wrapper breathing room so the overlapping badges don't clip */
.svc-visual-wrapper {
    overflow: visible !important;
    padding: 20px 0 !important; 
}

/* 2. Force the card to show external elements and adapt to its internal height */
.svc-glass-card {
    height: auto !important;
    overflow: visible !important; 
    position: relative;
    z-index: 5;
}

/* 3. Mobile responsiveness for the animation scenes */
@media (max-width: 768px) {
    .svc-visual {
        margin-top: 20px;
        padding: 0 10px;
    }
    
    /* Ensure the inner animation boxes don't squish too much on phones */
    .seo-scene, .loc-scene, .pa-scene, .ux-scene {
        min-height: 280px;
        height: auto !important;
        overflow: hidden; /* Keeps the moving elements inside the inner box */
    }
    
    /* Adjust badge positioning for smaller mobile screens */
    .svc-badge {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }
}

/* ==========================================================================
   NEW HERO ENGINE CARD STYLES
   ========================================================================== */
.new-engine-card .engine-visual {
  padding: 10px 0 24px 0;
}

.data-inputs {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.input-node {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  flex: 1;
  box-shadow: inset 0 0 15px rgba(13, 148, 136, 0.05);
  position: relative;
}

.node-sub {
  display: block;
  font-size: 9px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.funnel-connector {
  height: 40px;
  position: relative;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow-lines {
  width: 2px;
  height: 100%;
  background: rgba(13, 148, 136, 0.2);
  position: relative;
}

.flow-lines::after {
  content: '▼';
  position: absolute;
  bottom: -8px;
  left: -4.5px;
  color: var(--teal);
  font-size: 12px;
  animation: floatDown 2s infinite ease-in-out;
}

.ranking-outputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rank-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-label {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rank-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.rank-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0; /* Starts at 0 for animation */
  position: relative;
}

/* Gradient colors for each specific platform */
.org-fill { 
  background: linear-gradient(90deg, #3b82f6, #60a5fa); 
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}
.gbp-fill { 
  background: linear-gradient(90deg, var(--teal), #4ade80); 
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}
.geo-fill { 
  background: linear-gradient(90deg, #8b5cf6, #c084fc); 
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Trigger the bar growth when the card becomes visible via the reveal class */
.reveal.visible .rank-bar-fill {
  animation: loadRankBar 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.reveal.visible .org-fill { animation-delay: 0.3s; }
.reveal.visible .gbp-fill { animation-delay: 0.6s; }
.reveal.visible .geo-fill { animation-delay: 0.9s; }

@keyframes loadRankBar {
  to { width: var(--fill-target); }
}
@keyframes floatDown {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}
/* Mobile Navigation Styles */

/* =======================================================================
   RELIABLE MOBILE NAVIGATION (ACTIVE UP TO 1150PX)
   ======================================================================= */
@media (max-width: 1150px) {
    
    /* 1. Hide the desktop links immediately */
    .nav-links {
        display: none !important; /* Forces the regular menu to disappear */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--navy); 
        z-index: 999;
        
        /* Centering the links */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    /* 2. Show the menu when active */
    .nav-links.nav-open {
        display: flex !important;
    }

    /* 3. Force show the Mobile Toggle Button */
    .mobile-toggle {
        display: flex !important; /* This makes the button appear */
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 22px;
        padding: 0 !important;
        cursor: pointer;
        position: relative;
        z-index: 1000;
    }

    /* Ensure the hamburger lines are visible */
    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--teal); /* Teal color for visibility */
        border-radius: 3px;
        transition: 0.3s ease;
    }

    /* 4. Link Styling for Centered Menu */
    .nav-links a {
        font-size: 26px;
        font-weight: 700;
        color: white !important;
    }

    /* 5. Hamburger to 'X' Animation */
    .mobile-toggle.open span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    .mobile-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.open span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }
}

/* ==========================================================================
   CALL GEN SEO — MOBILE FIXES PATCH  (May 2026)
   Link this stylesheet AFTER style.css  OR  append its contents to the
   very bottom of style.css.  All rules here override existing declarations.
   ========================================================================== */


/* ── FIX 1: HAMBURGER BREAKPOINT ──────────────────────────────────────── */
/*  The base stylesheet shows the hamburger at 1150 px via the 1150-block,
    but hides it again at the bottom of the 1000-block.  Remove that
    contradiction by making sure the toggle is always visible ≤ 1150 px.   */

@media (max-width: 1150px) {
    .mobile-toggle {
        display: flex !important;
    }
}


/* ── FIX 2: REMOVE THE 1000 px BLOCK'S CONFLICTING NAV STYLES ─────────── */
/*  The 1000 px block wires .nav-links to  position:absolute / top:90px
    (dropdown).  The 1150 px block uses  position:fixed / height:100vh
    (full-screen overlay).  They fight.  We let the full-screen approach
    win everywhere ≤ 1150 px and neutralise the dropdown remnants.          */

@media (max-width: 1000px) {

    /* --- Nav overlay: override the 1000 px dropdown remnants --- */
    .nav-links {
        position: fixed   !important;
        top: 0            !important;
        left: 0           !important;
        right: auto       !important;
        width: 100%       !important;
        height: 100vh     !important;
        padding: 100px 30px 40px !important;   /* top clears the nav bar */
        gap: 8px          !important;
        justify-content: flex-start !important;
        align-items: flex-start     !important;
        overflow-y: auto  !important;
        border-bottom: none !important;
    }

    /* Individual link rows */
    .nav-links > li {
        width: 100% !important;
    }
    .nav-links > li > a {
        height: auto        !important;
        padding: 14px 0     !important;
        font-size: 20px     !important;
        font-weight: 700    !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        width: 100%         !important;
        justify-content: space-between !important;
    }

    /* CTA button inside menu */
    .nav-cta {
        margin-left: 0    !important;
        margin-top: 16px  !important;
        padding: 14px 28px !important;
        width: 100%       !important;
        text-align: center !important;
        display: block    !important;
        border-bottom: none !important;
        font-size: 15px   !important;
    }

    /* Sub-menus: static, indented, collapsed by default */
    .dropdown-menu {
        position: static  !important;
        transform: none   !important;
        box-shadow: none  !important;
        border: none      !important;
        background: transparent !important;
        padding: 0 0 0 16px !important;
        display: none     !important;
        opacity: 1        !important;
        visibility: visible !important;
        flex-direction: column !important;
        min-width: 0      !important;
    }
    .dropdown-menu a {
        font-size: 15px   !important;
        padding: 10px 0   !important;
        color: rgba(255,255,255,0.6) !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    .dropdown.open .dropdown-menu {
        display: flex     !important;
    }
}


/* ── FIX 3: JS BREAKPOINT ALIGNMENT ──────────────────────────────────── */
/*  NOTE: also update main.js — change  window.innerWidth <= 1000
    to  window.innerWidth <= 1150  so sub-menu tap works on tablets.       */


/* ── FIX 4: HERO HORIZONTAL OVERFLOW ─────────────────────────────────── */
/*  overflow:visible on .hero lets the 3D glass card bleed past the edge
    → causes a horizontal scrollbar / ghost space on mobile.               */

@media (max-width: 1000px) {
    .hero {
        overflow: hidden;
        padding: 40px 0 56px;
    }
}


/* ── FIX 5: HERO BUTTONS — CENTER ALIGN ON MOBILE ────────────────────── */

@media (max-width: 1000px) {
    .hero-btns {
        align-items: center;
        justify-content: center;
    }
    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    /* Ghost button already loses its left margin via the base 1000px block;
       keep it consistent */
    .btn-ghost {
        margin-left: 0;
    }
}


/* ── FIX 6: SECTION PADDING REDUCTION ─────────────────────────────────── */
/*  100px top/bottom on a phone is excessive.  60px is far more comfortable. */

@media (max-width: 1000px) {
    .section {
        padding: 64px 0;
    }
    .methods-section {
        padding: 64px 0;
    }
    .cta-band {
        padding: 60px 0;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 50px 0;
    }
}


/* ── FIX 7: APPROACH HERO PADDING ────────────────────────────────────── */
/*  150px top padding is excessive when the nav is only 90px.              */

@media (max-width: 1000px) {
    .approach-hero {
        padding: 120px 0 64px;
    }
}

@media (max-width: 600px) {
    .approach-hero {
        padding: 100px 0 50px;
    }
}


/* ── FIX 8: GLASS CARD — MAX-WIDTH ON SMALL PHONES ───────────────────── */
/*  max-width:450px overflows a 375px viewport once you account for padding. */

@media (max-width: 1000px) {
    .glass-card-homepage {
        max-width: 100%;
        width: 100%;
    }
}


/* ── FIX 9: ROI CALLOUT — REFLOW ON MOBILE ───────────────────────────── */
/*  Absolute-positioned badge at top:-45px / right:30px overlaps or clips  */

@media (max-width: 768px) {
    .roi-callout {
        position: static  !important;
        top: auto         !important;
        right: auto       !important;
        display: inline-block;
        margin: 0 auto 24px;
        /* centre it since .ed-header parent is full-width */
        display: flex;
        width: fit-content;
    }
    .efficiency-dashboard {
        padding: 28px 20px;
    }
    .ed-header {
        padding-top: 0;
    }
}


/* ── FIX 10: PIPELINE VISUAL — WRAP ON TINY SCREENS ─────────────────── */

@media (max-width: 480px) {
    .pipeline-visual {
        flex-wrap: wrap;
        gap: 16px 0;
        justify-content: center;
    }
    .connector {
        display: none;   /* hide animated connectors; nodes stack cleanly */
    }
}


/* ── FIX 11: METHODS GRID — FORCE SINGLE COLUMN BELOW 640 px ────────── */
/*  auto-fit minmax(300px,1fr) won't collapse cleanly on phones < 640px.  */

@media (max-width: 640px) {
    .methods-grid {
        grid-template-columns: 1fr;
    }
}


/* ── FIX 12: BLOG GRID — PREVENT NARROW CARD OVERFLOW ───────────────── */

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}


/* ── FIX 13: FOOTER PADDING REDUCTION ───────────────────────────────── */

@media (max-width: 768px) {
    .ft-top {
        padding: 56px 20px 40px;
    }
    .ft-bot {
        padding: 20px;
    }
    .ft-bot-links {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
}


/* ── FIX 14: SMALL-PHONE POLISH  (< 480 px) ─────────────────────────── */

@media (max-width: 480px) {

    /* Tighten horizontal gutters */
    .wrap,
    .wrap-sm {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Typography scaling */
    h1 { font-size: clamp(28px, 8.5vw, 38px); }
    h2 { font-size: clamp(22px, 6.5vw, 28px); }
    h3 { font-size: 17px; }

    .hero-sub {
        font-size: 14.5px;
    }

    /* Buttons don't need to stretch past ~280px */
    .hero-btns .btn {
        max-width: 280px;
    }

    /* Glass card internal spacing */
    .glass-card-homepage {
        padding: 18px 14px;
    }

    /* Service sub-page badges */
    .svc-badge {
        font-size: 10px  !important;
        padding: 6px 10px !important;
    }

    /* Tag pill */
    .tag {
        font-size: 9.5px;
        padding: 4px 11px;
    }

    /* Card padding */
    .card {
        padding: 1.75rem 1.25rem;
    }

    /* Blog cards */
    .blog-card-content {
        padding: 22px 18px;
    }
}


/* ── FIX 15: BETWEEN-BREAKPOINT LAYOUT  (1000–1150 px tablets) ────────── */
/*  At this range the hamburger shows but the 2-column grid/hero still
    renders.  This fix collapses the layout so it matches the mobile stack. */

@media (min-width: 1001px) and (max-width: 1150px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-eye {
        justify-content: center;
    }
    .hero-eye::before {
        display: none;
    }
    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-btns {
        align-items: center;
        justify-content: center;
    }
    .hero-btns .btn {
        max-width: 300px;
    }
    .glass-card-homepage {
        max-width: 500px;
        margin: 0 auto;
    }
    .hero {
        overflow: hidden;
    }
    .split,
    .svc-detail {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .section {
        padding: 64px 0;
    }
}

@media (max-width: 768px) {
    .ft-contact-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    .ft-contact-icon {
        align-self: center !important;
        margin: 0 auto !important;
    }
}
