/* 
 * Domain Financial Audit - Main Stylesheet
 * Created for the Czech market
 */

:root {
    /* Color Palette */
    --primary: #00A3E0;    /* Lazur blue */
    --accent: #F6A623;     /* Light orange */
    --background: #FDF7F1; /* Light beige */
    --text: #1A1A2E;       /* Dark blue */
    --secondary: #8BAAAD;  /* Gray-green */
    
    /* Font sizes */
    --font-small: 14px;
    --font-medium: 16px;
    --font-large: 18px;
    --font-xl: 24px;
    --font-xxl: 32px;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Prevents header overlap with anchors */
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    font-size: var(--font-medium);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--space-sm);
    line-height: 1.2;
    text-align: center;
}

h1 {
    font-size: var(--font-xxl);
}

h2 {
    font-size: var(--font-xl);
}

h3 {
    font-size: var(--font-large);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
}

/* For 1-column layouts on mobile, 3-column on desktop */
.grid-1-3 {
    display: grid;
    gap: var(--space-md);
}

/* For 1-column layouts on mobile, 4-column on desktop */
.grid-1-4 {
    display: grid;
    gap: var(--space-md);
}

/* Sections */
section {
    padding: var(--space-xl) 0;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.logo {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-desktop {
    display: none;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav-mobile {
    display: block;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--primary);
    font-size: var(--font-xl);
    cursor: pointer;
}

.contact-info {
    display: none;
}

/* Hero Section */
.hero {
    padding-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::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;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: var(--font-large);
    margin-bottom: var(--space-lg);
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--accent);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    color: white;
}

/* About Section */
.about-item {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Services Section */
.service-item {
    text-align: center;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 3px solid var(--primary);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: scale(1.03);
}

/* Process Section */
.process-container {
    position: relative;
}

.process-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.process-number {
    font-size: var(--font-xxl);
    font-weight: 700;
    color: var(--primary);
    margin-right: var(--space-md);
}

.process-content h3 {
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

/* Testimonials */
.testimonial-container {
    margin: 0 auto;
    max-width: 800px;
}

.testimonial-item {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: var(--space-md);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
}

/* Contact Form */
.contact-form {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-control {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-md);
    font-size: var(--font-medium);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.2);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

/* FAQ Section */
.faq-item {
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-md);
    background-color: #fff;
    overflow: hidden;
}

.faq-question {
    padding: var(--space-md);
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #0091ca;
}

.faq-answer {
    padding: var(--space-md);
    border: 1px solid var(--secondary);
    border-top: none;
    display: none;
}

/* Footer */
footer {
    background-color: #1A1A2E;
    color: #fff;
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    gap: var(--space-lg);
}

.footer-logo {
    color: #fff;
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.footer-links h3 {
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    margin-bottom: var(--space-xs);
}

.footer-copyright {
    margin-top: var(--space-lg);
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: fadeInUp 0.5s forwards;
}

.cookie-text {
    margin-bottom: var(--space-sm);
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
}

/* Policy Pages */
.policy-container {
    background-color: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 0;
    margin-bottom: var(--space-xl);
    padding-top: 100px; /* Add padding to account for header height */
}

.policy-title {
    color: var(--primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--accent);
}

.policy-content h2 {
    color: var(--primary);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.policy-content p, .policy-content ul {
    margin-bottom: var(--space-md);
}

.policy-content ul {
    padding-left: var(--space-lg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Media Queries */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .grid-1-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-1-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        display: block;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .nav-desktop {
        display: block;
    }
    
    .nav-mobile {
        display: none;
    }
    
    .grid-1-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-1-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}