/* =========================================================
   Coral Coven — Brand CSS
   STABLE + RESPONSIVE (CLEANED & CONSOLIDATED)
========================================================= */

/* =========================
   Color System
========================= */

:root {
    --bg: #000000;
    --fg: #f4ecd8;
    --muted: #b9b2a2;
    --accent: #ed5c4c;
    --reef: #2aa9b0;
    --reef-light: #6ccfe0;
}

/* =========================
   Reset / Base
========================= */

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

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--fg);
    text-decoration: none;
}

    a:hover {
        color: var(--reef-light);
    }

/* =========================
   Header / Navigation
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0,0,0,0.85);
    border-bottom: 1px solid rgba(244,236,216,0.08);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Brand */

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
}

.brand-text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Nav */

.site-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

    .site-nav a,
    .nav-link {
        font-size: 0.8rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--muted);
        cursor: pointer;
    }

        .site-nav a:hover,
        .nav-dropdown:hover .nav-link {
            color: var(--fg);
        }

    .site-nav a,
    .nav-link {
        font-size: 0.8rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        /* Stronger default contrast */
        color: rgba(244,236,216,0.9);
        /* Subtle separation from hero */
        text-shadow: 0 1px 4px rgba(0,0,0,0.85), 0 0 12px rgba(0,0,0,0.6);
        transition: color 0.2s ease, text-shadow 0.2s ease;
    }

        /* Hover state */
        .site-nav a:hover,
        .nav-link:hover {
            color: #ffffff;
            text-shadow: 0 0 8px rgba(42,169,176,0.45), 0 0 18px rgba(42,169,176,0.25);
        }

        .site-nav a.active {
            color: #ffffff;
            text-shadow: 0 0 10px rgba(42,169,176,0.4);
        }


/* =========================
   Nav Dropdown (STABLE)
========================= */

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    margin-top: 0.5rem;
    min-width: 300px;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(244,236,216,0.12);
    border-radius: 10px;
    padding: 0.5rem 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 999;
}

    /* Hover bridge */
    .nav-menu::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 0;
        width: 100%;
        height: 10px;
    }

    .nav-dropdown:hover .nav-menu,
    .nav-menu:hover {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.65rem 1.25rem;
        font-size: 0.8rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
    }

        .nav-menu a:hover {
            background: rgba(255,255,255,0.05);
            color: var(--fg);
        }

    .nav-menu img {
        width: 100px;
        border-radius: 4px;
        object-fit: cover;
        opacity: 0.6;
        transition: opacity 0.2s ease;
    }

    .nav-menu a:hover img {
        opacity: 1;
    }

/* =========================
   Hero (FINAL)
========================= */

.hero {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url("/Images/main.jpg") center / cover no-repeat;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0.25) 65%, rgba(0,0,0,0.7) 100% );
    }

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 110px;
    height: 110px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
}

.hero-title {
    font-size: clamp(2.6rem, 4vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #f5f2e9;
    text-shadow: 0 3px 12px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.6);
    margin-bottom: 0.4rem;
}

.hero-divider {
    width: 200px;
    height: 1px;
    margin: 1rem 0;
    background: rgba(244,236,216,0.18);
}

.hero-tagline {
    background: none;
    padding: 0;
    margin-top: 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: rgba(250,246,235,0.95);
    text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 8px 22px rgba(0,0,0,0.75), 0 0 2px rgba(0,0,0,1);
}

/* =========================
   Social links (Hero)
========================= */

.social-links {
    display: inline-flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.75rem;
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(244,236,216,0.06);
}

    .social-links a {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        font-size: 0.75rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(244,236,216,0.85);
        transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
    }

        .social-links a:hover {
            color: #ffffff;
            text-shadow: 0 0 8px rgba(42,169,176,0.35), 0 0 18px rgba(42,169,176,0.25);
            transform: translateY(-1px);
        }

    .social-links .icon {
        width: 16px;
        height: 16px;
        fill: currentColor;
        opacity: 0.95;
        filter: drop-shadow(0 1px 4px rgba(0,0,0,0.8));
    }

