/* =========================================
   THEME: HAND-DRAWN (Variant Screenshot)
   Playful, Sketchy, Warm
   ========================================= */

:root {
    /* Color Palette */
    --color-primary: #F97316;
    /* Orange */
    --color-primary-hover: #ea580c;
    --color-bg-hero: #FDF6B2;
    /* Warm Yellow */
    --color-bg-blue-dark: #2563EB;
    /* Deep Blue */
    --color-bg-light: #F0F9FF;
    /* Light Blue */
    --color-card-yellow: #FDE68A;
    /* Sticky Note */
    --color-text-main: #1e293b;
    --color-text-inverse: #ffffff;
    --color-text-light: #475569;
    --color-text-blue: #1E3A8A;
    --color-border: #94a3b8;

    /* Typography */
    --font-heading: 'Tablet Gothic', sans-serif;
    --font-body: 'Tablet Gothic', sans-serif;

    /* Interface */
    --container-width: 1200px;
    --border-radius: 2px 5px 3px 6px;
    /* Sketchy */
    --box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
}

/* Custom Fonts */
@font-face {
    font-family: 'Abril Text';
    src: url('assets/fonts/Abril_Text_BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Tablet Gothic';
    src: url('assets/fonts/Tablet Gothic W02 Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tablet Gothic';
    src: url('assets/fonts/Tablet Gothic W02 Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tablet Gothic';
    src: url('assets/fonts/Tablet Gothic Narrow W04 Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Base */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
}

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

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

/* Beautiful Focus States */
*:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px var(--color-bg-hero),
        0 0 0 6px var(--color-primary);
    transition: box-shadow 0.2s ease;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--color-text-main);
    margin-bottom: 2rem;
    text-rendering: optimizeLegibility;
}

.hero__title {
    font-family: 'Abril Text', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    color: #1e1e1e;
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.05),
        4px 4px 0 rgba(0, 0, 0, 0.03);
}

.section-title {
    font-family: 'Tablet Gothic', sans-serif !important;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    -webkit-text-stroke: 2.5px #F97316;
    color: white;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    display: inline-block;
    text-rendering: optimizeLegibility;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 60px 55px 65px 50px / 50px 65px 55px 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

/* Ripple effect */
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.btn:active::after {
    transform: scale(2);
    opacity: 1;
    transition: 0s;
}

.btn--primary {
    background: linear-gradient(135deg,
            var(--color-primary) 0%,
            #ea580c 100%);
    color: white;
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.15);
    border: 2px solid var(--color-primary);
}

.btn--primary:hover {
    transform: translate(-1px, -2px) rotate(-1deg);
    box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.15);
}

.btn--primary:active {
    transform: translate(1px, 2px) rotate(-0.5deg);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
}

.btn--primary:focus-visible {
    transform: scale(1.02);
}

.btn--secondary {
    background-color: white;
    color: var(--color-text-blue);
    border: 2px solid var(--color-text-blue);
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn--secondary:hover {
    background-color: #F0F9FF;
    transform: translate(-1px, -2px) rotate(1deg);
    box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.1);
}

.btn--secondary:active {
    transform: translate(1px, 2px) rotate(0.5deg);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.btn--secondary:focus-visible {
    transform: scale(1.02);
}

.btn--icon {
    padding: 0.8rem 1.2rem;
    gap: 0.5rem;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2.5rem;
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

/* Header - Sticky on Scroll */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: transparent;
    padding: 1rem 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.header__logo-main {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.header__logo-main::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    transform: rotate(-0.5deg);
}

.header__logo-sub {
    display: none;
}

.header__menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.header__menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-text-main);
    margin: 4px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.header__menu-toggle:hover span {
    background: var(--color-primary);
}

/* HERO SECTION */
.hero {
    background-color: var(--color-bg-hero);
    padding: 7rem 0 5rem;
    position: relative;
    overflow: visible;
    z-index: 10;
}

/* Subtle gradient overlay for depth */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(253, 246, 178, 0) 0%,
            rgba(253, 246, 178, 0.8) 100%);
    pointer-events: none;
}

