/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
:root {
  --primary-blue: #0A2540;
  --secondary-blue: #0052CC;
  --accent-blue: #E6F0FA;
  --cta-red: #D93025;
  --cta-red-hover: #B32015;
  --text-main: #333333;
  --text-muted: #666666;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --border-color: #E2E8F0;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

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

html {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-white);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--primary-blue);
}

ul {
  list-style: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--primary-blue);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1.5rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary-blue); color: var(--bg-white); }
.bg-primary h2, .bg-primary h3 { color: var(--bg-white); }

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  border: none;
}

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

.btn-cta:hover {
  background-color: var(--cta-red-hover);
  color: var(--bg-white);
}

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

.btn-outline:hover {
  background-color: var(--secondary-blue);
  color: var(--bg-white);
}

.card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: var(--primary-blue);
  color: var(--bg-white);
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

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

.header-top a {
  color: var(--bg-white);
  font-weight: 600;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--secondary-blue);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  min-width: 250px;
  box-shadow: var(--shadow-md);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--accent-blue);
  color: var(--secondary-blue);
}

.nav-call {
  font-weight: 700;
  color: var(--cta-red);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-blue);
  padding: 0.5rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background-color: var(--accent-blue);
  padding: 4rem 0;
  border-bottom: 4px solid var(--primary-blue);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.faq-question {
  padding: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
}

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-item.active .faq-answer {
  padding-bottom: 1.25rem;
  max-height: 500px; /* Arbitrary large number for transition */
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--primary-blue);
  color: var(--bg-white);
  padding: 4rem 0 2rem;
}

.footer a {
  color: var(--accent-blue);
}

.footer a:hover {
  color: var(--bg-white);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--bg-white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   MOBILE STICKY CALL BAR
   ========================================================================== */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--cta-red);
  padding: 1rem;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.mobile-call-bar a {
  color: var(--bg-white);
  font-weight: 700;
  font-size: 1.125rem;
  display: block;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .header-top { display: none; }
  
  .hamburger { display: block; }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  
  .nav-menu.active {
    max-height: 500px;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link {
    display: block;
    padding: 1rem 1.5rem;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .mobile-call-bar { display: block; }
  body { padding-bottom: 60px; /* Space for sticky bar */ }
  
  .section { padding: 3rem 0; }
}
