/* ==========================================================================
   Design System & Fonts
   ========================================================================== */

/* Font-faces locally hosted */
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/custom/PT Sans Narrow/BngRUXNadjH0qYEzV7ab-oWlsYCB.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/custom/PT Sans Narrow/BngSUXNadjH0qYEzV7ab-oWlsbg95DiC.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/custom/Open Sans/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsiH0C4n.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/custom/Open Sans/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgshZ1y4n.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/custom/Open Sans/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsgH1y4n.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/custom/Open Sans/memSYaGs126MiZpBA-UvWbX2vVnXBbObj2OVZyOOSr4dVJWUgsg-1y4n.ttf') format('truetype');
    font-display: swap;
}

/* CSS Variables */
:root {
    --color-orange: #ef5d12;
    --color-orange-hover: #d14a0a;
    --color-dark-grey: #464131;
    --color-text-grey: #5c5c5c;
    --color-card-bg: #92877e;
    --color-footer-bg: #f0f0f0;
    --font-headings: 'PT Sans Narrow', 'Open Sans', Arial, sans-serif;
    --font-body: 'Open Sans', Arial, sans-serif;
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-grey);
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

/* Common Layout Components */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
}

.site-content {
    flex: 1 0 auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.text-center {
    text-align: center;
}

.margin-top-large {
    margin-top: 40px;
}

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--color-dark-grey);
    line-height: 1.3;
}

h1 {
    font-size: 36px;
    font-weight: 700;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.header-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-headings);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-logo:hover {
    color: var(--color-orange);
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-dark-grey);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
}

.nav-link:hover {
    background-color: var(--color-orange);
    color: #ffffff;
}

.nav-item.active .nav-link {
    font-weight: 700;
    border-bottom: 2px solid var(--color-orange);
    border-radius: 0;
    padding-bottom: 6px;
}

.nav-item.active .nav-link:hover {
    background-color: transparent;
    color: var(--color-orange);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.burger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-dark-grey);
    transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Banner Section (Top Banner)
   ========================================================================== */
.hero-banner {
    position: relative;
    background: #222222 url('../gallery_gen/Letovo-school.webp') no-repeat center center;
    background-size: cover;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px 20px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.45);
    padding: 25px 40px;
    border-radius: 6px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
}

.banner-subtitle {
    font-family: var(--font-headings);
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.banner-phone {
    margin-top: 15px;
}

.banner-phone a {
    font-family: var(--font-headings);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 8px 20px;
    border-radius: 4px;
    display: inline-block;
    transition: all var(--transition-speed);
}

.banner-phone a:hover {
    background-color: #ffffff;
    color: var(--color-orange);
    border-color: #ffffff;
}

/* ==========================================================================
   Hero Intro & Feature Cards Section
   ========================================================================== */
.hero-intro {
    padding: 60px 0;
    background-color: #ffffff;
}

.intro-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.intro-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.intro-title {
    color: var(--color-orange);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.intro-desc {
    font-size: 16px;
    color: var(--color-text-grey);
    margin-bottom: 25px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-cta-phone {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark-grey);
}

.intro-cta-phone a {
    font-size: 20px;
    font-weight: 700;
    margin-left: 5px;
}

/* Feature Cards Grid */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.feature-card {
    background-color: var(--color-card-bg);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-image {
    height: 250px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-bottom: 5px solid rgba(255,255,255,0.15);
}

.bg-math {
    background-image: url('../gallery_gen/math-prep.webp');
}

.bg-english {
    background-image: url('../gallery_gen/english-prep.webp');
}

.bg-coding {
    background-image: url('../gallery_gen/coding-prep.webp');
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-desc {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
}

/* ==========================================================================
   Complex Preparation Details Section (Text)
   ========================================================================== */
.complex-prep-details {
    padding: 60px 0;
    background-color: #fafafa;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.complex-prep-details .section-title {
    color: var(--color-text-grey);
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 28px;
}

.section-text {
    max-width: 950px;
    margin: 0 auto 30px auto;
    font-size: 15px;
}

.section-text p {
    margin-bottom: 15px;
    text-indent: 20px;
    text-align: justify;
}

/* Custom Bullet List */
.bullet-list-custom {
    max-width: 950px;
    margin: 30px auto;
    list-style: none;
}

.bullet-list-custom li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
    font-size: 15px;
    text-align: justify;
}

.bullet-list-custom li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-orange);
    font-size: 14px;
}

.bullet-list-custom p {
    display: inline;
}

.program-block {
    background-color: #ffffff;
    border-left: 4px solid var(--color-orange);
    padding: 30px;
    border-radius: 0 6px 6px 0;
    margin: 40px auto;
    max-width: 950px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.program-title {
    color: var(--color-text-grey);
    font-size: 22px;
    margin-bottom: 15px;
}

.program-intro {
    font-weight: 600;
    margin-bottom: 20px;
    text-align: justify;
}

/* CTA Blocks */
.cta-block {
    background-color: #ffffff;
    border: 2px dashed #ef5d12;
    border-radius: 6px;
    padding: 30px 20px;
    max-width: 800px;
    margin: 50px auto 30px auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.cta-lead {
    font-family: var(--font-headings);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark-grey);
    margin-bottom: 10px;
}

.cta-phone {
    font-family: var(--font-headings);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-orange);
    margin-bottom: 10px;
}

.cta-phone a {
    color: var(--color-orange);
}

.cta-phone a:hover {
    color: var(--color-orange-hover);
    text-decoration: underline;
}

.cta-sub {
    font-size: 16px;
    font-weight: 600;
}

.cta-bottom {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-grey);
}

