:root {
  --teal: #0f766e;
  --teal-dark: #115e59;
  --teal-soft: #e6f4f1;
  --orange: #f59e0b;
  --ink: #12212a;
  --muted: #667985;
  --line: #dce7e4;
  --white: #ffffff;
  --bg: #f8fbfa;
  --shadow: 0 18px 44px rgba(15, 76, 70, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Open Sans", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  padding: 0 6vw;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 231, 228, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo-image {
  position: relative;
  display: block;
  width: 205px;
  height: 58px;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-logo-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  max-width: none;
  transform: translate(-50%, -50%);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: #263b43;
  font-size: 14px;
}

.site-nav a {
  padding: 24px 0;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--teal); }

.account-actions {
  display: flex;
  gap: 10px;
}

.account-actions button,
.service-card a,
.packages button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--teal-dark);
  cursor: pointer;
}

.account-actions .filled {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 54px;
  align-items: center;
  padding: 88px 6vw 96px;
  background:
    radial-gradient(circle at 16% 18%, rgba(34, 197, 94, 0.13), transparent 26%),
    linear-gradient(135deg, #f5fbfa 0%, #ffffff 46%, #e8f5f2 100%);
}

.label {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(38px, 5.7vw, 66px);
  line-height: 1.08;
}
h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.18;
}
h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-lede {
  max-width: 610px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

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

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 0;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.78);
}

.hero-stats dt {
  color: var(--teal);
  font-size: 28px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.hero-image {
  position: relative;
  margin: 0;
}

.hero-image::before {
  position: absolute;
  inset: 24px -22px -24px 22px;
  z-index: 0;
  border-radius: 28px;
  background: var(--teal-soft);
  content: "";
}

.hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.service-overview,
.why,
.insurance-partners,
.detail-section,
.package-section,
.travel-section,
.healing-legal,
.testimonials,
.cta {
  padding: 86px 6vw;
}

.service-overview,
.insurance-partners,
.package-section,
.testimonials { background: var(--bg); }

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading p,
.detail-copy p,
.cta p { color: var(--muted); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.service-card {
  min-width: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18,33,42,0.06);
}

.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.service-card div { padding: 20px; }
.service-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--orange);
  font-weight: 800;
}
.service-card p { color: var(--muted); min-height: 78px; }
.service-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
}

.why-grid,
.travel-grid,
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.why-grid article,
.travel-grid article,
.quote-grid blockquote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.why-grid b,
.travel-grid b {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
}

.why-grid span,
.travel-grid span,
.quote-grid blockquote { color: var(--muted); }

.insurance-partners {
  overflow: hidden;
}

.partner-marquee {
  position: relative;
  margin: 18px -6vw 0;
  overflow: hidden;
}

.partner-marquee::before,
.partner-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 14vw;
  pointer-events: none;
  content: "";
}

.partner-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), rgba(248, 251, 250, 0));
}

.partner-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), rgba(248, 251, 250, 0));
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 4px 0;
  animation: partnerMarquee 34s linear infinite;
}

.partner-marquee.reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 40s;
}

.partner-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: grid;
  min-width: 210px;
  min-height: 78px;
  place-items: center;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #294047;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(18, 33, 42, 0.06);
  font-weight: 800;
  white-space: nowrap;
}

@keyframes partnerMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: center;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
  content: "✓";
}

.price-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--teal-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.price-card small,
.price-card span {
  display: block;
  color: rgba(255,255,255,0.72);
}

.price-card strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 44px;
}

.price-card .primary-btn {
  width: 100%;
  margin-top: 22px;
  border-color: var(--white);
  background: var(--white);
  color: var(--teal-dark);
}

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

.packages article {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.packages .featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.packages em {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-size: 12px;
  font-style: normal;
}

.packages span,
.packages strong {
  display: block;
}

.packages span {
  color: var(--teal-dark);
  font-weight: 800;
}

.packages strong {
  margin: 16px 0;
  font-size: 32px;
}

.packages p { color: var(--muted); }
.packages button {
  width: 100%;
  margin-top: 14px;
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

.travel-section {
  color: var(--white);
  background:
    linear-gradient(0deg, rgba(10, 69, 65, 0.82), rgba(10, 69, 65, 0.82)),
    url("./images/tourism-hero.webp") center / cover;
}

.section-heading.light p,
.section-heading.light .label { color: rgba(255,255,255,0.82); }
.travel-grid article {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}
.travel-grid b { color: var(--white); }
.travel-grid span { color: rgba(255,255,255,0.78); }

.process-line {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.process-line span {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  text-align: center;
  font-size: 13px;
}

.healing-legal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.healing-legal article {
  min-height: 380px;
  padding: 36px;
  border-radius: 18px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

.healing-legal article::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 44, 44, 0.82), rgba(7,44,44,0.34));
  content: "";
}

.healing-legal article > * {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

#healing { background-image: url("./images/healing-hero.webp"); }
#legal { background-image: url("./images/legal-support-header-bg.webp"); }
.healing-legal p { color: rgba(255,255,255,0.8); }
.healing-legal .label { color: #a7f3d0; }

.mini-packages,
.audience {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.mini-packages span,
.audience span {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.quote-grid blockquote {
  font-size: 17px;
}

.quote-grid cite {
  display: block;
  margin-top: 16px;
  color: var(--teal);
  font-style: normal;
  font-weight: 800;
}

.cta {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label,
.dialog-panel label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.dialog-panel input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-form textarea { resize: vertical; }
.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 40px 6vw;
  color: rgba(255,255,255,0.75);
  background: #0d2828;
}

.site-footer p { color: rgba(255,255,255,0.7); }
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.copyright { grid-column: 1 / -1; margin-bottom: 0; }

.dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(5, 18, 21, 0.55);
}

.dialog.open { display: grid; }
.dialog-panel {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(100%, 420px);
  padding: 30px;
  border-radius: 16px;
  background: var(--white);
}
.dialog-panel p { color: var(--muted); }
.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
    padding: 0 22px;
  }
  .menu-button {
    display: block;
    justify-self: end;
  }
  .site-nav,
  .account-actions {
    grid-column: 1 / -1;
    display: none;
  }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
  }
  .site-nav.open a { padding: 10px 0; }
  .account-actions.open {
    display: flex;
    padding-bottom: 16px;
  }
  .hero,
  .detail-section,
  .cta { grid-template-columns: 1fr; }
  .why-grid,
  .travel-grid,
  .packages,
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .hero,
  .service-overview,
  .why,
  .insurance-partners,
  .detail-section,
  .package-section,
  .travel-section,
  .healing-legal,
  .testimonials,
  .cta { padding: 58px 22px; }
  h1 { font-size: 38px; }
  .hero-stats,
  .why-grid,
  .travel-grid,
  .packages,
  .quote-grid,
  .healing-legal,
  .site-footer { grid-template-columns: 1fr; }
  .process-line { grid-template-columns: repeat(2, 1fr); }
  .site-footer nav { flex-direction: column; }
  .partner-marquee {
    margin-right: -22px;
    margin-left: -22px;
  }
  .marquee-track span {
    min-width: 180px;
    min-height: 68px;
    font-size: 14px;
  }
}
