/* ================================================================
   sample-phuket-dive.css
   Ocean blue theme for Phuket Dive Academy
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:       #061827;
  --c-surface:  #0b2840;
  --c-card:     #113657;
  --c-border:   #1f4e75;
  --c-text:     #e2edf7;
  --c-muted:    #8ba9c5;
  --c-accent:   #1bb6c9;
  --c-accent2:  #4ed0e0;
  --c-coral:    #ff9f1c;
  --c-white:    #ffffff;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body:    'Noto Sans JP', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius:     12px;
  --radius-sm:  8px;
  --max-w:      1200px;
  --gutter:     clamp(16px, 4vw, 40px);
  --section-py: clamp(56px, 8vw, 100px);
}

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(27,182,201,.10), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(78,208,224,.08), transparent 60%),
    var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.lang-th { font-family: 'Noto Sans Thai', 'Noto Sans JP', sans-serif; }
.lang-en { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent2); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ── Demo Ribbon ── */
.sample-ribbon {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--c-coral);
  color: #1a1300;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 12px;
  line-height: 1.3;
}

/* ── Site Shell ── */
.site-shell { padding-top: 28px; }

/* ── Topbar / Navigation ── */
.topbar {
  position: sticky;
  top: 28px;
  z-index: 1000;
  background: rgba(6,24,39,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: background .3s, box-shadow .3s;
}
.topbar.scrolled {
  background: rgba(6,24,39,.96);
  box-shadow: 0 2px 24px rgba(0,0,0,.4);
}

.nav-shell { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--c-white); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--c-white); }
.brand-mark {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-accent);
  color: var(--c-bg);
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.brand-copy strong { display: block; font-size: 14px; line-height: 1.2; font-weight: 700; }
.brand-copy span { display: block; font-size: 10px; color: var(--c-muted); line-height: 1.3; }

.nav-toggle {
  display: none; background: none;
  border: 1px solid var(--c-border); color: var(--c-text);
  width: 40px; height: 40px;
  border-radius: var(--radius-sm); font-size: 18px; cursor: pointer;
  align-items: center; justify-content: center;
}

.nav-panel { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--c-muted); font-size: 13px; font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--c-white); }

.nav-tools { display: flex; align-items: center; gap: 16px; }
.lang-picker { display: flex; align-items: center; gap: 8px; }
.lang-caption { font-size: 11px; color: var(--c-muted); }
.lang-switcher { display: flex; gap: 4px; }
.lang-switcher a {
  display: inline-block; padding: 3px 8px; font-size: 11px; font-weight: 700;
  border-radius: 4px; color: var(--c-muted); border: 1px solid transparent; transition: all .2s;
}
.lang-switcher a.active { color: var(--c-accent); border-color: var(--c-accent); }
.lang-switcher a:hover { color: var(--c-white); }

.nav-cta {
  display: inline-block; padding: 7px 16px; font-size: 12px; font-weight: 700;
  background: var(--c-accent); color: var(--c-bg);
  border-radius: 6px; white-space: nowrap; transition: background .2s;
}
.nav-cta:hover { background: var(--c-accent2); color: var(--c-bg); }

/* ── Hero ── */
.hero {
  padding: var(--section-py) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 60px); align-items: start;
}
.hero-copy { padding-top: 20px; }

.eyebrow {
  font-size: 12px; font-weight: 700; color: var(--c-accent);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900; line-height: 1.25;
  color: var(--c-white); margin-bottom: 20px;
}
.lang-en .hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1; letter-spacing: .01em;
}
.accent { color: var(--c-accent); }

.lead { font-size: 15px; color: var(--c-muted); line-height: 1.8; margin-bottom: 28px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; font-size: 14px; font-weight: 700;
  border-radius: var(--radius-sm); cursor: pointer; transition: all .25s;
  white-space: nowrap; border: none; text-decoration: none;
}
.btn-primary { background: var(--c-accent); color: var(--c-bg); }
.btn-primary:hover { background: var(--c-accent2); color: var(--c-bg); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(27,182,201,.35); }
.btn-secondary { background: transparent; color: var(--c-text); border: 1px solid var(--c-border); }
.btn-secondary:hover { border-color: var(--c-accent); color: var(--c-accent); }

.hero-proof { display: flex; flex-direction: column; gap: 12px; }
.proof-card { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 16px 18px; }
.proof-card strong { display: block; font-size: 13px; color: var(--c-accent); margin-bottom: 4px; }
.proof-card span { font-size: 12.5px; color: var(--c-muted); line-height: 1.6; }

