/* ============================================================
   DIVELINE APNEA SCHOOL — style.css
   Palette: #020d18 (abyss) · #0a2540 (ocean) · #1a9faa (teal)
   Fonts: Bebas Neue · Cormorant Garamond · DM Sans
   ============================================================ */

:root {
    --abyss:    #020d18;
    --ocean:    #0a2540;
    --deep:     #0d2f50;
    --teal:     #1a9faa;
    --teal-lo:  rgba(26,159,170,.15);
    --teal-lo2: rgba(26,159,170,.06);
    --white:    #f0ece4;
    --muted:    rgba(240,236,228,.5);
    --muted2:   rgba(240,236,228,.25);
    --line:     rgba(240,236,228,.1);
    --ff-head:  'Bebas Neue', sans-serif;
    --ff-serif: 'Cormorant Garamond', serif;
    --ff-body:  'DM Sans', sans-serif;
    --ease:     cubic-bezier(.25,.46,.45,.94);
}

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

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

body {
    background: var(--abyss);
    color: var(--white);
    font-family: var(--ff-body);
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#cur {
    position: fixed; width: 6px; height: 6px;
    background: var(--teal); border-radius: 50%;
    pointer-events: none; transform: translate(-50%,-50%);
    z-index: 9999; transition: transform .1s;
}
#cur-r {
    position: fixed; width: 32px; height: 32px;
    border: 1px solid rgba(26,159,170,.5); border-radius: 50%;
    pointer-events: none; transform: translate(-50%,-50%);
    z-index: 9998; transition: border-color .3s;
}

/* ============================================================
   BUBBLE CANVAS
   ============================================================ */
#bcanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--teal);
    color: var(--teal); border-radius: 50%;
    font-family: var(--ff-body); font-size: .85rem;
    cursor: none; z-index: 100;
    opacity: 0; transform: translateY(10px);
    transition: opacity .4s, transform .4s;
}
#back-top.show { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--teal); color: var(--abyss); }

/* ============================================================
   NAV
   ============================================================ */
#nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 500;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 3rem;
    transition: background .4s, backdrop-filter .4s, padding .4s;
}
#nav.stuck {
    background: rgba(2,13,24,.92);
    backdrop-filter: blur(12px);
    padding: .9rem 3rem;
    border-bottom: 1px solid var(--line);
}

.nav-logo img { height: 48px; filter: invert(1) brightness(1.5); }

.nav-links {
    display: flex; align-items: center; gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    font-family: var(--ff-body); font-size: .8rem;
    font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); transition: color .3s;
}
.nav-links a:hover { color: var(--white); }

.nav-dm {
    color: var(--teal) !important;
    border: 1px solid rgba(26,159,170,.4) !important;
    padding: .4rem 1rem; border-radius: 2rem;
    transition: background .3s, color .3s !important;
}
.nav-dm:hover { background: var(--teal); color: var(--abyss) !important; }

/* Lang Toggle */
.lang-toggle {
    display: flex; align-items: center; gap: .5rem;
}
.lb {
    background: none; border: none; cursor: none;
    font-family: var(--ff-body); font-size: .75rem;
    font-weight: 500; letter-spacing: .1em;
    color: var(--muted2); transition: color .3s;
}
.lb.on { color: var(--teal); }
.lb:hover { color: var(--white); }
.lb-div { color: var(--muted2); font-size: .7rem; }

