﻿/* strahovanie.insure - Classic Trustworthy Theme */
:root {
    --primary-blue: #004085; /* Deep trust blue */
    --secondary-blue: #0056b3;
    --accent-red: #d9534f; /* Caution/Action red */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --wrapper-width: 1200px;
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.str-wrapper {
    max-width: var(--wrapper-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.str-header {
    background-color: #ffffff;
    border-bottom: 2px solid var(--primary-blue);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.str-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.str-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.str-logo span {
    color: var(--accent-red);
}

.str-nav {
    display: flex;
    gap: 25px;
}

.str-nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.str-nav a:hover, .str-nav a.active {
    color: var(--primary-blue);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-red);
}

/* Hero Section */
.str-hero {
    background: linear-gradient(rgba(0, 64, 133, 0.9), rgba(0, 86, 179, 0.8)), url('/wse/strahovanie.insure/img/hero-bg.jpg') center/cover;
    color: white;
    padding: 80px 0;
    text-align: center;
    border-bottom: 5px solid var(--accent-red);
}

.str-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.str-hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.str-btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--accent-red);
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.str-btn:hover {
    background-color: #c9302c;
    color: white;
    text-decoration: none;
}

/* Content Area */
.str-main {
    padding: 50px 0;
    background-color: #ffffff;
}

.str-content-block {
    margin-bottom: 40px;
}

.str-content-block h2 {
    color: var(--primary-blue);
    font-size: 28px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.str-content-block h3 {
    color: var(--text-dark);
    font-size: 22px;
    margin: 25px 0 15px;
}

.str-content-block p {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--text-light);
    text-align: justify;
}

.str-content-block ul, .str-content-block ol {
    margin: 15px 0 20px 40px;
    color: var(--text-light);
}

.str-content-block li {
    margin-bottom: 8px;
}

/* Service Grid */
.str-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.str-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.str-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    border-color: var(--secondary-blue);
}

.str-card-icon {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.str-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* Footer */
.str-footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 40px 0 20px;
}

.str-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.str-footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

.str-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.str-footer li {
    margin-bottom: 10px;
}

.str-footer a {
    color: rgba(255,255,255,0.8);
}

.str-footer a:hover {
    color: white;
}

.str-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .str-header-flex {
        flex-direction: column;
        gap: 15px;
    }
    
    .str-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .str-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Adaptive Mobile Layout (added by script) */
@media (max-width: 768px) {
    body { overflow-x: hidden !important; }
    .container { width: 100% !important; padding: 0 15px !important; margin: 0 auto !important; box-sizing: border-box !important; }
    
    /* Header */
    .header { position: relative !important; height: auto !important; padding: 10px 0 !important; }
    .header-inner { flex-direction: column !important; text-align: center !important; gap: 15px !important; padding: 10px 0 !important; }
    .nav-links { display: flex !important; flex-wrap: wrap !important; width: 100% !important; justify-content: center !important; flex-direction: row !important; gap: 8px !important; padding: 10px 0 !important; }
    .nav-links a { font-size: 15px !important; margin: 0 !important; padding: 8px 12px !important; display: inline-block !important; border: 1px solid rgba(0,0,0,0.1) !important; border-radius: 4px; }
    .header-btn { display: inline-block !important; width: 100% !important; margin: 10px 0 0 0 !important; box-sizing: border-box !important; }
    .mobile-menu-btn { display: none !important; }
    
    /* Hero */
    .hero, .calculator-info { padding: 40px 15px !important; text-align: center !important; min-height: auto !important; }
    h1, .hero h1, .calculator-info h1 { font-size: 24px !important; line-height: 1.3 !important; word-wrap: break-word !important; overflow-wrap: break-word !important; hyphens: auto !important; }
    h2, .hero h2, .calculator-info h2 { font-size: 20px !important; word-wrap: break-word !important; margin-top: 20px !important; }
    h3 { font-size: 18px !important; }
    
    /* Main */
    main { padding: 20px 0 !important; width: 100vw !important; max-width: 100% !important; box-sizing: border-box !important; }
    main img, .content-card img { max-width: 100% !important; height: auto !important; margin: 15px auto !important; display: block !important; border-radius: 4px !important; }
    main table, main thead, main tbody, main th, main td, main tr, .table-container { display: block !important; width: 100% !important; box-sizing: border-box !important; overflow-x: auto !important; }
    
    /* Footer */
    .footer-grid, .footer-top, .footer-bottom { display: flex !important; flex-direction: column !important; gap: 20px !important; text-align: center !important; }
    .footer-grid ul, .footer-links-group ul, .footer-contact ul { padding: 0 !important; list-style: none !important; }
    .footer-links { flex-direction: column !important; gap: 10px !important; }
    
    /* Lists */
    .features-grid, .services-grid, .articles-grid, .advantages-grid { display: flex !important; flex-direction: column !important; gap: 20px !important; }
}
