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

:root {
  --navy: #0A2540;
  --navy-dark: #061828;
  --teal: #00C2A8;
  --teal-dark: #00A890;
  --white: #ffffff;
  --off-white: #F7F9FC;
  --gray: #5A6A7A;
  --gray-light: #E8EEF4;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

main { flex: 1; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy-dark);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-light);
}
.btn-outline-dark:hover {
  border-color: var(--navy);
  background: var(--off-white);
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
}

.header.scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
  flex-shrink: 0;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover,
.nav-links a.active { color: var(--navy); }

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--gray);
}
.nav-dropdown-menu a:hover {
  background: var(--off-white);
  color: var(--navy);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== Hero (Home) ===== */
.hero {
  padding: 100px 0 90px;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, #0d3a5c 100%);
  color: var(--white);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--teal); }

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 240px;
}

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--teal);
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  padding: 80px 0 60px;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== Sections common ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--gray);
  font-size: 17px;
}

.section {
  padding: 80px 0;
}

.section-alt { background: var(--off-white); }

/* ===== Home: Services grid ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pillar-wide { grid-column: 1 / -1; }

.pillar-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--teal);
  font-weight: 800;
  font-size: 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pillar h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pillar > p {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 16px;
  flex: 1;
}

.pillar .btn { margin-top: 8px; align-self: flex-start; }

/* ===== Why / Feature cards ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--gray-light);
}

.why-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-card p { color: var(--gray); font-size: 15px; }

/* ===== Support highlight ===== */
.support-block {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}

.support-block h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.support-block p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}

.check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.support-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}
.support-box strong {
  display: block;
  font-size: 20px;
  color: var(--teal);
  margin-bottom: 4px;
}
.support-box span {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}
.support-box p { color: rgba(255,255,255,0.65); font-size: 14px; margin: 0; }

/* ===== Service detail pages ===== */
.detail-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.detail-main h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
}
.detail-main h2:first-child { margin-top: 0; }

.detail-main p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 16px;
}

.feature-list {
  margin: 24px 0;
}

.feature-list li {
  padding: 14px 0 14px 28px;
  position: relative;
  border-bottom: 1px solid var(--gray-light);
  font-size: 15px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 50%;
}

.detail-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sidebar-card p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
}

.sidebar-links a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--gray-light);
}
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--teal-dark); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: var(--off-white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.consent-group {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--off-white);
  border-radius: 8px;
  border: 1px solid var(--gray-light);
}

.consent-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.consent-item:last-child { margin-bottom: 0; }

.consent-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.consent-item label {
  font-size: 13px;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.5;
  cursor: pointer;
}

.consent-item label a {
  color: var(--teal-dark);
  text-decoration: underline;
}

.form-note {
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}

.info-card h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 8px;
}

.info-card p,
.info-card a {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.5;
}

.info-card a:hover { color: var(--teal-dark); }

/* ===== Footer ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 320px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-brand p { font-size: 13px; margin-top: 4px; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--teal); }

.copyright {
  width: 100%;
  text-align: center;
  font-size: 13px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-content,
  .detail-content,
  .contact-grid,
  .support-block {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }
  .hero-card {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    min-width: 0;
    width: 100%;
  }

  .pillars { grid-template-columns: 1fr; }
  .pillar-wide { grid-column: auto; }

  .why-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .detail-sidebar { position: static; }
}

@media (max-width: 700px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-light);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 8px 0 8px 16px;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .menu-toggle { display: flex; }

  .hero { padding: 80px 0 60px; }
  .page-hero { padding: 60px 0 40px; }
  .section { padding: 60px 0; }

  .support-block { padding: 32px 24px; }
}
