/* ==========================================================================
   Mediru — single-page site styles
   No external fonts or assets. All icons are inline SVG in index.html.
   ========================================================================== */

:root {
  --sand: #f7f4ee;
  --cream: #fbf9f5;
  --white: #ffffff;
  --ink: #14211f;
  --muted: #5b6a66;
  --line: rgba(20, 33, 31, 0.1);
  --deep: #0d3b34;
  --deep-2: #0a2b27;
  --teal: #14746a;
  --mint: #e4f1ec;
  --gold: #d8b26a;

  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(13, 59, 52, 0.05), 0 10px 26px -14px rgba(13, 59, 52, 0.18);
  --shadow-lg: 0 34px 70px -34px rgba(13, 59, 52, 0.45);

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--deep);
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 4rem);
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
}

a {
  color: var(--deep);
}

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

:focus-visible {
  outline: 3px solid rgba(20, 116, 106, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--deep);
  color: var(--cream);
  text-decoration: none;
  transition: top 0.15s ease;
}

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

/* Layout ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding-block: clamp(56px, 8vw, 104px);
  scroll-margin-top: 84px;
}

.section--white {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.eyebrow--light {
  color: #a9d3c7;
}

.lead {
  margin-top: 20px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  color: var(--muted);
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
  background: var(--deep);
  color: var(--cream);
}

.btn--primary:hover {
  background: #155349;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -16px rgba(13, 59, 52, 0.8);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(13, 59, 52, 0.24);
  color: var(--deep);
}

.btn--ghost:hover {
  border-color: var(--deep);
  background: rgba(13, 59, 52, 0.05);
}

.btn--small {
  padding: 10px 18px;
  font-size: 0.86rem;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  color: var(--deep);
  text-decoration: none;
}

.brand__mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: none;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand__dot {
  color: #829b56;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 108px);
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(111, 191, 174, 0.22), transparent 60%),
    radial-gradient(700px 420px at -6% 108%, rgba(216, 178, 106, 0.16), transparent 62%),
    var(--cream);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero__copy h1 {
  max-width: 15ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 44px);
  margin: 42px 0 0;
  padding-top: 24px;
  border-top: 1px dashed rgba(20, 116, 106, 0.28);
}

.stats__item dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats__item dd {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--deep);
}

/* Hero visual ------------------------------------------------------------ */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.hero__orb {
  position: absolute;
  width: min(420px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #7cc7b6 0%, #14746a 48%, #0c3730 100%);
  box-shadow:
    inset 0 -30px 60px rgba(0, 0, 0, 0.25),
    0 40px 80px -40px rgba(13, 59, 52, 0.7);
}

.hero__ring {
  position: absolute;
  width: min(474px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(20, 116, 106, 0.35);
}

.plan-card {
  position: relative;
  z-index: 2;
  width: min(360px, 100%);
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.6deg);
}

.plan-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.plan-card__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--mint);
  color: var(--deep);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.plan-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.plan-card__sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.plan {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.plan li {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
}

.plan li.is-active {
  background: var(--mint);
}

.plan__dot {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid #cfd9d5;
  border-radius: 50%;
  font-size: 10px;
  color: #fff;
}

.plan li.is-done .plan__dot {
  background: var(--teal);
  border-color: var(--teal);
}

.plan li.is-done .plan__dot::after {
  content: "✓";
}

.plan li.is-active .plan__dot {
  position: relative;
  background: var(--white);
  border-color: var(--teal);
  animation: pulse 2.4s ease-in-out infinite;
}

.plan li.is-active .plan__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.plan__text {
  font-size: 0.85rem;
  color: var(--ink);
}

.plan li:not(.is-done):not(.is-active) .plan__text {
  color: var(--muted);
}

.plan__tag {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.plan-card__foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}

.chip {
  position: absolute;
  z-index: 3;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--deep);
  white-space: nowrap;
}

.chip::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: 1px;
}

.chip--tl {
  top: 3%;
  left: -14px;
  transform: rotate(-3deg);
}

.chip--br {
  right: -6px;
  bottom: 8%;
  transform: rotate(2deg);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(20, 116, 106, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(20, 116, 106, 0);
  }
}

