/* ============================================================
   Yangtze Delta Tours — design system
   ============================================================ */
:root {
  --bone: #FAF8F5;
  --paper: #F1EDE7;
  --ink: #1F2A24;
  --sage: #7C9082;
  --clay: #B5654A;
  --stone: #6E6A63;
  --line: rgba(31, 42, 36, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(31, 42, 36, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(48px, 7vw, 92px); }
h2 { font-size: clamp(36px, 4.5vw, 64px); }
h3 { font-size: clamp(24px, 2.4vw, 34px); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.wrap--narrow { width: min(820px, calc(100% - 48px)); }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--paper { background: var(--paper); }
.eyebrow { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-bottom: 20px; }
.eyebrow--light { color: rgba(255,255,255,0.75); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--stone); line-height: 1.8; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 76px); }
.section-head__sub { color: var(--stone); font-size: 17px; margin-top: 18px; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border: 1px solid transparent; border-radius: 2px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: all .25s ease; }
.btn--sm { padding: 10px 18px; font-size: 11px; }
.btn--block { width: 100%; }
.btn--solid { background: var(--clay); color: #fff; }
.btn--solid:hover { background: #9c523b; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); }
.text-link { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--clay); border-bottom: 1px solid currentColor; padding-bottom: 3px; display: inline-block; white-space: nowrap; }
.text-link:hover { opacity: .7; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(250,248,245,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { width: min(1320px, calc(100% - 48px)); margin-inline: auto; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; }
.brand__sub { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 13px; color: var(--stone); transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--clay); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 2px; padding: 5px 8px; }
.lang__icon { color: var(--sage); font-size: 14px; }
.lang select { border: 0; background: transparent; font-size: 12px; cursor: pointer; max-width: 96px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: transform .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; padding: 96px 0 130px; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__poster, .hero__video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,29,24,.78) 0%, rgba(20,29,24,.5) 52%, rgba(20,29,24,.25) 100%); }
.hero__content { width: min(1180px, calc(100% - 48px)); margin-inline: auto; color: #fff; max-width: 900px; }
.hero h1 { margin-bottom: 26px; text-wrap: balance; }
.hero__sub { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.75; max-width: 600px; color: rgba(255,255,255,.86); }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.hero__trust { position: absolute; bottom: 52px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 48px)); display: flex; gap: 28px; flex-wrap: wrap; color: rgba(255,255,255,.82); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border-top: 1px solid rgba(255,255,255,.25); padding-top: 18px; }
.hero__trust span::before { content: "·"; margin-inline-end: 10px; color: rgba(255,255,255,.5); }
.hero__scroll { position: absolute; right: 32px; bottom: 52px; color: rgba(255,255,255,.8); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.hero__scroll i { font-style: normal; font-size: 16px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-grid__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-grid__text h2 { margin-bottom: 24px; }
.stats { display: flex; gap: 44px; margin-top: 40px; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-family: var(--serif); font-size: 42px; font-weight: 500; color: var(--clay); line-height: 1; }
.stats span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-top: 8px; }

/* ---------- Media slot placeholders ---------- */
.media-slot { position: relative; overflow: hidden; }
.media-slot--empty { display: flex; align-items: center; justify-content: center; background: var(--paper); border: 1px dashed rgba(31,42,36,.22); min-height: 240px; }
.media-slot--empty::before { content: "+"; font-family: var(--serif); font-size: 46px; color: rgba(31,42,36,.22); position: absolute; top: 42%; }
.media-slot__label { position: absolute; bottom: 22px; font-size: 10px; letter-spacing: .1em; color: rgba(31,42,36,.45); text-align: center; padding: 0 12px; }
[data-ratio="4:5"] { aspect-ratio: 4/5; }
[data-ratio="3:2"] { aspect-ratio: 3/2; }
[data-ratio="16:9"] { aspect-ratio: 16/9; }

/* ---------- Services ---------- */
.service-rows { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 60px 1fr auto; gap: 28px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--line); }
.service-row__num { font-family: var(--serif); font-size: 20px; color: var(--sage); }
.service-row h3 { margin-bottom: 10px; }
.service-row p { color: var(--stone); max-width: 720px; margin: 0; }