/* Hamburger */
.hamb {
    display: none; flex-direction: column; gap: 5px;
    cursor: none; z-index: 600;
}
.hamb span {
    display: block; width: 24px; height: 1px;
    background: var(--white); transition: transform .3s, opacity .3s;
}
.hamb.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamb.active span:nth-child(2) { opacity: 0; }
.hamb.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.rv {
    opacity: 0; transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.rv.show { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }

/* ============================================================
   SHARED SECTION
   ============================================================ */
.sec { position: relative; z-index: 1; padding: 7rem 3rem; }

.sec-label {
    font-family: var(--ff-body); font-size: .7rem;
    font-weight: 500; letter-spacing: .25em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 1.5rem;
}
.sec-title {
    font-family: var(--ff-head); font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: .95; letter-spacing: .02em;
    color: var(--white); margin-bottom: 2rem;
}
.sec-body {
    font-family: var(--ff-serif); font-size: 1.15rem;
    line-height: 1.75; color: var(--muted); max-width: 55ch;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-main {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--teal); color: var(--abyss);
    font-family: var(--ff-body); font-size: .8rem;
    font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
    padding: .85rem 2rem; border-radius: 2rem;
    transition: transform .3s, box-shadow .3s;
}
.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26,159,170,.35);
}
.btn-ghost {
    display: inline-flex; align-items: center; gap: .5rem;
    border: 1px solid var(--muted2); color: var(--muted);
    font-family: var(--ff-body); font-size: .8rem;
    font-weight: 400; letter-spacing: .15em; text-transform: uppercase;
    padding: .85rem 2rem; border-radius: 2rem;
    transition: border-color .3s, color .3s;
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; z-index: 1;
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 8rem 2rem 5rem;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 80% at 50% 0%, #0a2540 0%, var(--abyss) 70%);
}

/* Depth lines — vertical lines like sonar */
.hero-depth-lines {
    position: absolute; inset: 0; pointer-events: none;
    display: flex; justify-content: space-evenly;
}
.hero-depth-lines span {
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(26,159,170,.08) 30%, rgba(26,159,170,.12) 60%, transparent);
}

.hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: 1.25rem;
}

.hero-eyebrow {
    font-family: var(--ff-body); font-size: .7rem;
    font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
    color: var(--teal);
}

.hero-logo-wrap img {
    height: 100px;
    filter: invert(1) brightness(2);
    opacity: .9;
}

.hero-head {
    font-family: var(--ff-head);
    font-size: clamp(5rem, 16vw, 13rem);
    line-height: .88; letter-spacing: .04em;
    color: var(--white);
}

.hero-tagline-wrap {
    display: flex; align-items: center; gap: 1.2rem;
    max-width: 620px;
}
.tl-dash { flex: 1; height: 1px; background: var(--muted2); }
.tl-text {
    font-family: var(--ff-serif); font-style: italic;
    font-size: clamp(.95rem, 1.6vw, 1.1rem);
    color: var(--muted); line-height: 1.5; text-align: center;
}

.hero-sub {
    font-family: var(--ff-body); font-size: .9rem;
    color: var(--muted2); letter-spacing: .05em;
}

.hero-ctas {
    display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
    margin-top: .5rem;
}

.hero-depth-label {
    position: absolute; left: 2rem; bottom: 2rem;
    font-family: var(--ff-body); font-size: .65rem;
    letter-spacing: .2em; color: var(--muted2); text-transform: uppercase;
}

