/* =============================================
   scuba.as — Stylesheet
   ============================================= */

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

:root {
  --ocean-deep: #0a1628;
  --ocean-mid: #0d2444;
  --ocean-blue: #1a4a7a;
  --ocean-bright: #1e7bc4;
  --ocean-light: #4db8e8;
  --ocean-pale: #a8dff5;
  --coral: #ff6b47;
  --coral-dark: #e5502e;
  --sand: #f5e6c8;
  --sand-light: #faf4e8;
  --white: #ffffff;
  --text-primary: #1a2332;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --teal: #00b4a6;
  --green: #2ecc71;
  --purple: #9b59b6;

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.16);

  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== UTILITIES ===== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocean-bright);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--ocean-deep);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-desc {
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.btn-primary:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 71, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

/* ===== NAVIGATION ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--ocean-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--coral) !important;
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 50px;
}

.nav-cta:hover {
  background: var(--coral-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(30, 123, 196, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 180, 166, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(10, 22, 40, 0.8) 0%, transparent 60%),
    linear-gradient(160deg, var(--ocean-deep) 0%, var(--ocean-mid) 40%, var(--ocean-blue) 80%, var(--ocean-bright) 120%);
  animation: oceanPulse 8s ease-in-out infinite alternate;
}

@keyframes oceanPulse {
  0% { filter: brightness(1) saturate(1); }
  100% { filter: brightness(1.08) saturate(1.1); }
}

/* Animated water ripple effect */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(77, 184, 232, 0.04) 80px,
      rgba(77, 184, 232, 0.04) 82px
    );
  animation: ripple 12s linear infinite;
}

@keyframes ripple {
  0% { transform: translateY(0); }
  100% { transform: translateY(82px); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,22,40,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  padding-top: 100px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ocean-pale);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 120px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
}

.hero-scroll span {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(77, 184, 232, 0.15);
}

.stat {
  flex: 1;
  padding: 24px 32px;
  text-align: center;
  border-right: 1px solid rgba(77, 184, 232, 0.1);
}

.stat:last-child { border-right: none; }

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ocean-light);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== ABOUT ===== */

.about {
  padding: 112px 0;
  background: var(--sand-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  height: 460px;
}

.about-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ocean-deep);
  border-left: 3px solid var(--ocean-bright);
}

.card-1 {
  top: 20px;
  left: 20px;
  animation: float 6s ease-in-out infinite;
}

.card-2 {
  top: 100px;
  right: 0;
  animation: float 6s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card-icon { font-size: 1.5rem; }

.about-depth {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ocean-deep);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.depth-bar {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}

.depth-fill {
  height: 100%;
  width: 75%;
  background: linear-gradient(to right, var(--ocean-light), var(--teal));
  border-radius: 4px;
  animation: depthFill 3s ease-in-out infinite alternate;
}

@keyframes depthFill {
  0% { width: 60%; }
  100% { width: 90%; }
}

/* Visual ocean background for about section */
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(30, 123, 196, 0.15) 0%, transparent 70%),
    linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-blue) 50%, var(--teal) 100%);
  border-radius: var(--radius-xl);
  z-index: -1;
}

/* Coral reef silhouette */
.about-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top,
    rgba(10, 22, 40, 0.9) 0%,
    rgba(10, 22, 40, 0.5) 40%,
    transparent 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  z-index: 0;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-highlights {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.highlight-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ocean-bright);
  flex-shrink: 0;
}

/* ===== DIVE SITES ===== */

