/* ============================================================
   Marina — nautical theme
   Palette: deep-sea navy, drifting teal waves, aqua accents
   ============================================================ */

:root {
    --abyss:       #030f16;
    --abyss-2:     #05192b;
    --deep-1:      #0a3a4f;
    --deep-2:      #123d5c;
    --accent:      #5eead4;
    --accent-soft: #38bdf8;
    --text-glow:   #bff3e6;
    --glass-bg:    rgba(230, 248, 255, 0.05);
    --glass-line:  rgba(230, 248, 255, 0.10);
}

letter-wide { letter-spacing: 0.08em; }

/* ---------- Base ---------- */

html, body {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 85% 55% at 20% -10%, rgba(18, 61, 92, 0.35), transparent 60%),
        radial-gradient(ellipse 70% 45% at 90% 110%, rgba(10, 58, 79, 0.45), transparent 65%),
        linear-gradient(180deg, var(--abyss) 0%, var(--abyss-2) 55%, var(--abyss) 100%);
    background-attachment: fixed;
    color: #e2ecf2;
    font-family: "Inter", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .hero-title, .btn {
    font-family: "Prata", "Inter", system-ui, serif;
    font-weight: 400;
}
h2.h5, h3.h4, .navbar-brand, .btn {
    font-family: "Inter", system-ui, sans-serif;
}
.btn, .h5.h2 {
    font-weight: 600;
}

/* ---------- Seascape backdrop ---------- */

#seascape {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ---------- Glass panels ---------- */

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-line);
    border-radius: 1.1rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 40px rgba(1, 8, 12, 0.4);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.glass:hover {
    transform: translateY(-4px);
    border-color: rgba(94, 234, 212, 0.35);
}

/* ---------- Navbar ---------- */

.glass-nav {
    background: rgba(3, 15, 22, 0.65) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(230, 248, 255, 0.07);
}
.navbar-brand .letter-wide { color: #f2f8fa; }
.nav-link {
    color: rgba(226, 236, 242, 0.72);
}
/* Match Bootstrap's .navbar-nav .nav-link.active specificity (0,3,0) so our
   accent color wins — Bootstrap's default would resolve to near-black here. */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-glow);
}
.nav .btn-outline-glow.active,
.navbar-nav .btn-outline-glow.active {
    background: linear-gradient(92deg, var(--accent), var(--accent-soft)) !important;
    border: none !important;
    color: #052024 !important;
}

/* ---------- Hero & headings ---------- */

.hero {
    min-height: calc(100vh - 60px);
    padding: 9rem 0 4rem;
}
.page-hero {
    padding: 9rem 0 2.5rem;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    letter-spacing: -0.01em;
    color: #f4f9fb;
}
.hero-lede {
    max-width: 42rem;
}

.gradient-text {
    background: linear-gradient(92deg, var(--accent) 10%, var(--accent-soft) 60%, #7dd3fc 110%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(226, 236, 242, 0.62);
}
.text-glow {
    color: var(--text-glow);
    text-shadow: 0 0 18px rgba(94, 234, 212, 0.5);
}

/* ---------- Buttons ---------- */

.btn {
    border-radius: 2rem;
}
.btn-glow,
.btn-outline-glow {
    background: linear-gradient(92deg, var(--accent), var(--accent-soft));
    border: none;
    color: #052024;
    font-weight: 600;
}
.btn-glow,
.btn-outline-glow:hover,
.btn-outline-glow.active,
.btn-outline-glow:not(:disabled):not(.disabled):active {
    filter: none;
    background: linear-gradient(92deg, var(--accent), var(--accent-soft)) !important;
    border: none !important;
    color: #052024 !important;
}
.btn-glow:hover, .btn-outline-glow:hover {
    filter: brightness(1.12);
}
.btn-ghost {
    border: 1px solid rgba(94, 234, 212, 0.4);
    color: var(--text-glow);
    background: transparent;
}
.btn-ghost:hover {
    background: rgba(94, 234, 212, 0.1);
    border-color: var(--accent);
    color: var(--text-glow);
}

/* ---------- Hero buoy animation ---------- */

.buoy-wrap {
    position: relative;
    width: 240px;
    height: 150px;
}
.buoy-wave {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    animation: drift 7s ease-in-out infinite alternate;
}
.buoy {
    position: absolute;
    left: 50%;
    bottom: 34px;
    width: 34px;
    height: 54px;
    transform: translateX(-50%);
    border-radius: 8px 8px 10px 10px;
    background: linear-gradient(180deg, #f97316 0 38%, #e2e5ea 38% 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    animation: bob 6s ease-in-out infinite;
    transform-origin: center bottom;
}
.buoy::before {
    content: "";
    position: absolute;
    top: -16px;
    left: 50%;
    width: 2px;
    height: 16px;
    transform: translateX(-50%);
    background: #e2e5ea;
}
.buoy-light {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #fde68a;
    box-shadow: 0 0 14px rgba(253, 230, 138, 0.9);
}
@keyframes bob {
    0%, 100% { transform: translateX(-50%) rotate(-4deg) translateY(0); }
    50%      { transform: translateX(-50%) rotate(4deg)  translateY(-6px); }
}
@keyframes drift {
    from { transform: translateX(-14px); }
    to   { transform: translateX(14px); }
}

/* ---------- Icons, stats, misc ---------- */

.icon { filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.35)); }

.stat {
    background: rgba(230, 248, 255, 0.03);
    border: 1px solid var(--glass-line);
}

.form-input {
    background: rgba(230, 248, 255, 0.045);
    border: 1px solid var(--glass-line);
    color: #eef6f9;
}
.form-input:focus {
    background: rgba(230, 248, 255, 0.075);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(94, 234, 212, 0.15);
}
.form-input::placeholder { color: rgba(226, 236, 242, 0.35); }

.glass-alert {
    background: var(--glass-bg);
    border: 1px solid rgba(94, 234, 212, 0.3);
    border-radius: 1.1rem;
    backdrop-filter: blur(14px);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid rgba(230, 248, 255, 0.07);
}
.footer-link {
    color: rgba(226, 236, 242, 0.55);
    text-decoration: none;
}
.footer-link:hover { color: var(--text-glow); }

/* Keep main content clear of the fixed navbar */
.site-main { flex: 1 0 auto; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
    .buoy, .buoy-wave { animation: none; }
    .glass, .glass:hover { transition: none; transform: none; }
}
