/*
Theme Name: Tolx
Theme URI: https://tolx.ae
Author: Tolx
Author URI: https://tolx.ae
Description: Custom WordPress theme for Tolx — specialist Odoo implementation partner for EV charging operators, fleet management, and logistics companies in the UAE.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tolx
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --bg: #09090B;
  --surface: #111113;
  --surface-2: #18181B;
  --gold: #D4A843;
  --gold-dim: rgba(212,168,67,0.12);
  --gold-glow: rgba(212,168,67,0.06);
  --gold-hover: #E0B84E;
  --text: #F0F0F0;
  --text-sec: #71717A;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(212,168,67,0.25);
  --radius: 10px;
  --radius-lg: 16px;
  --max-w: 1200px;
  --nav-h: 72px;
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.preloader-helm {
  animation: helmSpin 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 20px rgba(212,168,67,0.15));
}
@keyframes helmSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.preloader-wordmark {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  opacity: 0;
  animation: wordmarkFade 0.6s ease 0.3s forwards;
}
@keyframes wordmarkFade {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Chakra Petch', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */
.mono {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 600px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--bg);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-sec);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); }

.btn-small {
  padding: 10px 22px;
  font-size: 13px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 40px rgba(212,168,67,0.04);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid rgba(212,168,67,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.card-link:hover { gap: 10px; }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 48px;
  background: rgba(9,9,11,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-wordmark {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav-wordmark span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--gold);
  color: var(--bg) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--gold-hover); color: var(--bg) !important; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 32px 24px;
  flex-direction: column;
  gap: 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-sec);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .nav-cta {
  margin-top: 24px;
  text-align: center;
  display: block;
  border: none;
}

/* ============================================
   HERO (Home)
   ============================================ */
.hero {
  position: relative;
  padding: 160px 0 120px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212,168,67,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content { max-width: 720px; }
.hero-tag { margin-bottom: 28px; }
.hero h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
}
.hero h1 .line { display: block; }

/* Word flip */
.flip-wrapper {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  height: 1.1em;
  overflow: hidden;
}
.flip-wrapper .flip-word {
  display: block;
  color: var(--gold);
  font-weight: 700;
  position: absolute;
  left: 0; top: 0;
  width: max-content;
  opacity: 0;
  transform: translateY(100%);
  animation: flipIn 5s ease-in-out infinite;
}
.flip-wrapper .flip-word:nth-child(1) { animation-delay: 0s; }
.flip-wrapper .flip-word:nth-child(2) { animation-delay: 2.5s; }
@keyframes flipIn {
  0% { opacity: 0; transform: translateY(100%); }
  5% { opacity: 1; transform: translateY(0); }
  45% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 0; transform: translateY(-100%); }
}
.flip-wrapper .flip-sizer { visibility: hidden; display: inline; }

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-sec);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; align-items: center; }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 140px 0 80px;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,168,67,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 16px;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.page-hero p {
  font-size: 18px;
  color: var(--text-sec);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats { position: relative; z-index: 1; }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 48px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.stat-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-sec); }

