/*
 * SSP Modern Theme — Clean & Professional
 * Navy #0d2d52 + Gold #c9a227 + White content
 */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600&display=swap');

:root {
  --navy:    #0d2d52;
  --navy-2:  #1a4a78;
  --navy-3:  #0a2240;
  --gold:    #c9a227;
  --gold-2:  #e8bc3a;
  --white:   #ffffff;
  --bg:      #f4f6f9;
  --text:    #2c3e50;
  --text-2:  #5a6a7a;
  --border:  #e2e8f0;
  --shadow:  0 2px 14px rgba(0,0,0,0.13);
  --radius:  8px;
}

/* ── Reset & Base ── */
body {
  background: #f0f4f8 !important;
  color: var(--text) !important;
  font-family: 'Sarabun', 'Kanit', sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Kanit', sans-serif !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

a, a:link, a:visited { color: var(--navy-2) !important; }
a:hover { color: var(--gold) !important; }

p, li {
  font-size: 1rem !important;
  line-height: 1.75 !important;
  color: var(--text-2) !important;
}

/* ── Header ── */
header {
  background: var(--navy) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18) !important;
}

.top-box {
  background: var(--navy) !important;
  padding: 10px 0 !important;
}

.top-box .s-6,
.top-box .l-2 {
  background: transparent !important;
  padding-left: 1rem !important;
}

/* โลโก้ — ใช้ ssp-logo-new.png (transparent bg) */
.top-box img {
  height: 110px !important;
  width: auto !important;
  display: block !important;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.6)) !important;
}

/* ── Navigation ── */
nav {
  background: var(--navy-2) !important;
}

.top-nav li a,
.top-nav a:link,
.top-nav a:visited {
  color: rgba(255,255,255,0.88) !important;
  font-family: 'Kanit', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  padding: 0.85rem 1.1rem !important;
  letter-spacing: 0.02em !important;
  transition: all 0.2s ease !important;
}

.top-nav li a:hover,
.top-nav .active-item > a {
  background: rgba(201,162,39,0.15) !important;
  color: var(--gold-2) !important;
  border-bottom: 2px solid var(--gold) !important;
}

/* Dropdown */
.top-nav ul ul {
  background: var(--navy-3) !important;
  border: 1px solid rgba(201,162,39,0.2) !important;
  border-top: 2px solid var(--gold) !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
  box-shadow: var(--shadow) !important;
  min-width: 180px !important;
}

.top-nav li ul li a,
.top-nav li ul li a:link,
.top-nav li ul li a:visited {
  background: transparent !important;
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.9rem !important;
  padding: 0.65rem 1rem !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.top-nav li ul li a:hover {
  background: rgba(201,162,39,0.15) !important;
  color: var(--gold-2) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  padding-left: 1.3rem !important;
}

/* Language switcher */
.language {
  font-family: 'Kanit', sans-serif !important;
  font-size: 0.85rem !important;
}
.language a       { color: rgba(232,188,58,0.75) !important; }
.language a:hover { color: var(--gold-2) !important; }

/* Mobile hamburger */
.nav-text {
  color: var(--gold-2) !important;
  font-family: 'Kanit', sans-serif !important;
}

/* ── Content Layout ── */
.line { max-width: 960px; }

section {
  padding-bottom: 0.5rem;
  position: relative;
}

/* ── Animated Floating Bubbles ── */
.ssp-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ssp-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(13,45,82,0.06) 0%,
    rgba(201,162,39,0.04) 60%,
    transparent 100%);
  border: 1px solid rgba(13,45,82,0.04);
  animation: ssp-float linear infinite;
}

@keyframes ssp-float {
  0%   { transform: translateY(100vh) rotate(0deg) scale(0.4); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(360deg) scale(1); opacity: 0; }
}

/* ── Wave Separator — between sections ── */
.ssp-wave-separator {
  position: relative;
  height: 60px;
  overflow: hidden;
  margin: 0 -1rem;
}

.ssp-wave-separator svg {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
  animation: ssp-wave-slide 8s linear infinite;
}

