/* ===========================================================================
   Samui Jetski Safari — visual mockup design system (LIGHT theme).
   Clean & white, tropical, sea, freedom, happy. Brand accents: cyan/sky,
   retro-sunset orange, magenta, tropical green — on airy white backgrounds.
   Class names are stable; semantic CSS variables drive the palette so the
   markup in app.js/admin.js adapts automatically.
   =========================================================================== */

:root {
  /* Ink & surfaces */
  --ink: #0a1f44;
  --ink-2: #17365f;
  --muted: #5b6b82;
  --bg: #ffffff;
  --bg-soft: #ecf8ff;   /* light cyan tint */
  --bg-soft2: #fff4ec;  /* light sunset tint */
  --panel: #ffffff;
  --panel-2: #f3fbff;
  --field: #ffffff;
  --border: rgba(10,31,68,.12);
  --hair: rgba(10,31,68,.08);
  --shadow: 0 12px 34px -14px rgba(10,31,68,.22);
  --shadow-sm: 0 6px 18px -10px rgba(10,31,68,.20);

  /* Accents */
  --cyan: #0891b2;
  --cyan-bright: #06b6d4;
  --sky: #0ea5e9;
  --electric: #2563eb;
  --sunset: #f97316;
  --sunset-deep: #ea580c;
  --magenta: #ff2f9e;
  --green: #10b981;

  --sunset-grad: linear-gradient(120deg, #ff2f9e 0%, #ff7a2f 50%, #ffb020 100%);
  --cyan-grad: linear-gradient(120deg, #06b6d4 0%, #2563eb 100%);
  --hero-grad: radial-gradient(1200px 600px at 80% -10%, #cdefff 0%, rgba(205,239,255,0) 60%),
               radial-gradient(900px 500px at 0% 10%, #ffe7d6 0%, rgba(255,231,214,0) 55%),
               linear-gradient(180deg, #ffffff 0%, #f2fbff 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.55;
}
h1,h2,h3,h4 { font-family: "Sora", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0; color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
@media (prefers-reduced-motion: reduce){ *{ animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

.container-x { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px){ .container-x { padding: 0 32px; } }

.gradient-text { background: var(--sunset-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gradient-text-cyan { background: var(--cyan-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px;
  padding: 12px 24px; border: 0; cursor: pointer; font-family: "Sora", sans-serif; font-weight: 700;
  letter-spacing: .01em; font-size: 15px; transition: transform .1s, box-shadow .2s, filter .2s, background .2s; text-align: center; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--sunset-grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(249,115,22,.5); }
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 14px 30px -8px rgba(249,115,22,.6); }
.btn-cyan { background: var(--cyan-grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(37,99,235,.45); }
.btn-cyan:hover { filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--cyan); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* Cards / inputs */
.card { border-radius: 18px; border: 1px solid var(--border); background: var(--panel); padding: 24px; box-shadow: var(--shadow-sm); }
.eyebrow { display: inline-block; margin-bottom: 12px; padding: 4px 16px; border-radius: 999px;
  border: 1px solid rgba(8,145,178,.28); background: rgba(6,182,212,.10); color: var(--cyan);
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; border-radius: 12px; border: 1px solid var(--border); background: var(--field); padding: 12px 16px; color: var(--ink); font: inherit; }
.input::placeholder { color: #9aa7b8; }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
select.input { appearance: none; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(255,255,255,.85); backdrop-filter: blur(14px); border-bottom-color: var(--hair); box-shadow: 0 6px 20px -16px rgba(10,31,68,.5); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 768px){ .site-header .bar { height: 80px; } }
.nav-desktop { display: none; align-items: center; gap: 32px; }
@media (min-width: 768px){ .nav-desktop { display: flex; } }
.nav-desktop a { font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color .2s; }
.nav-desktop a:hover { color: var(--cyan); }
.hamburger { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 20px; }
@media (min-width: 768px){ .hamburger { display: none; } }
.mobile-menu { display: none; padding: 8px 0 24px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 8px; font-size: 18px; font-weight: 600; border-radius: 8px; color: var(--ink); }
.mobile-menu a:hover { background: var(--panel-2); }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo .word { font-family: "Sora"; font-size: 18px; font-weight: 800; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); color: var(--ink); }

/* Full-screen video hero — the video plays across the whole hero on entry */
.hero { position: relative; height: 100svh; min-height: 600px; max-height: 940px; overflow: hidden; background: #06142e; }
.hero-video-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-video-bg iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh; border: 0; pointer-events: none; }
.hero-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,18,46,.62) 0%, rgba(6,18,46,.34) 38%, rgba(6,18,46,.44) 68%, rgba(6,18,46,.85) 100%); }
/* NOTE: keep side padding as longhand so container-x's horizontal padding
   (the margin from the screen edges) is preserved — using the `padding`
   shorthand here would reset left/right to 0 and glue text to the edge. */
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 88px; padding-bottom: 40px; }
.hero-content h1 { color: #fff; font-size: 31px; line-height: 1.08; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero-content p { color: rgba(255,255,255,.94); font-size: 15.5px; max-width: 34rem; }
.hero-content .btn { width: 100%; }
.hero-content .hero-cta { display: flex; flex-direction: column; gap: 12px; }
.hero-content .hero-stats { gap: 16px 28px; }
.hero-content .hero-stats > div { flex: 0 0 auto; }
.hero-content .hero-stats > div > div:last-child { white-space: nowrap; }
.hero-content .muted { color: rgba(255,255,255,.8); }
.hero-content .eyebrow { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.14); }
@media (min-width: 480px){
  .hero-content h1 { font-size: 40px; }
  .hero-content p { font-size: 16px; }
  .hero-content .btn { width: auto; }
  .hero-content .hero-cta { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 640px){ .hero-content h1 { font-size: 54px; } .hero-content p { font-size: 18px; } }
@media (min-width: 900px){ .hero-content h1 { font-size: 70px; } }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.85); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
@media (max-width: 479px){ .scroll-cue { display: none; } }

/* Video modal frame (gallery/other) */
.video-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.2); background: #06142e; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Logo wordmark: first word adapts (dark on light, white over the video hero) */
.logo .brand-1 { color: var(--ink); }
body[data-hero] .site-header:not(.scrolled) .nav-desktop a,
body[data-hero] .site-header:not(.scrolled) .hamburger { color: #fff; }
body[data-hero] .site-header:not(.scrolled) .logo .brand-1 { color: #fff; }

/* Sections */
.section { padding: 80px 0; }
@media (min-width: 768px){ .section { padding: 108px 0; } }
.section-soft { background: var(--bg-soft); }
.section-soft2 { background: var(--bg-soft2); }
.h-display { font-size: 30px; }
@media (min-width: 640px){ .h-display { font-size: 46px; } }

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: repeat(2,1fr); }
@media (min-width: 640px){ .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px){ .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); } }

/* Overlay / lightbox */
.overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: rgba(6,20,46,.72); backdrop-filter: blur(6px); padding: 16px; }
.overlay .close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--ink); border: 0; font-size: 24px; cursor: pointer; box-shadow: var(--shadow-sm); }

/* Gallery */
.masonry { column-count: 2; column-gap: 12px; }
@media (min-width: 640px){ .masonry { column-count: 3; } }
@media (min-width: 1024px){ .masonry { column-count: 4; } }
.masonry img { width: 100%; margin-bottom: 12px; border-radius: 14px; border: 1px solid var(--border); cursor: pointer; transition: transform .3s, box-shadow .3s; box-shadow: var(--shadow-sm); }
.masonry img:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow); }