.hero-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.hero-shot { border-radius: var(--radius); overflow: hidden; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-ring { grid-column: 1 / -1; max-height: 320px; }
.hero-bagwork, .hero-beach { max-height: 260px; }

.hero-panel, .hero-stat {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 16px;
}
.hero-panel small, .hero-stat small { display: block; font-size: 11px; color: var(--c-accent); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.hero-panel strong, .hero-stat strong { display: block; font-size: 14px; color: var(--c-white); margin-bottom: 6px; line-height: 1.4; }
.hero-panel p, .hero-stat p { font-size: 12.5px; color: var(--c-muted); line-height: 1.6; }

/* ── Belt ── */
.belt {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: clamp(32px, 4vw, 48px) var(--gutter);
}
.belt-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.belt-card {
  text-align: center; padding: 20px 16px;
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
}
.belt-card strong { display: block; font-size: 14px; color: var(--c-white); margin-bottom: 6px; }
.belt-card span { font-size: 12.5px; color: var(--c-muted); line-height: 1.6; }

/* ── Sections ── */
.section { max-width: var(--max-w); margin: 0 auto; padding: var(--section-py) var(--gutter); }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-label { font-size: 12px; font-weight: 700; color: var(--c-accent); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.section-heading h2 { font-family: var(--font-body); font-size: clamp(22px, 3vw, 32px); font-weight: 900; color: var(--c-white); line-height: 1.35; margin-bottom: 16px; }
.section-heading p { font-size: 14px; color: var(--c-muted); line-height: 1.8; }

/* ── Program Grid ── */
.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.program-card {
  background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s;
}
.program-card:hover { border-color: var(--c-accent); transform: translateY(-3px); }
.program-card small { font-size: 11px; font-weight: 700; color: var(--c-accent); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px; }
.program-card h3 { font-size: 18px; font-weight: 700; color: var(--c-white); margin-bottom: 10px; line-height: 1.3; }
.program-card p { font-size: 13.5px; color: var(--c-muted); line-height: 1.7; flex: 1; }
.program-price { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--c-border); display: flex; align-items: baseline; gap: 12px; }
.program-price strong { font-family: var(--font-display); font-size: 32px; color: var(--c-accent); letter-spacing: .02em; }
.program-price span { font-size: 12px; color: var(--c-muted); }

/* ── Schedule Grid ── */
.schedule-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.schedule-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
}
.schedule-list { display: flex; flex-direction: column; }
.schedule-line { padding: 18px 0; border-bottom: 1px solid var(--c-border); position: relative; padding-left: 70px; }
.schedule-line:last-child { border-bottom: none; }
.schedule-line::before {
  content: attr(data-time); position: absolute; left: 0; top: 18px;
  font-size: 11px; font-weight: 700; color: var(--c-accent); width: 56px; text-align: right;
}
.schedule-line h3 { font-size: 14px; font-weight: 700; color: var(--c-white); margin-bottom: 6px; line-height: 1.4; }
.schedule-line p { font-size: 13px; color: var(--c-muted); line-height: 1.6; }

.schedule-card .section-label { margin-bottom: 12px; }
.schedule-card h3 { font-size: 18px; font-weight: 700; color: var(--c-white); margin-bottom: 12px; line-height: 1.4; }
.schedule-card > p { font-size: 13.5px; color: var(--c-muted); line-height: 1.7; margin-bottom: 12px; }

/* ── Facility Grid ── */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facility-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); transition: border-color .3s;
}
.facility-card:hover { border-color: var(--c-accent); }
.facility-card h3 { font-size: 15px; font-weight: 700; color: var(--c-white); margin-bottom: 10px; line-height: 1.4; }
.facility-card p { font-size: 13px; color: var(--c-muted); line-height: 1.7; }

/* ── Travel Grid ── */
.travel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 40px); align-items: center; }
.travel-photo { border-radius: var(--radius); overflow: hidden; }
.travel-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.travel-copy .section-label { margin-bottom: 12px; }
.travel-copy h3 { font-size: 20px; font-weight: 700; color: var(--c-white); margin-bottom: 16px; line-height: 1.4; }
.travel-copy p { font-size: 14px; color: var(--c-muted); line-height: 1.8; margin-bottom: 12px; }

/* ── Voice Grid ── */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voice-grid::-webkit-scrollbar { height: 4px; }
.voice-grid::-webkit-scrollbar-track { background: transparent; }
.voice-grid::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }
.voice-card {
  background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 32px);
}
.voice-card small { display: block; font-size: 11px; font-weight: 700; color: var(--c-accent); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 12px; }
.voice-card p { font-size: 14px; color: var(--c-text); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.voice-card strong { font-size: 12px; color: var(--c-muted); font-weight: 500; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--c-card); border: 1px solid var(--c-border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .3s; }
.faq-item[open] { border-color: var(--c-accent); }
.faq-item summary {
  padding: 18px 20px; font-size: 14px; font-weight: 700; color: var(--c-white); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--c-accent); flex-shrink: 0; font-weight: 300; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--c-accent); }
