/* =========================================
   Balaji Road Lines — static styles
   Blue & white theme, mobile-first responsive
   ========================================= */

:root {
  --primary: #1e3a8a;            /* deep blue */
  --primary-2: #3b82f6;          /* lighter blue (for gradients) */
  --primary-deep: #14225e;
  --bg: #ffffff;
  --bg-soft: #f3f6ff;
  --text: #0f172a;
  --muted: #5b6478;
  --border: #e3e8f4;
  --shadow-card: 0 10px 30px -15px rgba(30, 58, 138, 0.18);
  --shadow-elegant: 0 20px 50px -20px rgba(30, 58, 138, 0.35);
  --gradient-primary: linear-gradient(135deg, #14225e, #3b82f6);
  --gradient-hero: linear-gradient(135deg, rgba(20, 34, 94, 0.92), rgba(59, 130, 246, 0.78));
  --radius: 0.85rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: "Poppins", "Inter", sans-serif; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--primary); color: #fff;
  padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.1rem; border-radius: 0.6rem;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s ease;
  font-family: inherit;
}
.btn-lg { padding: 0.85rem 1.4rem; font-size: 1rem; }
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { opacity: 0.94; }
.btn-light { background: #fff; color: var(--primary); box-shadow: var(--shadow-elegant); }
.btn-light:hover { background: rgba(255,255,255,0.92); }
.btn-ghost {
  background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: transparent;
}
.site-header[data-scrolled="true"] {
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  box-shadow: var(--shadow-card);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem;
}
@media (min-width: 640px) { .header-row { padding: 0.85rem 1.5rem; } }
@media (min-width: 1024px) { .header-row { padding: 0.85rem 2rem; } }

.logo { display: inline-flex; align-items: center; gap: 0.65rem; }
.logo-mark {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 0.75rem;
  background: var(--gradient-primary); color: #fff;
  font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.4rem;
  box-shadow: var(--shadow-card);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: "Poppins", sans-serif; font-weight: 700; color: #fff; font-size: 0.95rem; letter-spacing: -0.01em; }
.logo-sub { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.site-header[data-scrolled="true"] .logo-name { color: var(--primary); }
.site-header[data-scrolled="true"] .logo-sub { color: var(--muted); }
.logo-light .logo-name { color: #fff; }
.logo-light .logo-sub { color: rgba(255,255,255,0.7); }

@media (max-width: 480px) {
  .logo-text { display: none; }
}

.nav-desktop { display: none; gap: 0.25rem; }
.nav-desktop a {
  padding: 0.55rem 0.85rem; border-radius: 0.45rem; font-size: 0.9rem; font-weight: 500;
  color: #fff; transition: background 0.2s, color 0.2s;
}
.nav-desktop a:hover { background: rgba(255,255,255,0.12); }
.site-header[data-scrolled="true"] .nav-desktop a { color: rgba(15,23,42,0.8); }
.site-header[data-scrolled="true"] .nav-desktop a:hover { color: var(--primary); background: rgba(30,58,138,0.06); }

.nav-cta { display: none; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-cta { display: inline-flex; }
}

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.85); border: 1px solid var(--border); border-radius: 0.5rem;
  color: var(--text); cursor: pointer;
}
@media (min-width: 768px) { .menu-btn { display: none; } }

.mobile-nav {
  background: #fff; border-top: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem; flex-direction: column; gap: 0.25rem;
  display: flex;
}
.mobile-nav[hidden] { display: none !important; }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }
.mobile-nav a:not(.btn) {
  padding: 0.85rem 0.85rem; border-radius: 0.5rem; font-weight: 500; color: var(--text);
}
.mobile-nav a:not(.btn):hover { background: rgba(30,58,138,0.06); color: var(--primary); }
.mobile-nav .btn { margin-top: 0.5rem; }

/* ===== Hero ===== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 7rem 0 5rem;
}
@media (min-width: 640px) { .hero { padding: 9rem 0 7rem; } }
@media (min-width: 1024px) { .hero { padding: 11rem 0 9rem; } }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: var(--gradient-hero); }
.hero-inner { color: #fff; max-width: 760px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1);
  padding: 0.35rem 0.75rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(2.25rem, 5.4vw, 3.75rem); font-weight: 700;
  margin-top: 1.25rem;
}
.hero-title-soft { color: rgba(255,255,255,0.92); }
.hero-sub {
  margin-top: 1.25rem; max-width: 640px;
  color: rgba(255,255,255,0.88); font-size: 1.05rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Animated trucks */
.truck-lane { position: absolute; left: 0; right: 0; pointer-events: none; }
.truck-lane-small { bottom: 2.5rem; }
.truck-lane-big { bottom: 0.5rem; }
.truck-svg { color: #fff; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25)); }
.truck-lane-small .truck-svg { animation: truck-drive 14s linear infinite; opacity: 0.85; }
.truck-lane-big .truck-svg { animation: truck-drive 22s linear infinite; opacity: 0.95; }

@keyframes truck-drive {
  0% { transform: translateX(-20%); }
  100% { transform: translateX(110vw); }
}

/* ===== Section base ===== */
.section { padding: 4.5rem 0; }
@media (min-width: 640px) { .section { padding: 6rem 0; } }
.section-white { background: #fff; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 640px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--primary);
}
.eyebrow-light { color: rgba(255,255,255,0.85); }
.h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 700; margin-top: 0.75rem; }
.h2.white { color: #fff; }
.h3 { font-size: 1.25rem; font-weight: 600; }
.muted { color: var(--muted); margin-top: 1rem; }
.muted.small { font-size: 0.9rem; }
.white-soft { color: rgba(255,255,255,0.88); margin-top: 1rem; }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== About ===== */
.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }

.about-images { position: relative; }
.about-glow {
  position: absolute; inset: -1rem; z-index: -1; border-radius: var(--radius-xl);
  background: var(--gradient-primary); opacity: 0.10; filter: blur(40px);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) { .about-grid { gap: 1rem; } }
.about-grid img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); aspect-ratio: 4 / 3;
}
.about-grid .img-tall { grid-row: span 2; aspect-ratio: 3 / 4; box-shadow: var(--shadow-elegant); }

