/* =============================================================================
   DiveLink — Shared Stylesheet
   Clean, minimal, ocean-themed. Light base with deep ocean accents.
   Fonts: Cormorant Garamond (display) + DM Sans (body)
============================================================================= */

:root {
  --deep:    #001828;
  --ocean:   #003d5b;
  --mid:     #005a7a;
  --aqua:    #00b8d0;
  --foam:    #7ee8f0;
  --reef:    #2dc88a;
  --coral:   #e85d4a;
  --sand:    #f0c060;
  --surface: #f4f8fb;
  --white:   #ffffff;
  --muted:   #5a7a90;
  --border:  rgba(0,80,120,0.1);
  --ink:     #0d1f2d;
  --radius:  16px;
  --shadow:  0 8px 32px rgba(0,30,60,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'DM Sans', sans-serif; font-weight: 400; color: var(--ink); background: #fff; overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.section-label { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aqua); margin-bottom: 12px; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 4vw, 52px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; color: var(--deep); margin-bottom: 0; }
.section-title em { font-style: italic; font-weight: 300; color: var(--aqua); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
section { position: relative; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0.01em; border: none; transition: all 0.2s ease; white-space: nowrap; }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 8px; }
.btn-primary { background: linear-gradient(135deg, var(--aqua), #009ab8); color: var(--deep); font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,184,208,0.35); }
.btn-secondary { background: var(--deep); color: #fff; }
.btn-secondary:hover { background: var(--ocean); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,30,60,0.25); }
.btn-ghost { background: transparent; color: var(--ocean); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-outline { background: transparent; border: 1px solid rgba(0,184,208,0.4); color: var(--aqua); }
.btn-outline:hover { background: rgba(0,184,208,0.06); border-color: var(--aqua); }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 100px; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; }
.badge-deal  { background: var(--sand); color: #5a3a00; }
.badge-guide { background: var(--coral); color: #fff; }
.badge-full  { background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(6px); }
.badge-calm  { background: var(--reef); color: #fff; }
.badge-hot   { background: rgba(232,93,74,0.85); color: #fff; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); transition: background 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(255,255,255,0.98); box-shadow: 0 4px 24px rgba(0,30,60,0.08); }
.nav.dark { background: rgba(0,24,40,0.92); border-bottom-color: rgba(255,255,255,0.08); }
.nav.dark.scrolled { background: rgba(0,24,40,0.98); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 32px; height: 68px; display: flex; align-items: center; gap: 48px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.logo-mark { font-size: 22px; }
.logo-text { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: var(--deep); letter-spacing: -0.01em; }
.logo-text em { font-style: normal; color: var(--aqua); }
.nav.dark .logo-text { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 32px; flex: 1; }
.nav-links a { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ocean); }
.nav.dark .nav-links a { color: rgba(255,255,255,0.55); }
.nav.dark .nav-links a:hover { color: var(--aqua); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; margin-left: auto; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--deep); border-radius: 2px; transition: all 0.2s; }
.nav.dark .nav-hamburger span { background: #fff; }
.mobile-menu { display: none; flex-direction: column; gap: 0; background: #fff; border-top: 1px solid var(--border); padding: 16px 24px 24px; }
.mobile-menu a { font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--muted); padding: 12px 0; border-bottom: 1px solid var(--border); display: block; }
.mobile-menu a:hover { color: var(--ocean); }
.mobile-menu.open { display: flex; }

.footer { background: var(--deep); color: rgba(255,255,255,0.55); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.35); margin-top: 16px; max-width: 260px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { font-size: 18px; opacity: 0.4; transition: opacity 0.2s; }
.footer-social a:hover { opacity: 0.9; }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-col a:hover { color: var(--aqua); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: 12px; color: rgba(255,255,255,0.2); flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.2); transition: color 0.2s; }
.footer-links a:hover { color: var(--aqua); }

.page-hero { padding: 140px 24px 80px; background: linear-gradient(180deg, var(--deep) 0%, var(--ocean) 60%, #002a40 100%); text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 80%, rgba(0,180,200,0.07), transparent); }
.page-hero-label { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aqua); margin-bottom: 16px; position: relative; }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(40px, 6vw, 72px); font-weight: 300; color: #fff; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 20px; position: relative; }
.page-hero h1 em { font-style: italic; color: var(--aqua); }
.page-hero p { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.5); max-width: 540px; margin: 0 auto; line-height: 1.75; position: relative; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
label { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.form-input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--ink); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.form-input:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(0,184,208,0.12); }
.form-input::placeholder { color: rgba(90,120,140,0.45); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a7a90' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.divider { width: 48px; height: 2px; background: linear-gradient(90deg, var(--aqua), var(--reef)); border-radius: 2px; margin: 24px 0; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 20px 0; }
.filter-pill { padding: 8px 18px; border-radius: 100px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 400; color: var(--muted); border: 1px solid var(--border); background: #fff; transition: all 0.2s; cursor: pointer; }
.filter-pill:hover, .filter-pill.active { background: var(--aqua); border-color: var(--aqua); color: var(--deep); font-weight: 500; }
.stars { color: var(--sand); letter-spacing: 1px; }

.offline-banner { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ocean); color: #fff; padding: 12px 24px; border-radius: 100px; font-size: 13px; font-weight: 500; display: none; align-items: center; gap: 8px; z-index: 9999; box-shadow: 0 8px 32px rgba(0,0,0,0.3); animation: fadeIn 0.3s ease; }
.offline-banner.show { display: flex; }
.install-banner { position: fixed; bottom: 20px; right: 20px; background: var(--deep); color: #fff; padding: 16px 20px; border-radius: 16px; max-width: 300px; display: none; flex-direction: column; gap: 10px; z-index: 9998; box-shadow: 0 8px 32px rgba(0,0,0,0.3); animation: fadeUp 0.4s ease; }
.install-banner.show { display: flex; }
.install-banner h4 { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; }
.install-banner p { font-size: 12px; color: rgba(255,255,255,0.55); }
.install-banner-actions { display: flex; gap: 8px; }
.update-banner { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); background: var(--reef); color: var(--deep); padding: 12px 24px; border-radius: 100px; font-size: 13px; font-weight: 600; display: none; align-items: center; gap: 12px; z-index: 9999; cursor: pointer; }
.update-banner.show { display: flex; }

@media (max-width: 900px) { .nav-links, .nav-actions { display: none; } .nav-hamburger { display: flex; } .nav-inner { gap: 0; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .container { padding: 0 20px; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } .page-hero { padding: 120px 20px 60px; } }