/* Hide text labels on desktop (icons only, cleaner hero) */
@media (min-width: 900px) {
    .social-links a span {
        display: none;
    }
}


/* =========================
   Aquarium Grid (Home)
========================= */

.aquariums {
    margin-top: 4rem;
}

    .aquariums h2 {
        font-size: 1.6rem;
        margin-bottom: 1.75rem;
        letter-spacing: 0.04em;
    }

.aquarium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.aquarium-card {
    display: flex;
    flex-direction: column;
    background: #050505;
    border: 1px solid rgba(244,236,216,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

    .aquarium-card:hover {
        transform: translateY(-4px);
        border-color: rgba(42,169,176,0.35);
    }

    .aquarium-card img {
        height: 170px;
        object-fit: cover;
    }

    .aquarium-card span {
        padding: 0.9rem 1rem;
        font-size: 0.9rem;
        color: var(--reef-light);
    }

/* =========================
   Tank Pages
========================= */

.tank-hero {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto 3rem;
    border-radius: 12px;
    overflow: hidden;
}

    .tank-hero img {
        width: 100%;
        height: min(65vh, 520px);
        object-fit: cover;
    }

    .tank-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        /*background: linear-gradient( to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.65) );*/
    }

.tank-hero-overlay {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2;
}

.tank-title {
    font-size: clamp(1.6rem, 4.5vw, 2.3rem);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 8px 22px rgba(0,0,0,0.75), 0 0 2px rgba(0,0,0,1);
}

.tank-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 8px 22px rgba(0,0,0,0.75), 0 0 2px rgba(0,0,0,1);
}

/* =========================
   Footer
========================= */

.site-footer {
    border-top: 1px solid rgba(244,236,216,0.08);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}

.hero-title {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: none;
}

/* =========================
   TANK SYSTEM — VISUAL RESTORE
   (Additive, Safe)
========================= */

.tank-system {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.tank-section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.04em;
    color: var(--fg);
}

/* Footnote */
.tank-footnote {
    margin-top: 3rem;
    max-width: 70ch;
    font-size: 0.85rem;
    color: var(--muted);
}

/* =========================
   TANK HERO INFO CARD (REFINED)
========================= */

.tank-hero-overlay {
    position: absolute;
    left: 1.75rem;
    bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.9rem 1.1rem;
    max-width: 360px;
    background: linear-gradient( to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.45) );
    backdrop-filter: blur(6px);
    border-radius: 10px;
    border: 1px solid rgba(244,236,216,0.14);
    box-shadow: 0 10px 30px rgba(0,0,0,0.85), inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* =========================================================
   TANK PAGE — INTENTIONAL READABILITY OVERRIDES
   (Additive only — does NOT remove anything)
========================================================= */

/* -------------------------
   Tank Hero Overlay
------------------------- */

.tank-hero-overlay {
    right: auto; /* prevents full-width stretch */
    max-width: 420px;
    padding: 0.9rem 1.15rem;
    background: linear-gradient( to bottom, rgba(0,0,0,0.78), rgba(0,0,0,0.52) );
    border-radius: 10px;
    border: 1px solid rgba(244,236,216,0.14);
    box-shadow: 0 10px 32px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(255,255,255,0.04);
}

/* Title refinement */
.tank-title {
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #ffffff;
}

/* Subtitle refinement */
.tank-subtitle {
    margin-top: 0.3rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: rgba(244,236,216,0.8);
}

/* -------------------------
   System Overview Section
------------------------- */

.tank-system {
    margin-top: 3.5rem;
}

/* Make section title feel intentional */
.tank-section-title {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

/* =========================
   TANK HEADER (NEW)
========================= */

.tank-header {
    margin: -1.5rem auto 3rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: linear-gradient( 180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.95) );
    box-shadow: 0 20px 40px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(255,255,255,0.03);
}

    .tank-header .tank-title {
        margin: 0;
        font-size: clamp(1.9rem, 4vw, 2.4rem);
        font-weight: 600;
        letter-spacing: 0.04em;
        color: var(--fg);
        text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    }

    .tank-header .tank-subtitle {
        margin: 0;
        font-size: 0.75rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--muted);
    }