.hero__container {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

.hero__illustration {
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    mix-blend-mode: multiply;
    border: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

.hero__illustration--left {
    background-image: url('assets/images/ucitelky_nadrate.png');
    animation: float 8s ease-in-out infinite;
    transform: translateX(-10px);
}

/* Remove right illustration */
.hero__illustration--right {
    display: none;
}

.hero__content {
    text-align: center;
    z-index: 10;
}

.hero__title {
    font-family: 'Abril Text', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: #1e1e1e;
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.05),
        4px 4px 0 rgba(0, 0, 0, 0.03);
}

.hero__title::before {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 6px;
    background: #0EA5E9;
    opacity: 0.7;
    z-index: -1;
    transform: rotate(-1.5deg);
    border-radius: 10px;
}

.hero__text {
    margin: 0 auto 1rem;
    font-size: 1rem;
    color: #334155;
    max-width: 500px;
    font-weight: 100;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

/* SECTIONS */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-family: 'Tablet Gothic', sans-serif !important;
    font-weight: 400;
    font-size: 3.5rem;
    -webkit-text-stroke: 2.5px #F97316;
    color: white;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.03em;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.3rem;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #475569;
}

/* PROGRAMS */
.programs {
    margin-top: -5rem;
    position: relative;
    z-index: 5;
    background: transparent;
    padding-top: 0;
}

.programs .container {
    background: white;
    padding: 8rem 4rem;
    box-shadow: 0 20px 50px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
    border: none;
    text-align: center;
    border-radius: 4px;
    transform: rotate(0.5deg);
    position: relative;
    overflow: hidden;
}

.programs .container::after {
    content: "";
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 180px;
    height: 180px;
    background: url('assets/images/vzpn-ilustrace-ruka-modra.svg') no-repeat center;
    background-size: contain;
    opacity: 0.15;
    z-index: 0;
    transform: rotate(15deg);
}

.programs .section-title {
    -webkit-text-stroke: 2.5px #F97316 !important;
    color: white !important;
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
}

.programs__description {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* SUPPORT SECTION */
.section--light {
    background: linear-gradient(135deg,
            var(--color-bg-blue-dark) 0%,
            #1e40af 100%);
    color: white;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
}

.section--light::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: url('assets/images/vzpn-ilustrace-kamera-modra.svg') no-repeat center;
    background-size: contain;
    opacity: 0.1;
    transform: translateY(-50%) rotate(-10deg);
    z-index: 0;
}

.section--light .container {
    position: relative;
    z-index: 1;
}

.section--light .section-title {
    color: white;
}

.section--light .section-subtitle {
    color: #DBEAFE;
}

/* Cards */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Gradient top border on hover */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--color-primary),
            #0EA5E9);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-8px) rotate(0.5deg);
    box-shadow:
        0 10px 15px rgba(0, 0, 0, 0.08),
        0 20px 25px rgba(0, 0, 0, 0.05);
}

.card__title {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.card__desc {
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card__list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.card__list li {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* MATERIALS */
.section--materials {
    background-color: var(--color-bg-light);
    position: relative;
    overflow: hidden;
}

.section--materials::before {
    content: "";
    position: absolute;
    bottom: 5%;
    right: 3%;
    width: 180px;
    height: 180px;
    background: url('assets/images/vzpn-ilustrace-knihy-modre.svg') no-repeat center;
    background-size: contain;
    opacity: 0.15;
    z-index: 0;
}

.section--materials .container {
    position: relative;
    z-index: 1;
}

.section--materials .card {
    background-color: var(--color-card-yellow);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.section--materials .card:nth-child(even) {
    transform: rotate(1deg);
}

.section--materials .card:nth-child(odd) {
    transform: rotate(-0.5deg);
}

.section--materials .card:hover {
    transform: scale(1.02) rotate(0deg);
    z-index: 5;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

/* TIMELINE */
.section--timeline {
    background-color: var(--color-bg-blue-dark);
    color: white;
}

.timeline-viz {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 4rem auto 0;
}

.timeline-viz__line {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.timeline-viz__item {
    z-index: 1;
    text-align: center;
    cursor: pointer;
    flex: 1;
    position: relative;
}

.timeline-viz__point {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 1rem;
    transition: var(--transition);
    position: relative;
}

.timeline-viz__year {
    font-family: 'Tablet Gothic', sans-serif;
    color: #DBEAFE;
    font-weight: 700;
}

.timeline-viz__item.active .timeline-viz__point {
    background: var(--color-primary);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.timeline-viz__item.active .timeline-viz__year {
    color: white;
}

.timeline-content {
    max-width: 600px;
    margin: 3rem auto 0;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
}

.timeline-content__title {
    font-family: 'Tablet Gothic', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.timeline-content__desc {
    color: #E0F2FE;
}

/* FEEDBACK */
.section--feedback {
    background-color: var(--color-bg-hero);
}

.card--feedback {
    background: white;
    transform: rotate(-1deg);
    position: relative;
    border: 2px solid var(--color-text-main);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.card--feedback:nth-child(2) {
    transform: rotate(1deg);
}

.card__quote-icon {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: 1rem;
}

.card__author {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed #e2e8f0;
}

.card__author strong {
    display: block;
    color: var(--color-text-main);
}

.card__author span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* FOOTER */
.footer {
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    padding: 6rem 0 2rem;
    border-top: 4px solid var(--color-text-main);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer__heading {
    color: var(--color-primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.footer__text {
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.newsletter-form__input {
    flex: 1;
    padding: 0.8rem;
    background: white;
    border: 2px solid #CBD5E1;
    color: black;
    border-radius: 4px;
}

.footer__nav,
.footer__social {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer__nav a:hover,
.footer__social a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.contact-block {
    margin-bottom: 1.5rem;
}

.contact-block strong {
    display: block;
    margin-bottom: 0.2rem;
}

.contact-block a {
    color: var(--color-text-blue);
    text-decoration: underline;
}

.footer__bottom {
    border-top: 1px solid #CBD5E1;
    margin-top: 4rem;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

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