/* Base Variables */
:root {
  --primary: #1E3A8A; /* Deep Navy */
  --secondary: #3B82F6; /* Bright Cobalt */
  --bg-dark: #0F172A; 
  --surface: #F8FAFC;
  --text-dark: #0F172A;
  --text-light: #64748B;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: white;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

/* Typography Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-full {
  width: 100%;
}

/* Navigation & Dropdowns */
.navbar {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px; /* Scaled slightly for impact without text */
}

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

.nav-links > a, .dropdown > button {
  font-weight: 500;
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-links > a:hover, .dropdown:hover > button {
  color: var(--secondary);
}

.nav-links a.active {
  color: var(--secondary);
  font-weight: 600;
}

/* Dropdown CSS Architecture */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 250px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  z-index: 101;
  padding: 0.5rem 0;
}

/* Desktop dropdown hover (all sizes that show full nav) */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
      display: flex;
      flex-direction: column;
    }
}

.dropdown-content a {
  color: var(--text-dark);
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
  background-color: var(--surface);
  color: var(--secondary);
}

.dropdown-content a.active {
    font-weight: 600;
    color: var(--primary);
    background-color: var(--surface);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
}

/* Layout Sections */
.section-light {
  background: var(--surface);
  padding: 5rem 0;
}

.section-white {
  background: white;
  padding: 5rem 0;
}

.section-dark {
  background: var(--bg-dark);
  color: white;
  padding: 5rem 0;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 8rem 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
}

/* Collapse hero to single column only on tablet/mobile */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content .hero-text {
    text-align: left;
  }
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Internal Page Headers */
.page-header {
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Services Grid (General) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

/* Forms */
.hero-form {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  color: var(--text-dark);
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Content Layout (Sidebar approach) */
.content-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.main-content h2, .main-content h3 {
  color: var(--primary);
  margin-top: 2rem;
}

.main-content p {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--secondary);
}

.sidebar-card h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* h5 used as styled nav links inside sidebar cards */
.sidebar-card h5 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  margin-top: 0;
  line-height: 1.4;
}

.sidebar-card h5 a {
  color: var(--text-dark);
  display: block;
}

.sidebar-card h5 a:hover {
  color: var(--secondary);
}

/* Embedded Maps */
.map-container iframe {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Footer Section */
.footer {
  background: #020617;
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  text-align: center;
  color: #64748B;
  font-size: 0.9rem;
}

/* Small desktop: hero stays 2-col but h1 scales down */
@media (max-width: 1100px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero {
    padding: 6rem 0;
  }
}

/* Layout collapses for tablet and below */
@media (max-width: 1024px) {
  .content-section {
    grid-template-columns: 1fr;
  }

  /* Force any inline 2-col grids to single column */
  .services-hub-grid {
    grid-template-columns: 1fr !important;
  }

  .index-map-grid {
    grid-template-columns: 1fr !important;
  }

  /* Grid fallbacks */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Contact form two-column rows collapse to single column */
  .form-row-2col {
    grid-template-columns: 1fr !important;
  }
}

/* Hamburger nav: tablet and mobile only (≤768px) */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  /* Nav Links specific positioning */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.25rem;
    box-shadow: var(--shadow-lg);
    clip-path: circle(0 at top right);
    transition: clip-path 0.4s ease-in-out;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav-links.active {
    clip-path: circle(150% at top right);
  }

  /* Dropdown Mobile Mechanics */
  .dropdown {
    width: 100%;
  }

  .dropdown > button {
    width: 100%;
    text-align: left;
    font-weight: 600;
    padding: 0.5rem 0;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    border-left: 2px solid var(--surface);
    width: 100%;
  }

  /* Hero h1 font scaling */
  .hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .section-light,
  .section-white {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }
}
