/* ═══════════════════════════════════════
   VIVASVAT SOLAR SOLUTIONS — SHARED CSS
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --gold: #D4A017;
  --gold-light: #F0C040;
  --gold-dim: #B8860B;
  --navy: #0B1A2E;
  --navy-mid: #12263F;
  --navy-light: #1A3352;
  --navy-card: #0F2035;
  --off-white: #F5F0E8;
  --text-muted: #8A9BB0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--off-white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; }

/* ── NAVBAR ── */
#vss-nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(11,26,46,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,160,23,0.18);
  transition: box-shadow 0.3s;
}
#vss-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-badge {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--navy);
  font-family: 'DM Sans', sans-serif; flex-shrink: 0;
}
.nav-logo-text .brand { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; color: var(--gold-light); line-height: 1; }
.nav-logo-text .tagline { font-size: 10px; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: #9BAFC4;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--off-white); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--gold-light); background: rgba(212,160,23,0.1); }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy) !important; font-weight: 600 !important;
  padding: 8px 20px !important; border-radius: 7px !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
}
.nav-cta:hover { box-shadow: 0 4px 16px rgba(212,160,23,0.35) !important; transform: translateY(-1px) !important; background: rgba(212,160,23,0.1) !important; color: var(--gold-light) !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--off-white); border-radius: 2px; transition: all 0.3s;
}

.nav-mobile {
  display: none; flex-direction: column;
  background: var(--navy-mid);
  border-top: 1px solid rgba(212,160,23,0.12);
  padding: 12px clamp(20px, 5vw, 80px) 20px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 11px 0; font-size: 15px; font-weight: 500;
  color: #9BAFC4; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--gold-light); }
.nav-mobile .nav-cta {
  margin-top: 12px; text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim)) !important;
  color: var(--navy) !important; padding: 11px 20px !important; border-radius: 7px !important;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ── FOOTER ── */
#vss-footer {
  background: var(--navy-card);
  border-top: 1px solid rgba(212,160,23,0.15);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 80px) 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand p {
  font-size: 13px; color: var(--text-muted); line-height: 1.8;
  margin: 12px 0 20px; max-width: 280px;
}
.footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 8px;
}
.footer-contact-item a { color: var(--text-muted); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--gold-light); }
.footer-contact-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(212,160,23,0.1); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px;
}
.footer-col h4 {
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px; color: var(--text-muted);
  transition: color 0.2s; display: flex; align-items: center; gap: 6px;
}
.footer-col ul li a:hover { color: var(--off-white); }
.footer-col ul li a::before { content: '›'; color: var(--gold); font-size: 16px; line-height: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px; display: flex;
  align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-bottom .slogan { font-size: 12px; color: rgba(212,160,23,0.6); font-style: italic; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── SHARED UTILITIES ── */
.gold-line { display: inline-block; width: 48px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; color: var(--off-white); margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 520px; line-height: 1.7; }

/* Buttons */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy); font-weight: 600; font-size: 14px;
  padding: 13px 28px; border-radius: 8px; border: none; cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s;
  font-family: 'DM Sans', sans-serif; letter-spacing: 0.3px;
}
.btn-gold:hover { box-shadow: 0 6px 22px rgba(212,160,23,0.4); transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--gold); border: 1.5px solid var(--gold);
  font-weight: 600; font-size: 14px; padding: 12px 28px;
  border-radius: 8px; cursor: pointer; transition: background 0.25s, transform 0.25s;
  font-family: 'DM Sans', sans-serif;
}
.btn-outline:hover { background: rgba(212,160,23,0.1); transform: translateY(-2px); }

/* Cards */
.card-base {
  background: var(--navy-card); border: 1px solid rgba(212,160,23,0.12);
  border-radius: 16px; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card-base:hover { border-color: rgba(212,160,23,0.4); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }

/* Icon circle */
.icon-circle {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(212,160,23,0.1); border: 1px solid rgba(212,160,23,0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* BG Patterns */
.bg-dots {
  background-image: radial-gradient(circle, rgba(212,160,23,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}
.bg-grid {
  background-image: linear-gradient(rgba(212,160,23,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(212,160,23,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-lines {
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 18px,
    rgba(212,160,23,0.03) 18px, rgba(212,160,23,0.03) 19px
  );
}

/* Fade-up animation */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Section spacing */
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

/* Container — responsive horizontal padding so content never hugs edges */
.vss-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
  width: 100%;
}

/* Feature tag */
.feat-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,160,23,0.08); border: 1px solid rgba(212,160,23,0.2);
  border-radius: 999px; padding: 5px 14px; font-size: 12px; color: var(--gold-light);
}

/* Scroll reveal init */
.sr { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.sr.show { opacity: 1; transform: none; }
