/* ==========================================================================
   Base & Reset
   ========================================================================== */
:root {
  --primary: #0a4b78; /* Deep water blue */
  --primary-light: #e6f0f9;
  --secondary: #0077b6; /* Bright water blue */
  --accent: #f05423; /* Bright orange for Call buttons only */
  --accent-hover: #d64515;
  --text-main: #333333;
  --text-light: #555555;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --container-width: 1200px;
  --nav-height: 80px;
}

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

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

body {
  background-color: var(--bg-white);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.5rem;
}

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

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

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
  font-size: 1.125rem;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 6px rgba(240, 84, 35, 0.2);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background-color: var(--secondary);
  color: #fff;
}

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

/* Call Box */
.call-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--secondary);
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.call-box h3 {
  margin-bottom: 0.5rem;
}

.call-box p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
}

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

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

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

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

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

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

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

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 0.5rem 0;
}

/* CSS-only chevron arrow — no Unicode characters */
.chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.dropdown:hover .chevron,
.dropdown.active .chevron {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  min-width: 260px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

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

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--primary-light);
  color: var(--primary);
}

.header-cta {
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 4rem 0 5rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to right, var(--secondary) 50%, var(--primary-light) 50%);
}

.hero h1 {
  color: var(--bg-white);
}

.hero p {
  color: var(--primary-light);
  font-size: 1.25rem;
  max-width: 700px;
}

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

/* ==========================================================================
   Page Layout & Sections
   ========================================================================== */
main {
  flex-grow: 1;
}

section {
  padding: 5rem 0;
}

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

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

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

.sidebar {
  background-color: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  height: fit-content;
}

.sidebar-list li {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.sidebar-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.breadcrumbs {
  padding: 1rem 0;
  background-color: var(--bg-light);
  font-size: 0.9rem;
}

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

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

/* ==========================================================================
   Components (Lists, Cards, FAQ)
   ========================================================================== */
.feature-list {
  margin: 2rem 0;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: var(--secondary);
}

.service-card h3 {
  margin-bottom: 1rem;
}

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

.faq-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary);
  color: var(--primary-light);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

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

.footer-col h4 {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
}

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

.footer-col a {
  color: var(--primary-light);
}

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

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

.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--accent);
  color: white;
  text-align: center;
  padding: 1rem;
  font-weight: bold;
  font-size: 1.125rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.sticky-mobile-cta:hover {
  background-color: var(--accent-hover);
  color: white;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Images & Media
   ========================================================================== */
.page-image {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.page-image-full {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.image-caption {
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.image-pair img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Hero with background image */
.hero-with-bg {
  position: relative;
  overflow: hidden;
}

.hero-with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 75, 120, 0.78);
  z-index: 1;
}

.hero-with-bg .container {
  position: relative;
  z-index: 2;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Sidebar image */
.sidebar-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  object-fit: cover;
  max-height: 220px;
}

@media (max-width: 768px) {
  .image-pair {
    grid-template-columns: 1fr;
  }
  .image-pair img {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .header-cta {
    display: none;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .sticky-mobile-cta {
    display: block;
  }
  
  body {
    padding-bottom: 60px; /* Space for sticky cta */
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
}
