/* Visually hidden H1 for SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* TrailPlank Website - Main Styles */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Top Bar for Language Switcher and Navigation */
.top-bar {
    background: #ff4500;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: relative;
    z-index: 1000;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #000;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 15px;
}

.lang-switcher a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.lang-switcher a:hover {
    color: #000;
}

/* Hero Section */
.hero {
    height: calc(100vh - 50px);
    background-color: #000;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('images/trailplank-hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: white;
    padding: 0 30px;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title-small {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
}

.logo {
    width: 100%;
    max-width: 1400px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-text {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-button {
    background: #ff4500;
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    display: inline-block;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #e03e00;
}

/* Product Intro Section */
.product-intro {
    background: #ff4500;
    padding: 10px 50px;
    text-align: center;
}

.intro-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.intro-image {
    width: 350px;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

.intro-text {
    color: white;
    max-width: 400px;
}

.intro-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 300;
}

.intro-text p {
    font-size: 20px;
    line-height: 1.6;
}

/* Gripchanger Section - positioned at bottom of hero */
.gripchanger {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000;
    padding: 10px 50px;
    text-align: center;
    z-index: 10;
}

.gripchanger h2 {
    font-size: 72px;
    color: white;
    font-weight: 700;
    letter-spacing: 8px;
    margin: 0;
}

.gripchanger-divider {
    display: none;
}

.gripchanger p {
    color: white;
    font-size: 20px;
    margin: 0;
}

/* Features Section */
.features {
    padding: 80px 50px;
    background: #f5f5f5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.feature-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
}

/* Product Range Section */
.product-range {
    background: #1a1a1a;
    padding: 80px 50px;
    color: white;
}

.product-range h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 15px;
}

.product-range-subtitle {
    text-align: center;
    font-size: 20px;
    margin-bottom: 60px;
    font-weight: 300;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.product-box {
    background: #e0e0e0;
    padding: 40px;
    border-radius: 10px;
    color: #333;
}

.product-box h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-box ul {
    list-style: none;
    padding-left: 0;
}

.product-box li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.product-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff4500;
    font-weight: bold;
}

.atest-box {
    background: #e0e0e0;
    padding: 40px;
    border-radius: 10px;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
}

.atest-box h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.atest-box p {
    margin: 10px 0;
    font-size: 16px;
}

.atest-box strong {
    color: #ff4500;
}

/* ============================================
   PRODUCTION SECTION
   ============================================ */

.production {
    background: #fff;
    padding: 80px 50px;
    text-align: center;
}

.production h2 {
    font-size: 42px;
    margin-bottom: 50px;
    color: #333;
}

.production-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.production-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Contact Section */
.contact {
    background: #f5f5f5;
    padding: 80px 50px;
    text-align: center;
}

.contact h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 20px;
    margin-bottom: 20px;
}

.contact a {
    color: #ff4500;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 30px 50px;
    text-align: center;
}

/* Responsive */
/* ============================================
   RESPONSIVE DESIGN - MOBILE OPTIMIZATION
   ============================================ */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .products-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hero::before {
        width: 50%;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    
    /* Top Bar */
    .top-bar {
        height: auto;
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        font-size: 14px;
        padding: 5px 10px;
    }
    
    .lang-switcher {
        gap: 15px;
    }
    
    .lang-switcher a {
        font-size: 14px;
        padding: 3px 8px;
    }
    
    /* ===== HERO SECTION - MOBILE REDESIGN ===== */
    .hero {
        height: auto !important;
        min-height: auto !important;
        flex-direction: column !important;
        padding: 0 !important;
        display: block !important;
    }
    
    /* Hero image - full width at top */
    .hero::before {
        position: relative !important;
        width: 100% !important;
        height: 60vh !important;
        min-height: 400px !important;
        display: block !important;
        right: auto !important;
        top: auto !important;
    }
    
    /* Hero content - below image */
    .hero-content {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 40px 25px !important;
        background: #000 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .logo {
        width: 85% !important;
        max-width: 450px !important;
        margin-bottom: 25px !important;
    }
    
    .hero-text {
        font-size: 17px !important;
        line-height: 1.6 !important;
        margin-bottom: 30px !important;
        max-width: 600px !important;
    }
    
    .cta-button {
        padding: 15px 40px !important;
        font-size: 15px !important;
    }
    
    /* Gripchanger */
    .gripchanger {
        padding: 25px 20px !important;
        position: relative !important;
        bottom: auto !important;
    }
    
    .gripchanger h2 {
        font-size: 36px !important;
        letter-spacing: 3px !important;
    }
    
    /* Product Intro */
    .product-intro {
        padding: 50px 20px !important;
    }
    
    .intro-content {
        flex-direction: column !important;
        gap: 40px !important;
    }
    
    .intro-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    .intro-text {
        text-align: center !important;
        padding: 30px 15px !important;
    }
    
    .intro-text h2 {
        font-size: 32px !important;
    }
    
    .intro-text p {
        font-size: 18px !important;
    }
    
    /* Features */
    .features {
        padding: 50px 20px !important;
    }
    
    .features h2 {
        font-size: 36px !important;
        margin-bottom: 40px !important;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }
    
    .feature-item img {
        height: 250px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .feature-item h3 {
        font-size: 20px !important;
        margin: 20px 0 12px !important;
    }
    
    .feature-description {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
    
    /* Product Range */
    .product-range {
        padding: 50px 20px !important;
    }
    
    .product-range h2 {
        font-size: 32px !important;
    }
    
    .product-range-subtitle {
        font-size: 18px !important;
    }
    
    .products-container {
        gap: 30px !important;
    }
    
    .product-box {
        padding: 30px 25px !important;
    }
    
    .product-box h3 {
        font-size: 24px !important;
    }
    
    .product-box h4 {
        font-size: 18px !important;
    }
    
    .product-box ul li {
        font-size: 15px !important;
    }
    
    .product-image {
        max-height: 250px !important;
    }
    
    .atest-box {
        padding: 30px 25px !important;
    }
    
    .atest-box h3 {
        font-size: 24px !important;
    }
    
    .atest-content p {
        font-size: 15px !important;
    }
    
    /* Production */
    .production {
        padding: 50px 25px !important;
    }
    
    .production h2 {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }
    
    .production-gallery {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .production-image {
        height: 250px !important;
        border-radius: 10px !important;
    }
    
    /* Contact */
    .contact {
        padding: 50px 25px !important;
    }
    
    .contact h2 {
        font-size: 32px !important;
    }
    
    .contact p {
        font-size: 18px !important;
    }
    
    .contact a {
        font-size: 20px !important;
    }
    
    /* Footer */
    .footer {
        font-size: 14px !important;
        padding: 25px 20px !important;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    
    .nav-menu a {
        font-size: 12px;
    }
    
    .lang-switcher a {
        font-size: 12px;
    }
    
    .hero::before {
        height: 50vh !important;
        min-height: 350px !important;
    }
    
    .hero-content {
        padding: 35px 20px !important;
    }
    
    .logo {
        width: 90% !important;
        max-width: 320px !important;
    }
    
    .hero-text {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }
    
    .cta-button {
        padding: 13px 32px !important;
        font-size: 14px !important;
    }
    
    .gripchanger h2 {
        font-size: 28px !important;
        letter-spacing: 2px !important;
    }
    
    .intro-text h2 {
        font-size: 26px !important;
    }
    
    .features h2,
    .product-range h2,
    .contact h2 {
        font-size: 28px !important;
    }
    
    .feature-item h3 {
        font-size: 18px !important;
    }
    
    .product-box h3,
    .atest-box h3 {
        font-size: 22px !important;
    }
}

/* Very Small Mobile - 360px and below */
@media (max-width: 360px) {
    .hero::before {
        height: 45vh !important;
        min-height: 300px !important;
    }
    
    .hero-content {
        padding: 30px 15px !important;
    }
    
    .logo {
        width: 95% !important;
        max-width: 280px !important;
    }
    
    .hero-text {
        font-size: 14px !important;
    }
    
    .gripchanger h2 {
        font-size: 24px !important;
    }
    
    .nav-menu a,
    .lang-switcher a {
        font-size: 11px;
    }
}

/* ============================================
   MODAL WINDOW - CTA POP-UP
   ============================================ */

/* Overlay - zšedlé pozadí */
.modal-overlay {
    display: none !important; /* Force hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: block !important; /* Show when active */
}

/* Pop-up okno */
.cta-modal {
    display: none !important; /* Force hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff4500 0%, #ff6b35 100%);
    padding: 50px 40px;
    text-align: center;
    margin: 0;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.4s ease;
}

.cta-modal.active {
    display: block !important; /* Show when active */
}

/* Animace */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Křížek pro zavření */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #fff;
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

.cta-modal-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.cta-modal h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    padding-right: 40px;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.cta-input {
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-family: 'Inter', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.cta-input::placeholder {
    color: #888;
    font-size: 15px;
}

.cta-input:focus {
    outline: 3px solid rgba(0,0,0,0.3);
    outline-offset: 0;
}

.cta-modal-button {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    margin-top: 10px;
}

.cta-modal-button:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.form-message {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.9);
    color: #fff;
}

/* Modal - Mobile */
@media (max-width: 768px) {
    .cta-modal {
        padding: 40px 25px;
        width: 95%;
        max-height: 85vh;
    }
    
    .cta-trigger-section h2,
    .cta-modal h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .cta-input {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .cta-modal-button,
    .open-modal-btn {
        padding: 15px 40px;
        font-size: 18px;
    }
    
    .modal-close {
        width: 32px;
        height: 32px;
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .cta-modal h2,
    .cta-trigger-section h2 {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .cta-input {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .cta-modal-button,
    .open-modal-btn {
        padding: 14px 35px;
        font-size: 16px;
    }
}