/* ---------- Experiences ---------- */
.experience-list { display: grid; gap: clamp(56px, 8vw, 110px); }
.exp-card { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.exp-card--reverse .exp-card__media { order: 2; }
.exp-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.exp-card__media:hover img { transform: scale(1.03); }
.exp-card__tag { position: absolute; top: 18px; left: 18px; background: var(--bone); padding: 6px 12px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.exp-card__index { font-family: var(--serif); font-size: 22px; color: var(--sage); display: block; margin-bottom: 12px; }
.exp-card__body h3 { margin-bottom: 18px; }
.exp-card__body > p:not(.exp-card__meta) { color: var(--stone); font-size: 17px; }
.exp-card__meta { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin: 22px 0 26px; }

/* ---------- Media / video ---------- */
.feature-video { position: relative; overflow: hidden; cursor: pointer; margin-bottom: 22px; }
.feature-video img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); }
.feature-video__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.play-btn { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.1); color: #fff; font-size: 20px; cursor: pointer; transition: all .25s; padding-left: 4px; }
.play-btn:hover { background: var(--clay); border-color: var(--clay); transform: scale(1.06); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-thumb { position: relative; padding: 0; border: 0; background: var(--paper); cursor: pointer; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); transition: transform .5s; }
.video-thumb:hover img { transform: scale(1.04); }
.video-thumb__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { padding: 0; border: 0; background: var(--bone); cursor: pointer; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item--wide { grid-column: span 2; }

/* ---------- Add tile ---------- */
.add-tile { width: 100%; margin-top: 26px; min-height: 92px; border: 1px dashed rgba(31,42,36,.25); background: transparent; color: var(--stone); display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; transition: all .25s; }
.add-tile span:first-child { font-family: var(--serif); font-size: 26px; line-height: 1; }
.add-tile:hover { border-color: var(--clay); color: var(--clay); background: rgba(181,101,74,.04); }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { background: var(--bone); border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; }
.review-card__quote { font-family: var(--serif); font-size: 20px; line-height: 1.45; margin-bottom: 28px; }
.review-card__foot { display: flex; flex-direction: column; font-size: 11px; color: var(--stone); letter-spacing: .04em; }
.review-card__foot strong { font-size: 13px; color: var(--ink); }
.review-card__foot em { font-style: normal; color: var(--sage); text-transform: uppercase; letter-spacing: .1em; margin-top: 12px; font-size: 9px; }
.review-card--blank { border-style: dashed; align-items: center; justify-content: center; text-align: center; gap: 14px; color: rgba(31,42,36,.4); font-size: 11px; letter-spacing: .1em; }

/* ---------- Packages ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: var(--bone); border: 1px solid var(--line); padding: 34px 24px; display: flex; flex-direction: column; }
.price-card--featured { border: 1px solid var(--sage); box-shadow: var(--shadow); }
.price-card h3 { font-size: 30px; }
.price-card__desc { color: var(--stone); font-size: 13px; min-height: 150px; }
.price-card__price { font-family: var(--serif); font-size: 21px; color: var(--clay); margin: 18px 0 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 30px; border-top: 1px solid var(--line); }
.price-card li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--stone); }
.price-card li:first-child { color: var(--ink); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.price-card .btn { margin-top: auto; }
.price-note { max-width: 760px; margin: 34px auto 0; text-align: center; color: var(--stone); font-size: 13px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.steps li { border-top: 1px solid var(--ink); padding-top: 20px; }
.steps li > span { font-family: var(--serif); font-size: 22px; color: var(--sage); }
.steps h3 { font-size: 25px; margin: 12px 0 10px; }
.steps p { color: var(--stone); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 22px 40px 22px 0; cursor: pointer; font-family: var(--serif); font-size: 22px; position: relative; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 22px; font-family: var(--sans); font-size: 20px; color: var(--sage); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { color: var(--stone); padding-bottom: 24px; max-width: 680px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); }
.contact-grid__intro h2 { margin-bottom: 20px; }
.contact-direct { margin: 36px 0; font-size: 13px; color: var(--stone); }
.contact-direct p { margin-bottom: 6px; }
.map-slot { margin-top: 26px; }
.office-map { margin-top: 26px; border: 1px solid var(--line); background: var(--paper); }
.office-map__canvas { width: 100%; height: 280px; background: var(--paper); }
.office-map__canvas--fallback { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--stone); font-size: 12px; }
.office-map__legend { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--stone); }
.office-map__legend li { display: flex; align-items: center; gap: 7px; margin: 0; }
.office-map__dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.office-map__dot--airport { background: var(--clay); }
.office-map__dot--cruise { background: var(--ink); }
.office-map__star { color: var(--clay); font-size: 13px; line-height: 1; flex: 0 0 auto; }
.enquiry-form { display: flex; flex-direction: column; gap: 20px; background: var(--paper); padding: clamp(28px, 4vw, 48px); }
.enquiry-form label { display: flex; flex-direction: column; gap: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.enquiry-form input, .enquiry-form textarea { background: transparent; border: 0; border-bottom: 1px solid rgba(31,42,36,.22); padding: 10px 0; font-size: 15px; letter-spacing: normal; text-transform: none; resize: vertical; }
.enquiry-form input:focus, .enquiry-form textarea:focus { outline: none; border-color: var(--clay); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-status { font-size: 13px; color: var(--sage); margin: 0; }
.btn--whatsapp { background: #1f9d55; color: #fff; }
.btn--whatsapp:hover { background: #178a49; }
.form-hint { font-size: 12px; line-height: 1.6; color: var(--stone); margin: -8px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 72px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer .brand__name { color: #fff; font-size: 30px; }
.footer__inner p { max-width: 380px; margin-top: 12px; font-size: 14px; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 36px; font-size: 13px; }
.footer__links a:hover { color: #fff; }
.footer__base { border-top: 1px solid rgba(255,255,255,.14); margin-top: 56px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11px; letter-spacing: .05em; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(16,22,18,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 24px 40px; }
.lightbox[hidden] { display: none; }
.lightbox__close { position: absolute; top: 24px; right: 28px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; line-height: 1; }
.lightbox__content { max-width: min(1000px, 100%); max-height: 78vh; display: grid; place-items: center; }
.lightbox__content img, .lightbox__content video { max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox__caption { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 18px; text-align: center; }
.lightbox__note { color: rgba(255,255,255,.8); font-family: var(--serif); font-size: 28px; text-align: center; max-width: 480px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- RTL ---------- */
html[dir="rtl"] .exp-card--reverse .exp-card__media { order: 0; }
html[dir="rtl"] .hero__shade { background: linear-gradient(270deg, rgba(20,29,24,.78) 0%, rgba(20,29,24,.5) 52%, rgba(20,29,24,.25) 100%); }
html[dir="rtl"] .exp-card__tag { left: auto; right: 18px; }
html[dir="rtl"] .faq-list summary { padding: 22px 0 22px 40px; }
html[dir="rtl"] .faq-list summary::after { right: auto; left: 4px; }
html[dir="rtl"] .hero__scroll { right: auto; left: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 16px; }
  .nav a { font-size: 12px; }
  .header__actions .btn--sm { display: none; }
}
@media (max-width: 1100px) {
  .price-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .price-card__desc { min-height: 96px; }
}
@media (max-width: 860px) {
  .header__inner { height: 66px; width: calc(100% - 32px); }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 66px; left: 0; right: 0; background: var(--bone); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 22px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .hero { min-height: 90svh; padding: 80px 0 150px; }
  .hero__content { width: calc(100% - 40px); }
  .hero__trust { width: calc(100% - 40px); gap: 10px 20px; bottom: 44px; }
  .hero__scroll { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid__media { max-width: 460px; }
  .exp-card, .exp-card--reverse { grid-template-columns: 1fr; gap: 28px; }
  .exp-card--reverse .exp-card__media { order: 0; }
  .exp-card__media { max-width: 560px; }
  .service-row { grid-template-columns: 42px 1fr; }
  .service-row .text-link { grid-column: 2; }
  .video-grid, .review-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap, .wrap--narrow { width: calc(100% - 36px); }
  .section { padding: 72px 0; }
  .hero { min-height: 94svh; }
  .hero h1 { font-size: 48px; }
  .hero__ctas .btn { width: 100%; }
  .hero__trust { font-size: 9px; }
  .stats { gap: 28px; }
  .video-grid, .review-grid, .price-grid, .gallery-grid, .steps, .form-row { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .footer__inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