/* Tags */
.tag { display: inline-block; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.tag-cyan { background: rgba(6,182,212,.14); color: var(--cyan); }
.tag-sunset { background: rgba(249,115,22,.15); color: var(--sunset-deep); }
.tag-neon { background: rgba(16,185,129,.15); color: #0f9d6f; }
.tag-amber { background: rgba(245,158,11,.16); color: #b45309; }
.tag-red { background: rgba(239,68,68,.14); color: #dc2626; }
.tag-slate { background: rgba(100,116,139,.15); color: #475569; }

/* Stepper */
.steps { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 28px; }
.steps .num { display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); }
.steps .num.on { background: var(--cyan-grad); color: #fff; border-color: transparent; }
.steps .line { flex: 1; height: 1px; background: var(--border); }

/* Admin */
.admin { min-height: 100vh; background: var(--bg-soft); }
@media (min-width: 1024px){ .admin { display: grid; grid-template-columns: 260px 1fr; } }
.admin-side { display: none; border-right: 1px solid var(--border); background: #fff; padding: 20px; flex-direction: column; min-height: 100vh; }
@media (min-width: 1024px){ .admin-side { display: flex; } }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); background: #fff; }
@media (min-width: 1024px){ .admin-topbar { display: none; } }
.admin-main { padding: 20px; }
@media (min-width: 768px){ .admin-main { padding: 32px; } }
.admin-nav a { display: flex; align-items: center; gap: 12px; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.admin-nav a:hover { background: var(--panel-2); }
.admin-nav a.active { background: rgba(6,182,212,.12); color: var(--cyan); font-weight: 700; }
.admin-mnav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
@media (min-width: 1024px){ .admin-mnav { display: none; } }
.admin-mnav a { white-space: nowrap; border-radius: 8px; padding: 8px 14px; font-size: 13px; background: #fff; border: 1px solid var(--border); }
.admin-mnav a.active { background: rgba(6,182,212,.12); color: var(--cyan); border-color: transparent; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; min-width: 760px; }
table.data thead { background: var(--panel-2); }
table.data th { padding: 12px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
table.data td { padding: 12px 16px; border-top: 1px solid var(--hair); }
table.data tbody tr:hover { background: var(--panel-2); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--cyan); }

/* Stat tiles */
.stat { border-radius: 16px; border: 1px solid var(--border); background: #fff; padding: 20px; box-shadow: var(--shadow-sm); }
.stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat .v { font-family: "Sora"; font-size: 30px; font-weight: 800; color: var(--ink); margin-top: 4px; }
.stat .s { font-size: 12px; color: var(--muted); }

/* Utility */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 32px; }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.gap { gap: 12px; } .wrap { flex-wrap: wrap; }
.notice { border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.notice-sunset { border: 1px solid rgba(249,115,22,.35); background: rgba(249,115,22,.08); }
.notice-cyan { border: 1px solid rgba(6,182,212,.3); background: rgba(6,182,212,.07); }
.hidden { display: none !important; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }
.float { animation: float 6s ease-in-out infinite; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(6,182,212,.4); border-radius: 8px; }

/* Layout utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-xl { max-width: 36rem; } .maxw-2 { max-width: 42rem; } .maxw-3 { max-width: 48rem; }
.mb { margin-bottom: 16px; } .mb-lg { margin-bottom: 32px; }
.relative { position: relative; }
.list-check { list-style: none; padding: 0; margin: 12px 0 0; }
.list-check li { display: flex; gap: 8px; margin-top: 8px; font-size: 14px; }
.prose p { color: var(--ink-2); margin: 12px 0 0; }
.prose h2 { font-size: 20px; color: var(--cyan); margin-top: 32px; }
.icon-lg { font-size: 30px; }