/* ============================================
   STEPS / PROCESS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-dim));
  z-index: 0;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  z-index: 1;
  text-align: center;
}
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}
.step-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-sec); line-height: 1.6; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { position: relative; z-index: 1; padding: 100px 0; }
.cta-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,168,67,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.cta-inner h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 14px;
  position: relative;
}
.cta-inner p {
  font-size: 17px;
  color: var(--text-sec);
  margin-bottom: 36px;
  position: relative;
}

/* ============================================
   MODULES GRID (Solution pages)
   ============================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.3s;
}
.module-card:hover { border-color: var(--border-hover); }
.module-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.module-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.module-card p { font-size: 13px; color: var(--text-sec); line-height: 1.5; margin: 0; }

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}
.pricing-card.featured { border-color: var(--gold); }
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.pricing-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pricing-value {
  font-family: 'Share Tech Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
.pricing-unit { font-size: 13px; color: var(--text-sec); margin-bottom: 24px; }
.pricing-features {
  text-align: left;
  margin-bottom: 28px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-sec);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  display: flex;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0; right: 0;
  height: 2px;
  background: var(--border);
}
.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding-top: 56px;
}
.timeline-dot {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 2px solid var(--gold);
}
.timeline-step h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline-step p {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.5;
}
.timeline-week {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th, .compare-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-table th {
  background: var(--surface-2);
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.compare-table td { color: var(--text-sec); }
.compare-table tr:last-child td { border-bottom: none; }

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.3s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select { appearance: none; cursor: pointer; }

/* ============================================
   VALUES / FEATURES GRID
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.value-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.value-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.65;
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.25s;
}
.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.blog-card-img {
  height: 200px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.blog-card p { font-size: 14px; color: var(--text-sec); line-height: 1.6; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 280px;
}
.footer h4 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-sec);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 13px; color: var(--text-sec); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 13px; color: var(--text-sec); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--text); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .nav { padding: 0 28px; }
  .hero h1 { font-size: 44px; }
  .page-hero h1 { font-size: 36px; }
  .modules-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* ---- CORE RESETS ---- */
  :root { --nav-h: 60px; }
  .container { padding: 0 18px; }

  /* ---- NAV ---- */
  .nav { padding: 0 18px; height: var(--nav-h); }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-wordmark { font-size: 19px; }
  .nav-logo svg { width: 26px; height: 26px; }
  .nav-logo { gap: 8px; }
  .nav-mobile { padding: 20px 18px; overflow-y: auto; }
  .nav-mobile a { padding: 16px 0; font-size: 16px; }
  .nav-mobile .nav-cta {
    margin-top: 16px;
    padding: 15px 20px;
    font-size: 15px;
    border-radius: 8px;
  }

  /* ---- HERO ---- */
  .hero { padding: 100px 0 50px; min-height: auto; }
  .hero h1 {
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
  }
  .hero-tag { margin-bottom: 16px; }
  .hero-sub { font-size: 14px; line-height: 1.6; margin-bottom: 24px; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    font-size: 14px;
  }
  .hero::after { width: 300px; height: 300px; top: -50px; right: -80px; }

  /* ---- PAGE HERO ---- */
  .page-hero { padding: 90px 0 36px; }
  .page-hero h1 { font-size: 26px; letter-spacing: -0.8px; line-height: 1.18; margin-bottom: 10px; }
  .page-hero p { font-size: 14px; margin-bottom: 20px; max-width: 100%; }
  .page-hero .btn-primary { width: 100%; justify-content: center; }

  /* ---- TYPOGRAPHY ---- */
  .section-title { font-size: 24px; letter-spacing: -0.5px; margin-bottom: 14px; }
  .section-subtitle { font-size: 14px; }
  .mono { font-size: 9px; letter-spacing: 2px; }
  .section-tag::before { width: 20px; }
  .section-tag { gap: 8px; margin-bottom: 12px; }

  /* ---- BUTTONS (global mobile) ---- */
  .btn-primary, .btn-ghost {
    padding: 13px 20px;
    font-size: 13px;
  }

  /* ---- CARDS ---- */
  .card { padding: 24px 18px; border-radius: 12px; }
  .card-icon { width: 42px; height: 42px; margin-bottom: 16px; border-radius: 10px; }
  .card h3 { font-size: 17px !important; }
  .card p { font-size: 13px !important; }
  .card-link { font-size: 11px; }

  /* ---- FORCE ALL INLINE GRIDS TO STACK ---- */
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* ---- FORCE INLINE FLEX WRAP ---- */
  [style*="display:flex"][style*="justify-content:space-between"],
  [style*="display: flex"][style*="justify-content: space-between"] {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: flex-start !important;
  }

  /* ---- FORCE 2-COL GRIDS (like contact page) ---- */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* ---- GAP OVERRIDES ---- */
  [style*="gap: 64px"],
  [style*="gap:64px"] {
    gap: 32px !important;
  }

  /* ---- STATS BAR ---- */
  .stats-inner { grid-template-columns: 1fr 1fr; border-radius: 12px; }
  .stat { padding: 24px 14px; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .stat-value { font-size: 24px; }
  .stat-label { font-size: 11px; }

  /* ---- STEPS / PROCESS ---- */
  .steps-grid { grid-template-columns: 1fr; gap: 14px; }
  .steps-grid::before { display: none; }
  .step-card { padding: 24px 18px; text-align: left; }
  .step-number { margin: 0 0 14px 0; }

  /* ---- MODULE CARDS ---- */
  .modules-grid { grid-template-columns: 1fr; gap: 10px; }
  .module-card { padding: 18px 14px; gap: 12px; }
  .module-icon { width: 34px; height: 34px; border-radius: 8px; }
  .module-card h4 { font-size: 14px; }
  .module-card p { font-size: 12px; line-height: 1.5; }

  /* ---- TIMELINE ---- */
  .timeline { flex-direction: column; gap: 18px; }
  .timeline::before { display: none; }
  .timeline-step { padding-top: 0; padding-left: 36px; text-align: left; position: relative; }
  .timeline-dot { left: 0; top: 4px; transform: none; width: 16px; height: 16px; }
  .timeline-week { font-size: 9px; }
  .timeline-step h4 { font-size: 14px; }
  .timeline-step p { font-size: 12px; }

  /* ---- VALUES ---- */
  .values-grid { grid-template-columns: 1fr; gap: 10px; }
  .value-card { padding: 22px 18px; }
  .value-card h3 { font-size: 15px; }
  .value-card p { font-size: 13px; }

  /* ---- BLOG ---- */
  .blog-grid { grid-template-columns: 1fr; gap: 14px; }
  .blog-card-img { height: 170px; }
  .blog-card-body { padding: 18px; }
  .blog-card h3 { font-size: 15px; }
  .blog-card p { font-size: 13px; }

  /* ---- COMPARE TABLE ---- */
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 11px; }
  .compare-table th { font-size: 8px; letter-spacing: 1.5px; }

  /* ---- CONTACT FORM ---- */
  .form-input, .form-select, .form-textarea {
    padding: 12px 14px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    border-radius: 8px;
  }
  .form-textarea { min-height: 120px; }
  .form-label { font-size: 9px; letter-spacing: 1.5px; }
  .form-group { margin-bottom: 16px; }

  /* ---- CTA SECTION ---- */
  .cta-section { padding: 50px 0; }
  .cta-inner { padding: 36px 20px; border-radius: 12px; }
  .cta-inner h2 { font-size: 22px; letter-spacing: -0.5px; }
  .cta-inner p { font-size: 14px; margin-bottom: 28px; }
  .cta-inner .btn-primary { width: 100%; justify-content: center; }

  /* ---- FOOTER ---- */
  .footer { padding: 40px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
  .footer-brand p { max-width: 100%; font-size: 13px; }
  .footer h4 { font-size: 9px; margin-bottom: 12px; }
  .footer-links { gap: 8px; }
  .footer-links a { font-size: 13px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-bottom p { font-size: 12px; }
  .footer-bottom-links { gap: 14px; }
  .footer-bottom-links a { font-size: 12px; }

  /* ---- SECTION SPACING ---- */
  section[style*="padding: 100px 0"],
  section[style*="padding:100px 0"] { padding: 50px 0 !important; }
  section[style*="padding: 0 0 100px"],
  section[style*="padding:0 0 100px"] { padding: 0 0 50px !important; }
  section[style*="padding: 0 0 80px"],
  section[style*="padding:0 0 80px"] { padding: 0 0 40px !important; }
  section[style*="padding: 0 0 60px"],
  section[style*="padding:0 0 60px"] { padding: 0 0 36px !important; }

  /* ---- PRELOADER ---- */
  .preloader-helm { width: 56px; height: 56px; }
  .preloader-wordmark { font-size: 22px; }

  /* ---- MISC INLINE OVERRIDES ---- */
  [style*="max-width:680px"],
  [style*="max-width: 680px"],
  [style*="max-width:760px"],
  [style*="max-width: 760px"] { max-width: 100% !important; }

  /* Contact page CTA cards */
  .card[style*="display:flex"][style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
  }
  .card[style*="display:flex"][style*="justify-content:space-between"] .btn-primary,
  .card[style*="display:flex"][style*="justify-content:space-between"] .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ---- SMALL PHONES (iPhone SE, etc.) ---- */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .nav { padding: 0 14px; }
  .hero h1 { font-size: 26px; letter-spacing: -0.8px; }
  .hero-sub { font-size: 13px; }
  .page-hero h1 { font-size: 22px; }
  .section-title { font-size: 20px; }
  .stat-value { font-size: 20px; }
  .cta-inner h2 { font-size: 20px; }
  .card { padding: 20px 14px; }
  .step-card { padding: 20px 14px; }
  .module-card { padding: 14px 12px; }
}
