/* =====================================================================
   nabeat — design system
   ===================================================================== */

/* Fonts */
@font-face {
    font-family: 'Aglet Sans';
    src: url('../fonts/aglet-sans/fonnts.com-Aglet_Sans_VF_Regular.otf') format('opentype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Aglet Sans';
    src: url('../fonts/aglet-sans/fonnts.com-Aglet_Sans_VF_Italic.otf') format('opentype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Variables */
:root {
    --bg:          #e9e0da;
    --surface:     #d9d3c2;
    --surface-2:   #c7c4ab;
    --text:        #5c5653;
    --text-muted:  #7a736f;
    --accent:      #dd9363;
    --accent-2:    #81884f;
    --accent-rust: #b04d22;
    --lavender:    #b7a5c1;
    --accent-soft:      rgba(221, 147, 99, 0.12);
    --accent-soft-hover:rgba(221, 147, 99, 0.22);
    --border:           rgba(92, 86, 83, 0.12);
    --border-soft:      rgba(92, 86, 83, 0.08);
    --border-strong:    rgba(92, 86, 83, 0.15);
    --nav-bg:           rgba(233, 224, 218, 0.92);
    --nav-shadow:       rgba(92, 86, 83, 0.08);
    --nav-border:       rgba(92, 86, 83, 0.14);
    --lavender-dark:    #c2b0cd;
    --text-dark:        #3a3835;
    --section-gap: 7rem;
    --container:   880px;
}

/* Base */
html { scroll-behavior: smooth; }

body {
    font-family: 'Aglet Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    font-weight: 300;
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* =====================================================================
   Ambient glows — pure radial gradient, no GPU blur (iOS-friendly)
   ===================================================================== */
.glow {
    position: fixed;
    width: 800px;
    height: 800px;
    pointer-events: none;
    z-index: 0;
}
.glow--1 {
    background: radial-gradient(circle, rgba(221, 147, 99, 0.28) 0%, rgba(221, 147, 99, 0) 60%);
    top: -300px; right: -200px;
}
.glow--2 {
    background: radial-gradient(circle, rgba(183, 165, 193, 0.24) 0%, rgba(183, 165, 193, 0) 60%);
    bottom: -300px; left: -200px;
}

/* =====================================================================
   Navigation
   ===================================================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 1px 20px var(--nav-shadow);
}

.nav-logo {
    display: flex;
    align-items: center;
}
.nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }

/* =====================================================================
   Container & layout
   ===================================================================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section { padding: var(--section-gap) 0; }
section[id] { scroll-margin-top: 80px; }

/* =====================================================================
   Typography helpers
   ===================================================================== */
.section-eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.section-title {
    font-family: 'Aglet Sans', sans-serif;
    font-weight: 500;
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 1rem;
}
.section-title em {
    font-style: italic;
    color: var(--accent);
}

.section-lead {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-muted);
    max-width: 620px;
}

/* =====================================================================
   Divider
   ===================================================================== */
.divider {
    width: 48px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
    margin: 2rem 0;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* =====================================================================
   Grid
   ===================================================================== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr;      gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }

/* =====================================================================
   Card
   ===================================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 2rem 2.25rem;
}

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Aglet Sans', sans-serif;
}
.btn--outline {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.btn--outline:hover { background: var(--accent-soft-hover); }

.btn--ghost {
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
}
.btn--ghost:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* =====================================================================
   Social link (Instagram-style pill)
   ===================================================================== */
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.7rem 1.6rem;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    text-decoration: none;
}
.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}
.social-link svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* =====================================================================
   Animations
   ===================================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible              { opacity: 1; transform: translateY(0); }
.reveal-delay-1              { transition-delay: 0.1s; }
.reveal-delay-2              { transition-delay: 0.2s; }
.reveal-delay-3              { transition-delay: 0.3s; }

/* =====================================================================
   Hero
   ===================================================================== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 4rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-logo {
    width: clamp(220px, 48vw, 640px);
    height: auto;
    margin-bottom: 3rem;
    animation: fadeUp 0.8s ease-out both;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    gap: 2.5rem;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.hero-photo {
    align-self: stretch;
    overflow: hidden;
    border-radius: 12px;
    max-height: 60vh;
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-photo--left  { animation: fadeUp 0.8s ease-out 0.3s both; }
.hero-photo--right { animation: fadeUp 0.8s ease-out 0.4s both; }

.hero-tagline {
    font-family: 'Aglet Sans', sans-serif;
    font-style: italic;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
    animation: fadeUp 0.8s ease-out 0.15s both;
}

.hero-divider {
    width: 48px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
    margin: 0 auto 2.5rem;
    animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-description {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.95;
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 auto 2.5rem;
    animation: fadeUp 0.8s ease-out 0.45s both;
}

.hero-cta {
    animation: fadeUp 0.8s ease-out 0.6s both;
}

/* =====================================================================
   How (#how)
   ===================================================================== */
.how-section { text-align: center; }

.how-title { margin-bottom: 0; }

.how-body {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}
.how-body__full {
    font-size: 0.97rem;
    line-height: 1.95;
    color: var(--text-muted);
    border-left: 2px solid var(--accent-rust);
    padding-left: 1.4rem;
}
.how-lead {
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.01em;
}
.how-body__accent {
    font-family: 'Aglet Sans', sans-serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text);
    border-left-color: var(--accent-rust);
    opacity: 1;
}

