/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section with Full-Width Background Image */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 600px;
    background-image: url('project_files/Alliku Suurvarjend/web/05.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 60px 20px;
    text-align: center;
}

.company-title {
    font-size: 120px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    letter-spacing: 8px;
}

.hero-subtitle {
    font-size: 48px;
    font-weight: 400;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Legacy hero-title for backwards compatibility */
.hero-title {
    font-size: 60px;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Main Headline */
.main-headline {
    text-align: center;
    padding: 60px 20px 40px;
    background: transparent;
    margin-bottom: 20px;
}

.main-headline h2 {
    font-size: 52px;
    color: #4a4a4a;
    font-weight: 300;
    line-height: 1.3;
    margin: 0;
}

/* Intro Section */
.intro {
    text-align: center;
    padding: 20px 20px 60px;
    background: transparent;
    margin-bottom: 40px;
}

.intro h3 {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    color: #666;
    max-width: 1000px;
    margin: 0 auto;
}

/* Features Section */
.features {
    margin-bottom: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: #f5f5f5;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.feature-card:hover {
    transform: none;
    box-shadow: none;
}

.feature-card h4 {
    font-size: 16px;
    color: #4a4a4a;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 400;
}

.feature-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    font-weight: 300;
}

/* PDF Section */
.pdf-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin: 60px 0;
    border-radius: 10px;
}

.pdf-section h2 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 15px;
}

.pdf-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.pdf-button {
    display: inline-block;
    background: white;
    color: #2c3e50;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.pdf-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    background: #ecf0f1;
}

/* Historical Info Section */
.historical-info {
    margin: 60px 0;
}

.section-title {
    font-size: 38px;
    text-align: left;
    color: #666;
    margin-bottom: 30px;
    font-weight: 400;
}

.info-accordion {
    max-width: 100%;
    margin: 0 auto;
}

.accordion-item {
    background: #f9f9f9;
    border-radius: 0;
    margin-bottom: 0;
    overflow: hidden;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
    width: 100%;
    padding: 25px 0;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 20px;
    font-weight: 400;
    color: #4a4a4a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: none;
}

.accordion-header:hover {
    background: transparent;
}

.accordion-icon {
    font-size: 28px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0;
}

.accordion-item.active .accordion-content {
    max-height: 3000px;
    padding: 0 0 25px 0;
}

.accordion-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
    font-size: 15px;
}

/* Gallery Section */
.gallery {
    margin: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: #f0f0f0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    margin-top: 80px;
    padding: 0;
}

.footer-content {
    padding: 60px 20px 40px;
    text-align: center;
}

.apex-info h3 {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.9;
}

.apex-logo {
    max-width: 300px;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 5px;
}

.apex-info p {
    margin: 10px 0;
    font-size: 16px;
    opacity: 0.9;
}

.apex-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
    font-weight: 600;
}

.apex-button:hover {
    background: #ecf0f1;
    transform: translateY(-2px);
}

.footer-bottom {
    background: #1a252f;
    padding: 40px 20px;
    text-align: center;
}

.footer-contact {
    margin-bottom: 30px;
}

.footer-contact h4 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    color: white;
    letter-spacing: 1px;
}

.footer-contact p {
    margin: 8px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-message {
    max-width: 600px;
    margin: 0 auto 30px;
}

.footer-message p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-copyright p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        height: 400px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .company-title {
        font-size: 60px;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .hero-title {
        font-size: 36px;
    }

    .main-headline h2 {
        font-size: 32px;
    }

    .intro h3 {
        font-size: 18px;
    }

    .container {
        padding: 0 15px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .pdf-section h2 {
        font-size: 32px;
    }

    .pdf-section p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .accordion-header {
        font-size: 16px;
        padding: 15px 20px;
    }

    .accordion-content {
        padding: 0 20px;
    }

    .accordion-item.active .accordion-content {
        padding: 0 20px 15px 20px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .apex-logo {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 300px;
    }

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

    .company-title {
        font-size: 40px;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .main-headline h2 {
        font-size: 24px;
    }

    .intro h3 {
        font-size: 16px;
    }

    .pdf-section h2 {
        font-size: 28px;
    }

    .pdf-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .accordion-header {
        font-size: 15px;
        padding: 12px 15px;
    }
}
