/* ==========================================================================
   CSS Variables & Base Reset
   ========================================================================== */
:root {
  --primary-color: #0f172a;
  --secondary-color: #2563eb;
  --accent-color: #38bdf8;
  --text-main: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Navigation Bar 
   ========================================================================== */
.navbar {
  background-color: var(--primary-color);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-logo {
  max-height: 40px;
  width: auto;
}

/* --- THE MISSING DESKTOP RULES WE ADDED BACK --- */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a,
.dropdown > a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none; /* Hidden by default */
  position: absolute;
  background-color: #0f172a;
  min-width: 250px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
  z-index: 100;
  padding: 10px;
  border-radius: 4px;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: var(--white) !important;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #334155;
  font-size: 0.9rem;
}

.dropdown-content a:last-child {
  border-bottom: none; /* Removes the line under the last dropdown item */
}

.license-nav {
  border-left: 1px solid #475569;
  padding-left: 20px;
  color: #cbd5e1;
  font-size: 0.9rem;
}
/* ----------------------------------------------- */

/* Standard Desktop Hover Effects */
.nav-links a:hover,
.dropdown > a:hover {
  color: var(--accent-color) !important;
}

.dropdown-content a:hover {
  background-color: #1e293b !important;
  color: var(--accent-color) !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  text-align: center;
  color: var(--white);
  border-bottom: 4px solid var(--secondary-color);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.location-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
}

/* ==========================================================================
   Grids & Cards (Services & Capabilities)
   ========================================================================== */
.services-grid,
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-category {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
}

.service-category h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.service-category ul {
  list-style-type: none;
}

.service-category li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 20px;
}

.service-category li::before {
  content: "→";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.cap-box {
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.cap-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.cap-box h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
}

.check-list {
  list-style-type: none;
  margin-top: 20px;
}

.check-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  color: #10b981;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ==========================================================================
   Legal Page Styling
   ========================================================================== */
.legal-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.legal-container h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 15px;
}

.legal-container h2 {
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.legal-container p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* ==========================================================================
   Contact Form 
   ========================================================================== */
.contact-section {
  background-color: var(--primary-color);
  padding: 60px 20px;
  color: var(--white);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.contact-container h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.contact-container p.subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 15px;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #1d4ed8;
}

/* ==========================================================================
   Thank You Page Styling
   ========================================================================== */
.thank-you-container {
  max-width: 650px;
  background: var(--white);
  padding: 50px 40px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  text-align: center;
}

.success-icon {
  background-color: #10b981;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.thank-you-container h1 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.thank-you-message {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.next-steps-box {
  background-color: var(--light-bg);
  border-left: 4px solid var(--secondary-color);
  padding: 25px;
  border-radius: 0 4px 4px 0;
  text-align: left;
  margin-bottom: 30px;
}

.next-steps-box h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.next-steps-box ul {
  list-style-position: inside;
  color: var(--text-main);
}

.next-steps-box li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 50px 20px 20px 20px;
  border-top: 4px solid var(--secondary-color);
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand {
  flex: 1;
  min-width: 300px;
}

.footer-brand .footer-logo {
  max-height: 50px;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-contact {
  flex: 1;
  min-width: 300px;
}

.footer-contact h3 {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 1px solid #334155;
  padding-bottom: 5px;
  display: inline-block;
}

.footer-contact p {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer-contact a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #334155;
  padding-top: 20px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ==========================================================================
  COMPACT MOBILE MENU & iOS FIX
   ========================================================================== */

/* 1. Force the dropdown to act as a touch target for iOS */
.dropdown {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
}

/* 2. Pure CSS override: Open dropdown on hover OR tap */
.dropdown:hover .dropdown-content,
.dropdown:active .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block !important;
}

@media (max-width: 768px) {
  /* 1. Ultra-Compact Navbar Container */
  .navbar {
    flex-direction: column;
    padding: 10px !important;
  }

  /* 2. Shrink Logo to save vertical space */
  .site-logo {
    max-height: 28px !important;
    margin-bottom: 5px;
  }

  /* 3. Wrap links tightly to fit on 2 neat lines (No hidden scrolling) */
  .nav-links {
    width: 100%;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px 12px !important; /* Tiny gaps between links */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 4. Shrink font size to maximize space */
  .nav-links > a,
  .dropdown > a {
    font-size: 0.85rem !important;
    padding: 2px 0;
  }

  /* 5. Hide the license text ONLY on mobile to save an entire line of screen space */
  .license-nav {
    display: none !important;
  }

  /* 6. Dropdown Layout Fix (Forces dropdown to span the whole screen width) */
  .dropdown {
    position: static !important;
  }
  .dropdown-content {
    position: absolute !important;
    top: 100% !important; /* Snaps exactly to bottom of navbar */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border: none !important;
    border-top: 2px solid var(--secondary-color) !important;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.3) !important;
  }

  /* Adjust Hero so it isn't crushed by the navbar */
  .hero {
    padding: 40px 20px !important;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .services-grid,
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
}
