/* styles.css */
:root {
  --color-primary: #004b87; /* Deep water blue */
  --color-primary-dark: #00335c;
  --color-accent: #e63946; /* High visibility CTA */
  --color-accent-hover: #c92a36;
  --color-text: #2b2d42;
  --color-text-light: #5c677d;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-border: #e9ecef;
  
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --container-width: 1200px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }

p {
  margin-bottom: var(--spacing-sm);
  font-size: 1.125rem;
  color: var(--color-text-light);
}

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

a:hover, a:focus {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

ul {
  margin-left: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

li {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
  font-size: 1.125rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

section {
  padding: var(--spacing-lg) 0;
}

.bg-alt {
  background-color: var(--color-bg-alt);
}

/* Header & Navigation */
.site-header {
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--color-primary);
}

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

.dropdown-toggle {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  min-width: 260px;
  box-shadow: var(--shadow-md);
  border-radius: 4px;
  list-style: none;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  margin: 0;
}

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

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  text-decoration: none;
}

/* Buttons & CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: var(--color-accent);
  color: white !important;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none !important;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  text-align: center;
}

.btn:hover, .btn:focus {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.header-cta {
  margin-left: 1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0,51,92,0.85) 0%, rgba(0,75,135,0.85) 100%), url('images/hero-bg.webp') center/cover no-repeat;
  color: white;
  padding: var(--spacing-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M0 50 Q 25 30 50 50 T 100 50 L 100 100 L 0 100 Z" fill="rgba(255,255,255,0.05)"/></svg>') bottom/1000px repeat-x;
  pointer-events: none;
}

.hero h1 {
  color: white;
  max-width: 900px;
  margin: 0 auto var(--spacing-md);
}

.hero p {
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
  font-size: 1.25rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

/* Cards */
.card {
  background: var(--color-bg);
  border-radius: 8px;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-top: 0;
}

.card .btn-link {
  margin-top: auto;
  display: inline-block;
  padding-top: 1rem;
  font-weight: 600;
}

/* Content Blocks */
.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  margin-top: var(--spacing-md);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: var(--spacing-sm) 0;
  background: var(--color-bg-alt);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--color-text-light);
}

.breadcrumbs span {
  color: var(--color-text);
  font-weight: 500;
}

.breadcrumbs .separator {
  margin: 0 0.5rem;
  color: var(--color-border);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

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

.faq-answer.active {
  max-height: 500px;
  margin-top: 1rem;
}

/* Call to Action Banner */
.cta-banner {
  background: var(--color-bg-alt);
  text-align: center;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.site-footer h3 {
  color: white;
  font-size: 1.25rem;
}

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

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

.footer-links li {
  color: rgba(255,255,255,0.7);
}

.footer-links a {
  color: rgba(255,255,255,0.7);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Mobile Sticky Call Bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-accent);
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  text-align: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-call-bar a {
  color: white !important;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  .header-cta { display: none; }
  
  .menu-toggle {
    display: block;
  }

  .nav-wrapper {
    position: fixed;
    top: 80px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--color-bg);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: var(--spacing-md);
  }

  .nav-wrapper.active {
    transform: translateX(-100%);
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links > li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a, .dropdown-toggle {
    padding: 1rem 0;
    width: 100%;
    display: block;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    border-left: 2px solid var(--color-border);
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero { padding: var(--spacing-lg) 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