/* Services --------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 20px;
}

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

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 116, 106, 0.25);
  box-shadow: var(--shadow-sm);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--teal);
}

.icon {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 20px 0 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Steps ------------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(32px, 4vw, 52px);
}

.step {
  position: relative;
  padding-right: 8px;
}

.step::after {
  content: "";
  position: absolute;
  top: 22px;
  right: -18px;
  width: calc(100% - 40px);
  border-top: 1px dashed rgba(20, 116, 106, 0.35);
}

.step:last-child::after {
  display: none;
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(20, 116, 106, 0.32);
  border-radius: 50%;
  background: var(--white);
  color: var(--teal);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.step h3 {
  margin: 20px 0 6px;
  font-size: 1.1rem;
}

.step p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Why China -------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.reasons {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.reasons li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
}

.reasons__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
}

.reasons h3 {
  margin-bottom: 4px;
  font-size: 1.06rem;
}

.reasons p {
  color: var(--muted);
  font-size: 0.94rem;
}

.included {
  padding: clamp(26px, 3vw, 38px);
  border-radius: 22px;
  background: linear-gradient(150deg, #11463e, var(--deep-2));
  color: #dcebe6;
  box-shadow: var(--shadow-lg);
}

.included h3 {
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.35rem;
}

.checklist {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  color: #cfe2dc;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 700;
}

.included .btn--primary {
  background: var(--cream);
  color: var(--deep);
}

.included .btn--primary:hover {
  background: #fff;
}

/* Destinations ----------------------------------------------------------- */
.grid--cities {
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.city {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.city:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.city__pin {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.city h3 {
  margin: 14px 0 6px;
  font-size: 1.12rem;
}

.city p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* FAQ -------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 12px;
  max-width: 780px;
  margin-inline: auto;
}

.faq__item {
  padding: 4px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--teal);
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  margin: 0 0 18px;
  padding-right: 28px;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Contact ---------------------------------------------------------------- */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4.5vw, 60px);
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: 26px;
  background: linear-gradient(145deg, #12493f, var(--deep-2) 62%, #0c3730);
  color: #dcebe6;
  box-shadow: var(--shadow-lg);
}

.contact-card h2 {
  max-width: 18ch;
  color: var(--white);
}

.contact-card .lead {
  color: rgba(220, 235, 230, 0.75);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.contact-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-list__label {
  width: 74px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9dc7bb;
}

.contact-list a {
  color: var(--white);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-list a:hover {
  border-bottom-color: var(--white);
}

/* Form ------------------------------------------------------------------- */
.form {
  padding: clamp(20px, 3vw, 32px);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #e2ded6;
  border-radius: 10px;
  background: #faf8f4;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a4aca8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(20, 116, 106, 0.15);
}

.form__note {
  margin-top: 12px;
  font-size: 0.74rem;
  text-align: center;
  color: var(--muted);
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
  padding: clamp(40px, 6vw, 64px) 0 28px;
  background: var(--deep-2);
  color: #c3d8d2;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand--footer {
  margin-right: 0;
  color: var(--cream);
}

.brand--footer .brand__name {
  color: var(--cream);
}

.footer__brand p {
  margin-top: 12px;
  max-width: 32ch;
  font-size: 0.86rem;
  color: #8fb0a8;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-content: flex-start;
}

.footer__nav a {
  color: #c3d8d2;
  font-size: 0.88rem;
  text-decoration: none;
}

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

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
}

.footer__legal p {
  max-width: 68ch;
  font-size: 0.76rem;
  line-height: 1.6;
  color: #7f9e97;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1040px) {
  .grid--cities {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .hero__copy h1 {
    max-width: 18ch;
  }

  .hero__visual {
    min-height: 420px;
    margin-top: 12px;
  }

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

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .step::after {
    display: none;
  }

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

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

@media (max-width: 760px) {
  .header__inner {
    flex-wrap: wrap;
    padding-block: 12px;
    gap: 12px 20px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    font-size: 0.86rem;
    white-space: nowrap;
  }

  .chip {
    display: none;
  }

  .hero__visual {
    min-height: 380px;
  }

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

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

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

  .footer__inner {
    flex-direction: column;
  }
}

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

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

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .stats {
    gap: 24px;
  }

  .plan-card {
    transform: none;
  }

  .contact-list__label {
    width: 100%;
  }

  .faq__item {
    padding-inline: 16px;
  }
}

@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;
  }
}