.tank-header {
    max-width: 1200px;
    margin: -2.25rem auto 4rem;
    padding: 1.75rem 2rem 1.4rem;
    background: linear-gradient( 180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.95) );
    border-radius: 14px;
    /* removed border */
    box-shadow: 0 22px 44px rgba(0,0,0,0.85);
}

    .tank-header .tank-subtitle {
        margin-top: 0.4rem;
        font-size: 0.7rem;
        letter-spacing: 0.22em;
        opacity: 0.85;
    }

/* =========================================================
   TANK SYSTEM — FISH ROOM ALIGNED (BOXED)
   Quiet, contained, architectural
========================================================= */

.tank-system {
    max-width: 1100px;
    margin: 4.5rem auto 5.5rem;
    padding: 0 1.5rem;
}

/* Section title */
.tank-section-title {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 2.5rem;
    color: var(--fg);
}

/* Grid */
.tank-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.25rem;
}

/* Individual spec box */
.tank-spec {
    background: linear-gradient( to bottom, rgba(255,255,255,0.035), rgba(255,255,255,0.02) );
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 10px 26px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(244,236,216,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .tank-spec:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 34px rgba(0,0,0,0.75), inset 0 0 0 1px rgba(42,169,176,0.18);
    }

    /* Label */
    .tank-spec .label {
        display: block;
        margin-bottom: 0.4rem;
        font-size: 0.65rem;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: rgba(185,178,162,0.8);
    }

    /* Value */
    .tank-spec .value {
        font-size: 0.95rem;
        line-height: 1.55;
        color: var(--fg);
    }

        /* Links */
        .tank-spec .value a {
            color: var(--reef-light);
            text-decoration: none;
            border-bottom: 1px solid rgba(42,169,176,0.25);
        }

            .tank-spec .value a:hover {
                color: #ffffff;
                border-bottom-color: rgba(42,169,176,0.65);
            }

/* Footnote */
.tank-footnote {
    margin-top: 3.75rem;
    max-width: 70ch;
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(185,178,162,0.85);
}



/* =========================
   Fish Room Page
========================= */

.fishroom-hero {
    position: relative;
    max-width: 1200px;
    margin: 2.5rem auto 3.5rem;
    border-radius: 14px;
    overflow: hidden;
}

    .fishroom-hero img {
        width: 100%;
        height: min(70vh, 560px);
        object-fit: cover;
    }

    /* Soft cinematic overlay */
    .fishroom-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.75) 100% );
    }

/* Title card */
.fishroom-hero-overlay {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    z-index: 2;
    padding: 1.1rem 1.4rem;
    max-width: 420px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    border: 1px solid rgba(244,236,216,0.14);
    box-shadow: 0 14px 34px rgba(0,0,0,0.85);
}

.fishroom-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--fg);
    text-shadow: 0 2px 6px rgba(0,0,0,0.95);
}

.fishroom-subtitle {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Intro text */
.fishroom-intro {
    max-width: 780px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--muted);
}

/* Section cards */
.fishroom-sections {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.25rem;
}

.fishroom-card {
    padding: 1.5rem 1.6rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(244,236,216,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

    .fishroom-card h3 {
        margin-top: 0;
        margin-bottom: 0.6rem;
        font-size: 1.05rem;
        letter-spacing: 0.06em;
        color: var(--fg);
    }

    .fishroom-card p {
        font-size: 0.9rem;
        line-height: 1.65;
        color: var(--muted);
    }

/* Footer note */
.fishroom-footer-note {
    max-width: 720px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-size: 0.85rem;
    color: #aaa;
}

    .site-footer a.footer-link {
        color: #ccc;
        text-decoration: none;
    }

        .site-footer a.footer-link:hover {
            color: #fff;
            text-decoration: underline;
        }

.footer-sep {
    opacity: 0.5;
}
