/* ==========================================================================
   CSS Variables & Base Styles
   ========================================================================== */
:root {
    /* Brand Colors */
    --color-brand-green: #6cc24a;
    --color-brand-green-hover: #5ab03a;
    --color-loxone: #7baf21;
    
    /* Background & Text Colors */
    --color-bg-dark: #111111;
    --color-bg-darker: #080808;
    --color-bg-light: #f8f9fa;
    --color-bg-white: #ffffff;
    
    --color-text-dark: #222222;
    --color-text-light: #f4f4f4;
    --color-text-muted: #888888;
    --color-text-gray: #555555;
    
    --color-border: #e2e8f0;
    --color-border-dark: #333333;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --section-padding: 5rem 0;
    
    /* Transitions & Shadows */
    --transition: all 0.3s ease-in-out;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.dark-section {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.dark-section h2, 
.dark-section h3, 
.dark-section h4 {
    color: var(--color-text-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-brand-green);
}

.section-title.text-left {
    text-align: left;
}

.section-title.text-left::after {
    left: 0;
    transform: none;
}

.highlight-text {
    color: var(--color-text-muted);
    font-weight: 400;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-brand-green);
    color: var(--color-bg-white);
}

.btn-primary:hover {
    background-color: var(--color-brand-green-hover);
    color: var(--color-bg-white);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-bg-white);
    border-color: var(--color-border-dark);
}

.btn-outline:hover {
    border-color: var(--color-brand-green);
    color: var(--color-brand-green);
}

.btn-white {
    background-color: var(--color-bg-white);
    color: var(--color-bg-dark);
}

.btn-white:hover {
    background-color: var(--color-brand-green);
    color: var(--color-bg-white);
    border-color: var(--color-brand-green);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-bg-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
    background-color: var(--color-bg-white);
    color: var(--color-bg-dark);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
}

.logo-text.small {
    font-size: 1.5rem;
}

.logo-text .j {
    color: var(--color-bg-white);
}

.logo-text .d {
    background: linear-gradient(to bottom, var(--color-bg-white) 55%, var(--color-brand-green) 55%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtext {
    color: var(--color-bg-white);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-left: 0.5rem;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-brand-green);
}

.nav-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-bg-white);
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17, 17, 17, 0.9) 0%, rgba(17, 17, 17, 0.6) 50%, rgba(17, 17, 17, 0.3) 100%);
    z-index: -1;
}

.hero-content {
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0; /* Align left within container */
}

.hero-brand {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--color-bg-white);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-bg-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 4px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-brand-green);
    z-index: 1;
    border-radius: 4px;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--color-text-gray);
    font-size: 1.05rem;
}

.philosophy {
    font-size: 1.4rem !important;
    font-weight: 700;
    color: var(--color-text-dark) !important;
    margin-top: 2rem;
    border-left: 4px solid var(--color-brand-green);
    padding-left: 1rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--color-bg-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-brand-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(108, 194, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-brand-green);
}

.service-icon i {
    width: 32px;
    height: 32px;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.loxone-tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-loxone);
    letter-spacing: 1px;
}

/* ==========================================================================
   Loxone Section
   ========================================================================== */
.loxone-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.loxone-title {
    color: var(--color-loxone) !important;
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.loxone-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.loxone-text .certified {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.loxone-text p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.loxone-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    width: 100%;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    color: var(--color-loxone);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    width: 40px;
    height: 40px;
}

.feature span {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.3;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 4rem;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.step-header {
    position: relative;
    margin-bottom: 1.5rem;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background-color: var(--color-bg-dark);
    color: var(--color-bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-bg-light);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
    transition: var(--transition);
}

.step:hover .step-icon {
    border-color: var(--color-brand-green);
    color: var(--color-brand-green);
}

.step-icon i {
    width: 32px;
    height: 32px;
}

.step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--color-text-gray);
}

.step-connector {
    flex: 1;
    height: 2px;
    background-color: var(--color-border);
    margin-top: 40px;
    max-width: 100px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding-top: 5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-contact h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.location i {
    width: 18px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--color-brand-green);
}

.footer-checklist h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-checklist ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.check-icon {
    color: var(--color-brand-green);
    width: 18px;
}

.footer-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-cta p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.footer-separator {
    height: 1px;
    background-color: var(--color-border-dark);
    width: 100%;
}

.footer-bottom {
    padding: 1.5rem 0;
    background-color: var(--color-bg-darker);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .process-timeline {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    .step-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-bg-dark);
        padding: 5rem 2rem 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .nav-link {
        font-size: 1.1rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr;
    }
    .bottom-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   Realizace & Certifikáty Sections
   ========================================================================== */
.realizace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.realizace-card {
    background: var(--color-bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.realizace-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.realizace-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.realizace-content {
    padding: 1.5rem;
}

.realizace-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.realizace-content p {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.certifikaty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.certifikat-card {
    background: var(--color-bg-white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.certifikat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.certifikat-img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.certifikat-card h4 {
    font-size: 1rem;
    margin-bottom: 0;
}

.loading {
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
    grid-column: 1 / -1;
}
