/* =====================================================
   SHIVAAM CIVIL PROJECT CONSTRUCTIONS
   global.css — Reset, Variables, Nav, Footer, Utilities
   ===================================================== */

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

/* ─── CSS Custom Properties ─── */
:root {
  --color-navy:   #0D1B4B;
  --color-blue:   #1A8FD1;
  --color-cyan:   #00C3F5;
  --color-white:  #FFFFFF;
  --color-light:  #F4F6FA;
  --color-border: #E2E8F0;
  --color-text:   #374151;
  --color-muted:  #6B7280;
  --color-gold:   #F59E0B;
  --color-green:  #10B981;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-height:  88px;
  --max-width:   1280px;
  --section-pad: 96px;
  --radius:      10px;
  --transition:  0.3s ease;

  --shadow-sm:   0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.08);
  --shadow-card: 0 12px 40px rgba(26,143,209,0.15);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body   { font-family: var(--font-body); color: var(--color-text); background: var(--color-white); line-height: 1.7; overflow-x: hidden; }
img    { max-width: 100%; height: auto; display: block; }
a      { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ─── Typography Base ─── */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--color-navy); line-height: 1.15; }
p { line-height: 1.75; }

/* ─── Container ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Section ─── */
.section {
  padding: var(--section-pad) 2rem;
}
.section--white { background-color: var(--color-white); }
.section--light { background-color: var(--color-light); }

/* ─── Section Labels / Headings ─── */
.label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 620px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn--primary {
  background-color: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,143,209,0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn--ghost:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn--white {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}
.btn--white:hover {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
  transform: translateY(-2px);
}
.btn:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; }

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-height);
  min-height: 88px;
  background: var(--color-white);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-color: var(--color-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.nav__logo a { display: flex; align-items: center; }
.nav__logo img { height: 72px; width: auto; object-fit: contain; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-navy);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-blue);
  transition: width var(--transition);
}
.nav__link:hover,
.nav__link.active { color: var(--color-blue); }
.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav__cta { margin-left: 20px; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 901;
}
.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  position: fixed;
  inset: 0;
  background: var(--color-white);
  z-index: 899;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav__overlay.open { opacity: 1; pointer-events: all; }
.nav__overlay-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--color-navy);
  cursor: pointer;
  border: none; background: none;
  line-height: 1;
}
.nav__overlay-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--color-navy);
  opacity: 0;
  transform: translateY(20px);
  transition: color var(--transition), opacity 0.4s ease, transform 0.4s ease;
}
.nav__overlay.open .nav__overlay-link {
  opacity: 1;
  transform: translateY(0);
}
.nav__overlay.open .nav__overlay-link:nth-child(2) { transition-delay: 0.05s; }
.nav__overlay.open .nav__overlay-link:nth-child(3) { transition-delay: 0.1s;  }
.nav__overlay.open .nav__overlay-link:nth-child(4) { transition-delay: 0.15s; }
.nav__overlay.open .nav__overlay-link:nth-child(5) { transition-delay: 0.2s;  }
.nav__overlay.open .nav__overlay-link:nth-child(6) { transition-delay: 0.25s; }
.nav__overlay-link:hover { color: var(--color-blue); }

/* ─── Footer ─── */
.footer {
  background: var(--color-navy);
  background-color: #0D1B4B;
  padding: 72px 2rem 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3.5rem;
  max-width: var(--max-width);
  margin: 0 auto 52px;
}
.footer-logo-wrap {
  background-color: transparent;
  margin-bottom: 20px;
}
.footer-logo-wrap img {
  height: 60px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}
.footer__address {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.65);
}
.footer__address a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer__address a:hover { color: var(--color-white); }
.footer__col-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 20px;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer__copy { font-size: 13px; color: rgba(255,255,255,0.45); }

/* ─── Page Hero (shared inner pages) ─── */
.page-hero {
  background: var(--color-light);
  padding: calc(var(--nav-height) + 72px) 2rem 72px;
  text-align: center;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--color-blue); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-navy); }
.breadcrumb__sep { color: var(--color-border); }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 56px);
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.page-hero__sub {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ─── CTA Banner (shared dark section) ─── */
.cta-banner {
  background: linear-gradient(135deg, #0D1B4B 0%, #1A3A7A 100%);
  padding: 96px 2rem;
  text-align: center;
}
.cta-banner__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 48px);
  color: var(--color-white);
  margin-bottom: 14px;
  line-height: 1.15;
}
.cta-banner__sub {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ─── Scroll Animation Utility ─── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Status Badges ─── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.5;
}
.badge--progress  { background: rgba(245,158,11,0.15); color: #B45309; border: 1px solid rgba(245,158,11,0.3); }
.badge--completed { background: rgba(16,185,129,0.12); color: #065F46; border: 1px solid rgba(16,185,129,0.25); }

/* ─── Responsive Nav ─── */
@media (max-width: 1023px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ─── Responsive Utilities ─── */
@media (max-width: 767px) {
  :root {
    --nav-height: 68px;
    --section-pad: 64px;
  }
  .section { padding: 64px 1.25rem; }
  .container { padding: 0 1.25rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer { padding: 60px 1.25rem 28px; }
  .page-hero { padding: calc(var(--nav-height) + 52px) 1.25rem 56px; }
}
