/* === Wisdom Treasure — Main Stylesheet === */
/* Brand: 陕西巨知宝泽网络科技有限公司 */
/* Theme: Wisdom, treasure, knowledge gems — scholarly, valuable, illuminated */

:root {
  --sapphire: #1B2A4A;
  --sapphire-light: #243660;
  --sapphire-dark: #111E38;
  --gold: #D4A843;
  --gold-light: #E8C86A;
  --gold-dark: #B8922E;
  --teal: #2D8F8F;
  --teal-light: #3DB5B5;
  --teal-dark: #1F6B6B;
  --ivory: #F8F4EC;
  --white: #FFFFFF;
  --charcoal: #2D3748;
  --charcoal-light: #4A5568;
  --font-body: 'Georgia', 'Noto Serif SC', 'Source Han Serif SC', 'STSong', 'SimSun', serif;
  --font-heading: 'Palatino', 'Book Antiqua', 'Noto Serif SC', 'Source Han Serif SC', serif;
  --font-mono: 'Courier New', 'Noto Sans SC', monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 24px rgba(27, 42, 74, 0.12);
  --shadow-elevated: 0 12px 40px rgba(27, 42, 74, 0.18);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover,
a:focus-visible {
  color: var(--gold-dark);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--sapphire);
  line-height: 1.3;
}

/* === SVG Favicon (inline reference) === */
/* Gem/diamond favicon rendered via inline SVG in HTML head */

/* === Skip Link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  background: var(--sapphire);
  color: var(--white);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* === Top Bar === */
.top-bar {
  background: var(--sapphire-dark);
  color: var(--ivory);
  font-size: 0.8rem;
  padding: 6px 0;
  letter-spacing: 0.02em;
}

.top-bar__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar__bilingual {
  font-family: var(--font-heading);
  color: var(--gold-light);
}

.top-bar__contact a {
  color: var(--ivory);
  margin-left: 16px;
  font-size: 0.8rem;
}

.top-bar__contact a:hover {
  color: var(--gold-light);
}

/* === Site Header === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(27, 42, 74, 0.06);
}

.site-header__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo__gem {
  position: relative;
  width: 42px;
  height: 42px;
}

.logo__gem svg {
  width: 100%;
  height: 100%;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--sapphire);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.logo__tagline {
  font-size: 0.7rem;
  color: var(--charcoal-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Navigation */
.nav__list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav__link {
  display: block;
  padding: 10px 18px;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), color var(--transition-base);
}

.nav__link:hover,
.nav__link:focus-visible {
  background: var(--ivory);
  color: var(--teal);
}

.nav__link--cta {
  background: var(--gold);
  color: var(--sapphire-dark);
  font-weight: 700;
  margin-left: 8px;
  border-radius: var(--radius-md);
  padding: 10px 22px;
}

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  background: var(--gold-dark);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger__bar {
  width: 100%;
  height: 2px;
  background: var(--sapphire);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* === Hero — Treasure Chest === */
.hero {
  position: relative;
  background: var(--sapphire);
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 30%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px, 90px 90px, 50px 50px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 80px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
  padding-left: 40px;
}

.hero__kicker::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero__title-accent {
  color: var(--gold);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(248, 244, 236, 0.8);
  margin-bottom: 36px;
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  text-align: center;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn--gold {
  background: var(--gold);
  color: var(--sapphire-dark);
}

.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn--teal {
  background: var(--teal);
  color: var(--white);
}

.btn--teal:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 143, 143, 0.35);
}

.btn--sapphire {
  background: var(--sapphire);
  color: var(--white);
}

.btn--sapphire:hover {
  background: var(--sapphire-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.35);
}

/* Hero Visual — Treasure Chest */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chest-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-elevated);
  max-width: 420px;
  width: 100%;
}

.chest-card__lid {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 12px 12px 0 0;
}

.chest-card__gem-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}

.chest-card__gem-icon svg {
  width: 100%;
  height: 100%;
}

.chest-card__title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 8px;
}