/* =====================================================================
   Why (#why)
   ===================================================================== */
#why .how-body__full { border-left-color: var(--accent); }
#why .how-body__accent { border-left-color: var(--accent); }

#why {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-body { max-width: 680px; }
.why-body p {
    font-size: 1.03rem;
    line-height: 1.95;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}
.why-pullquote {
    font-family: 'Aglet Sans', sans-serif;
    font-style: italic;
    font-size: clamp(1.15rem, 2.8vw, 1.45rem);
    color: var(--text);
    line-height: 1.65;
    border-left: 2px solid var(--accent);
    padding-left: 1.6rem;
    margin: 2.5rem 0;
}
.why-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}
.why-list li {
    font-size: 1rem;
    color: var(--text-muted);
    padding: 0.35rem 0 0.35rem 1.3rem;
    position: relative;
}
.why-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    opacity: 0.55;
}

/* =====================================================================
   Upcoming lessons (#upcoming)
   ===================================================================== */
.upcoming-header { margin-bottom: 0; }

.upcoming-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}
.lesson-card {
    background: var(--lavender);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: border-color 0.3s, background 0.3s;
}
.lesson-card:hover { background: var(--lavender-dark); border-color: var(--border-strong); }

.lesson-date-block {
    flex-shrink: 0;
    text-align: center;
    min-width: 54px;
}
.lesson-day {
    font-family: 'Aglet Sans', sans-serif;
    font-size: 2rem;
    color: var(--text);
    line-height: 1;
}
.lesson-month {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.6;
    margin-top: 0.2rem;
}
.lesson-info { flex: 1; min-width: 0; }
.lesson-title {
    font-family: 'Aglet Sans', sans-serif;
    font-size: 1.08rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.lesson-meta {
    font-size: 0.84rem;
    color: var(--text);
    opacity: 0.65;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}
.lesson-spots {
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 500;
    margin-top: 0.4rem;
}
.lesson-card .btn--outline {
    border-color: var(--text);
    color: var(--bg);
    background: var(--text);
    cursor: pointer;
}
.lesson-card .btn--outline:hover {
    background: var(--text-dark);
    border-color: var(--text-dark);
    cursor: pointer;
    transform: scale(1.04);
}

.upcoming-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 2.5rem;
}

/* =====================================================================
   About (#about)
   ===================================================================== */
.about-divider {
    width: 1px;
    background: var(--border);
    margin: 0;
    align-self: stretch;
}

.about-person { padding: 0; }

.about-photo {
    width: 220px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Aglet Sans', sans-serif;
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }

.about-name {
    font-family: 'Aglet Sans', sans-serif;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}
.about-role {
    font-size: 0.76rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1.25rem;
}
.about-bio {
    font-size: 0.94rem;
    line-height: 1.9;
    color: var(--text-muted);
}
.about-bio p + p { margin-top: 0.9rem; }

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    font-size: 0.84rem;
    color: var(--accent-2);
    opacity: 0.75;
    transition: opacity 0.3s;
}
.about-link:hover { opacity: 1; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}
.footer-logo {
    width: clamp(120px, 30vw, 220px);
    height: auto;
    display: block;
    margin: 0 auto 1.5rem;
}

.footer-tagline {
    font-family: 'Aglet Sans', sans-serif;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}
.footer-poem {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 340px;
    margin: 0 auto 2.5rem;
    opacity: 0.7;
}
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-links svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

.footer-copyright {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.38;
    letter-spacing: 0.08em;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 768px) {
    :root { --section-gap: 5rem; }

    .nav-links { display: none; }

    .grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
    .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }

    .about-divider { display: none; }

    .lesson-card {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .lesson-card > *:last-child { width: 100%; }

    /* Hero na mobilu */
    .hero-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .hero-photo--left  { grid-column: 1; grid-row: 1; }
    .hero-photo--right { grid-column: 2; grid-row: 1; }
    .hero-center { grid-column: 1 / -1; grid-row: 2; }
    #hero { padding-top: 8rem; }
    .hero-description { max-width: 100%; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    :root { --section-gap: 4rem; }
    .nav { padding: 1.25rem 1.5rem; }
}
