/* ===========================================
   revize-komin.cz — Stylesheet
   Design: Dark Green #166534 + White + Orange #ea580c CTA
   Mobile-first, responsive, accessible
   =========================================== */

/* ===========================================
   Reset & Base Styles
   =========================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================================
   Header & Navigation
   =========================================== */

.header {
    background-color: #166534;
    color: white;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.site-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

.nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 0.85;
}

.nav-hub {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }

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

    .nav-link {
        font-size: 12px;
    }
}

/* ===========================================
   Hero Section
   =========================================== */

.hero {
    background: linear-gradient(135deg, #166534 0%, #1a7a3e 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 32px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
    }

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

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

/* ===========================================
   Main Content & Sections
   =========================================== */

.main {
    background-color: white;
}

.section {
    padding: 60px 20px;
    border-bottom: 1px solid #ecf0f1;
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #166534;
    margin-bottom: 24px;
    line-height: 1.2;
}

.section > p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #2c3e50;
}

.section > p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 20px;
    }

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

/* ===========================================
   Lists & Content
   =========================================== */

.content-list {
    list-style: none;
    margin: 24px 0;
}

.content-list li {
    padding-left: 28px;
    margin-bottom: 12px;
    position: relative;
    line-height: 1.7;
}

.content-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ea580c;
    font-weight: bold;
    font-size: 18px;
}

/* ===========================================
   Tables
   =========================================== */

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.price-table thead {
    background-color: #166534;
    color: white;
}

.price-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.price-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 15px;
    line-height: 1.6;
}

.price-table tbody tr:hover {
    background-color: #f9f9f9;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .price-table th,
    .price-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ===========================================
   Highlight / Risk Grid
   =========================================== */

.highlight {
    background-color: #f0f5f2;
}

.risk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.risk-item {
    background-color: white;
    padding: 24px;
    border-left: 4px solid #ea580c;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.risk-item h3 {
    font-size: 18px;
    color: #166534;
    margin-bottom: 12px;
    font-weight: 600;
}

.risk-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .risk-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ===========================================
   Lead Form
   =========================================== */

.lead-form {
    background-color: #f8f9fa;
    padding: 32px 24px;
    border-radius: 6px;
    max-width: 600px;
    margin: 32px 0;
    border: 1px solid #ecf0f1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #166534;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-note {
    font-size: 12px;
    color: #7a8a99;
    margin-top: 16px;
    text-align: center;
}

.form-note .link {
    color: #ea580c;
    text-decoration: none;
}

.form-note .link:hover {
    text-decoration: underline;
}

/* ===========================================
   Buttons
   =========================================== */

.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    touch-action: manipulation;
}

.btn-primary {
    background-color: #ea580c;
    color: white;
}

.btn-primary:hover {
    background-color: #d94908;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.2);
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

@media (max-width: 768px) {
    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ===========================================
   FAQ
   =========================================== */

.faq {
    display: grid;
    gap: 16px;
    margin: 32px 0;
}

.faq-item {
    background-color: #f8f9fa;
    padding: 20px 24px;
    border-radius: 6px;
    border-left: 4px solid #166534;
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 12px;
    cursor: pointer;
    margin-top: 0;
}

.faq-answer {
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
}

/* ===========================================
   CTA Section
   =========================================== */

.cta-section {
    background-color: #f0f5f2;
    text-align: center;
}

.cta-section h2 {
    color: #166534;
    margin-bottom: 16px;
}

.cta-section p {
    margin-bottom: 12px;
}

.cta-section .link {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
}

.cta-section .link:hover {
    text-decoration: underline;
}

/* ===========================================
   Footer
   =========================================== */

.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ea580c;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links .link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.footer-links .link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===========================================
   Links
   =========================================== */

.link {
    color: #ea580c;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ===========================================
   Responsive Adjustments
   =========================================== */

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

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

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

    .btn {
        padding: 11px 20px;
        font-size: 14px;
    }

    .lead-form {
        padding: 20px 16px;
    }
}

/* ===========================================
   Accessibility
   =========================================== */

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

/* Focus states for keyboard navigation */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #ea580c;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: more) {
    .btn-primary {
        border: 2px solid #ea580c;
    }

    .section-title {
        font-weight: 800;
    }
}
