/* ===== Fangtooth Dive Centre — styles ===== */
:root {
  --abyss: #04131f;
  --deep: #06283d;
  --mid: #0b4a6b;
  --reef: #29abe2;
  --reef-dark: #1689c0;
  --coral: #f7941d;
  --sand: #f4fbfc;
  --ink: #0d2230;
  --muted: #5b7482;
  --muted-light: #a9c6d2;
  --line: #dbe9ef;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(4, 19, 31, .08);
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.accent { color: var(--reef); }
.kicker { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; color: var(--reef-dark); margin-bottom: .6em; }

/* ----- Buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.6em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: 600 1rem var(--font-body); transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--coral); color: #fff; }
.btn-accent:hover { background: #e5820a; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--deep); color: var(--deep); }
.btn-outline:hover { background: var(--deep); color: #fff; }
.btn-small { padding: .55em 1.2em; font-size: .95rem; }
.btn-block { width: 100%; }

/* ----- Header ----- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(4, 19, 31, .94); backdrop-filter: blur(8px); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6em; text-decoration: none; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.brand small { display: block; font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--reef); margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 500; opacity: .9; }
.site-nav a:not(.btn):hover { color: var(--reef); opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ----- Hero ----- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--deep); }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 8s linear; }
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-slides::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,19,31,.88) 0%, rgba(4,19,31,.6) 45%, rgba(4,19,31,.2) 100%),
    linear-gradient(180deg, rgba(4,19,31,.5) 0%, transparent 30%, transparent 70%, rgba(4,19,31,.6) 100%); }
.hero-content { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 140px; max-width: 760px; margin-left: max(20px, calc((100% - 1180px) / 2 + 20px)); }
.hero .kicker { color: var(--reef); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 800; letter-spacing: -.02em; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted-light); max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; z-index: 2; }
.hero-wave path { fill: #fff; }
.hero-bubbles span { position: absolute; bottom: -40px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); animation: rise linear infinite; }
.hero-bubbles span:nth-child(1) { left: 8%;  animation-duration: 11s; }
.hero-bubbles span:nth-child(2) { left: 22%; width: 8px; height: 8px; animation-duration: 8s; animation-delay: 2s; }
.hero-bubbles span:nth-child(3) { left: 40%; width: 18px; height: 18px; animation-duration: 14s; animation-delay: 1s; }
.hero-bubbles span:nth-child(4) { left: 58%; animation-duration: 10s; animation-delay: 4s; }
.hero-bubbles span:nth-child(5) { left: 70%; width: 6px; height: 6px; animation-duration: 7s; }
.hero-bubbles span:nth-child(6) { left: 80%; width: 16px; height: 16px; animation-duration: 13s; animation-delay: 3s; }
.hero-bubbles span:nth-child(7) { left: 88%; width: 9px; height: 9px; animation-duration: 9s; animation-delay: 5s; }
.hero-bubbles span:nth-child(8) { left: 94%; animation-duration: 12s; animation-delay: 1.5s; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(14px, -50vh); } 100% { transform: translate(-6px, -100vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-bubbles { display: none; } .hero-slide { transition: none; transform: none; } html { scroll-behavior: auto; } }

/* ----- Highlights ----- */
.highlights { padding: 40px 0 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.highlight { text-align: center; padding: 10px; }
.highlight .icon { font-size: 2rem; width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: #e3f4fc; }
.highlight p { color: var(--muted); font-size: .95rem; }

/* ----- Sections ----- */
.section { padding: 90px 0; }
.section-tint { background: var(--sand); }
.section-dark { background: linear-gradient(180deg, var(--deep), var(--abyss)); color: #fff; }
.section-dark .section-head p, .section-dark p { color: var(--muted-light); }
.section-dark .kicker { color: var(--reef); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }

/* ----- About ----- */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.about-photos { position: relative; padding: 0 40px 60px 0; }
.about-photos img { height: auto; border-radius: var(--radius); object-fit: cover; box-shadow: 0 30px 60px rgba(4,19,31,.2); }
.ap-main { width: 100%; aspect-ratio: 4 / 4.5; }
.ap-inset { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; border: 6px solid #fff; }
.about-text p { color: var(--muted); font-size: 1.05rem; }
.note { border-left: 3px solid var(--coral); padding-left: 14px; font-style: italic; }

/* ----- Gallery ----- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: 14px; }
.g { margin: 0; border-radius: 12px; overflow: hidden; background: var(--deep); }
.g img, .g video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.g:hover img, .g:hover video { transform: scale(1.04); }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* ----- FAQ ----- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--reef-dark); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* ----- Contact ----- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-list .ci { font-size: 1.3rem; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(41,171,226,.15); }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--reef); }
.contact-list a, .contact-list span { color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--reef); }
.enquiry { background: #fff; color: var(--ink); padding: 32px; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.enquiry h3 { font-size: 1.4rem; margin-bottom: 18px; }
.field { margin-bottom: 16px; flex: 1; }
.field-row { display: flex; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: inherit; background: #fff; transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--reef); }
.field input.invalid { border-color: var(--coral); }
.enquiry .form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* ----- Footer ----- */
.site-footer { background: var(--abyss); color: var(--muted-light); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--reef); }
.copy { margin: 0; font-size: .88rem; }

/* ----- WhatsApp floating button ----- */
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.08); }

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

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .about-photos { max-width: 520px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 24px; background: rgba(4, 19, 31, .98); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .site-nav.open { transform: none; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header { background: rgba(4, 19, 31, .94); }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .highlight p { font-size: .85rem; }
  .field-row { flex-direction: column; gap: 0; }
  .enquiry { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero { min-height: 88vh; }
  .hero-slides::after { background: linear-gradient(180deg, rgba(4,19,31,.55) 0%, rgba(4,19,31,.45) 40%, rgba(4,19,31,.75) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ----- PADI badge strip ----- */
.padi-strip { padding: 30px 0 10px; }
.padi-inner { display: flex; align-items: center; gap: 28px; max-width: 900px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.padi-inner img { width: 84px; height: auto; flex: none; }
.padi-title { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; }
.padi-inner p:not(.padi-title) { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 600px) {
  .padi-inner { flex-direction: column; text-align: center; gap: 14px; margin: 0 16px; width: auto; }
}


/* ----- Services ----- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: transform .2s, border-color .2s; }
.service:hover { transform: translateY(-4px); border-color: var(--reef); }
.service-icon { font-size: 1.8rem; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: rgba(41,171,226,.15); margin-bottom: 18px; }
.service p { flex: 1; font-size: .97rem; }
.service-link { font-family: var(--font-head); font-weight: 600; color: var(--reef); text-decoration: none; }
.service-link:hover { color: #fff; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* ----- Social links ----- */
.gallery-cta { text-align: center; margin-top: 32px; }
.gallery-cta .btn svg { margin-right: 2px; }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--muted-light); transition: background .2s, color .2s; }
.socials a:hover { background: var(--reef); color: #fff; }


/* ----- About quote ----- */
.about-quote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--coral); font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.about-sign { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--reef-dark) !important; }
.about { align-items: start; }
.about-photos { position: sticky; top: 100px; }
@media (max-width: 960px) { .about-photos { position: relative; top: 0; } }

/* ----- Instagram feed ----- */
.ig-feed { margin-top: 56px; }
.ig-title { text-align: center; font-size: 1.5rem; margin-bottom: 20px; }
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ig-post { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--deep); }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ig-post:hover img { transform: scale(1.05); }
.ig-post.is-video::after { content: "▶"; position: absolute; top: 8px; right: 10px; color: #fff; font-size: .9rem; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
@media (max-width: 600px) { .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ----- Full list (no prices) ----- */
.list-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.list-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; }
.list-card h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 1.25rem; margin-bottom: 10px; }
.list-card .list-sub { margin-top: 22px; font-size: 1.1rem; }
.item-list { list-style: none; padding: 0; margin: 0; }
.item-list li { padding: 8px 0 8px 18px; border-bottom: 1px solid var(--line); position: relative; }
.item-list li:last-child { border-bottom: 0; }
.item-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--reef); }
.item-list small { color: var(--muted); }
.zh { font-family: var(--font-body); font-size: .8rem; font-weight: 400; color: var(--muted); margin-left: 8px; }
h3 .zh { font-size: .95rem; margin-left: 0; }
.tag-inline { font-family: var(--font-body); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--abyss); background: var(--reef); padding: 4px 10px; border-radius: 999px; }
.list-note { font-size: .9rem; color: var(--muted); margin: -4px 0 6px; }
.price-cta { text-align: center; margin-top: 36px; }
@media (max-width: 960px) { .list-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .list-cards { grid-template-columns: 1fr; } .zh { display: block; margin: 2px 0 0; } h3 .zh { display: inline; } }
.item-list .zh { white-space: nowrap; display: inline-block; }

/* ----- PADI link ----- */
.padi-link { display: inline-block; margin-top: 8px; font-family: var(--font-head); font-weight: 600; color: var(--reef-dark); text-decoration: none; }
.padi-link:hover { color: var(--coral); }
.padi-logo-link { flex: none; }

/* ----- Language toggle ----- */
.brand { margin-right: auto; }
.site-nav { order: 2; }
.lang-toggle { order: 3; margin-left: 18px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.5); background: transparent; color: #fff; font: 600 .9rem var(--font-body); cursor: pointer; }
.lang-toggle:hover { background: rgba(255,255,255,.12); }
.nav-toggle { order: 4; }
@media (max-width: 820px) { .lang-toggle { margin-left: 0; margin-right: 8px; } }
html[lang="zh-Hans"] body { font-family: var(--font-body), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 { letter-spacing: 0; }

/* ----- Phone banner: underwater video ----- */
.hero-video { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .hero-video { display: block; }
}