/* Scroll hint */
.scroll-hint {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    color: var(--muted2); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-hint span {
    display: block; width: 1px; height: 40px;
    background: linear-gradient(to bottom, transparent, var(--teal));
    animation: scrollline 2s ease infinite;
}
@keyframes scrollline {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   STORY TEASER
   ============================================================ */
.story-sec {
    background: var(--abyss);
    border-top: 1px solid var(--line);
}
.story-inner {
    max-width: 760px; margin: 0 auto;
}
.story-teaser-body p {
    font-family: var(--ff-serif); font-size: 1.15rem;
    line-height: 1.8; color: var(--muted); margin-bottom: 1.2rem;
}
.story-teaser-body p:last-child {
    font-style: italic; color: var(--teal); font-size: 1.25rem;
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy-sec {
    background: linear-gradient(to bottom, var(--abyss), var(--ocean));
    border-top: 1px solid var(--line);
}
.philosophy-inner { max-width: 900px; margin: 0 auto; }

.philosophy-quote {
    font-family: var(--ff-serif); font-size: clamp(1.4rem, 3vw, 2rem);
    font-style: italic; line-height: 1.5;
    color: var(--white); border-left: 2px solid var(--teal);
    padding-left: 2rem; margin-bottom: 4rem; max-width: 70ch;
}

.pillars {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.pillar {
    padding: 2.5rem 2rem;
    border: 1px solid var(--line); border-radius: .5rem;
    background: var(--teal-lo2);
    transition: border-color .3s, background .3s;
}
.pillar:hover { border-color: rgba(26,159,170,.3); background: var(--teal-lo); }

.pillar-icon {
    font-size: 1.5rem; color: var(--teal);
    margin-bottom: 1.25rem;
}
.pillar-title {
    font-family: var(--ff-head); font-size: 1.5rem;
    letter-spacing: .04em; margin-bottom: .75rem;
}
.pillar-body {
    font-family: var(--ff-serif); font-size: 1rem;
    line-height: 1.7; color: var(--muted);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-sec {
    background: var(--ocean);
    border-top: 1px solid var(--line);
}
.about-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr auto;
    gap: 5rem; align-items: center;
}
.about-stats {
    display: flex; flex-direction: column; gap: 3rem;
}
.stat { text-align: right; }
.stat-num {
    display: block;
    font-family: var(--ff-head); font-size: 4rem;
    color: var(--teal); line-height: 1;
}
.stat-label {
    font-family: var(--ff-body); font-size: .7rem;
    letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

/* ============================================================
   INSTRUCTOR
   ============================================================ */
.instr-sec {
    background: linear-gradient(to bottom, var(--ocean), var(--abyss));
    border-top: 1px solid var(--line);
}
.instr-inner { max-width: 800px; margin: 0 auto; }

.instr-card {
    display: flex; gap: 3rem; align-items: flex-start;
    padding: 3rem; border: 1px solid var(--line); border-radius: .5rem;
    background: var(--teal-lo2);
}
.instr-monogram {
    flex-shrink: 0;
    width: 80px; height: 80px; border-radius: 50%;
    border: 1px solid var(--teal);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--ff-head); font-size: 1.5rem; color: var(--teal);
}
.instr-name {
    font-family: var(--ff-head); font-size: 2.5rem;
    letter-spacing: .04em; margin-bottom: .25rem;
}
.instr-role {
    font-family: var(--ff-body); font-size: .75rem;
    letter-spacing: .15em; text-transform: uppercase; color: var(--teal);
    margin-bottom: .2rem;
}
.instr-cred {
    font-family: var(--ff-body); font-size: .75rem;
    letter-spacing: .1em; color: var(--muted2); margin-bottom: 1rem;
}
.instr-bio {
    font-family: var(--ff-serif); font-size: 1.05rem;
    line-height: 1.7; color: var(--muted); margin-bottom: 1.25rem;
}
.instr-social { display: flex; gap: 1.5rem; }
.instr-ig {
    font-family: var(--ff-body); font-size: .75rem;
    letter-spacing: .1em; color: var(--muted2);
    border-bottom: 1px solid var(--muted2);
    transition: color .3s, border-color .3s;
}
.instr-ig:hover { color: var(--teal); border-color: var(--teal); }

/* ============================================================
   PERSONAL NOTE
   ============================================================ */
.note-sec {
    background: var(--abyss);
    border-top: 1px solid var(--line);
}
.note-inner { max-width: 700px; margin: 0 auto; }
.note-card {
    padding: 3.5rem;
    background: var(--teal-lo2); border: 1px solid var(--line);
    border-radius: .5rem;
}
.note-quote {
    font-family: var(--ff-serif); font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-style: italic; color: var(--white); line-height: 1.5;
    margin-bottom: 2.5rem; padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}
.note-body p {
    font-family: var(--ff-serif); font-size: 1.05rem;
    line-height: 1.8; color: var(--muted); margin-bottom: 1.25rem;
}
.note-signature {
    margin-top: 2rem; padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-family: var(--ff-serif); font-style: italic;
    font-size: 1.1rem; color: var(--teal);
}

/* ============================================================
   LOCATION
   ============================================================ */
.loc-sec {
    background: linear-gradient(to bottom, var(--abyss), var(--ocean));
    border-top: 1px solid var(--line);
}
.loc-inner { max-width: 800px; margin: 0 auto; }

.loc-details {
    display: flex; flex-direction: column; gap: 2rem;
    margin-top: 3rem;
}
.loc-item {
    display: flex; align-items: flex-start; gap: 1.5rem;
    padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.loc-item:last-child { border-bottom: none; padding-bottom: 0; }
.loc-icon { font-size: 1.2rem; color: var(--teal); padding-top: .1rem; flex-shrink: 0; }
.loc-item strong {
    display: block; font-family: var(--ff-body); font-size: .9rem;
    font-weight: 500; letter-spacing: .05em; margin-bottom: .25rem;
}
.loc-item p {
    font-family: var(--ff-serif); font-size: 1rem; color: var(--muted);
}

/* ============================================================
   CTA
   ============================================================ */
.cta-sec {
    background: var(--ocean);
    border-top: 1px solid var(--line);
    padding: 8rem 3rem;
    text-align: center; position: relative; z-index: 1;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-head {
    font-family: var(--ff-head);
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: .9; margin-bottom: 1.5rem;
    color: var(--white);
}
.cta-sub {
    font-family: var(--ff-serif); font-size: 1.15rem;
    line-height: 1.7; color: var(--muted); margin-bottom: 2.5rem;
}
.cta-btn {
    display: inline-block;
    background: var(--teal); color: var(--abyss);
    font-family: var(--ff-body); font-size: .85rem;
    font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
    padding: 1rem 2.5rem; border-radius: 2rem;
    transition: transform .3s, box-shadow .3s;
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(26,159,170,.4);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--abyss);
    border-top: 1px solid var(--line);
    padding: 3rem;
    position: relative; z-index: 1;
}
.ft-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 1.5rem;
}
.ft-brand {
    font-family: var(--ff-head); font-size: 1.2rem;
    letter-spacing: .1em; color: var(--white);
}
.ft-brand em { font-family: var(--ff-serif); font-weight: 300; color: var(--muted); }
.ft-links { display: flex; gap: 2rem; }
.ft-links a {
    font-family: var(--ff-body); font-size: .75rem;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted2); transition: color .3s;
}
.ft-links a:hover { color: var(--teal); }
.ft-copy {
    font-family: var(--ff-body); font-size: .7rem;
    color: var(--muted2); letter-spacing: .05em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    #nav { padding: 1rem 1.5rem; }
    #nav.stuck { padding: .75rem 1.5rem; }

    .nav-links {
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(320px, 85vw);
        background: rgba(2,13,24,.97);
        flex-direction: column; justify-content: center;
        gap: 2rem; padding: 2rem 2.5rem;
        transform: translateX(110%);
        transition: transform .4s var(--ease);
        border-left: 1px solid var(--line);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 1rem; }
    .hamb { display: flex; }

    .pillars { grid-template-columns: 1fr; }
    .about-inner { grid-template-columns: 1fr; gap: 3rem; }
    .about-stats { flex-direction: row; flex-wrap: wrap; gap: 2rem; }
    .stat { text-align: left; }
    .instr-card { flex-direction: column; gap: 1.5rem; }
    .ft-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .ft-links { flex-wrap: wrap; gap: 1rem; }
    .sec { padding: 5rem 1.5rem; }
    .cta-sec { padding: 5rem 1.5rem; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-logo-wrap img { height: 70px; }
    .instr-card { padding: 2rem 1.5rem; }
    .note-card { padding: 2rem 1.5rem; }
}
