/* ============================================================
   VG SERVICES CO. — Global Stylesheet v2
   Colors: Navy #0D1B2A | Red #D0121A | White #FFFFFF
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --navy: #0D1B2A;
  --navy-mid: #162436;
  --navy-light: #1E3148;
  --red: #D0121A;
  --red-light: #E8362E;
  --red-dark: #9E1116;
  --white: #FFFFFF;
  --off-white: #F7F6F3;
  --gray: #E8E6E0;
  --gray-mid: #9A9A9A;
  --text-dark: #1A1A1A;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── PAGE LOADER ── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo-wrap { margin: 0 auto 24px; display: inline-block; opacity: 0; animation: loaderFadeIn 0.6s ease 0.2s forwards; }
.loader-logo { width: 160px; margin: 0 auto; display: block; }
.loader-bar-wrap { width: 160px; height: 2px; background: rgba(13,27,42,0.1); margin: 0 auto; overflow: hidden; }
.loader-bar { height: 100%; background: var(--red); animation: loaderBar 1.2s ease forwards; }
@keyframes loaderFadeIn { to { opacity: 1; } }
@keyframes loaderBar { from { width: 0; } to { width: 100%; } }

/* ── TYPOGRAPHY ── */
.display-xl { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.15; }
.display-lg { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; }
.display-md { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.3; }
.section-eyebrow { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.hero .section-eyebrow, .page-hero .section-eyebrow, .home-hero .section-eyebrow { color: var(--white); }
.body-lg { font-size: 1.1rem; line-height: 1.75; }
.body-md { font-size: 1rem; line-height: 1.7; }
.body-sm { font-size: 0.875rem; line-height: 1.6; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

/* ── RED DIVIDER ── */
.red-rule { width: 60px; height: 2px; background: linear-gradient(90deg, var(--red), var(--red-light)); margin: 16px 0 28px; }
.red-rule.centered { margin-left: auto; margin-right: auto; }
.hero .red-rule, .page-hero .red-rule, .home-hero .red-rule { background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.3)); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 2px;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(208,18,26,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.12); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ── NAVBAR (ALWAYS STICKY/SOLID) ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--red-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  transition: var(--transition);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; max-width: 1200px; margin: 0 auto;
  height: 76px;
}
.nav-logo { display: flex; align-items: center; background: var(--white); padding: 6px 14px; border-radius: 6px; }
.nav-logo img { height: 44px; width: auto; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.825rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.8);
  transition: var(--transition); position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px;
  background: var(--red); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 12px; }

/* ── LANGUAGE SWITCH ── */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--white); border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 2px; padding: 8px 12px; transition: var(--transition);
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--white); background: rgba(255,255,255,0.12); }
.lang-switch-mobile {
  display: block !important; text-align: center; margin-top: 14px;
  color: var(--red) !important; font-size: 0.85rem !important; font-weight: 600 !important;
  border: 1px solid rgba(208,18,26,0.4); border-radius: 2px; padding: 12px 0 !important;
}
@media (max-width: 768px) { .lang-switch { display: none; } }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { width: 24px; height: 1.5px; background: var(--white); transition: var(--transition); display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
  background: var(--red-dark); z-index: 999; padding: 40px 24px;
  flex-direction: column; gap: 0; overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255,255,255,0.85); font-size: 1.1rem; font-weight: 500;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.04em; transition: var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--red); }
.mobile-menu .btn { margin-top: 32px; width: 100%; justify-content: center; }

/* ── HERO (shared) ── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--red-dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay { display: none; }
.hero-content { position: relative; z-index: 2; }

/* Page hero (shorter) */
.page-hero { position: relative; min-height: 480px; display: flex; align-items: flex-end; padding-bottom: 60px; background: var(--red-dark); overflow: hidden; padding-top: 76px; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-overlay { display: none; }
.page-hero-content { position: relative; z-index: 2; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.breadcrumb span, .breadcrumb a { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: rgba(255,255,255,0.5); }

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy-mid) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: rgba(255,255,255,0.35); font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px dashed rgba(208,18,26,0.3);
}

