/* Design System for KKGI Úklid */

:root {
    /* Colors */
    --primary-green: #278210;
    --primary-green-rgb: 39, 130, 16;
    --secondary-blue: #072a86;
    --secondary-blue-rgb: 7, 42, 134;
    --text-color: #333333;
    --bg-light: #f8faff;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    /* Typography Fluid Scales */
    --font-main: 'Poppins', sans-serif;
    --font-h1: clamp(1.6rem, 0.8rem + 4vw, 3.2rem);
    --font-h2: clamp(1.3rem, 0.8rem + 2.8vw, 2.6rem);
    --font-h3: clamp(1rem, 0.8rem + 1.6vw, 2rem);
    --font-body: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
    --font-small: clamp(0.9rem, 0.85rem + 0.2vw, 0.95rem);
    --font-nav: clamp(0.95rem, 0.85rem + 0.2vw, 1rem);
    --font-btn: clamp(0.95rem, 0.85rem + 0.2vw, 1rem);

    /* Spacing & Layout */
    --grid-gap: 1.5rem;
    --section-padding: clamp(3rem, 10vw, 6rem);
    --border-radius: 14px;
    --container-width: 80%;
    --max-text-width: 70%;
}

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

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Base Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #212942;
}

h1 { 
    font-size: var(--font-h1); 
    font-weight: 800;
    letter-spacing: 0.5px;
    min-height: 2.2em;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

h2 { font-size: var(--font-h2); margin-bottom: 1.5rem; }
h3 { font-size: var(--font-h3); margin-bottom: 1.2rem; }

p {
    max-width: var(--max-text-width);
    margin-bottom: 1.5rem;
    font-size: var(--font-body);
    line-height: 1.7;
    color: #444;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Shared Components */
.container {
    width: var(--container-width);
    margin: 0 auto;
    max-width: 1400px;
}

.btn {
    display: inline-block;
    padding: clamp(0.8rem, 0.6rem + 1vw, 1.2rem) clamp(1.5rem, 1rem + 2vw, 3rem);
    border-radius: 35px;
    font-weight: 600;
    font-size: var(--font-btn);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #278210;
    background-color: #278210;
    color: #fff;
    box-shadow: 0 4px 15px rgba(39, 130, 16, 0.3);
}

.btn-primary:hover {
    background-color: #2b6619;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 130, 16, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #278210;
    border: 2px solid #278210;
    color: #333;
}

.btn-outline:hover {
    background: #278210;
    background: #278210;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 130, 16, 0.2);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem; /* Reduced from 2rem */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.glass-card h3 {
    font-size: 1.4rem; /* Slightly smaller than global h3 */
    margin-bottom: 0.8rem;
}

.glass-card p {
    font-size: 1.1rem; /* Slightly smaller than global body, increased to match services page */
    line-height: 1.6;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

/* Utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }
.padding-y { padding-top: var(--section-padding); padding-bottom: var(--section-padding); }
.section { padding: var(--section-padding) 0; }
.bg-white { background-color: var(--bg-white); }
.bg-light { background-color: var(--bg-light); }
.bg-gradient-light { background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%); }
.color-white { color: white; }

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem clamp(1.5rem, 5vw, 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header.scrolled {
    top: 0.5rem;
}

header.scrolled .nav-container {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.98);
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 28px; /* Increased by ~10% from 25px */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    white-space: nowrap;
}

.nav-links a {
    font-weight: 600;
    font-size: var(--font-nav);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; /* Lower underline */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 50%;
    background: #278210;
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 60%;
}

.nav-links a.active {
    color: #278210;
}

.nav-cta {
    margin-left: 1rem;
    flex-shrink: 0;
}

.nav-cta .btn {
    padding: 0.6rem 1.8rem;
    font-size: 0.8rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #278210;
    color: white;
    padding: 8px;
    z-index: 1001;
}

.skip-link:focus {
    top: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    background-image: url('Obrazky/hero sekce/hero sekce 1.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 28px;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 21px;
}

/* Hero Content */

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 75%;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 0.8rem + 1.5vw, 1.8rem);
    margin-top: 1.5rem;
    line-height: 1.4;
    font-weight: 500;
    color: #212942;
}

@media (max-width: 991px) {
    .hero-content {
        max-width: 100%;
    }
}

/* Typing Animation */
.typing-container {
    display: inline-block;
}

/* Typed text color inherited from H1 */

.cursor {
    display: inline-block;
    width: 3px;
    background-color: #212942;
    margin-left: 0.1rem;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.underline-phrase {
    position: relative;
    display: inline-block;
}

.typed-text {
    position: relative;
    display: inline-block;
}

.typed-text::after {
    content: '';
    position: absolute;
    bottom: 8px; /* Adjusted to sit behind/below text like the image */
    left: 0;
    width: 0;
    height: 12px; /* Thick highlighter style */
    background-color: #278210;
    z-index: -1;
    transition: width 1s ease-in-out;
}

.animate-underline .typed-text::after {
    width: 100%;
}

/* Why Choose Us Grid */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 1.5rem;
    margin-top: 3rem;
    position: relative;
}

.why-item {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.why-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.why-image img[src*="myti%20oken.jpg"] {
    object-position: center top;
}

.why-item:hover .why-image img {
    transform: scale(1.05);
}

.why-card {
    padding: 1.5rem; /* Reduced from 2rem */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-card-content {
    max-width: 100%;
    width: 100%;
}

.why-card h3 {
    font-size: 1.3rem; /* Slightly smaller than global h3 */
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.why-card p {
    font-size: 1.1rem; /* Increased to match services page */
    max-width: 100%;
    margin-bottom: 0;
    opacity: 0.95;
    line-height: 1.5;
}

.why-card-dark {
    background-color: #2b2d42;
    color: white;
    text-align: center;
    align-items: center;
}

.why-card-dark h3, .why-card-dark p {
    color: white;
}

.why-card-dark p {
    color: white;
    opacity: 0.9;
}

.why-card-dark .count {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #278210;
}

.why-card-blue {
    background: linear-gradient(135deg, #072a86 0%, #2a4df0 100%);
    background: linear-gradient(135deg, var(--secondary-blue) 0%, #2a4df0 100%);
    color: white;
    text-align: center;
    align-items: center;
}

.why-card-blue h3, .why-card-blue p {
    color: white;
}

.why-card-blue::after {
    content: '10+';
    position: absolute;
    bottom: -15px;
    right: 5px;
    font-size: 7rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    z-index: 1;
    pointer-events: none;
}

.why-card-green {
    background: linear-gradient(135deg, #278210 0%, #2b6619 100%);
    background: linear-gradient(135deg, #278210 0%, #2b6619 100%);
    color: white;
}

.why-card-green h3, .why-card-green p {
    color: white;
}

.why-icons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.why-icons img {
    height: 40px;
    width: auto;
    opacity: 0.8;
}

.why-icons i {
    font-size: 2.5rem;
    opacity: 0.4; /* Slightly more visible */
    color: white;
}

/* Badge / Stamp in the middle */
.why-badge {
    position: absolute;
    left: 33.3333%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 130px;
    height: 130px;
}

.why-badge img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.why-badge:hover img {
    transform: rotate(15deg) scale(1.1);
}

@media (max-width: 1200px) {
    .why-choose-grid {
        grid-template-rows: repeat(2, 300px);
    }
    .why-badge {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 991px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .why-item {
        min-height: 250px;
    }
    
    .why-badge {
        display: none;
    }
}

@media (max-width: 576px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .why-item {
        min-height: auto;
        aspect-ratio: 16/9;
    }
    
    .why-card {
        aspect-ratio: auto;
        padding: 2.5rem 1.5rem;
    }
}

/* O nás Section Redesign */
.o-nas-section {
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.o-nas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.subheading {
    display: block;
    color: var(--secondary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.o-nas-content h2 {
    font-size: var(--font-h2);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #212942;
}

.o-nas-content p {
    font-size: clamp(1.1rem, 0.95rem + 0.3vw, 1.25rem);
    line-height: 1.7;
    color: #555;
    max-width: 100%;
}

.o-nas-list {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.o-nas-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.o-nas-list li i {
    flex-shrink: 0;
    font-size: 1.8rem;
    color: #278210;
    margin-top: 0.3rem;
}

.o-nas-list h4 {
    margin-bottom: 0.4rem;
    font-size: var(--font-body);
    font-weight: 600;
    color: #212942;
}

.o-nas-list p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

.o-nas-visual {
    position: relative;
    padding-right: 40px;
    padding-bottom: 40px;
}

/* Decorative blue frame behind the video */
.o-nas-visual::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    right: 60px;
    bottom: 20px;
    border: 1.5px solid #278210;
    border-radius: 280px;
    z-index: 0;
    opacity: 0.4;
}

.video-mask {
    position: relative;
    z-index: 1;
    border-radius: 350px;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 0.75 / 1;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.mask-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1); /* Slightly zoom to fill better */
}

.quality-stamp {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 180px;
    height: 180px;
    z-index: 5;
    animation: float-slow 6s ease-in-out infinite;
}

.quality-stamp img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 15px 30px rgba(0,00,0,0.2));
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@media (max-width: 1100px) {
    .o-nas-grid {
        gap: 3rem;
    }
    .quality-stamp {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 991px) {
    .o-nas-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .o-nas-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .o-nas-list {
        align-items: center;
    }
    
    .o-nas-list li {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .o-nas-visual {
        max-width: 500px;
        margin: 0 auto;
        padding-right: 0;
        padding-bottom: 0;
    }
    
    .o-nas-visual::before {
        display: none;
    }
    
    .quality-stamp {
        bottom: -30px;
        right: -20px;
    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch; /* Stretching to keep heights equal */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: left;
    line-height: 1.4;
    opacity: 0.85;
    max-width: 100%;
}

.contact-form input, .contact-form textarea, .contact-form select {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    font-family: inherit;
    font-size: var(--font-body);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    margin: auto;
    position: relative;
    padding: 3rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #278210;
}

.modal h2 {
    margin-bottom: 0.5rem;
    color: var(--secondary-blue);
    text-align: center;
}

.modal p {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 100%;
    font-size: 0.95rem;
    color: #666;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.form-group input, 
.form-group select {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: #278210;
    box-shadow: 0 0 0 4px rgba(39, 130, 16, 0.1);
}

.calc-result-container {
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid rgba(7, 42, 134, 0.05);
}

.calc-result-container p {
    margin-bottom: 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

#calc-price {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-blue);
    margin-top: 0.5rem;
}

#calc-window-text {
    font-size: 1rem;
    color: var(--secondary-blue);
    font-weight: 600;
    line-height: 1.4;
}

.modal-footer {
    text-align: center;
}

.modal-footer .btn {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.honeypot {
    display: none;
}

/* Footer Redesign */
footer {
    padding: 6rem 0 3rem;
    background: linear-gradient(180deg, #1a1c2e 0%, #0c0d15 100%);
    color: #e0e0e0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(39, 130, 16, 0.2), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    font-size: var(--font-small);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-logo {
    height: 45px; /* Updated from 40px to be consistent and slightly larger */
    width: auto;
    margin-bottom: 1.5rem;
}

footer h4 {
    color: #fff;
    font-size: var(--font-small);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    position: relative;
    font-weight: 700;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 20px;
    height: 2px;
    background: #278210;
}

footer ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

footer ul a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-small);
    transition: all 0.3s ease;
}

footer ul a:hover {
    color: #278210;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    background: #278210;
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(39, 130, 16, 0.3);
}

.footer-legal p {
    font-size: var(--font-small);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: var(--font-small);
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #278210;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.services-grid .glass-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.services-grid .glass-card p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.services-grid img {
    border-radius: 8px;
    margin: 0 auto 1rem;
    display: block;
}

/* FAQ Accordion Styles */
.faq-accordion {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0px;
    transition: padding-bottom 0.4s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--secondary-blue);
}

.faq-question i {
    font-size: 1rem;
    color: #278210;
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.faq-answer p {
    margin: 0;
    padding: 1.5rem 0 0.5rem 0;
    font-size: var(--font-small);
    color: #555;
    line-height: 1.6;
}

/* Active State */
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Big enough to show any answer */
    margin-top: 5px;
}
/* Contact Details */
.info-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start; /* Better for multiline text */
    margin-bottom: 2rem;
}

.info-item i {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: #278210;
    box-shadow: 0 4px 10px rgba(var(--primary-green-rgb), 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.info-content h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    color: #666;
    font-weight: 500;
}

.info-content p, .info-content a {
    font-size: clamp(1.1rem, 0.95rem + 0.3vw, 1.25rem);
    color: #212942;
    margin-bottom: 0;
    font-weight: 500;
    max-width: 100%;
}

/* Form Success */
.form-success {
    display: none;
    background: #d4edda;
    color: #155724;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 1rem;
}

.form-success.visible {
    display: block;
}

/* Reveal on Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .container { width: 90%; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    header {
        width: 100%;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-radius: 17px;
        margin-top: 1rem;
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
        border: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-cta {
        margin-left: 0;
        width: 100%;
    }
    
    .nav-cta .btn {
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }
    
    .hamburger { display: block; }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-1 { grid-column: span 2; }
    .bento-2 { grid-column: span 2; }
    .bento-3 { grid-column: span 1; }
    .bento-4 { grid-column: span 1; }
    
    .form-row { grid-template-columns: 1fr; }
    
    .cursor { display: none !important; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom { justify-content: center; text-align: center; }

    .hero-bg {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
    
    .hero-overlay {
        border-radius: 0;
    }
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .services-grid .glass-card {
        padding: 0;
        border-radius: 14px;
        overflow: hidden;
        text-align: left;
    }
    .services-grid .glass-card h3 {
        font-size: 1.35rem;
        margin-bottom: 0.4rem;
        padding: 1rem 1rem 0;
    }
    .services-grid .glass-card p {
        font-size: 1.05rem;
        line-height: 1.6;
        padding: 0 1rem 1.2rem;
    }
    .services-grid img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        object-fit: cover;
        border-radius: 0;
        margin: 0;
        display: block;
    }
}

/* Subpage Styles - Service Details */
.hero-subpage {
    height: 70vh;
    min-height: 500px;
}

.hero-subpage .hero-content {
    max-width: 800px;
}

.service-details-container {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.service-detail-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 6rem;
    align-items: center;
}

.service-detail-row.reverse .service-detail-image {
    order: 2;
}

.service-detail-row.reverse .service-detail-text {
    order: 1;
}

.service-detail-image {
    position: relative;
    z-index: 1;
}

.service-detail-image .image-wrapper {
    border-radius: 21px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.05);
}

.service-detail-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 14px;
}

.service-detail-row:hover .image-wrapper {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 80px rgba(0,0,0,0.15);
}

.service-detail-text h2 {
    font-size: var(--font-h2);
    color: #212942;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.service-intro {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-family: 'Raleway', sans-serif;
}

.service-detail-text p {
    max-width: 100%;
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.service-bullets {
    list-style: none;
    margin-bottom: 2.5rem;
}

.service-bullets li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 0.8rem;
}

.service-bullets li i {
    color: #278210;
    font-size: 1rem;
}

@media (max-width: 991px) {
    .hero-subpage {
        height: 50vh;
        min-height: 400px;
    }

    .service-detail-row {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: left;
    }
    
    .service-detail-row.reverse .service-detail-image {
        order: -1;
    }
    
    .service-detail-row.reverse .service-detail-text {
        order: 1;
    }
    
    .service-detail-image .image-wrapper {
        max-width: 550px;
        margin: 0 auto;
    }
    
    .service-details-container {
        gap: 6rem;
    }
    
    .service-intro {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-subpage {
        height: 60vh;
    }
}


/* Kariéra Page Styles */
.kariera-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.opening-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: rgba(39, 130, 16, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #278210;
}

.opening-item i {
    font-size: 2.5rem;
    color: #278210;
}

.opening-item h3 {
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
}

.opening-item p {
    margin-bottom: 0;
    font-size: 1rem;
    max-width: 100%;
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
    color: #444;
}

.benefits-list li i {
    color: #278210;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.kariera-cta-card {
    position: sticky;
    top: 120px;
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
    border: 2px solid #278210;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
}

.cta-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #278210;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(39, 130, 16, 0.3);
}

.kariera-cta-card h2 {
    color: var(--secondary-blue);
    font-size: 1.8rem;
}

.text-small {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 1100px) {
    .benefits-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .kariera-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .kariera-cta-card {
        position: static;
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .opening-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefits-list li {
        font-size: 1rem;
    }
}

/* Anniversary Ticker */
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    background: #072a86;
    padding: 0.85rem 0;
}

.ticker-track {
    display: inline-flex;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-text {
    flex-shrink: 0;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.9rem, 0.75rem + 0.8vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ffffff;
    padding-right: 4rem;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
    .ticker-text + .ticker-text { display: none; }
}

/* Scroll To Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1500;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #278210;
    background: #278210;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}

#scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#scroll-to-top:hover {
    background: var(--secondary-blue);
}

@media (max-width: 768px) {
    #scroll-to-top {
        bottom: max(1.2rem, calc(env(safe-area-inset-bottom) + 1rem));
        right: 1.2rem;
        width: 48px;
        height: 48px;
    }
}
