/* ==========================================================
   T20 – Du lịch & Thể thao biển Mỹ Khê
   ========================================================== */
:root {
  --navy: #0B2545;
  --navy-2: #13315C;
  --ocean: #0A5C8A;
  --teal: #14C7C3;
  --teal-2: #0FA3A0;
  --coral: #FF7A4D;
  --coral-2: #F2602F;
  --sand: #FBF6EE;
  --ink: #1B2A3A;
  --muted: #5B6B7C;
  --line: #E4E9EF;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 37, 69, .08);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, .16);
  --header-h: 72px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-2); margin-bottom: .8em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; transition: .25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 77, .35); }
.btn--primary:hover { background: var(--coral-2); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: .6em 1.2em; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.header.is-solid { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(11,37,69,.08); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.25rem; font-weight: 800; color: #fff; }
.brand__text small { font-size: .72rem; color: rgba(255,255,255,.85); }
.header.is-solid .brand__text strong { color: var(--navy); }
.header.is-solid .brand__text small { color: var(--muted); }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: .5em .85em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  color: #fff; transition: .2s;
}
.nav a:hover, .nav a.is-active { background: rgba(255,255,255,.18); }
.header.is-solid .nav a { color: var(--ink); }
.header.is-solid .nav a:hover, .header.is-solid .nav a.is-active { background: #EAF8F8; color: var(--teal-2); }
.nav__cta-mobile { display: none !important; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5);
  background: transparent; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700;
}
.lang span { padding: .3em .7em; border-radius: 999px; color: #fff; }
.header.is-solid .lang { border-color: var(--line); }
.header.is-solid .lang span { color: var(--muted); }
html[lang="vi"] .lang [data-lang="vi"], html[lang="en"] .lang [data-lang="en"] { background: var(--teal); color: #fff; }

.burger { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }
.header.is-solid .burger span { background: var(--navy); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 200px;
  color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% 10%, rgba(255,178,122,.45), transparent 60%),
    linear-gradient(180deg, #0B2545 0%, #0A5C8A 55%, #14C7C3 100%);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.hero__sun {
  position: absolute; right: 12%; top: 18%;
  width: clamp(120px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #FFD2A8 0%, #FF9A6B 55%, rgba(255,122,77,0) 72%);
  filter: blur(1px);
}
.hero__parasail {
  position: absolute; right: 26%; top: 22%; width: clamp(70px, 9vw, 120px);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translate(0,0) rotate(-3deg); } 50% { transform: translate(-18px,-14px) rotate(3deg); } }

.hero__content { position: relative; z-index: 2; max-width: 1200px; }
.hero .eyebrow { color: #A7F3EF; }
.hero__title {
  font-size: clamp(2.4rem, 6.4vw, 5rem); font-weight: 800; color: #fff; margin-bottom: .35em;
  max-width: 14ch; letter-spacing: -.02em;
}
.hero__title span { color: #FFC59E; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 60ch; color: rgba(255,255,255,.9); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 48px; }

.hero__stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 860px;
}
.hero__stats li {
  padding: 16px 18px; border-radius: 16px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px);
}
.hero__stats strong { display: block; font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 800; }
.hero__stats li > span { font-size: .85rem; color: rgba(255,255,255,.82); }

.hero__waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 200px; z-index: 1; }
.hero__waves .w { transform-origin: center; }
.hero__waves .w1 { fill: rgba(255,255,255,.18); animation: wave 10s ease-in-out infinite; }
.hero__waves .w2 { fill: rgba(255,255,255,.35); animation: wave 7s ease-in-out infinite reverse; }
.hero__waves .w3 { fill: #fff; }
@keyframes wave { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-40px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.85); }
.section--ocean { background: linear-gradient(160deg, var(--navy) 0%, var(--ocean) 100%); color: rgba(255,255,255,.88); }
.section--dark h2, .section--dark h3, .section--ocean h2 { color: #fff; }
.section--ocean .eyebrow, .section--dark .eyebrow { color: var(--teal); }

.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head p:last-child { color: var(--muted); }
.section__head--light p:last-child { color: rgba(255,255,255,.75); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__visual { position: relative; aspect-ratio: 1 / .95; }
.about__card { position: absolute; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.about__card svg { width: 100%; height: 100%; }
.about__card--a { inset: 0 22% 28% 0; }
.about__card--b { inset: 38% 0 0 30%; border: 6px solid #fff; }
.about__badge {
  position: absolute; left: 6%; bottom: 4%;
  background: var(--coral); color: #fff; padding: 16px 20px; border-radius: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.about__badge strong { font-size: 1.8rem; line-height: 1; font-weight: 800; }
.about__badge span { font-size: .8rem; opacity: .9; }
.about__text > p { color: var(--muted); }
.about__text > p strong { color: var(--ink); }

.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.mvv article { padding: 18px; border-radius: 16px; background: var(--sand); border: 1px solid #F0E6D6; }
.mvv h3 { font-size: 1rem; color: var(--teal-2); }
.mvv p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, #E3FAF9, #D3EEF8); color: var(--ocean);
}
.card__icon svg { width: 34px; height: 34px; }
.card:nth-child(even) .card__icon { background: linear-gradient(135deg, #FFEDE4, #FFE0D1); color: var(--coral-2); }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .75rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; background: #F1F5F9; color: var(--navy-2); }

/* ---------- Zone ---------- */
.zone { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.zone__text > p { color: var(--muted); }
.specs { margin: 24px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 800; color: var(--navy); text-align: right; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; font-size: .9rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.lg { width: 18px; height: 14px; border-radius: 4px; display: inline-block; }
.lg--zone { background: rgba(255,0,255,.45); border: 2px solid #FF00FF; }
.lg--lane { background: rgba(0,255,255,.45); border: 2px solid #00CCCC; }
.zone__map { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
#map { height: 480px; width: 100%; background: #CFE9F2; }
.map-fallback { padding: 24px; }
.leaflet-popup-content { font-family: inherit; }

/* ---------- Safety ---------- */
.safety { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.safety li {
  padding: 26px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: background .3s;
}
.safety li:hover { background: rgba(20,199,195,.12); }
.safety span { display: block; font-size: 2rem; font-weight: 800; color: var(--teal); margin-bottom: 10px; line-height: 1; }
.safety h3 { font-size: 1.05rem; }
.safety p { margin: 0; font-size: .92rem; color: rgba(255,255,255,.7); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 10px, transparent 10px 18px);
}
.step { text-align: center; position: relative; }
.step b {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 1.3rem; box-shadow: 0 0 0 8px #E3FAF9;
}
.step:nth-child(even) b { background: var(--coral); box-shadow: 0 0 0 8px #FFEDE4; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Events ---------- */
.events { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.events__text > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--teal); color: #fff;
}
.events__grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 14px; }
.tile {
  border-radius: 20px; display: flex; align-items: flex-end; padding: 18px; color: #fff; font-weight: 700;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.tile::after { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: rgba(255,255,255,.12); border-radius: 50%; }
.tile span { position: relative; z-index: 1; }
.tile--1 { background: linear-gradient(135deg, #14C7C3, #0A5C8A); grid-row: span 2; }
.tile--2 { background: linear-gradient(135deg, #FF9A6B, #F2602F); }
.tile--3 { background: linear-gradient(135deg, #13315C, #0B2545); }
.tile--4 { background: linear-gradient(135deg, #FFC59E, #FF7A4D); grid-column: span 2; }

/* ---------- FAQ ---------- */
.faq__list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #EAF8F8; color: var(--teal-2); font-size: 1.2rem; transition: transform .25s;
}
.faq details[open] summary::after { content: "–"; background: var(--teal); color: #fff; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(255,255,255,.1); color: var(--teal); flex: none; }
.contact__list b { display: block; color: #fff; }
.contact__list a:hover { color: var(--teal); }

.form { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.form h3 { font-size: 1.35rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--navy-2); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 12px; background: #FAFCFD; transition: .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(20,199,195,.15); }
.form .is-invalid { border-color: #E5484D; }
.form__msg { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form__msg.ok { color: var(--teal-2); }
.form__msg.err { color: #E5484D; }

/* ---------- Footer ---------- */
.footer { background: #071A31; color: rgba(255,255,255,.7); padding: 64px 0 24px; font-size: .92rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--teal); }
.footer__brand p { margin-top: 16px; max-width: 40ch; }
.footer .brand__text small { color: rgba(255,255,255,.6); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.totop { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.totop:hover { background: var(--teal); }

.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: var(--coral); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(255,122,77,.45);
  animation: pulse 2.4s infinite;
}
.fab svg { width: 26px; height: 26px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,122,77,.5); } 70% { box-shadow: 0 0 0 16px rgba(255,122,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,77,0); } }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .safety { grid-template-columns: repeat(3, 1fr); }
  .nav a { padding: .5em .6em; font-size: .9rem; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; gap: 4px; padding: 20px 16px; background: #fff;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { color: var(--ink) !important; font-size: 1.05rem; padding: .9em 1em; border-radius: 12px; }
  .nav .nav__cta-mobile { display: inline-flex !important; color: #fff !important; margin-top: 12px; }
  body.menu-open .header { background: #fff; }
  body.menu-open .brand__text strong { color: var(--navy); }
  body.menu-open .brand__text small { color: var(--muted); }
  body.menu-open .burger span { background: var(--navy); }
  body.menu-open .lang { border-color: var(--line); }
  body.menu-open .lang span { color: var(--muted); }

  .about, .zone, .events, .contact { grid-template-columns: 1fr; }
  .about__visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .cards, .mvv, .safety, .form__row { grid-template-columns: 1fr; }
  .hero { padding-bottom: 150px; }
  .hero__parasail { right: 8%; top: 14%; }
  .hero__sun { right: -10%; top: 8%; }
  .hero__waves { height: 120px; }
  .hero__btns .btn { flex: 1 1 100%; }
  #map { height: 380px; }
  .events__grid { grid-auto-rows: 120px; }
  .footer__inner { grid-template-columns: 1fr; }
  .brand__text small { display: none; }
}
