/* ============================================
   VISUOSOFTS — GLOBAL STYLESHEET
   Theme: Red (#FA0E0F) on Clean White
   ============================================ */

:root {
  --red: #FA0E0F;
  --red-dark: #c50b0c;
  --red-light: #ff4545;
  --red-glow: rgba(250,14,15,0.15);
  --red-subtle: rgba(250,14,15,0.05);
  --white: #ffffff;
  --off-white: #fafafa;
  --light-bg: #f8f8f8;
  --surface: #ffffff;
  --surface2: #fafafa;
  --surface3: #f5f5f5;
  --border: rgba(0,0,0,0.1);
  --border2: rgba(0,0,0,0.05);
  --text: #1a1a1a;
  --text-light: #4a4a4a;
  --muted: rgba(26,26,26,0.6);
  --muted2: rgba(26,26,26,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--white);
  color: var(--text);
  font-family: 'Barlow', 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

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

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--white); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; color: var(--text); }
p { font-weight: 300; color: var(--text-light); }

/* ===== NAV ===== */
.vs-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { 
  display: flex; 
  align-items: center; 
  flex-shrink: 0;
}
.nav-logo img { 
  height: 44px; 
  width: auto; 
  max-width: 180px;
  object-fit: contain;
  transition: height 0.3s ease;
}
.nav-menu { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.nav-menu a {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); transition: color 0.2s;
  position: relative; white-space: nowrap;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--red); transition: width 0.25s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--red); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-cta {
  padding: 10px 26px; background: var(--red); color: var(--white) !important;
  font-size: 0.78rem !important; font-weight: 600 !important; letter-spacing: 0.12em !important;
  border-radius: 3px; transition: all 0.25s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-dark) !important; box-shadow: 0 4px 20px var(--red-glow) !important; transform: translateY(-2px); }

/* Hamburger */
.nav-toggle { 
  display: none; 
  flex-direction: column; 
  gap: 5px; 
  cursor: pointer; 
  padding: 8px; 
  background: transparent;
  border: none;
  z-index: 1001;
}
.nav-toggle span { 
  width: 24px; 
  height: 2px; 
  background: var(--text); 
  transition: all 0.3s; 
  display: block; 
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== TICKER ===== */
.vs-ticker { background: var(--red); padding: 10px 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: tickerMove 32s linear infinite; }
.ticker-item {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.92); padding: 0 44px; display: inline-flex;
  align-items: center; gap: 14px;
}
.ticker-item::after { content: '◆'; font-size: 0.4rem; opacity: 0.55; }
@keyframes tickerMove { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ===== BUTTONS ===== */
.btn-red {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: var(--red); color: var(--white);
  font-family: 'Barlow', sans-serif; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 3px;
  border: 2px solid var(--red); transition: all 0.25s; cursor: pointer;
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 6px 24px var(--red-glow); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: transparent; color: var(--text);
  font-family: 'Barlow', sans-serif; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 3px;
  border: 2px solid var(--border); transition: all 0.25s; cursor: pointer;
}
.btn-outline:hover { border-color: var(--red); color: var(--red); background: var(--red-subtle); }

.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: var(--white); color: var(--red);
  font-family: 'Barlow', sans-serif; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 3px;
  border: 2px solid var(--white); transition: all 0.25s; cursor: pointer;
}
.btn-white:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255,255,255,0.3); }

/* ===== SECTION HELPERS ===== */
.section { padding: 90px 40px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.bg-dark { background: var(--light-bg); }
.bg-surface { background: var(--surface2); }
.bg-white { background: var(--white); }
.bg-red { background: var(--red); color: var(--white); }

.vs-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
}
.vs-label::before { content: ''; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }

.vs-h2 { font-size: clamp(2.2rem,4vw,3.8rem); margin-bottom: 16px; color: var(--text); }
.vs-h2 .red { color: var(--red); }
.vs-h2 .outline { -webkit-text-stroke: 1.5px rgba(0,0,0,0.12); color: transparent; }

.vs-sub { font-size: 1rem; color: var(--muted); font-weight: 300; line-height: 1.8; max-width: 620px; }

.section-header { margin-bottom: 56px; }
.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 56px; }