@keyframes ssp-wave-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Shimmer Accent Lines ── */
.ssp-shimmer-line {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,162,39,0.3) 20%,
    rgba(13,45,82,0.2) 50%,
    rgba(201,162,39,0.3) 80%,
    transparent 100%);
  background-size: 200% 100%;
  animation: ssp-shimmer 3s ease-in-out infinite;
  margin: 1.5rem auto;
  max-width: 400px;
  border-radius: 2px;
}

@keyframes ssp-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Floating Fish Icons (background decoration) ── */
.ssp-deco-fish {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  color: var(--navy);
  animation: ssp-swim linear infinite;
}

@keyframes ssp-swim {
  0%   { transform: translateX(-80px) translateY(0) scaleX(1); }
  49%  { transform: translateX(calc(100vw + 80px)) translateY(-30px) scaleX(1); }
  50%  { transform: translateX(calc(100vw + 80px)) translateY(-30px) scaleX(-1); }
  100% { transform: translateX(-80px) translateY(0) scaleX(-1); }
}

/* ── Gradient Orbs (soft bg accents) ── */
.ssp-gradient-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  animation: ssp-orb-pulse 8s ease-in-out infinite alternate;
}

@keyframes ssp-orb-pulse {
  0%   { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 0.7; }
}

/* ── Section content lift (z-index above decorations) ── */
header, section, footer, .float {
  position: relative;
  z-index: 1;
}

/* ── Cards / Boxes ── */
.box {
  background: #ffffff !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  border: 1px solid var(--border) !important;
  overflow: hidden !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease !important;
}

.box:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.18) !important;
  transform: translateY(-2px) !important;
}

.box p {
  padding: 0.75rem 0.5rem 0.5rem !important;
  color: var(--text-2) !important;
  font-size: 0.95rem !important;
}

.box img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  display: block !important;
}

/* margin wrapper spacing */
.margin-bottom { margin-bottom: 1.5rem !important; }

/* ซ่อนภาพปลาตกแต่งเดิมที่ไม่เข้ากับ theme ใหม่ */
.float center img,
.float img[src*="float"] {
  display: none !important;
}

/* ── Vision / Float area ── */
.float {
  background: linear-gradient(135deg, var(--navy-3) 0%, var(--navy-2) 100%) !important;
  border-top: 3px solid var(--gold) !important;
  border-bottom: 3px solid var(--gold) !important;
  padding: 2.5rem 0 !important;
  margin: 1.5rem 0 !important;
}

.float-textarea {
  color: rgba(255,255,255,0.92) !important;
  font-family: 'Kanit', sans-serif !important;
  font-size: 1.1rem !important;
  line-height: 1.9 !important;
  text-align: center !important;
}

/* ── Section headings ── */
article h1, article h2,
.gallery-nav h1 {
  font-size: 1.3rem !important;
  color: var(--navy) !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 2px solid var(--gold) !important;
  display: inline-block !important;
  margin-bottom: 1rem !important;
}

/* ── Gallery table ── */
.gallery-nav table {
  border-collapse: separate !important;
  border-spacing: 4px !important;
}

.gallery-nav td {
  border-radius: 4px !important;
  overflow: hidden !important;
}

.gallery-nav img {
  width: 100% !important;
  height: 80px !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease, filter 0.3s ease !important;
  filter: brightness(0.92) !important;
}

.gallery-nav img:hover {
  transform: scale(1.06) !important;
  filter: brightness(1.05) !important;
}

/* ── HR ── */
hr {
  border: none !important;
  border-top: 1px solid var(--border) !important;
  margin: 1.5rem auto !important;
}

/* ── Forms ── */
form.customform input,
form.customform textarea,
form.customform select {
  background: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  font-family: 'Sarabun', sans-serif !important;
  color: var(--text) !important;
  padding: 0.6rem 0.8rem !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

form.customform input:focus,
form.customform textarea:focus,
form.customform select:focus {
  border-color: var(--navy-2) !important;
  box-shadow: 0 0 0 3px rgba(26,74,120,0.12) !important;
  outline: none !important;
}

/* ── Footer ── */
footer {
  background: var(--navy) !important;
  border-top: 3px solid var(--gold) !important;
  margin-top: 2rem !important;
  padding: 1.5rem 0 !important;
}

footer .box {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

footer p, footer a, .footer-text {
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.9rem !important;
}

footer a:hover { color: var(--gold-2) !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--navy-2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