.faq-answer { padding: 0 20px 18px; font-size: 13.5px; color: var(--c-muted); line-height: 1.8; }

/* ── CTA Panel ── */
.cta-panel {
  background: linear-gradient(135deg, var(--c-surface) 0%, var(--c-card) 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 64px); text-align: center;
}
.cta-panel h2 { font-family: var(--font-body); font-size: clamp(24px, 3.5vw, 36px); font-weight: 900; color: var(--c-white); line-height: 1.3; margin-bottom: 16px; }
.cta-panel p { font-size: 14px; color: var(--c-muted); line-height: 1.8; max-width: 540px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--c-border); padding: 36px var(--gutter);
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.footer strong { display: block; color: var(--c-white); font-size: 14px; margin-bottom: 6px; }
.footer div { font-size: 12px; color: var(--c-muted); line-height: 1.6; }

/* ── Sticky Dock ── */
.sticky-dock {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  background: rgba(6,24,39,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-border); padding: 12px var(--gutter);
}
.sticky-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sticky-copy strong { display: block; font-size: 13px; color: var(--c-white); }
.sticky-copy span { font-size: 11px; color: var(--c-muted); }
.sticky-actions { display: flex; gap: 8px; flex-shrink: 0; }
.sticky-btn {
  display: inline-flex; align-items: center; padding: 9px 18px;
  font-size: 12px; font-weight: 700; border-radius: 6px; white-space: nowrap;
  transition: all .25s; text-decoration: none;
}
.sticky-btn.primary { background: var(--c-accent); color: var(--c-bg); }
.sticky-btn.primary:hover { background: var(--c-accent2); color: var(--c-bg); }
.sticky-btn.secondary { background: transparent; color: var(--c-text); border: 1px solid var(--c-border); }
.sticky-btn.secondary:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ── Toast ── */
.sample-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 9000; background: var(--c-card); border: 1px solid var(--c-accent);
  border-radius: var(--radius-sm); padding: 14px 20px; max-width: 420px; width: calc(100% - 32px);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.sample-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.sample-toast strong { display: block; font-size: 13px; color: var(--c-accent); margin-bottom: 4px; }
.sample-toast span { font-size: 12px; color: var(--c-muted); line-height: 1.5; }

.site-shell { padding-bottom: 72px; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .schedule-grid { grid-template-columns: 1fr; }
  .belt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-panel {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--c-surface); border-bottom: 1px solid var(--c-border);
    padding: 20px var(--gutter) 24px; flex-direction: column; gap: 20px;
  }
  .nav-panel.open { display: flex; }
  .nav-links { flex-direction: column; gap: 12px; }
  .nav-links a { font-size: 15px; }
  .nav-tools { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-visual { grid-template-columns: 1fr 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr; }
  .travel-grid { grid-template-columns: 1fr; }
  .voice-grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; gap: 12px; padding-bottom: 8px;
  }
  .voice-card { min-width: 280px; max-width: 85vw; flex-shrink: 0; scroll-snap-align: start; }
  .belt-grid { grid-template-columns: 1fr 1fr; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --section-py: clamp(36px, 6vw, 56px); --gutter: 16px; }
  .hero h1 { font-size: 24px; }
  .hero-visual { grid-template-columns: 1fr; }
  .hero-ring { max-height: 220px; }
  .hero-bagwork, .hero-beach { max-height: 180px; }
  .belt { padding: 24px var(--gutter); }
  .belt-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .belt-card { padding: 14px 12px; }
  .belt-card strong { font-size: 13px; }
  .belt-card span { font-size: 11.5px; }
  .program-card { padding: 20px 16px; }
  .program-price strong { font-size: 26px; }
  .schedule-card { padding: 16px; }
  .schedule-line { padding: 14px 0; padding-left: 0; }
  .schedule-line::before { position: static; display: block; text-align: left; margin-bottom: 4px; width: auto; }
  .schedule-line h3 { font-size: 13px; }
  .schedule-line p { font-size: 12px; }
  .facility-card { padding: 18px 14px; }
  .facility-card h3 { font-size: 14px; }
  .facility-card p { font-size: 12px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 20px; }
  .section-heading p { font-size: 13px; }
  .voice-card { padding: 18px 14px; }
  .faq-item summary { padding: 14px 16px; font-size: 13px; }
  .faq-answer { padding: 0 16px 14px; font-size: 12.5px; }
  .cta-panel { padding: 32px 20px; }
  .cta-panel h2 { font-size: 22px; }
  .travel-copy h3 { font-size: 17px; }
  .travel-copy p { font-size: 13px; }
  .sticky-copy { display: none; }
  .sticky-inner { justify-content: center; }
  .brand-copy span { display: none; }
}