/* ===== CARDS ===== */
.card-hover {
  background: var(--white); border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.card-hover::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--red); transform: scaleX(0);
  transform-origin: left; transition: transform 0.35s;
}
.card-hover:hover { 
  background: var(--surface2); 
  border-color: var(--red); 
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.card-hover:hover::before { transform: scaleX(1); }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--light-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { max-width:1280px; margin:0 auto; padding:0 40px; display:grid; grid-template-columns:repeat(4,1fr); gap: 2px; }
.stat-item { padding:32px 28px; background: var(--white); display:flex; flex-direction:column; gap:8px; align-items: center; text-align: center; transition: all 0.3s; }
.stat-item:hover { background: var(--surface2); transform: translateY(-2px); }
.stat-n { font-family:'Barlow Condensed',sans-serif; font-size:2.8rem; font-weight:800; color:var(--red); line-height:1; }
.stat-l { font-size:0.8rem; font-weight:500; letter-spacing:0.1em; text-transform:uppercase; color:var(--muted); }

/* ===== SERVICE CARDS ===== */
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.service-card { background:var(--white); padding:40px 32px; position:relative; overflow:hidden; border:1px solid var(--border); transition:all 0.3s; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.service-card::before { content:''; position:absolute; top:0;left:0;right:0; height:3px; background:var(--red); transform:scaleX(0); transform-origin:left; transition:transform 0.35s; }
.service-card:hover { background:var(--surface2); box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-4px); }
.service-card:hover::before { transform:scaleX(1); }
.svc-icon { width:50px;height:50px; background:var(--red-subtle); border:1px solid rgba(250,14,15,0.15); border-radius:8px; display:flex;align-items:center;justify-content:center; margin-bottom:22px; font-size:1.4rem; transition:all 0.3s; color: var(--red); }
.service-card:hover .svc-icon { background:rgba(250,14,15,0.12); transform: scale(1.05); }
.svc-title { font-size:1.25rem; font-weight:700; margin-bottom:12px; color:var(--text); }
.svc-desc { font-size:0.88rem; color:var(--muted); line-height:1.78; margin-bottom:22px; }
.svc-link { font-size:0.72rem; font-weight:700; letter-spacing:0.15em; text-transform:uppercase; color:var(--red); display:inline-flex; align-items:center; gap:8px; transition:gap 0.2s; }
.svc-link:hover { gap:14px; }
.svc-link::after { content:'→'; }

/* ===== CTA BAND ===== */
.cta-band { background:var(--red); padding:80px 40px; text-align:center; position:relative; overflow:hidden; }
.cta-band::before { content:'VS'; position:absolute; font-family:'Barlow Condensed',sans-serif; font-size:20rem; font-weight:900; color:rgba(255,255,255,0.06); top:50%;left:50%; transform:translate(-50%,-50%); pointer-events:none; line-height:1; }
.cta-inner { max-width:700px; margin:0 auto; position:relative; z-index:2; }
.cta-h2 { font-size:clamp(2.2rem,4.5vw,4.2rem); margin-bottom:18px; color:var(--white); }
.cta-sub { font-size:1rem; font-weight:300; color:rgba(255,255,255,0.9); margin-bottom:36px; line-height:1.7; }

/* ===== FOOTER ===== */
.vs-footer { background:var(--light-bg); padding:64px 40px 32px; border-top:1px solid var(--border); }
.footer-inner { max-width:1280px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:52px; padding-bottom:48px; border-bottom:1px solid var(--border); margin-bottom:28px; }
.footer-brand img { height:46px; margin-bottom:16px; }
.footer-tagline { font-size:0.85rem; color:var(--muted); font-weight:300; line-height:1.75; margin-bottom:22px; max-width:260px; }
.footer-offices { margin-bottom:20px; }
.footer-office { margin-bottom:14px; }
.footer-office strong { font-size:0.75rem; font-weight:700; letter-spacing:0.15em; text-transform:uppercase; color:var(--red); display:block; margin-bottom:4px; }
.footer-office p { font-size:0.8rem; color:var(--muted); line-height:1.6; }
.footer-office a { font-size:0.8rem; color:var(--muted); transition:color 0.2s; display:block; }
.footer-office a:hover { color:var(--red); }
.social-row { display:flex; gap:10px; margin-top:16px; }
.soc-btn { width:36px;height:36px; border:1px solid var(--border); border-radius:4px; display:flex;align-items:center;justify-content:center; font-family:'Barlow Condensed',sans-serif; font-size:0.65rem; font-weight:800; letter-spacing:0.05em; color:var(--muted); transition:all 0.2s; background: var(--white); }
.soc-btn:hover { border-color:var(--red); color:var(--red); background:var(--red-subtle); }
.footer-col h4 { font-family:'Barlow Condensed',sans-serif; font-size:0.72rem; font-weight:700; letter-spacing:0.2em; text-transform:uppercase; color:var(--muted2); margin-bottom:18px; }
.footer-col a { display:block; font-size:0.85rem; font-weight:300; color:var(--text-light); margin-bottom:9px; transition:color 0.2s; }
.footer-col a:hover { color:var(--red); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; font-size:0.75rem; color:var(--muted2); flex-wrap:wrap; gap:10px; }
.footer-bottom a { color:var(--muted2); transition:color 0.2s; }
.footer-bottom a:hover { color:var(--red); }

/* ===== PAGE HERO ===== */
.page-hero { padding:140px 40px 80px; position:relative; overflow:hidden; background:var(--white); border-bottom:1px solid var(--border); }
.page-hero-inner { max-width:1280px; margin:0 auto; }
.page-hero .vs-label { margin-bottom:14px; }
.page-hero h1 { font-size:clamp(2.8rem,6vw,6rem); color:var(--text); margin-bottom:20px; }
.page-hero p { font-size:1rem; color:var(--muted); max-width:600px; line-height:1.8; }
.page-hero-bg { position:absolute; inset:0; background-image:linear-gradient(rgba(250,14,15,0.03) 1px,transparent 1px),linear-gradient(90deg,rgba(250,14,15,0.03) 1px,transparent 1px); background-size:60px 60px; mask-image:radial-gradient(ellipse 90% 80% at 90% 50%, black 0%,transparent 70%); z-index:0; pointer-events:none; opacity: 0.5; }
.page-hero-inner { position:relative;z-index:2; }
.page-hero-glow { position:absolute; width:500px;height:500px; background:radial-gradient(circle,rgba(250,14,15,0.06) 0%,transparent 70%); top:-100px;right:-50px; pointer-events:none; }

/* ===== REVEAL ===== */
.reveal { opacity:0; transform:translateY(24px); transition:opacity 0.65s ease,transform 0.65s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.d1{transition-delay:0.1s}.d2{transition-delay:0.2s}.d3{transition-delay:0.3s}.d4{transition-delay:0.4s}

/* ===== RESPONSIVE ===== */

/* Tablet (1024px and below) */
@media (max-width:1024px) {
  .nav-inner { padding: 0 30px; }
  .nav-logo img { height: 40px; max-width: 160px; }
  .services-grid { grid-template-columns:repeat(2,1fr); gap: 20px; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .section { padding: 70px 30px; }
}

/* Mobile landscape and small tablets (900px and below) */
@media (max-width:900px) {
  .nav-inner { padding: 0 20px; height: 65px; }
  .nav-logo img { height: 36px; max-width: 140px; }
  
  .nav-menu { 
    display:none; 
    position:fixed; 
    top:65px;
    left:0;
    right:0;
    bottom:0; 
    background:rgba(255,255,255,0.98); 
    backdrop-filter: blur(10px);
    flex-direction:column; 
    justify-content:flex-start; 
    align-items:center; 
    gap:24px; 
    padding:60px 20px;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.05);
  }
  .nav-menu.open { display:flex; }
  .nav-menu a { 
    font-size:1.1rem; 
    color: var(--text);
  }
  .nav-menu a:hover {
    color: var(--red);
  }
  .nav-cta {
    padding: 12px 32px !important;
    font-size: 0.85rem !important;
  }
  .nav-toggle { display:flex; }
  
  .section { padding:60px 20px; }
  .page-hero { padding:100px 20px 60px; }
  .services-grid { grid-template-columns:1fr; gap: 16px; }
  .stats-grid { grid-template-columns:1fr; padding:0 20px; }
  .stat-item { border-right:none; border-bottom:1px solid var(--border); padding:24px 20px; }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns:1fr; gap:32px; padding:0 0 36px; }
  .footer-inner { padding:0; }
  .section-header-flex { flex-direction:column; align-items:flex-start; }
  .vs-h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
  .cta-h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
}

/* Small mobile (600px and below) */
@media (max-width:600px) {
  .nav-inner { padding: 0 15px; height: 60px; }
  .nav-logo img { height: 32px; max-width: 120px; }
  .nav-menu { top: 60px; padding: 40px 15px; gap: 20px; }
  .nav-menu a { font-size: 1rem; }
  
  .section { padding: 50px 15px; }
  .page-hero { padding: 90px 15px 50px; }
  .vs-h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .vs-sub { font-size: 0.9rem; }
  .section-header { margin-bottom: 40px; }
  
  .btn-red, .btn-outline, .btn-white {
    padding: 12px 24px;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
  }
  
  .service-card { padding: 32px 24px; }
  .svc-title { font-size: 1.1rem; }
  .svc-desc { font-size: 0.85rem; }
  
  .stats-grid { gap: 0; }
  .stat-item { padding: 20px 15px; }
  .stat-n { font-size: 2.2rem; }
  .stat-l { font-size: 0.7rem; }
  
  .cta-band { padding: 60px 15px; }
  .cta-h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .cta-sub { font-size: 0.9rem; }
  
  .vs-footer { padding: 50px 15px 24px; }
  .footer-brand img { height: 38px; }
  .footer-tagline { font-size: 0.82rem; }
  .footer-col h4 { font-size: 0.7rem; margin-bottom: 14px; }
  .footer-col a { font-size: 0.82rem; }
  .footer-bottom { font-size: 0.7rem; flex-direction: column; text-align: center; }
  
  .vs-ticker { padding: 8px 0; }
  .ticker-item { font-size: 0.75rem; padding: 0 30px; }
}

/* Extra small devices (400px and below) */
@media (max-width:400px) {
  .nav-logo img { height: 28px; max-width: 100px; }
  .section { padding: 40px 12px; }
  .vs-h2 { font-size: clamp(1.4rem, 7vw, 2rem); }
  .btn-red, .btn-outline, .btn-white { padding: 10px 20px; font-size: 0.75rem; }
}
