/* ========== 1. Variables ========== */
:root {
  --brand-deep-green: #0B3D2E;
  --brand-gold: #C9A227;
  --brand-ice-blue: #A8DADC;
  --brand-warm-orange: #F4A261;
  --text-primary: #1A1F1C;
  --text-secondary: #5A6670;
  --surface-white: #FFFFFF;
  --surface-light-green: #E7F0EB;
  --surface-light-ice: #EDF7F8;
  --border-muted: #C5D1D0;
  --dark-text-on-gold: #3D2C00;
  --radius-twist: 24px 8px 24px 8px;
  --container-width: 1200px;
  --font-title: 'Noto Sans SC', 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-num: 'Roboto Condensed', 'DIN Alternate', sans-serif;
}

/* ========== 2. Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: #F3F6F4;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--brand-gold);
  outline-offset: 3px;
}

#main-content {
  flex: 1 0 auto;
  width: 100%;
}

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

/* ========== 3. Layout Utilities ========== */
.container {
  width: min(100% - 3rem, var(--container-width));
  margin-inline: auto;
}

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 32px;
}

.section-kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* ========== 4. Breadcrumbs ========== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumbs a {
  font-weight: 500;
  color: var(--brand-deep-green);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--brand-gold);
}

.breadcrumbs-sep {
  color: var(--border-muted);
}

.breadcrumbs-current {
  color: var(--text-secondary);
}

/* ========== 5. Buttons & Links ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-gold {
  background: linear-gradient(135deg, #E0BE3F 0%, var(--brand-gold) 55%, #AA881E 100%);
  color: var(--dark-text-on-gold);
  border-color: rgba(61, 44, 0, 0.18);
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.35);
}

.btn-gold:hover {
  box-shadow: 0 7px 22px rgba(201, 162, 39, 0.5);
}

.btn-ghost {
  background: rgba(168, 218, 220, 0.06);
  border-color: rgba(168, 218, 220, 0.55);
  color: var(--brand-ice-blue);
}

.btn-ghost:hover {
  background: rgba(168, 218, 220, 0.14);
  border-color: var(--brand-ice-blue);
  color: #FFFFFF;
}

.btn-dark {
  background: var(--brand-deep-green);
  color: #FFFFFF;
}

.btn-dark:hover {
  box-shadow: 0 6px 18px rgba(11, 61, 46, 0.35);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--brand-deep-green);
  transition: color 0.2s ease;
}

.link-arrow::after {
  content: "→";
  margin-left: 6px;
  font-size: 18px;
  line-height: 1;
  transition: margin-left 0.2s ease;
}

.link-arrow:hover {
  color: var(--brand-gold);
}

.link-arrow:hover::after {
  margin-left: 10px;
}

/* ========== 6. Tags & Chips ========== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  background: var(--surface-light-ice);
  color: var(--brand-deep-green);
  white-space: nowrap;
}

.tag-gold {
  background: var(--brand-gold);
  color: var(--dark-text-on-gold);
  font-weight: 700;
}

.tag-ice {
  background: var(--brand-ice-blue);
  color: var(--brand-deep-green);
  font-weight: 600;
}

.tag-orange {
  background: var(--brand-warm-orange);
  color: var(--dark-text-on-gold);
  font-weight: 600;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border-muted);
  background: var(--surface-white);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.chip:hover {
  border-color: var(--brand-deep-green);
  transform: translateY(-1px);
}

.chip[aria-pressed="true"] {
  background: var(--brand-deep-green);
  border-color: var(--brand-deep-green);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(11, 61, 46, 0.28);
}

.chip:active {
  transform: scale(0.95);
}

/* ========== 7. Cards & Image Frames ========== */
.panel-card {
  background: var(--surface-white);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-twist);
  padding: 26px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.panel-card:hover {
  box-shadow: 0 10px 30px rgba(11, 61, 46, 0.08);
  transform: translateY(-3px);
}

.panel-card--ice {
  background: var(--surface-light-ice);
  border-color: rgba(168, 218, 220, 0.55);
}

.panel-card--green {
  background: var(--surface-light-green);
  border-color: rgba(11, 61, 46, 0.15);
}

.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-twist);
  background: var(--surface-light-ice);
  border: 1px solid rgba(168, 218, 220, 0.5);
}

.image-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.image-frame::after {
  content: none;
}

.image-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame--wide::before {
  padding-top: 42.86%;
}

.image-frame--tall::before {
  padding-top: 133.33%;
}

.image-frame--grid::before {
  padding-top: 100%;
}

.image-frame--marker::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, transparent 50%, rgba(201, 162, 39, 0.55) 50%);
}