.chest-card__desc {
  text-align: center;
  color: var(--charcoal-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.chest-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chest-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--charcoal);
  padding: 10px 14px;
  background: var(--ivory);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--teal);
}

.chest-card__features li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  flex-shrink: 0;
}

/* === Section Common === */
.section {
  padding: 100px 20px;
}

.section--ivory {
  background: var(--ivory);
}

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

.section--sapphire {
  background: var(--sapphire);
  color: var(--ivory);
}

.section__inner {
  max-width: 1300px;
  margin: 0 auto;
}

/* Book-spine vertical section labels */
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.section-label__spine {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--sapphire);
  padding: 20px 10px;
  border-radius: var(--radius-sm);
  color: var(--gold);
}

.section--ivory .section-label__spine {
  background: var(--sapphire);
  color: var(--gold);
}

.section-label__content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.section-label__content p {
  color: var(--charcoal-light);
  font-size: 1rem;
  max-width: 500px;
}

.section--sapphire .section-label__content h2 {
  color: var(--white);
}

.section--sapphire .section-label__content p {
  color: rgba(248, 244, 236, 0.7);
}

/* === Gem Decorative Elements === */
.gem-accent {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--teal);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  margin: 0 4px;
}

.gem-accent--gold {
  background: var(--gold);
}

.gem-accent--lg {
  width: 18px;
  height: 18px;
}

/* === About Section — Knowledge Panel Overlay Cards === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-stack {
  position: relative;
  min-height: 400px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(27, 42, 74, 0.06);
  position: relative;
}

.about-card--primary {
  z-index: 3;
}

.about-card--secondary {
  position: absolute;
  top: 40px;
  left: 40px;
  right: -20px;
  z-index: 2;
  background: var(--ivory);
  border-color: rgba(212, 168, 67, 0.2);
}

.about-card--tertiary {
  position: absolute;
  top: 80px;
  left: 80px;
  right: -40px;
  z-index: 1;
  background: var(--sapphire);
  border-color: rgba(45, 143, 143, 0.3);
}

.about-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: var(--gold);
}

.about-card--tertiary .about-card__icon {
  color: var(--gold-light);
}

.about-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.about-card--tertiary h3 {
  color: var(--white);
}

.about-card p {
  color: var(--charcoal-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-card--tertiary p {
  color: rgba(248, 244, 236, 0.75);
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--charcoal-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text__cn {
  font-family: var(--font-heading);
  color: var(--teal);
  font-style: italic;
  margin-top: 24px;
  padding: 20px;
  border-left: 4px solid var(--gold);
  background: var(--ivory);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* === Services — Horizontal Knowledge-Panel Scrolling === */
.knowledge-scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--ivory);
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.knowledge-scroll::-webkit-scrollbar {
  height: 6px;
}

.knowledge-scroll::-webkit-scrollbar-track {
  background: var(--ivory);
  border-radius: 3px;
}

.knowledge-scroll::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

.knowledge-cards {
  display: flex;
  gap: 24px;
  padding: 8px 4px 16px;
}

.knowledge-panel {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--teal);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.knowledge-panel:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

.knowledge-panel:nth-child(2) { border-top-color: var(--gold); }
.knowledge-panel:nth-child(3) { border-top-color: var(--sapphire); }
.knowledge-panel:nth-child(4) { border-top-color: var(--teal); }

.knowledge-panel__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.knowledge-panel__icon svg {
  width: 100%;
  height: 100%;
}

.knowledge-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.knowledge-panel p {
  color: var(--charcoal-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.knowledge-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--ivory);
  color: var(--teal-dark);
  font-family: var(--font-mono);
}

.tag--gold {
  background: rgba(212, 168, 67, 0.12);
  color: var(--gold-dark);
}

.tag--sapphire {
  background: rgba(27, 42, 74, 0.06);
  color: var(--sapphire);
}

/* === Counters — Illuminated Scroll === */
.counters-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  padding: 60px 20px;
  background: var(--sapphire);
  border-radius: var(--radius-lg);
  margin-top: -1px;
}

.counter-item {
  position: relative;
}