/* ==========================================================================
   Campus Address Section
   ========================================================================== */
.address-section {
    position: relative;
    background: #210021 url('../gallery_gen/main-separator-final.webp') no-repeat center top;
    background-size: cover;
    min-height: 240px;
    padding: 50px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(33, 0, 33, 0.75);
    z-index: 1;
}

.address-section .container {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 800px;
}

.address-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.address-details p {
    font-size: 16px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.address-details a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
}

.address-details a:hover {
    color: var(--color-orange);
}

/* ==========================================================================
   Contacts Page Style
   ========================================================================== */
.contacts-section {
    padding: 80px 0;
    background-color: #ffffff;
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.contacts-title {
    color: var(--color-orange);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
}

.contacts-block {
    background-color: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 30px;
    display: inline-block;
    min-width: 320px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.contacts-phone-label {
    font-size: 20px;
    color: var(--color-dark-grey);
}

.contacts-link {
    font-weight: 700;
    font-size: 22px;
    margin-left: 5px;
}

/* ==========================================================================
   Error Page Style
   ========================================================================== */
.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #fafafa;
}

.error-container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.error-code {
    color: var(--color-orange);
    font-size: 84px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1;
}

.error-message {
    font-size: 22px;
    color: var(--color-text-grey);
    margin-bottom: 35px;
}

.btn-home-link {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--color-orange);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color var(--transition-speed) ease, transform 0.2s;
    box-shadow: 0 4px 10px rgba(239, 93, 18, 0.2);
}

.btn-home-link:hover {
    background-color: var(--color-orange-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(239, 93, 18, 0.3);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.site-footer {
    background-color: var(--color-footer-bg);
    border-top: 1px solid #eaeaea;
    padding: 25px 0;
    flex-shrink: 0;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--color-dark-grey);
}

.footer-copyright strong {
    font-size: 16px;
}

.footer-phone p a {
    font-weight: 700;
    color: var(--color-orange);
    font-size: 15px;
}

.footer-phone p a:hover {
    color: var(--color-orange-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive & Adaptive Media Queries (Mobile First)
   ========================================================================== */

/* Max Width 767px (Mobile Portrait/Landscape) */
@media (max-width: 767px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    /* Mobile Header Navigation Drawer style */
    .header-container {
        padding: 10px 15px;
        position: relative;
    }

    .header-logo {
        font-size: 18px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Transition layout to absolute drawer slide down */
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-top: 1px solid #eaeaea;
        border-bottom: 2px solid var(--color-orange);
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-list.open {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-link {
        display: block;
        text-align: center;
        width: 100%;
        padding: 10px;
    }

    .nav-item.active .nav-link {
        border-bottom: none;
        background-color: var(--color-footer-bg);
        border-radius: 4px;
    }

    /* Burger Menu Active Animation */
    .mobile-menu-toggle.active .burger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active .burger-line:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .burger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Hero Banner Mobile */
    .hero-banner {
        min-height: 320px;
        padding: 30px 15px;
    }

    .hero-banner-content {
        padding: 15px;
    }

    .banner-subtitle {
        font-size: 18px;
        letter-spacing: 0px;
    }

    .banner-phone a {
        font-size: 16px;
        padding: 6px 12px;
    }

    /* Intro grid & cards Mobile */
    .hero-intro {
        padding: 40px 0;
    }

    .intro-grid {
        padding: 0 15px;
        gap: 30px;
    }

    .intro-title {
        font-size: 26px;
    }

    .intro-desc {
        font-size: 14px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-image {
        height: 200px;
    }

    /* Detailed section Mobile */
    .complex-prep-details {
        padding: 40px 0;
    }

    .complex-prep-details .container {
        padding: 0 15px;
    }

    .complex-prep-details .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .section-text p {
        text-align: left;
        text-indent: 10px;
    }

    .bullet-list-custom li {
        font-size: 14px;
        text-align: left;
    }

    .program-block {
        padding: 20px 15px;
        margin: 25px 0;
    }

    .program-title {
        font-size: 18px;
    }

    .program-intro {
        font-size: 14px;
        text-align: left;
    }

    /* CTA mobile */
    .cta-block {
        padding: 20px 15px;
        margin: 30px auto;
    }

    .cta-lead {
        font-size: 18px;
    }

    .cta-phone {
        font-size: 22px;
    }

    .cta-bottom {
        font-size: 14px;
    }

    /* Address block Mobile */
    .address-section {
        min-height: 200px;
        padding: 30px 15px;
    }

    .address-title {
        font-size: 22px;
    }

    .address-details p {
        font-size: 14px;
    }

    /* Footer Mobile */
    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Contacts Page Mobile */
    .contacts-section {
        padding: 40px 0;
    }

    .contacts-title {
        font-size: 32px;
    }

    .contacts-block {
        min-width: 100%;
        padding: 20px;
    }

    .contacts-phone-label {
        font-size: 16px;
    }

    .contacts-link {
        font-size: 18px;
    }
}

/* Tablet range (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .feature-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .card-image {
        height: 180px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-content {
        padding: 15px;
    }

    .hero-banner {
        min-height: 380px;
    }
}
