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

:root {
  --green: #2E8B57;
  --orange: #FF8C00;
  --deep-blue: #1E3F66;
  --light-gray: #F4F6F8;
  --card-white: #FFFFFF;
  --text-main: #16212D;
  --text-sub: #5A6B7B;
  --border-line: #D0D9E0;
  --red-alert: #E74C3C;
  --gradient-main: linear-gradient(135deg, #2E8B57 0%, #1E3F66 100%);
  --heading-font: 'Montserrat', 'Impact', 'PingFang SC', sans-serif;
  --body-font: 'Roboto', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --accent-font: 'Barlow Condensed', 'DIN Condensed', 'PingFang SC', sans-serif;
  --header-h: 72px;
  --container-w: 1140px;
  --radius-cut: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-standard: 0.35s var(--ease-out);
  --font-display: 56px;
  --font-h1: 40px;
  --font-h2: 28px;
  --font-body: 16px;
  --font-caption: 14px;
  --font-index: 12px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body-font);
  font-size: var(--font-body);
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--light-gray);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(46, 139, 87, 0.2);
  color: var(--text-main);
}

/* ========== SKIP LINK & PROGRESS BAR ========== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--deep-blue);
  color: #fff;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: top 0.3s ease;
  font-size: 14px;
}

.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--orange);
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--orange));
  z-index: 1500;
  border-radius: 0 3px 3px 0;
  transition: width 0.1s linear;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  background-color: var(--deep-blue);
  box-shadow: 0 4px 20px rgba(30, 63, 102, 0.25);
}

.nav-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 24px;
  position: relative;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(30, 63, 102, 0.4);
  transition: color 0.3s ease;
  position: relative;
  z-index: 1101;
}

.site-header.is-scrolled .nav-brand {
  text-shadow: none;
}

.brand-mark {
  display: block;
  width: 14px;
  height: 14px;
  background: var(--orange);
  border-radius: 3px 3px 3px 8px;
  transform: skewX(-15deg);
  box-shadow: 3px 3px 0 rgba(255, 140, 0, 0.25);
  transition: background 0.3s ease;
}

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

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-links a[aria-current="page"] {
  color: var(--orange);
  font-weight: 700;
  background: transparent;
}

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: var(--green);
  border-radius: 3px 3px 0 0;
  transform: skewX(-20deg);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--orange);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px 8px 8px 2px;
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  flex-shrink: 0;
  margin-left: 8px;
}

.header-cta:hover {
  transform: translateY(-2px) skewX(-4deg);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.45);
  background: #ff9e2b;
}

.header-cta:active {
  transform: translateY(0) scale(0.96);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1101;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== MOBILE NAV ========== */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 15%;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: var(--deep-blue);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: calc(var(--header-h) + 30px) 36px 40px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25);
  }

  .nav-links[data-open="true"] {
    transform: translateX(0);
  }

  .nav-links a {
    display: block;
    font-size: 22px;
    font-family: var(--heading-font);
    font-weight: 700;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    border-left: 4px solid transparent;
    white-space: normal;
    width: 100%;
    border-radius: 0 8px 8px 0;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--green);
    color: #fff;
  }

  .nav-links a[aria-current="page"] {
    color: var(--orange);
    border-left-color: var(--orange);
    background: rgba(255, 140, 0, 0.08);
  }

  .nav-links a[aria-current="page"]::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-links {
    left: 0;
    clip-path: none;
    padding: calc(var(--header-h) + 20px) 24px 30px;
  }
}

/* ========== CONTAINER & LAYOUT BASE ========== */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  display: block;
}

#main-content:focus-visible {
  outline: none;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--heading-font);
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px 8px 8px 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(46, 139, 87, 0.3);
}

.btn-primary:hover {
  background: #226b42;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(46, 139, 87, 0.4);
}

.btn-accent {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 140, 0, 0.35);
}

.btn-accent:hover {
  background: #e67d00;
  transform: translateY(-2px) skewX(-3deg);
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}

.btn-outline:hover {
  background: rgba(46, 139, 87, 0.08);
  border-color: #226b42;
  color: #226b42;
}

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

.btn-deep:hover {
  background: #294d7a;
  transform: translateY(-2px);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sub);
  padding: 16px 0 8px;
}

.breadcrumb a {
  color: var(--green);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: #226b42;
}

.breadcrumb .crumb-sep {
  color: var(--border-line);
}

.breadcrumb .crumb-current {
  color: var(--text-sub);
  font-weight: 400;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--light-gray);
  margin-top: auto;
  position: relative;
}

.angled-divider {
  height: 10px;
  background: linear-gradient(100deg, var(--green) 0%, var(--orange) 70%, var(--deep-blue) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}

.footer-main {
  background: var(--deep-blue);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 48px;
  position: relative;
  overflow: hidden;
}

.footer-main::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 40px solid rgba(46, 139, 87, 0.08);
  border-radius: 50%;
  top: -130px;
  right: -80px;
  pointer-events: none;
}

.footer-main::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 30%;
  width: 200px;
  height: 200px;
  border: 30px solid rgba(255, 140, 0, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--heading-font);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.footer-brand::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border-radius: 3px 3px 3px 8px;
  transform: skewX(-15deg);
}

.footer-about-text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
}

.footer-trust {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  padding-left: 12px;
  border-left: 3px solid var(--green);
  line-height: 1.6;
}

.footer-title {
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-right: 24px;
}

.footer-title::after {
  content: '';
  position: absolute;
  right: 0;
  top: 4px;
  width: 14px;
  height: 2px;
  background: var(--orange);
  transform: skewX(-30deg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.25s ease, padding-left 0.25s ease;
  padding: 2px 0;
  display: inline-block;
  position: relative;
}

.footer-links a:hover {
  color: var(--orange);
  padding-left: 8px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.footer-contact-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--green);
  transform: skewX(-30deg);
}

.footer-bottom {
  background: var(--light-gray);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-sub);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-legal-links a {
  color: var(--text-sub);
  font-weight: 500;
}

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

.legal-sep {
  color: var(--border-line);
}

/* ========== REVEAL ANIMATION ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px) skewY(0.3deg);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) skewY(0);
}

/* ========== SCORE TAG ========== */
.score-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--accent-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--green);
  background: rgba(46, 139, 87, 0.1);
  border: 1px solid rgba(46, 139, 87, 0.25);
  border-radius: 6px;
  padding: 4px 12px;
  line-height: 1.4;
  transform: skewX(-6deg);
}

.score-tag::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  transform: rotate(45deg);
}

.score-tag--light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ========== VISUALLY HIDDEN ========== */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========== RESPONSIVE FOOTER ========== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-main {
    padding: 48px 0 36px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
