@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Plus+Jakarta+Sans:wght@400;500;700&display=swap');

:root {
  /* Color Palette - Derived from Logo */
  --primary: #1B2B48; /* Deep Navy */
  --secondary: #FFB300; /* Vibrant Construction Yellow */
  --accent: #E67E22; /* Warning Orange */
  --text-dark: #1F2937;
  --text-muted: #6B7280;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.8);
  --glass-dark: rgba(27, 43, 72, 0.9);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 2rem;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0;
  z-index: 1000;
  transition: var(--transition);
}

nav.scrolled {
  background: var(--glass);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  font-size: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white); /* Initial White for Hero visibility */
  text-transform: uppercase;
}

nav.scrolled .logo-container {
  color: var(--primary); /* Dark when scrolled */
}

.logo-dot {
  color: var(--secondary);
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  color: var(--white); /* Initial White for Hero visibility */
}

nav.scrolled .nav-link {
  color: var(--primary); /* Dark when scrolled */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: none;
  z-index: 1000;
  border-top: 3px solid var(--secondary);
}

.mega-menu {
  min-width: 500px;
  display: none;
  gap: 3rem;
  left: 50%;
  transform: translateX(-50%);
}

.mega-column {
  flex: 1;
}

.mega-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu ul {
  list-style: none;
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  transition: var(--transition);
}

.dropdown-menu a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
  animation: fadeInUp 0.3s ease;
}

.btn-cta {
  background-color: var(--secondary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background-color: #f7a000;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

nav.scrolled .menu-toggle {
  color: var(--primary);
}

.mobile-close-item {
  display: none;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--primary);
  color: var(--white);
  padding-top: 5rem;
  overflow: hidden;
  padding: 10rem 0;
  overflow: hidden;
  gap: 3rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--primary) 20%, rgba(27, 43, 72, 0.4) 100%), url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1.2;
}

.hero-form-container {
  flex: 0.8;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}

.hero-form-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 450px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group-hero {
  margin-bottom: 1rem;
}

.form-group-hero input, 
.form-group-hero textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.form-group-hero input::placeholder,
.form-group-hero textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group-hero select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  cursor: pointer;
}

.form-group-hero select option {
  color: #111827; /* Deep black for visibility */
  background: white;
}

.hero-tagline {
  display: inline-block;
  background: rgba(255, 179, 0, 0.2);
  color: var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 179, 0, 0.3);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  opacity: 0.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
}

.btn-secondary {
  border: 2px solid var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
}

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

/* --- Stats --- */
.stats {
  padding: 5rem 0;
  margin-top: -4rem;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

/* --- Services --- */
.section-padding {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-label {
  color: var(--secondary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 179, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: var(--secondary);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* --- Contact Section --- */
.contact {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-xl);
  margin: 4rem 0;
  overflow: hidden;
}

.contact-wrapper {
  display: flex;
}

.contact-info {
  flex: 1;
  padding: 5rem;
  background: var(--glass-dark);
}

.contact-form-container {
  flex: 1;
  padding: 5rem;
  background: var(--white);
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

input, textarea {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid #E5E7EB;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(255, 179, 0, 0.1);
}

/* --- Footer --- */
footer {
  background: #111827;
  color: #9CA3AF;
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.footer-title {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

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

.footer-links a:hover {
  color: var(--secondary);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-bg { opacity: 0.4; }
  .hero-wrapper { flex-direction: column; text-align: center; gap: 3rem; padding-bottom: 4rem; }
  .hero-content { width: 100%; }
  .hero-form-container { width: 100%; justify-content: center; }
  .hero-btns { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { flex-direction: column; }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start; /* Start from top to avoid overlap */
    gap: 1.5rem;
    transition: 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -10px 0 20px rgba(0,0,0,0.1);
    padding: 6rem 2rem 4rem; /* More top padding for the close button */
    overflow-y: auto; /* Enable scrolling for long menus */
    align-items: flex-start; /* Align naturally at top */
    display: flex;
  }

  .nav-links.active {
    right: 0;
  }

  /* Mobile Dropdown adjustment - Accordion style */
  .nav-dropdown .dropdown-menu {
    position: static;
    display: none; /* Hide by default on mobile */
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 1rem 0 1rem 1.5rem;
    min-width: auto;
    transform: none;
  }

  /* Show dropdown-menu when parent .nav-dropdown is active */
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  .nav-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
  }

  .mega-menu {
    flex-direction: column;
    gap: 0; /* Remove gap in favor of title margins */
    width: 100%;
  }

  .mega-title {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .dropdown-menu a {
    font-size: 1rem;
    padding: 0.4rem 0;
  }
  
  .nav-dropdown .dropdown-toggle i {
    display: none; /* Hide chevron on mobile for simplicity */
  }

  .mobile-close-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 2rem;
    left: 0;
    padding: 0 2rem;
  }

  .mobile-close-btn {
    background: var(--bg-light);
    border: none;
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
  }

  .nav-link {
    color: var(--primary) !important;
    font-size: 1.2rem;
  }

  .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