/* ── CARDS ── */
.card { background: var(--white); border-radius: 2px; box-shadow: var(--shadow-sm); transition: var(--transition); overflow: hidden; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* ── STAT STRIP ── */
.stat-strip { background: var(--red); padding: 32px 0; }
.stat-strip .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-strip .stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-strip .stat-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-top: 4px; opacity: 0.75; }

/* ── SERVICE ICON BOX ── */
.service-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(13,27,42,0.06); border: 1.5px solid rgba(13,27,42,0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: var(--transition); }
.card:hover .service-icon { background: var(--red); border-color: var(--red); }
.card:hover .service-icon svg { color: var(--white); }
.service-icon svg { color: var(--navy); transition: var(--transition); }

/* ── SCROLL REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal-left { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal.reveal-scale { transform: scale(0.95); }
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── WHATSAPP FLOATING BUTTON ── */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 998;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  cursor: pointer;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.5); }
.whatsapp-fab svg { color: white; }
.whatsapp-tooltip {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--navy); color: white; font-size: 0.78rem; font-weight: 600;
  padding: 6px 12px; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 0.2s ease;
}
.whatsapp-tooltip::after {
  content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-left-color: var(--navy);
}
.whatsapp-fab:hover .whatsapp-tooltip { opacity: 1; }

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed; bottom: 96px; right: 30px; z-index: 997;
  width: 42px; height: 42px;
  background: var(--navy); border: 1.5px solid rgba(208,18,26,0.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  opacity: 0; pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--red); border-color: var(--red); }
.back-to-top:hover svg { color: var(--navy); }
.back-to-top svg { color: rgba(255,255,255,0.8); }

