/* =========================
   GLOBAL RESET & BASE
========================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Color System */
  --navy:        #0d1f3c;
  --navy-mid:    #1a3358;
  --navy-light:  #234876;
  --accent:      #2a6eb5;
  --accent-hover:#1f5a9e;
  --steel:       #4a6080;
  --mist:        #f4f6f9;
  --white:       #ffffff;
  --border:      #dde3ec;
  --text-dark:   #0d1f3c;
  --text-mid:    #3d5275;
  --text-light:  #6b809a;

  /* Typography */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-pad: 96px 40px;
  --radius:      6px;
  --radius-lg:   12px;

  /* Transitions */
  --ease: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =========================
   TYPOGRAPHY IMPORTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@300;400;500;600&display=swap');

/* =========================
   UTILITY CLASSES
========================= */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* =========================
   NAVBAR
========================= */
.page-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.page-nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.page-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.page-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}

.page-links a:hover {
  color: var(--navy);
}

.page-links a.active {
  color: var(--navy);
  font-weight: 600;
}

.page-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--accent);
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(42, 110, 181, 0.28);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white) !important;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.6);
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease);
  cursor: pointer;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
}

/* =========================
   SECTION DIVIDER
========================= */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: var(--navy);
  color: #8da3bf;
  margin-top: 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
  color: #8da3bf;
  margin-top: 12px;
}

.footer-brand-logo {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: #8da3bf;
  font-size: 18px;
  transition: color var(--ease), transform var(--ease);
}

.footer-socials a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: #8da3bf;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color var(--ease);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
  padding: 16px 40px;
  font-size: 12px;
  color: #5a7a99;
  line-height: 1.6;
}

/* =========================
   SITE LOADER
========================= */
#site-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#site-loader.loader-hide {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-content img {
  height: 52px;
}

.loader-bar {
  width: 160px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  animation: load-fill 1.6s ease forwards;
}

@keyframes load-fill {
  to { width: 100%; }
}

.loader-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* =========================
   MOBILE RESPONSIVENESS
========================= */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px 20px;
  }

  .page-nav-inner {
    padding: 0 20px;
    height: auto;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .page-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 4px;
  }

  .page-links a {
    font-size: 13px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px 32px;
    gap: 32px;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .container {
    padding: 0 20px;
  }
}

@media (max-width: 430px) {
  body { overflow-x: hidden; }

  .page-links {
    gap: 12px;
  }

  .footer-bottom {
    padding: 14px 20px;
  }
}