.dive-sites {
  padding: 112px 0;
  background: var(--white);
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.site-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.site-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.site-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.site-visual {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.site-card.featured .site-visual {
  height: 100%;
  min-height: 320px;
}

/* Site visual gradients (ocean themed) */
.site-fagatele {
  background:
    linear-gradient(135deg, #0a4a6e 0%, #1a8fc4 30%, #00b4a6 60%, #0d5a4e 100%);
}
.site-fagatele::after {
  content: '🌊';
  position: absolute;
  font-size: 4rem;
  bottom: 16px;
  right: 24px;
  opacity: 0.6;
}

.site-aunuu {
  background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #2d6a8c 100%);
}
.site-aunuu::after {
  content: '🦈';
  position: absolute;
  font-size: 3rem;
  bottom: 16px;
  right: 24px;
  opacity: 0.7;
}

.site-pago {
  background: linear-gradient(135deg, #1a2a1a 0%, #2a4a3a 50%, #1e6a5a 100%);
}
.site-pago::after {
  content: '⚓';
  position: absolute;
  font-size: 3rem;
  bottom: 16px;
  right: 24px;
  opacity: 0.7;
}

.site-ofu {
  background: linear-gradient(135deg, #005a8e 0%, #0099cc 40%, #00ccaa 70%, #007a8a 100%);
}
.site-ofu::after {
  content: '🪸';
  position: absolute;
  font-size: 3rem;
  bottom: 16px;
  right: 24px;
  opacity: 0.7;
}

.site-taema {
  background: linear-gradient(135deg, #2a0a08 0%, #4a1a10 50%, #6a3020 100%);
}
.site-taema::after {
  content: '🪸';
  position: absolute;
  font-size: 3rem;
  bottom: 16px;
  right: 24px;
  opacity: 0.7;
}

.site-rose {
  background: linear-gradient(135deg, #0a3040 0%, #1a6080 50%, #2a90a0 100%);
}
.site-rose::after {
  content: '🏝';
  position: absolute;
  font-size: 3rem;
  bottom: 16px;
  right: 24px;
  opacity: 0.7;
}

.site-info {
  padding: 24px;
}

.site-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-green { background: #e6f9f0; color: #1a7a4a; }
.badge-blue { background: #e6f2fc; color: #1a5a9a; }
.badge-orange { background: #fff1ec; color: #b84a20; }
.badge-purple { background: #f3ecfc; color: #6a2a9a; }
.badge-teal { background: #e6faf9; color: #0a7a74; }

.site-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ocean-deep);
  margin-bottom: 10px;
}

.site-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.site-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== MARINE LIFE ===== */

.marine-life {
  padding: 112px 0;
  background: var(--ocean-deep);
}

.marine-life .section-eyebrow { color: var(--ocean-light); }
.marine-life .section-title { color: var(--white); }
.marine-life .section-desc { color: rgba(255,255,255,0.6); }

.life-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.life-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(77, 184, 232, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}

.life-item:hover {
  background: rgba(77, 184, 232, 0.1);
  border-color: rgba(77, 184, 232, 0.3);
  transform: translateY(-4px);
}

.life-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.life-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.life-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ===== PLAN ===== */

.plan {
  padding: 112px 0;
  background: var(--sand-light);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.plan-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plan-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block;
}

.plan-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ocean-deep);
  margin-bottom: 12px;
}

.plan-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.plan-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
}

.plan-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ocean-bright);
}

/* ===== CONTACT ===== */

.contact {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--ocean-mid) 0%, var(--ocean-blue) 60%, var(--ocean-bright) 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(0, 180, 166, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(77, 184, 232, 0.15) 0%, transparent 50%);
}

.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.contact .section-eyebrow { color: var(--ocean-pale); }

.contact-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-inner p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-social {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all var(--transition);
}

.social-links a:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */

.footer {
  background: var(--ocean-deep);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(77, 184, 232, 0.1);
}

.footer-inner {
  display: flex;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand {
  flex: 1;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col h5 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .life-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .sites-grid { grid-template-columns: repeat(2, 1fr); }
  .site-card.featured { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10,22,40,0.98);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 99;
  }

  .nav-links.open a {
    font-size: 1.2rem;
  }

  .nav-toggle { display: flex; z-index: 100; }

  .hero-stats {
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 50%;
    border-bottom: 1px solid rgba(77, 184, 232, 0.1);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    height: 320px;
    order: -1;
  }

  .sites-grid {
    grid-template-columns: 1fr;
  }

  .site-card.featured {
    grid-template-columns: 1fr;
  }

  .site-card.featured .site-visual {
    height: 220px;
    min-height: unset;
  }

  .life-grid { grid-template-columns: repeat(2, 1fr); }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-scroll { display: none; }

  .hero-content { padding-top: 80px; }
}

@media (max-width: 480px) {
  .life-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .stat-number { font-size: 1.4rem; }
  .footer-links { flex-direction: column; gap: 32px; }
}