/* ── FOOTER ── */
footer { background: var(--red-dark); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; display: block; background: var(--white); padding: 8px 16px; border-radius: 6px; }
.footer-brand p { font-size: 0.875rem; margin-top: 4px; line-height: 1.7; max-width: 260px; }
.footer-heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; transition: var(--transition); }
.footer-links a:hover { color: var(--red); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.875rem; align-items: flex-start; }
.footer-contact-item svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ── VALUES ── */
.value-item { display: flex; gap: 20px; padding: 24px; border-left: 2px solid transparent; transition: var(--transition); }
.value-item:hover { border-color: var(--red); background: rgba(208,18,26,0.04); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stat-strip .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 40px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero { min-height: 360px; padding-bottom: 40px; }
  .whatsapp-fab { bottom: 20px; right: 20px; }
  .back-to-top { bottom: 86px; right: 22px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stat-strip .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════
   COMPREHENSIVE MOBILE FIXES
   ══════════════════════════════════════════ */

/* Stat strip - always 2 col on mobile */
@media (max-width: 480px) {
  .stat-strip .stat-grid { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .stat-strip .stat-num { font-size: 1.8rem; }
}

/* Footer - full single col on mobile */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo { height: 40px; }
}

/* Page hero - better mobile sizing */
@media (max-width: 480px) {
  .page-hero { min-height: 300px; padding-bottom: 32px; }
  .display-xl { font-size: 2rem; }
  .display-lg { font-size: 1.6rem; }
  .display-md { font-size: 1.3rem; }
}

/* Buttons full width on very small screens */
@media (max-width: 380px) {
  .btn { padding: 12px 20px; font-size: 0.8rem; }
  .container { padding: 0 14px; }
}

/* Nav logo sizing on mobile */
@media (max-width: 380px) {
  .nav-logo img { height: 40px; }
  .navbar-inner { padding: 0 16px; }
}

/* CTA banner mobile */
@media (max-width: 768px) {
  .cta-banner { padding: 56px 0; }
  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* Section padding reduction on mobile */
@media (max-width: 480px) {
  .section { padding: 52px 0; }
  .section-sm { padding: 36px 0; }
}

/* Ensure images don't overflow */
img { max-width: 100%; }

/* Fix inline grids that don't have media queries */
@media (max-width: 768px) {
  .cr-grid { grid-template-columns: 1fr !important; }
  .equip-intro-grid { grid-template-columns: 1fr !important; }
}

/* Comparison table horizontal scroll on mobile */
@media (max-width: 640px) {
  .comp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .comp-table { min-width: 480px; }
}

/* Red rule centering on mobile */
@media (max-width: 480px) {
  .red-rule { margin-bottom: 20px; }
}

/* WhatsApp + back-to-top on very small screens */
@media (max-width: 380px) {
  .whatsapp-fab { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .back-to-top { bottom: 76px; right: 16px; width: 38px; height: 38px; }
}

/* Ensure mobile menu is above everything */
@media (max-width: 768px) {
  .mobile-menu { z-index: 1001; }
}

/* Responsive utility grids */
.cr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.equip-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 768px) {
  .cr-grid { grid-template-columns: 1fr; }
  .equip-intro-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ══════════════════════════════════════════
   SERVICES DROPDOWN NAV
   ══════════════════════════════════════════ */

.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.825rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(255,255,255,0.8);
  transition: var(--transition); position: relative; padding-bottom: 2px;
  cursor: pointer; background: none; border: none;
}
.nav-dropdown-trigger::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1.5px;
  background: var(--red); transition: var(--transition);
}
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown-trigger.active { color: var(--white); }
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown-trigger.active::after { width: 100%; }

.dropdown-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 20px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background: var(--navy);
  border: 1px solid rgba(208,18,26,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2000;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Bridge gap so hover doesn't break when moving mouse to panel */
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px;
}

.nav-dropdown-inner { padding: 8px 0; }

.nav-drop-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  border-left: 2px solid transparent;
}
.nav-drop-item:hover {
  background: rgba(208,18,26,0.08);
  border-left-color: var(--red);
  color: var(--white);
}
.nav-drop-item:hover .drop-icon { background: var(--red); }
.nav-drop-item:hover .drop-icon svg { color: var(--white); }

.drop-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(208,18,26,0.12);
  border: 1px solid rgba(208,18,26,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.drop-icon svg { color: var(--red); transition: var(--transition); }

.drop-title {
  display: block; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.03em; line-height: 1.3;
}
.drop-sub {
  display: block; font-size: 0.72rem;
  color: rgba(255,255,255,0.4); margin-top: 2px;
  font-family: 'Arial', sans-serif;
}

.nav-drop-all {
  display: block; text-align: center;
  padding: 11px 20px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red);
  border-top: 1px solid rgba(208,18,26,0.15);
  margin-top: 4px;
  transition: var(--transition);
}
.nav-drop-all:hover { background: rgba(208,18,26,0.1); color: var(--red); }

/* ── MOBILE SERVICES ACCORDION ── */
.mob-services-group { border-bottom: 1px solid rgba(255,255,255,0.08); }

.mob-services-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.85); font-size: 1.1rem; font-weight: 500;
  padding: 18px 0; letter-spacing: 0.04em;
  transition: var(--transition);
}
.mob-services-toggle:hover, .mob-services-toggle.open { color: var(--red); }
.mob-arrow { transition: transform 0.25s ease; flex-shrink: 0; }
.mob-services-toggle.open .mob-arrow { transform: rotate(180deg); }

.mob-services-sub {
  display: none; flex-direction: column;
  padding: 0 0 12px 16px;
  border-left: 2px solid rgba(208,18,26,0.3);
  margin-left: 4px; margin-bottom: 8px;
}
.mob-services-sub.open { display: flex; }
.mob-services-sub a {
  color: rgba(255,255,255,0.7); font-size: 0.95rem; font-weight: 400;
  padding: 10px 0; border-bottom: none; letter-spacing: 0.02em;
  transition: var(--transition);
}
.mob-services-sub a:first-child {
  color: var(--red); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.mob-services-sub a:hover { color: var(--red); padding-left: 6px; }

/* ── CTA BANNER (used across pages) ── */
.cta-banner {
  background: var(--navy); padding: 80px 0; text-align: center;
}
.cta-banner .section-eyebrow { display: flex; justify-content: center; margin-bottom: 0; }
.cta-banner h2 { color: var(--white); margin-top: 12px; }
.cta-banner p { color: rgba(255,255,255,0.7); max-width: 540px; margin: 16px auto 0; font-size: 1.05rem; line-height: 1.75; }
.cta-btns { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
