/* ============================================================
   HHload — Cross-Border Medical Care & Shanghai Travel
   Light, airy, warm & professional. Teal + coral on soft ivory.
   ============================================================ */

:root {
  --bg: #fcfcf9;
  --bg-tint: #f4f9f7;
  --surface: #ffffff;
  --ink: #31454c;
  --ink-soft: #71828a;
  --teal: #63b5ae;
  --teal-dark: #3f918a;
  --teal-soft: #e6f4f1;
  --coral: #ffab8f;
  --coral-dark: #e07a5f;
  --gold: #f4c66f;
  --line: #ece9e2;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(49, 69, 76, .06);
  --shadow-lg: 0 20px 50px rgba(49, 69, 76, .09);
  --font: "Plus Jakarta Sans", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}

[dir="rtl"] { --font: "Plus Jakarta Sans", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.container-narrow { width: min(780px, 92%); margin: 0 auto; }
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 252, 249, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; border-radius: 11px; font-size: 1.05rem;
}
.logo-accent { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav > a { font-weight: 600; font-size: .95rem; color: var(--ink-soft); transition: color .2s; }
.nav > a:hover { color: var(--teal); }
.nav-tools { display: flex; align-items: center; gap: 12px; }

.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1.5px solid var(--line);
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: .9rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.lang-btn:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px; cursor: pointer;
  font-weight: 600; font-size: .92rem;
}
.lang-menu li:hover { background: var(--teal-soft); color: var(--teal-dark); }
.lang-menu li.active { background: var(--teal-soft); color: var(--teal-dark); }
.flag { font-size: 1.1rem; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: .98rem;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(135deg, #6cbdb6, #4d9c95); color: #fff; box-shadow: 0 8px 20px rgba(99, 181, 174, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(99, 181, 174, .36); }
.btn-ghost { background: var(--surface); color: var(--teal-dark); border: 1.5px solid var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: .88rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 171, 143, .16), transparent 60%),
    radial-gradient(800px 500px at 5% 110%, rgba(99, 181, 174, .16), transparent 60%),
    var(--bg);
  padding: 84px 0 0; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-bottom: 90px; }
.pill {
  display: inline-block; background: var(--surface); border: 1px solid var(--line);
  color: var(--teal-dark); font-weight: 700; font-size: .85rem;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.grad { background: linear-gradient(120deg, #58b0a8 25%, #ffa07e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sign {
  margin-top: 14px;
  font-size: .95rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal-dark);
  opacity: .85;
}
.lead { margin: 22px 0 30px; font-size: 1.13rem; color: var(--ink-soft); max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--teal-dark); letter-spacing: -.02em; }
.hero-stats span { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }

