/* 
 * Siin saad importida oma olemasoleva CSS-i või kirjutada uue
 */

/* Üldine stiil */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

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

/* Hero ploki stiil */
.hero-block {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-block h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-block .subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #005177;
}

/* Content ploki stiil */
.content-block {
    padding: 60px 0;
}

.content-block .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.layout-text-only .container {
    display: block;
}

.layout-image-text .content-text,
.layout-text-image .content-text {
    flex: 1;
}

.layout-image-text .content-image,
.layout-text-image .content-image {
    flex: 1;
}

.content-block h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-block .container {
        flex-direction: column;
    }
    
    .hero-block h1 {
        font-size: 2.2rem;
    }
    
    .hero-block .subtitle {
        font-size: 1.2rem;
    }
}

/* Kohandatud stiilid */
.revolutionize-two {
    padding: 80px 0;
}

.editor-design {
    padding: 100px 0;
}

.genera-informes {
    padding: 90px 0;
}

.testimonials {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.countup {
    padding: 80px 0;
}

.blog-grid {
    padding: 100px 0;
    background-color: #f9f9f9;
}

/* Override for fun-fact elements to prevent color changes from entry-content headers */
.fun-fact .count, 
.fun-fact span {
    color: #3765f1 !important;
}

/* Mobiilsed kohandused - ühtlustatud breakpointid */
@media (max-width: 991px) {
    .revolutionize-two,
    .editor-design,
    .genera-informes,
    .testimonials,
    .countup,
    .blog-grid {
        padding: 60px 0;
    }
    
    /* Üldised mobiili parandused */
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    /* Teksti suurused */
    h1 { font-size: 2.5rem; line-height: 1.2; }
    h2 { font-size: 2rem; line-height: 1.3; }
    h3 { font-size: 1.5rem; line-height: 1.3; }
    
    /* Horisontaalne scrollimine keelatud */
    body {
        overflow-x: hidden;
    }
    
    /* Piltide responsiivsus */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Nuppude parandused */
    .btn, .pix-btn, .nav-btn {
        min-height: 44px; /* Touch target size */
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 20px;
    }
    
    /* Menüü overlay */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
    }
    
    /* Flexbox parandused */
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 768px) {
    .revolutionize-two,
    .editor-design,
    .genera-informes,
    .testimonials,
    .countup,
    .blog-grid {
        padding: 40px 0;
    }
    
    /* Väiksemad ekraanid */
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    /* Vormide parandused */
    input, textarea, select {
        font-size: 16px; /* Prevent zoom on iOS */
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Tabelite responsiivsus */
    table {
        width: 100%;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    /* Sektsioonide parandused */
    section {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .revolutionize-two,
    .editor-design,
    .genera-informes,
    .testimonials,
    .countup,
    .blog-grid {
        padding: 30px 0;
    }
    
    /* Kõige väiksemad ekraanid */
    .container {
        padding: 0 10px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.125rem; }
    
    /* Väiksemad paddingud */
    section {
        padding: 30px 0;
    }
    
    /* Nuppude kohandamine */
    .btn, .pix-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly hover states */
    .btn:hover,
    .pix-btn:hover,
    .nav-btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Larger touch targets */
    a, button, input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .site-nav {
        height: 100vh;
        overflow-y: auto;
    }
    
    /* Reduce padding in landscape */
    section {
        padding: 20px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobiili menüü spetsiifilised parandused */
@media (max-width: 991px) {
    /* Hamburger menüü stiilid */
    .toggle-menu {
        display: block !important;
        position: relative;
        z-index: 10000;
        width: 30px;
        height: 25px;
        cursor: pointer;
    }
    
    .toggle-menu .bar {
        width: 100%;
        height: 3px;
        background-color: #2b2350;
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    .toggle-menu .bar:nth-child(1) { top: 0; }
    .toggle-menu .bar:nth-child(2) { top: 11px; }
    .toggle-menu .bar:nth-child(3) { top: 22px; }
    
    /* Mobiili navigatsiooni stiilid */
    .site-nav {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -2px 0 15px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .site-nav.open {
        right: 0;
    }
    
    /* Mobiili logo */
    .site-mobile-logo {
        display: block !important;
        max-width: 150px;
        position: relative;
        z-index: 10001;
    }
    
    .site-mobile-logo img {
        max-width: 100%;
        height: auto;
    }
    
    /* Sulgemise nupp */
    .close-menu {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 10000;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: #2b2350;
    }
    
    .close-menu:before {
        content: "×";
        font-size: 30px;
        line-height: 1;
    }
    
    /* Menüü elemendid */
    .site-main-menu {
        display: block !important;
        margin-top: 60px;
        padding: 0;
        list-style: none;
    }
    
    .site-main-menu li {
        border-bottom: 1px solid #f0f0f0;
        margin: 0;
    }
    
    .site-main-menu li a {
        display: block;
        padding: 15px 0;
        color: #2b2350;
        text-decoration: none;
        font-weight: 500;
        font-size: 16px;
        position: relative;
    }
    
    .site-main-menu li a:hover {
        color: #3765f1;
    }
    
    /* Submenu toggle */
    .submenu-toggle {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2b2350;
    }
    
    .submenu-toggle i {
        transition: transform 0.3s ease;
    }
    
    /* Submenu stiilid */
    .site-main-menu .sub-menu {
        background: #f8f9fa;
        margin: 0;
        padding: 0;
        list-style: none;
        border-radius: 5px;
        margin-top: 10px;
        display: none;
    }
    
    .site-main-menu .sub-menu li {
        border-bottom: none;
    }
    
    .site-main-menu .sub-menu li a {
        padding: 10px 20px;
        font-size: 14px;
        color: #666;
    }
    
    .site-main-menu .sub-menu li a:hover {
        color: #3765f1;
        background: #fff;
    }
    
    /* Navigatsiooni nupud */
    .nav-right {
        margin-top: 30px;
        text-align: center;
    }
    
    .nav-right .nav-btn {
        display: inline-block;
        margin: 5px;
        padding: 12px 25px;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        min-height: 44px;
        line-height: 20px;
    }
    
    /* Header parandused */
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
    }
}

/* Väga väikesed ekraanid */
@media (max-width: 576px) {
    .site-nav {
        width: 280px;
    }
    
    .site-mobile-logo {
        max-width: 120px;
    }
    
    .header-inner {
        padding: 10px 15px;
    }
}

/* Desktop vaates näita alati */
@media (min-width: 992px) {
    .hide-on-mobile {
        display: block !important;
    }
}

/* Üldised mobiili parandused kõigile ekraanidele */
@media (max-width: 991px) {
    /* Mobiilis peitmise klass */
    .hide-on-mobile {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Tagame, et kõik elemendid mahtuvad ekraanile */
    * {
        box-sizing: border-box;
    }
    
    /* Eemaldame horisontaalse scrolli */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Parandame konteinerite käitumist */
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Parandame grid süsteemi */
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-auto, .col-sm, .col-sm-1, .col-sm-2, .col-sm-3,
    .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8,
    .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-auto,
    .col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4,
    .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9,
    .col-md-10, .col-md-11, .col-md-12, .col-md-auto,
    .col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4,
    .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9,
    .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-auto,
    .col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4,
    .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9,
    .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-auto {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Parandame tekstide lugemist */
    p, li, span {
        line-height: 1.6;
        word-wrap: break-word;
    }
    
    /* Parandame nuppude kuvamist */
    .btn-group-vertical > .btn,
    .btn-group > .btn {
        margin-bottom: 5px;
    }
} 