/* ── FOOTER LOGO IMAGE ──────────────────────────────────── */
.footer-logo-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin-bottom: 12px;
}

/* ── MOBILE HERO OVERLAP FIX ────────────────────────────── */
@media (max-width: 900px) {
  /* Dashboard widget & orbit rings overflow below the hero-right box —
     hide them on mobile to prevent overlap with sections below */
  .hero-dashboard { display: none !important; }
  .hero-orbit     { display: none !important; }
  /* Give hero-right enough room for the photo + metric pill only */
  .hero-right { min-height: 300px; overflow: visible; }
  .hero-metric-pill { left: 8px; top: 12px; }
}

/* ── PRELOADER LOGO IMAGE ───────────────────────────────── */
.preloader-logo-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 24px;
}

/* ── NAV LOGO IMAGE ─────────────────────────────────────── */
/*
  The logo PNG is a square (1080×1080) dark-bg image.
  We crop to just the VF symbol using background-image
  on a fixed-size container so the icon fills the nav cleanly.
*/
a.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img { display: none; } /* hidden — icon div used instead */

.nav-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-image: url('../assets/images/logo.png');
  background-repeat: no-repeat;
  background-size: 280%;          /* zoom in ~2.8× to isolate the VF mark */
  background-position: 50% 38%;  /* center on the VF symbol */
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo-icon:hover { opacity: 0.85; }

/* Light mode: add a subtle border so the dark crop area is framed */
[data-theme="light"] .nav-logo-icon {
  box-shadow: 0 0 0 1px rgba(37,99,235,0.2);
}

/* ── FOCUS VISIBLE ──────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 4px; }

/* ── TOUCH DEVICES — RESTORE CURSOR ────────────────────── */
@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
  .fade-in { opacity: 1; transform: none; }
  .reveal-text { opacity: 1; transform: none; }
}

/* ── SCROLL PROGRESS BAR ────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent2));
  z-index: 10001; pointer-events: none; transition: width 0.08s linear;
}

/* ── THEME TOGGLE BUTTON ────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 15px; transition: all 0.2s; flex-shrink: 0;
}
.theme-toggle:hover { background: rgba(37,99,235,0.15); border-color: var(--accent); }

/* ── LIGHT THEME OVERRIDES ──────────────────────────────── */
[data-theme="light"] {
  --bg:      #f8fafc;
  --bg2:     #eef2f7;
  --surface: rgba(0,0,0,0.02);
  --border:  rgba(15,23,42,0.12);
  --text:    #0f172a;
  --muted:   #475569;
  --muted2:  #1e293b;
  --glow:    rgba(37,99,235,0.1);
}
[data-theme="light"] body { background-color: var(--bg); color: var(--text); }
[data-theme="light"] nav { background: rgba(248,250,252,0.92); }
[data-theme="light"] .mobile-nav { background: rgba(248,250,252,0.98); }
[data-theme="light"] .grid-bg { background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.07) 1px, transparent 0); }
[data-theme="light"] .hero-dashboard,
[data-theme="light"] .hero-metric-pill,
[data-theme="light"] .hero-photo-badge { background: rgba(248,250,252,0.95); }
[data-theme="light"] .preloader { background: var(--bg); }
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg); }
[data-theme="light"] .problem-card,
[data-theme="light"] .service-card,
[data-theme="light"] .case-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .contact-form-box,
[data-theme="light"] .audit-wrap,
[data-theme="light"] .calc-controls,
[data-theme="light"] .calc-summary-inner { background: rgba(255,255,255,0.7); }
[data-theme="light"] .demo-terminal { background: rgba(255,255,255,0.6); }

/* Shimmer text: white gradient is invisible on light bg — swap to blue-indigo */
[data-theme="light"] .shimmer-text {
  background: linear-gradient(90deg, var(--accent2) 0%, var(--accent-light) 45%, var(--accent) 70%, var(--accent2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Section title gradient em tags stay vivid on light bg */
[data-theme="light"] .section-title em {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Metric/calc totals — ensure gradient is bold enough on light bg */
[data-theme="light"] .metric-big,
[data-theme="light"] .calc-total {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Hero photo card & orbit rings */
[data-theme="light"] .hero-photo-card { background: rgba(255,255,255,0.9); border-color: rgba(37,99,235,0.2); }
[data-theme="light"] .hero-orbit .orbit-ring { border-color: rgba(37,99,235,0.15); }

/* Form inputs — visible border on light bg */
[data-theme="light"] .audit-form input,
[data-theme="light"] .audit-form textarea,
[data-theme="light"] .contact-form-box input,
[data-theme="light"] .contact-form-box textarea {
  background: rgba(255,255,255,0.9);
  border-color: rgba(15,23,42,0.15);
  color: var(--text);
}
[data-theme="light"] .audit-form input::placeholder,
[data-theme="light"] .audit-form textarea::placeholder,
[data-theme="light"] .contact-form-box input::placeholder,
[data-theme="light"] .contact-form-box textarea::placeholder { color: #94a3b8; }

/* Calc slider track & chip bg */
[data-theme="light"] .calc-slider { background: rgba(0,0,0,0.12); }
[data-theme="light"] .calc-chip   { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .calc-chip.active { background: rgba(37,99,235,0.12); }

/* Testimonial card quote mark */
[data-theme="light"] .testimonial-quote { color: rgba(37,99,235,0.15); }

/* Stack tag pills */
[data-theme="light"] .tag  { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.2); color: #1e40af; }
[data-theme="light"] .badge { background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.2); color: #1e40af; }

/* Footer text */
[data-theme="light"] footer { background: var(--bg2); border-top-color: var(--border); }
[data-theme="light"] .footer-bottom { border-top-color: var(--border); }

/* ── TOAST NOTIFICATION ─────────────────────────────────── */
.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: #1e293b; color: #f8fafc; padding: 14px 24px; border-radius: 10px;
  font-size: 13px; font-weight: 500; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 9999; opacity: 0; transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; border-left: 3px solid transparent;
  max-width: calc(100vw - 48px); white-space: nowrap;
}
.toast.toast-error   { border-color: #f87171; }
.toast.toast-success { border-color: #34d399; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ── TESTIMONIALS CAROUSEL ──────────────────────────────── */
.testimonials-carousel { position: relative; overflow: hidden; margin-top: 44px; }
.testimonials-track {
  display: flex; gap: 20px;
  transition: transform 0.5s cubic-bezier(0.2,1,0.3,1);
  will-change: transform;
}
.testimonials-track .testimonial-card { min-width: calc(33.333% - 14px); width: calc(33.333% - 14px); flex-shrink: 0; margin-top: 0; overflow: hidden; }
.testimonials-track .testimonial-text { white-space: normal; word-break: break-word; overflow-wrap: break-word; }
.carousel-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-top: 28px;
}
.carousel-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.carousel-btn:hover { background: rgba(37,99,235,0.15); border-color: var(--accent); }
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.2); cursor: pointer;
  border: none; padding: 0; transition: all 0.3s ease;
}
.carousel-dot.active { background: var(--accent-light); width: 24px; border-radius: 4px; }
@media (max-width: 900px) {
  .testimonials-track .testimonial-card { min-width: 100%; width: 100%; }
}
@media (min-width: 901px) {
  .carousel-controls { display: none; }
}

/* ── PAGE FIRST SECTION SPACING ──────────────────────────── */
.page-first-section { padding-top: calc(var(--nav-h) + 56px) !important; }