.hero-art { position: relative; min-height: 380px; }
.bubble {
  position: absolute; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%; font-size: 1.6rem;
  background: var(--surface); box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.b1 { top: 4%; left: 6%; animation-delay: 0s; }
.b2 { top: 0; right: 12%; animation-delay: .8s; }
.b3 { top: 40%; left: 0; animation-delay: 1.6s; }
.b4 { bottom: 34%; right: 2%; animation-delay: .4s; }
.b5 { bottom: 4%; left: 16%; animation-delay: 1.2s; }
.b6 { bottom: 8%; right: 28%; animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-card {
  position: absolute; top: 26%; left: 50%; transform: translateX(-50%);
  width: min(340px, 90%); background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-card-top { height: 64px; background: linear-gradient(120deg, #7fc6bf, #a8d8d0 55%, #ffc5ae); }
.hero-card-body { padding: 18px 20px; display: grid; gap: 12px; }
.hc-row { display: flex; align-items: center; gap: 12px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.hc-ic { display: grid; place-items: center; width: 36px; height: 36px; background: var(--teal-soft); border-radius: 10px; font-size: 1.05rem; }

.wave { line-height: 0; }
.wave svg { width: 100%; height: 90px; display: block; }

/* ---------- Section heads ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; color: var(--coral-dark); margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.015em; font-weight: 700; line-height: 1.25; }
.sec-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.04rem; }

/* ---------- Statement band ---------- */
.statement {
  padding: 72px 0 8px; text-align: center;
}
.statement-line {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 700; letter-spacing: -.015em; line-height: 1.25;
  color: var(--ink);
}
.statement-line em {
  font-style: italic; font-weight: 600;
  background: linear-gradient(120deg, #58b0a8 30%, #ffa07e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product-card {
  position: relative; display: block; padding: 40px 36px;
  background: var(--surface); border-radius: 24px; box-shadow: var(--shadow);
  border-top: 5px solid var(--teal); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.pc-tours { border-top-color: var(--coral); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pc-icon { font-size: 2.4rem; margin-bottom: 18px; }
.pc-tag { font-size: .74rem; font-weight: 800; letter-spacing: .12em; color: var(--teal); }
.pc-tours .pc-tag { color: var(--coral-dark); }
.product-card h3 { font-size: 1.5rem; margin: 8px 0 12px; letter-spacing: -.01em; }
.product-card p { color: var(--ink-soft); margin-bottom: 20px; }
.pc-link { font-weight: 700; color: var(--teal-dark); }
.pc-tours .pc-link { color: var(--coral-dark); }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat {
  background: var(--surface); padding: 30px 28px; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat-ic {
  display: grid; place-items: center; width: 52px; height: 52px;
  background: var(--teal-soft); border-radius: 14px; font-size: 1.5rem; margin-bottom: 16px;
}
.pc-tours ~ * .feat-ic, #tours .feat-ic { background: #ffe9e2; }
.feat h4 { font-size: 1.08rem; margin-bottom: 8px; letter-spacing: -.01em; }
.feat p { font-size: .93rem; color: var(--ink-soft); }

.note-card {
  margin-top: 40px; background: var(--surface); border-inline-start: 5px solid var(--gold);
  padding: 26px 30px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.note-card p { margin-top: 8px; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface); padding: 30px 28px; border-radius: var(--radius);
  box-shadow: var(--shadow); position: relative; transition: transform .25s;
}
.step:hover { transform: translateY(-4px); }
.step-n {
  display: inline-block; font-size: .85rem; font-weight: 800; color: var(--teal);
  background: var(--teal-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.step h4 { font-size: 1.08rem; margin-bottom: 8px; }
.step p { font-size: .93rem; color: var(--ink-soft); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; row-gap: 6px;
  background: var(--surface); padding: 26px; border-radius: var(--radius);
  box-shadow: var(--shadow); align-items: start;
}
.why-ic { display: grid; place-items: center; width: 52px; height: 52px; background: var(--teal-soft); border-radius: 50%; font-size: 1.4rem; grid-row: span 2; }
.why:nth-child(even) .why-ic { background: #ffe9e2; }
.why h4 { font-size: 1.05rem; align-self: end; }
.why p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi {
  background: var(--surface); padding: 30px 28px; border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px;
}
.testi blockquote { font-size: .97rem; color: var(--ink); flex: 1; }
.testi figcaption strong { display: block; font-size: .95rem; }
.testi figcaption span { font-size: .84rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq {
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
  padding: 0 24px; border: 1px solid transparent;
}
.faq[open] { border-color: var(--teal-soft); }
.faq summary {
  cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); font-weight: 400; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 20px; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-form {
  background: var(--surface); padding: 40px; border-radius: 24px;
  box-shadow: var(--shadow-lg); display: grid; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-weight: 700; font-size: .92rem; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font); font-size: .97rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 139, 141, .12);
}
.form-note { font-size: .82rem; color: var(--ink-soft); text-align: center; }
.contact-alt { display: flex; justify-content: center; gap: 36px; margin-top: 32px; flex-wrap: wrap; }
.contact-alt div { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.contact-alt strong { font-size: 1.2rem; }

/* ---------- Footer ---------- */
.footer { background: #e9f3ef; color: var(--ink); padding: 64px 0 36px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(49,69,76,.1); }
.footer .logo-text { color: var(--ink); }
.footer-slogan {
  margin-top: 16px; font-size: 1rem; font-weight: 600; font-style: italic;
  letter-spacing: .01em;
  background: linear-gradient(120deg, #58b0a8 25%, #e07a5f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  max-width: 380px;
}
.footer-tag { margin-top: 12px; font-size: .92rem; max-width: 380px; color: var(--ink-soft); }
.footer h5 { color: var(--ink); font-size: .95rem; margin-bottom: 14px; letter-spacing: .04em; }
.footer-grid > div > a { display: block; color: var(--ink-soft); font-size: .92rem; padding: 4px 0; transition: color .2s; }
.footer-grid > div > a:hover { color: var(--teal-dark); }
.footer-bottom { padding-top: 26px; display: grid; gap: 10px; }
.footer-bottom p { font-size: .84rem; color: #8aa09b; max-width: 820px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--teal-dark); color: #fff; font-weight: 600; font-size: .95rem;
  padding: 14px 26px; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; transition: all .35s; z-index: 200; pointer-events: none;
}.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RTL (Persian) ---------- */
[dir="rtl"] .hero-art .hero-card { transform: translateX(50%); }
/* mirror the language dropdown so it opens into the page, not off-screen */
[dir="rtl"] .lang-menu { right: auto; left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .product-grid, .steps, .why-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); padding: 20px 6%; gap: 14px;
    box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .3s;
  }
  .nav.open { transform: translateY(0); }
  .burger { display: flex; }
  .product-grid, .steps, .why-grid, .testi-grid, .feat-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .contact-form { padding: 26px; }
  /* keep the header tools on one line even with long RTL labels */
  .nav-tools { gap: 8px; }
  .user-btn { padding: 0 12px; font-size: .82rem; }
  .lang-btn { padding: 8px 10px; gap: 6px; }
}