.counter-item__gem {
  width: 24px;
  height: 24px;
  margin: 0 auto 16px;
}

.counter-item__gem svg {
  width: 100%;
  height: 100%;
  color: var(--gold);
}

.counter-item__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1.1;
}

.counter-item__label {
  font-size: 0.9rem;
  color: rgba(248, 244, 236, 0.7);
  margin-top: 8px;
}

/* === Process — Gem-Faceted Steps === */
.process-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}

.process-step {
  flex: 0 0 280px;
  scroll-snap-align: start;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.process-step__gem {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--sapphire);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.process-step:nth-child(even) .process-step__gem {
  background: var(--teal);
}

.process-step__connector {
  display: none;
}

@media (min-width: 1024px) {
  .process-flow {
    justify-content: center;
    overflow-x: visible;
  }

  .process-step__connector {
    display: block;
    position: absolute;
    top: 30px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--gold);
  }

  .process-step:last-child .process-step__connector {
    display: none;
  }
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--charcoal-light);
}

/* === Contact Form === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--charcoal-light);
  margin-bottom: 32px;
}

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

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-detail__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--teal);
}

.contact-detail__label {
  font-size: 0.8rem;
  color: var(--charcoal-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.contact-detail__value {
  font-family: var(--font-heading);
  color: var(--sapphire);
  font-weight: 600;
}

.contact-detail__value a {
  color: var(--sapphire);
}

.contact-detail__value a:hover {
  color: var(--teal);
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(27, 42, 74, 0.06);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sapphire);
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(27, 42, 74, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--ivory);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 143, 143, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group .error-message {
  font-size: 0.8rem;
  color: #C53030;
  margin-top: 4px;
  display: none;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #C53030;
}

.form-group.error .error-message {
  display: block;
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 16px;
  display: none;
}

.form-status--success {
  display: block;
  background: rgba(45, 143, 143, 0.1);
  color: var(--teal-dark);
  border: 1px solid var(--teal);
}

.form-status--error {
  display: block;
  background: rgba(197, 48, 48, 0.08);
  color: #C53030;
  border: 1px solid #C53030;
}

/* === Footer === */
.site-footer {
  background: var(--sapphire-dark);
  color: rgba(248, 244, 236, 0.7);
  padding: 64px 20px 32px;
}

.site-footer__inner {
  max-width: 1300px;
  margin: 0 auto;
}

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

.footer-brand .logo__name {
  color: var(--white);
}

.footer-brand .logo__tagline {
  color: rgba(248, 244, 236, 0.5);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  color: rgba(248, 244, 236, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

.footer__links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(248, 244, 236, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(248, 244, 236, 0.5);
  margin-left: 16px;
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* === Legal Pages === */
.legal-page {
  padding: 80px 20px 100px;
  max-width: 860px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 8px;
}

.legal-page .effective-date {
  color: var(--charcoal-light);
  font-size: 1rem;
  margin-bottom: 40px;
  font-style: italic;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.legal-page p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 16px 24px;
}

.legal-page li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.legal-page strong {
  color: var(--sapphire);
}

/* === Scroll Animations === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll--fade-left {
  transform: translateX(-30px);
}

.animate-on-scroll--fade-left.is-visible {
  transform: translateX(0);
}

.animate-on-scroll--fade-right {
  transform: translateX(30px);
}

.animate-on-scroll--fade-right.is-visible {
  transform: translateX(0);
}

/* === Mobile Navigation === */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 32px 20px;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 999;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 4px;
  }

  .nav__link {
    padding: 14px 18px;
    font-size: 1.1rem;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
  }

  .top-bar__inner {
    flex-direction: column;
    text-align: center;
  }

  .top-bar__contact a {
    margin: 0 8px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 20px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__kicker {
    padding-left: 0;
  }

  .hero__kicker::before {
    display: none;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

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

  .about-stack {
    min-height: 0;
  }

  .about-card--secondary,
  .about-card--tertiary {
    display: none;
  }

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

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

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

  .knowledge-panel {
    flex: 0 0 280px;
  }
}

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

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

  .section {
    padding: 60px 16px;
  }
}