/* ========== 8. Grids ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ========== 9. Header ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-warm-orange));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
  z-index: 999;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1002;
  padding: 10px 20px;
  background: var(--brand-gold);
  color: var(--dark-text-on-gold);
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 12px;
}

.site-header {
  position: relative;
  z-index: 100;
  background: var(--brand-deep-green);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0 30%, rgba(168, 218, 220, 0.1) 30% 36%, transparent 36% 62%, rgba(168, 218, 220, 0.07) 62% 68%, transparent 68%),
    linear-gradient(105deg, transparent 0 70%, rgba(201, 162, 39, 0.08) 70% 76%, transparent 76%);
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(-20deg,
    var(--brand-gold) 0 12px,
    transparent 12px 26px,
    rgba(168, 218, 220, 0.45) 26px 40px,
    transparent 40px 56px);
  opacity: 0.65;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  width: min(100% - 3rem, 1280px);
  margin-inline: auto;
  min-height: 76px;
  padding: 14px 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
  white-space: nowrap;
}

.brand-logo {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-logo::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}

.brand-sub {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--brand-ice-blue);
}

.site-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 9px 15px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(168, 218, 220, 0.14);
}

.nav-link[aria-current="page"] {
  color: var(--dark-text-on-gold);
  font-weight: 700;
  background: linear-gradient(135deg, #E1C04A, var(--brand-gold));
  box-shadow: 0 3px 10px rgba(201, 162, 39, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(168, 218, 220, 0.28);
  border-radius: 14px;
  background: rgba(168, 218, 220, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(168, 218, 220, 0.16);
  border-color: rgba(168, 218, 220, 0.45);
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #FFFFFF;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

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

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

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

.nav-cta {
  display: none;
}

/* ========== 10. Footer ========== */
.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--brand-deep-green);
  color: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-20deg, rgba(168, 218, 220, 0.05) 0 18px, transparent 18px 48px);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(-20deg,
    var(--brand-gold) 0 12px,
    transparent 12px 26px,
    rgba(168, 218, 220, 0.5) 26px 40px,
    transparent 40px 56px);
  opacity: 0.6;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, var(--container-width));
  margin-inline: auto;
  padding: 64px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-block {
  min-width: 0;
}

.footer-brand {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-brand-sub {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--brand-gold);
}

.footer-about {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34ch;
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-gold);
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(168, 218, 220, 0.2);
}

.footer-nav-list li a {
  display: inline-block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-list li a:hover {
  color: var(--brand-ice-blue);
  transform: translateX(4px);
}

.footer-contact-list li {
  position: relative;
  padding: 5px 0 5px 22px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.footer-contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--brand-gold);
  border-radius: 2px;
  transform: rotate(45deg);
}

.footer-contact-list li.footer-contact-cta {
  padding-left: 0;
}

.footer-contact-list li.footer-contact-cta::before {
  display: none;
}

.footer-contact-cta {
  margin-top: 10px;
}

.footer-contact-cta .btn {
  padding: 8px 20px;
  font-size: 14px;
}

.footer-trust {
  margin-bottom: 36px;
  padding: 18px 24px;
  border: 1px solid rgba(168, 218, 220, 0.22);
  border-radius: var(--radius-twist);
  background: rgba(168, 218, 220, 0.06);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.76);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(168, 218, 220, 0.16);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-copy {
  font-size: 14px;
}

[data-year] {
  font-family: var(--font-num);
  font-weight: 700;
  color: var(--brand-ice-blue);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-left: auto;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--brand-gold);
}

.footer-icp {
  margin-left: auto;
}

/* ========== 11. Reveal ========== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-reveal][data-reveal-visible] {
  opacity: 1;
  transform: none;
}

/* ========== 12. Responsive ========== */
@media (max-width: 1080px) and (min-width: 961px) {
  .header-inner {
    gap: 16px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 14px;
  }

  .header-cta {
    padding: 9px 18px;
    font-size: 14px;
  }
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand-lockup {
    grid-column: 1;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    padding: 12px 4px 8px;
    margin-top: 4px;
    border-top: 1px solid rgba(168, 218, 220, 0.14);
  }

  .site-nav[data-open] {
    display: block;
    animation: navDrawerIn 0.28s ease both;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 14px 18px;
    font-size: 16px;
  }

  .nav-cta {
    display: inline-flex;
    margin: 8px 18px 14px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@keyframes navDrawerIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .section {
    padding: 48px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 2rem, var(--container-width));
  }

  .header-inner {
    width: min(100% - 2rem, 1280px);
    min-height: 64px;
    padding: 10px 0;
  }

  .footer-inner {
    width: min(100% - 2rem, var(--container-width));
    padding: 48px 0 28px;
  }

  .brand-logo {
    font-size: 22px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .section {
    padding: 40px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-legal {
    margin-left: 0;
  }

  .footer-icp {
    margin-left: 0;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* ========== 13. 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;
  }

  .site-nav[data-open] {
    animation: none;
  }

  .js [data-reveal],
  .js [data-reveal][data-reveal-visible] {
    opacity: 1 !important;
    transform: none !important;
  }

  [data-scroll-progress] {
    transition: none;
  }
}
