/* 
   ProDůM - Modern Redesign Styling
   Color Palette: Shades of Blue and Grey
*/

:root {
    /* Primary Colors - Modern Airy Theme */
    --primary-blue: #2563eb;
    /* Vibrant Professional Blue */
    --primary-blue-dark: #1e40af;
    --primary-blue-light: #eff6ff;
    --primary-blue-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --accent-red: #ff0000;
    /* Solid Red Logo/Accents */

    /* Secondary Colors - High Contrast Greys */
    --grey-50: #f8fafc;
    --grey-100: #f1f5f9;
    --grey-200: #e2e8f0;
    --grey-300: #cbd5e1;
    --grey-500: #64748b;
    --grey-700: #334155;
    --grey-900: #1e293b;

    /* Semantic Mappings */
    --white: #ffffff;
    --bg-color: #ffffff;
    --section-bg-alt: #f8fafc;
    --text-color: #334155;
    --text-muted: #64748b;
    --heading-color: #1e293b;

    /* Utilities */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.08);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-red);
    transition: color var(--transition-fast);
}

a:hover {
    color: #ff6666;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Layout Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--section-bg-alt);
    border-top: 1px solid var(--grey-200);
    border-bottom: 1px solid var(--grey-200);
}

.bg-gradient-blue {
    background: var(--primary-blue-gradient);
    color: var(--white);
}

.bg-gradient-blue h2 {
    color: var(--white);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.mt-4 {
    margin-top: 2rem;
}

/* Typography Utilities */
.large-text {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.small-text {
    font-size: 0.875rem;
    color: var(--grey-500);
}

/* Section Header */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    position: relative;
    display: inline-block;
}

.divider {
    height: 4px;
    width: 80px;
    background: var(--accent-red);
    margin: 1rem auto 0;
    border-radius: 0;
}

.divider.bg-white {
    background: var(--grey-900);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--grey-200);
}

.nav-links a {
    color: var(--grey-900) !important;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    transition: color var(--transition-fast);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    /* Adjust based on original logo dimensions */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

/* removed duplicate nav-links a */

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: var(--accent-red);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-red);
    transition: all 0.3s ease;
    border-radius: 0;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 2rem 5rem;
    background-color: var(--bg-color);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--grey-100);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-blue);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--grey-500);
}

/* Decorative Background Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-red);
    top: -200px;
    right: -200px;
    opacity: 0.15;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue-light);
    bottom: -100px;
    left: -100px;
}

/* Custom Lists (Agenda Nájemného) */
.custom-list {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--grey-100);
    box-shadow: var(--shadow-md);
}

.custom-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.custom-list li:last-child {
    margin-bottom: 0;
}

.custom-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--bg-color);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-red);
}

.custom-list li::after {
    content: '✓';
    position: absolute;
    left: 0.35rem;
    top: 0.3rem;
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: bold;
}

/* Services Grid (Účetnictví) */
.services-grid {
    display: grid;
    gap: 1.5rem;
}

.services-grid.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

.service-item {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--grey-100);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.service-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
    border-color: var(--primary-blue);
}

.service-item .icon-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--primary-blue-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
}

.service-item .icon {
    width: 22px;
    height: 22px;
    color: var(--primary-blue);
}

.service-item p {
    margin: 0;
    font-weight: 500;
}

/* Revize Section */
.revize-content {
    max-width: 800px;
    margin: 0 auto;
}

.revize-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.revize-icon svg {
    width: 40px;
    height: 40px;
    color: var(--accent-red);
}

/* Pricing Card */
.pricing-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--grey-100);
}

.pricing-header {
    background: rgba(0, 0, 0, 0.2);
    color: var(--white);
    padding: 2.5rem;
    text-align: center;
}

.pricing-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.pricing-header .date {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.pricing-body {
    padding: 3rem;
}

.info-alert {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--primary-blue-light);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    color: var(--primary-blue-dark);
}

.info-alert.border-alert {
    background: var(--grey-50);
    border: 1px dashed var(--grey-300);
    color: var(--text-muted);
    margin-bottom: 0;
}

.info-alert svg {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-alert p {
    margin: 0;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-details p {
    margin-bottom: 0.25rem;
    color: var(--grey-500);
    font-size: 1.05rem;
}

.extra-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--grey-100);
    box-shadow: var(--shadow-sm);
}

.extra-card h4 {
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

/* Image Wrappers */
.image-wrapper {
    margin: 3rem auto;
    max-width: 600px;
    /* Reduced image size */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-image-wrapper {
    margin: 4rem auto 0;
    max-width: 500px;
    /* Reduced hero image size */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--grey-200);
}

.pricing-table th {
    color: var(--accent-red);
    font-weight: 600;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

/* Footer */
.footer {
    background: var(--grey-900);
    color: var(--grey-300);
    padding: 4rem 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .services-grid.two-cols {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--grey-200);
        clip-path: circle(0% at 100% 0);
        transition: all 0.4s ease-out;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .custom-list {
        padding: 1.5rem;
    }
}