/* ==========================================================================
   GAYATRI MANTRA LAAGER 2026 - Premium Disainisüsteem (Vanilla CSS)
   Loodud Kodulehtede Vabrik standardite järgi (Navik OÜ)
   ========================================================================== */

/* 1. BRÄNDI MUUTUJAD JA TEEMA
   ========================================================================== */
:root {
    /* Värvipalett (HSL põhine täpseks kontrastsuseks) */
    --clr-primary-hsl: 45, 65%, 55%; /* Soe kuldne */
    --clr-primary: hsl(var(--clr-primary-hsl));
    --clr-primary-light: hsl(45, 75%, 65%);
    --clr-primary-dark: hsl(45, 60%, 40%);
    
    --clr-bg-deep-hsl: 218, 30%, 8%; /* Sügav meditatiivne öösinine */
    --clr-bg-deep: hsl(var(--clr-bg-deep-hsl));
    --clr-bg-card: hsl(218, 25%, 12%);
    --clr-bg-light: hsl(45, 30%, 96%); /* Vajadusel hele sektsioon */
    
    --clr-text-light: #ffffff;
    --clr-text-base: #f0f2f5;
    --clr-text-muted: #a0aec0;
    
    --clr-accent-hsl: 24, 85%, 55%; /* Päikesetõusu oranž/punakas */
    --clr-accent: hsl(var(--clr-accent-hsl));
    
    /* Fondid */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Disainielemendid */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    
    --transition-fast: 0.2s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    
    /* Nav ja layout */
    --header-height-desktop: 130px;
    --header-height-mobile: 90px;
}

/* 2. RESET JA ÜLDISED STIILID
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--clr-bg-deep);
    color: var(--clr-text-base);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Tüpograafia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    color: var(--clr-text-light);
    letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--clr-text-base);
}

p.lead {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 3. PEAMISED KAMPTERME (GLASSMORPHISM JA NUPUD)
   ========================================================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    outline: none;
    letter-spacing: 0.02em;
}

.btn--primary {
    background-color: var(--clr-primary);
    color: var(--clr-bg-deep);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

.btn--primary:hover {
    background-color: var(--clr-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn--outline:hover {
    background: var(--clr-primary);
    color: var(--clr-bg-deep);
    transform: translateY(-2px);
}

/* 4. HEADER & NAVIGATSIOON (KRIITILINE LOGO STIIL)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height-desktop);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
    background: linear-gradient(to bottom, rgba(13, 17, 23, 0.9), rgba(13, 17, 23, 0));
}

.header.scrolled {
    height: 90px;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo reeglid (sõnamärk + alajaotus) */
.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo__main {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--clr-text-light);
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo__sub {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--clr-primary);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Nav links */
.nav__links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    letter-spacing: 0.03em;
    position: relative;
    padding: 0.5rem 0;
}

.nav__link:hover,
.nav__link.active {
    color: var(--clr-primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition-base);
}

.nav__link:hover::after {
    width: 100%;
}

/* Hamburger menüü */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--clr-text-light);
    transition: var(--transition-base);
}

/* 5. HERO SEKKTSIOON (PEHME GRADIENT + TEKSTI KAITSE)
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--header-height-desktop) + 2rem);
    padding-bottom: 4rem;
    background-color: var(--clr-bg-deep);
    overflow: hidden;
}

/* Dekoratiivne mandala taustal - Opacity reegel 0.25 */
.hero__mandala-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vh;
    height: 80vh;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero__mandala-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.25; /* Vastab disainireeglile opacity min 0.22 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' width='100' height='100'%3E%3Cpath d='M50 0 A50 50 0 1 1 50 100 A50 50 0 1 1 50 0 M50 10 A40 40 0 1 0 50 90 A40 40 0 1 0 50 10 M50 20 A30 30 0 1 1 50 80 A30 30 0 1 1 50 20 M50 30 A20 20 0 1 0 50 70 A20 20 0 1 0 50 30' fill='none' stroke='%23d4af37' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    animation: rotateMandala 120s linear infinite;
}

@keyframes rotateMandala {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero__container {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__badge {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-primary-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    max-width: 900px;
    background: linear-gradient(135deg, var(--clr-text-light) 30%, var(--clr-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-base);
    max-width: 650px;
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    gap: 1.5rem;
}

/* 6. SEKKTSIOONID JA RUUMILISUS
   ========================================================================== */
.section {
    padding: 8rem 0;
    position: relative;
}

