/* =========================================
   KAMBARS ENGINEERING SERVICES - GLOBAL CSS
   ========================================= */

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

:root {
  --navy: #0d1b2a;
  --navy-mid: #1a2e42;
  --red: #c0392b;
  --red-hover: #a93226;
  --orange: #e07b39;
  --white: #ffffff;
  --off-white: #f4f4f2;
  --light-gray: #ebebeb;
  --mid-gray: #999;
  --text: #1e1e1e;
  --muted: #666;
  --border: #ddd;
  --gold: #c9a84c;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

ul {
  list-style: none;
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3,
h4,
h5 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.logo-wrap img {
  height: 50px;
  /* adjust this */
  width: auto;
  /* keeps aspect ratio */
}

.section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.section-title span {
  color: var(--red);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.75;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 0.7rem 1.8rem;
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 3px solid var(--red);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-text .brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-logo-text .brand-tagline {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links>li {
  position: relative;
}

.nav-links>li>a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.6rem 0.9rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links>li>a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
  color: var(--white);
}

.nav-links>li>a:hover::after,
.nav-links>li>a.active::after {
  transform: scaleX(1);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
  display: inline-block;
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(-135deg) translateY(-2px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--light-gray);
  transition: all 0.2s;
}

.dropdown-menu li a:hover {
  background: var(--off-white);
  color: var(--red);
  padding-left: 1.6rem;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--off-white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.dropdown-menu li a:hover .dropdown-icon {
  background: rgba(192, 57, 43, 0.1);
}

/* CTA in nav */
.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem !important;
  border-radius: 2px;
  transition: all 0.2s !important;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--red-hover) !important;
  transform: translateY(-1px) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy);
  z-index: 999;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav ul {
  padding: 1rem 0;
}

.mobile-nav ul li a {
  display: block;
  padding: 0.9rem 2rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}

.mobile-nav ul li a:hover {
  color: var(--white);
  padding-left: 2.5rem;
}

.mobile-sub {
  padding-left: 1.5rem;
}

.mobile-sub li a {
  font-size: 0.88rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

.mobile-nav .mobile-cta-wrap {
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-nav .mobile-cta {
  display: block;
  text-align: center;
  background: var(--red);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem;
  border-radius: 2px;
}

/* ==================== PAGE HEADER (inner pages) ==================== */
.page-hero {
  padding: 120px 0 60px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 20px,
      rgba(255, 255, 255, 0.015) 20px, rgba(255, 255, 255, 0.015) 21px);
}

.page-hero-accent {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  background: var(--red);
  opacity: 0.06;
  border-radius: 50%;
}

.page-hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  letter-spacing: 0.05em;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.page-hero h1 span {
  color: var(--red);
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 90px 0;
}

.section-sm {
  padding: 60px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-head {
  margin-bottom: 3rem;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-desc {
  margin: 0 auto;
}

.bg-off-white {
  background: var(--off-white);
}

.bg-navy {
  background: var(--navy);
}

.bg-navy .section-title {
  color: var(--white);
}

.bg-navy .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

/* ==================== DIVIDER ==================== */
.red-rule {
  width: 60px;
  height: 4px;
  background: var(--red);
  margin-bottom: 1.5rem;
}

.red-rule.center {
  margin: 0 auto 1.5rem;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--white);
  border-radius: 0;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.13);
}

/* ==================== STATS BAR ==================== */
.stats-bar {
  background: var(--red);
  padding: 2rem 0;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.35rem;
  display: block;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 60px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand .brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s, padding-left 0.2s;
  display: block;
}

.footer-links li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.footer-contact-item .icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: rgba(192, 57, 43, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.footer-contact-item .info {
  font-size: 0.88rem;
}

.footer-contact-item .info strong {
  color: var(--white);
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--red);
}

/* ==================== ANIMATIONS ==================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-d1 {
  transition-delay: 0.1s;
}

.fade-up-d2 {
  transition-delay: 0.2s;
}

.fade-up-d3 {
  transition-delay: 0.3s;
}

.fade-up-d4 {
  transition-delay: 0.4s;
}

.fade-up-d5 {
  transition-delay: 0.5s;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .stats-bar .container {
    grid-template-columns: repeat(2, 1fr);
  }
}