.about-text { display: flex; flex-direction: column; }
.checklist {
  margin-top: 1.5rem; display: grid; gap: 0.65rem;
}
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li {
  display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.92rem;
}
.checklist svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* ===== Cards (Services) ===== */
.cards-grid {
  margin-top: 3rem; display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(30,58,138,0.4); box-shadow: var(--shadow-elegant); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 0.85rem;
  background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}
.card:hover .card-icon { transform: scale(1.1); }
.card h3 { margin-top: 1.1rem; font-size: 1.1rem; }
.card p { margin-top: 0.5rem; color: var(--muted); font-size: 0.92rem; }

/* ===== Why Us features ===== */
.features-grid {
  margin-top: 3rem; display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature {
  border: 1px solid var(--border); background: var(--bg-soft);
  padding: 1.5rem; border-radius: var(--radius-lg); transition: all 0.3s;
}
.feature:hover { transform: translateY(-4px); background: #fff; border-color: rgba(30,58,138,0.4); box-shadow: var(--shadow-elegant); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 0.85rem;
  background: rgba(30,58,138,0.1); color: var(--primary); transition: all 0.3s;
}
.feature:hover .feature-icon { background: var(--gradient-primary); color: #fff; }
.feature h3 { margin-top: 1.1rem; font-size: 1rem; }
.feature p { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }

/* ===== Coverage ===== */
.coverage-grid {
  margin-top: 3rem; display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 1024px) { .coverage-grid { grid-template-columns: 1.15fr 1fr; } }
.coverage-map { position: relative; max-width: 560px; margin: 0 auto; width: 100%; }
.coverage-map svg { width: 100%; height: auto; }
.route { stroke-dasharray: 8 10; animation: dash-flow 6s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -200; } }
.map-pulse { animation: pulse-ring 2.2s ease-out infinite; transform-box: fill-box; }
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.cities {
  margin-top: 1.5rem; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .cities { grid-template-columns: repeat(3, 1fr); } }
.city {
  border: 1px solid var(--border); background: #fff;
  padding: 0.5rem 0.75rem; border-radius: 0.55rem;
  font-size: 0.88rem; font-weight: 500; transition: all 0.2s;
}
.city:hover { border-color: rgba(30,58,138,0.4); color: var(--primary); }
.city-hq {
  background: var(--gradient-primary); color: #fff; border-color: var(--primary);
  box-shadow: var(--shadow-card);
}

/* ===== Contact ===== */
.contact-wrap { max-width: 1100px; }
.contact-card {
  background: var(--gradient-primary); color: #fff;
  border-radius: var(--radius-xl); padding: 2.5rem;
  box-shadow: var(--shadow-elegant); overflow: hidden;
}
@media (min-width: 640px) { .contact-card { padding: 3.5rem; } }
.contact-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact-info {
  background: rgba(255,255,255,0.1); padding: 1.5rem; border-radius: var(--radius-lg);
  backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: 1.25rem;
}
.info-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.info-icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 0.6rem; background: rgba(255,255,255,0.15); color: #fff; flex-shrink: 0;
}
.info-title { font-size: 0.88rem; font-weight: 600; color: #fff; }
.info-text { font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.info-text.underline:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===== Footer ===== */
.site-footer {
  background: #16224d; color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-tag { margin-top: 1rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); max-width: 28rem; }
.footer-h {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: #fff; font-weight: 600;
}
.footer-links { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.9rem; }
.footer-links a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.9rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact svg { color: rgba(255,255,255,0.7); margin-top: 3px; }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.78rem; color: rgba(255,255,255,0.6);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ===== Floating email button ===== */
.floating-email {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--gradient-primary); color: #fff;
  box-shadow: var(--shadow-elegant); transition: transform 0.2s;
}
.floating-email:hover { transform: scale(1.1); }
.floating-pulse {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(30,58,138,0.4); z-index: -1;
  animation: pulse-ring 2.2s ease-out infinite;
}

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}
.reveal.is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .truck-lane-small .truck-svg, .truck-lane-big .truck-svg,
  .route, .map-pulse, .floating-pulse {
    animation: none !important; transition: none !important;
    opacity: 1 !important; transform: none !important;
  }
  html { scroll-behavior: auto; }
}