.section--dark-card {
    background-color: var(--clr-bg-card);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-header__badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.75rem;
}

.section-header__title {
    margin-bottom: 1rem;
    position: relative;
}

.section-header__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--clr-primary);
    margin: 1.5rem auto 0 auto;
}

/* 7. LAAGRI SISU JA VÄÄRTUS (3 VEERGU)
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
}

/* Hover-efekt kaartidel (translateY(-5px), shadow 0.10+, border) */
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card__icon {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card__title {
    margin-bottom: 1rem;
}

.feature-card__text {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* 8. JUHENDAJATE PROFIILID (2 VEERGU)
   ========================================================================== */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.instructor-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all var(--transition-base);
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.2);
}

.instructor-card__img-wrapper {
    position: relative;
    height: 380px;
    overflow: hidden;
    background-color: #1a202c;
}

.instructor-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-base);
}

.instructor-card:hover .instructor-card__img {
    transform: scale(1.05);
}

/* Teksti kaitse näo peale joonistamisel - linear gradient */
.instructor-card__img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(13, 17, 23, 0.9) 0%, transparent 100%);
}

.instructor-card__content {
    padding: 2.5rem;
}

.instructor-card__name {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.instructor-card__role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    display: block;
}

.instructor-card__bio {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* 9. ASTMELINE HINNAKIRI JA REGISTREERUMINE
   ========================================================================== */
.registration-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}

/* Hinnakaardi kujundus */
.price-card {
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid rgba(212, 175, 55, 0.2);
}

.price-card__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.price-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.price-step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.price-step.active {
    border-bottom-color: rgba(212, 175, 55, 0.4);
}

.price-step.active .price-step__label {
    color: var(--clr-text-light);
    font-weight: 600;
}

.price-step.active .price-step__value {
    color: var(--clr-primary);
    font-size: 1.75rem;
}

.price-step:not(.active) {
    opacity: 0.5;
}

.price-step__label {
    color: var(--clr-text-muted);
}

.price-step__label-sub {
    font-size: 0.75rem;
    display: block;
    color: var(--clr-text-muted);
}

.price-step__value {
    font-size: 1.35rem;
    font-weight: 700;
}

.price-card__info {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    text-align: center;
}

/* Registreerumisvorm */
.register-form {
    padding: 3.5rem;
    border-radius: var(--border-radius-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-light);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--clr-text-light);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* GDPR Checkbox (SOP-3) */
.form-consent {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.form-consent label {
    display: flex;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.form-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--clr-primary);
}

.form-consent a {
    color: var(--clr-primary);
    text-decoration: underline;
}

/* 10. JALUS & AUTORIÕIGUS
   ========================================================================== */
.footer {
    margin-top: auto;
    padding: 5rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: hsl(218, 30%, 6%);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer__title {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-text-light);
}

.footer__logo-section p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0.85rem;
}

.footer__links a {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.footer__links a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.footer__contact-info {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    list-style: none;
}

.footer__contact-info li {
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* Navik OÜ viide (KOHUSTUSLIK SOP-3 punkt 5) */
.footer__credits {
    font-size: 0.7rem;
    opacity: 0.4;
    letter-spacing: 0.03em;
    transition: var(--transition-fast);
}

.footer__credits:hover {
    opacity: 0.8;
}

.footer__credits a {
    color: inherit;
    text-decoration: underline;
}

/* 11. RESPONSIVE DISAIN (MOBILE-FIRST)
   ========================================================================== */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .registration-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height-mobile: 90px;
    }
    
    /* Logo mobiilis: 64-72px */
    .logo__main {
        font-size: 1.3rem;
    }
    
    .logo__sub {
        font-size: 0.55rem;
        letter-spacing: 0.22em;
    }
    
    .header {
        height: var(--header-height-mobile);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Mobiilne menüü */
    .nav__links {
        position: fixed;
        top: var(--header-height-mobile);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height-mobile));
        background-color: rgba(13, 17, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
        pointer-events: none;
    }
    
    .nav__links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Hamburger animatsioon */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero {
        padding-top: calc(var(--header-height-mobile) + 3rem);
    }
    
    .hero__title {
        font-size: 2.25rem;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
    }
    
    .hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .hero__actions .btn {
        width: 100%;
    }
    
    /* Hero padding servades */
    .container {
        padding: 0 1.25rem; /* Vastab disainireeglile: min 1.25rem mobileil */
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .instructors-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .instructor-card__img-wrapper {
        height: 300px;
    }
    
    .register-form {
        padding: 2rem 1.5rem;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}
