/* Global Styles & Variables */
:root {
    /* Colors */
    --neutral-0: #ffffff;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --neutral-950: #0a0a0a;

    --primary-50: #e0f7fa; /* Light Cyan */
    --primary-100: #b2ebf2; /* Cyan */
    --primary-200: #80deea; /* Light Blue */
    --primary-300: #4dd0e1; /* Sky Blue */
    --primary-400: #26c6da; /* Turquoise */
    --primary-500: #00bcd4; /* Cyan Blue */
    --primary-600: #00acc1; /* Darker Cyan Blue */
    --primary-700: #0097a7; /* Even Darker Cyan Blue */
    --primary-800: #00838f; /* Deep Cyan */
    --primary-900: #006064; /* Very Deep Cyan */
    --primary-950: #00363a; /* Almost Black Cyan */

    --success-500: #10b981;
    --error-500: #ef4444;
    --warning-500: #f59e0b;

    /* Typography */
    --font-display: 'Cal Sans', 'Inter Display', system-ui, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
    --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
    --text-6xl: clamp(3.75rem, 3rem + 3.75vw, 5.5rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Container */
    --container-max-width: 1280px;

    /* Animations */
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--neutral-700);
    background-color: var(--neutral-0);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--neutral-900);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }

p {
    margin-bottom: var(--space-4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 600; /* font-medium */
    transition: all 0.2s ease-out;
    outline: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-500), 0 0 0 4px var(--primary-500); /* focus:ring-2 focus:ring-offset-2 */
    outline: none;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Button Sizes */
.btn-xs { padding: var(--space-1) var(--space-2); font-size: var(--text-xs); height: var(--space-6); }
.btn-sm { padding: var(--space-1-5) var(--space-3); font-size: var(--text-sm); height: var(--space-8); } /* Custom 1.5rem for py */
.btn-md { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); height: var(--space-10); }
.btn-lg { padding: var(--space-3) var(--space-6); font-size: var(--text-base); height: var(--space-12); }
.btn-xl { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); height: var(--space-14); } /* Custom 14 for h */

/* Button Styles */
.btn-primary {
    background-color: var(--primary-600);
    color: var(--neutral-0);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -2px rgba(37, 99, 235, 0.1); /* shadow-lg shadow-primary-500/25 */
}
.btn-primary:hover {
    background-color: var(--primary-700);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2), 0 4px 6px -4px rgba(37, 99, 235, 0.2); /* hover:shadow-xl hover:shadow-primary-500/40 */
}
.btn-primary:active {
    background-color: var(--primary-800);
}
.btn-primary:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-500), 0 0 0 4px var(--primary-500);
}

.btn-secondary {
    background-color: var(--neutral-0);
    color: var(--neutral-700);
    border-color: var(--neutral-300);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
}
.btn-secondary:hover {
    background-color: var(--neutral-50);
    border-color: var(--neutral-400);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05); /* hover:shadow-md */
}
.btn-secondary:active {
    background-color: var(--neutral-100);
}
.btn-secondary:focus-visible {
    box-shadow: 0 0 0 2px var(--primary-500), 0 0 0 4px var(--primary-500);
}

.btn-ghost {
    background-color: transparent;
    color: var(--neutral-700);
    border-color: transparent;
}
.btn-ghost:hover {
    background-color: var(--neutral-100);
}
.btn-ghost:active {
    background-color: var(--neutral-200);
}
.btn-ghost:focus-visible {
    box-shadow: 0 0 0 2px var(--neutral-500), 0 0 0 4px var(--neutral-500);
}

.btn-gradient {
    background: linear-gradient(to right, var(--primary-600), var(--primary-500));
    color: var(--neutral-0);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.15), 0 2px 4px -2px rgba(37, 99, 235, 0.15); /* shadow-lg shadow-primary-500/30 */
}
.btn-gradient:hover {
    background: linear-gradient(to right, var(--primary-700), var(--primary-600));
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.25), 0 4px 6px -4px rgba(37, 99, 235, 0.25); /* hover:shadow-xl hover:shadow-primary-500/50 */
}

/* Cards */
.card {
    background-color: var(--neutral-0);
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); /* shadow-sm */
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease-out;
}

.card-hover:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* hover:shadow-xl hover:shadow-neutral-900/10 */
    transform: translateY(-0.25rem); /* hover:-translate-y-1 */
    border-color: var(--neutral-300);
}

.card-glass {
    background-color: rgba(255, 255, 255, 0.8); /* bg-white/80 */
    backdrop-filter: blur(16px) saturate(180%); /* backdrop-blur-lg backdrop-saturate-150 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* border-white/20 */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* shadow-xl shadow-neutral-900/10 */
}

/* Form System */
.input-group {
    position: relative;
    margin-bottom: var(--space-6);
}

.input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border-radius: 0.5rem; /* rounded-lg */
    border: 1px solid var(--neutral-300);
    background-color: var(--neutral-0);
    color: var(--neutral-900);
    transition: all 0.2s ease-out;
    outline: none;
}

.input::placeholder {
    color: var(--neutral-500);
}

.input:hover {
    border-color: var(--neutral-400);
}

.input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px var(--primary-500); /* focus:ring-2 focus:ring-primary-500 */
}

.input-floating {
    padding-top: var(--space-6); /* pt-6 */
    padding-bottom: var(--space-2); /* pb-2 */
}

.input-floating::placeholder {
    opacity: 0; /* placeholder:opacity-0 */
}

.label-floating {
    position: absolute;
    left: var(--space-4);
    top: var(--space-4);
    color: var(--neutral-500);
    transition: all 0.2s;
    pointer-events: none;
}

.input-floating:focus + .label-floating,
.input-floating:not(:placeholder-shown) + .label-floating {
    top: var(--space-2); /* top-2 */
    font-size: var(--text-xs); /* text-xs */
    color: var(--primary-600); /* text-primary-600 */
}

textarea.input {
    resize: vertical;
    min-height: 8rem; /* Adjust as needed */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
    animation: fadeIn 0.5s var(--ease-smooth) forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s var(--ease-spring) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s var(--ease-bounce) forwards;
}

/* Header */
.header {
    background-color: var(--neutral-0);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cal Sans', sans-serif; /* Keeping a strong display font */
    font-size: var(--text-2xl); /* Slightly larger for prominence */
    font-weight: 700;
    color: var(--primary-600); /* Using the new primary color */
    text-decoration: none;
    letter-spacing: -0.05em; /* Tighter spacing for a modern look */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--space-8);
}

.nav-links a {
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 600;
    transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
    color: var(--primary-600);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, rgba(245, 245, 245, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%), url('klima.jpg') no-repeat center center;
    background-size: cover;
    padding: var(--space-20) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--neutral-50) 0%, var(--neutral-0) 100%);
    opacity: 0.5; /* Adjust opacity to blend with background image */
    z-index: -1;
}
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-16);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    margin-top: var(--space-12);
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    text-align: center;
    margin-bottom: var(--space-12);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features-section {
    padding: var(--space-20) 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 245, 245, 0.9) 100%), url('klima.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}
.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--neutral-0);
    opacity: 0.5; /* Adjust opacity to blend with background image */
    z-index: -1;
}
.features-section .container {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    padding: var(--space-8);
    text-align: center;
}

.feature-card .icon-wrapper {
    background-color: var(--primary-100);
    color: var(--primary-600);
    border-radius: 0.75rem;
    width: var(--space-16);
    height: var(--space-16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.feature-card .feature-icon {
    width: var(--space-8);
    height: var(--space-8);
}

.feature-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.feature-card p {
    font-size: var(--text-base);
    color: var(--neutral-600);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--space-20) 0;
    background: linear-gradient(180deg, rgba(245, 245, 245, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%), url('klima.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--neutral-50);
    opacity: 0.5; /* Adjust opacity to blend with background image */
    z-index: -1;
}
.testimonials-section .container {
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.testimonial-card {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-quote {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--neutral-800);
    margin-bottom: var(--space-6);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.author-avatar {
    width: var(--space-12);
    height: var(--space-12);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-300);
}

.author-name {
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-1);
}

.author-title {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    margin-bottom: 0;
}


/* Contact Section */
.contact-section {
    padding: var(--space-20) 0;
    background: linear-gradient(180deg, rgba(23, 23, 23, 0.9) 0%, rgba(10, 10, 10, 0.9) 100%), url('klima.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--neutral-900);
    opacity: 0.5; /* Adjust opacity to blend with background image */
    z-index: -1;
}
.contact-section .container {
    position: relative;
    z-index: 1;
}
.contact-section .section-title {
    color: var(--neutral-0); /* Ensure title is white */
}

.contact-section .section-subtitle {
    /* Removed text-shadow as per user request for pure white */
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--neutral-800);
    padding: var(--space-12);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.contact-form .input {
    background-color: var(--neutral-700);
    border-color: var(--neutral-600);
    color: var(--neutral-0);
}

.contact-form .input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 2px var(--primary-500);
}

.contact-form .label-floating {
    color: var(--neutral-400);
}

.contact-form .input-floating:focus + .label-floating,
.contact-form .input-floating:not(:placeholder-shown) + .label-floating {
    color: var(--primary-400);
}

.contact-form .btn {
    width: 100%;
}

.contact-info p,
.contact-info p a { /* Apply to both paragraph and anchor inside it */
    color: var(--neutral-0); /* Set contact info text to white */
    margin-bottom: var(--space-2);
    text-decoration: none; /* Remove underline for links */
}

.contact-info p a:hover {
    color: var(--primary-400); /* Add a subtle hover effect for links */
}

/* Footer */
.footer {
    background-color: var(--neutral-950);
    color: var(--neutral-400);
    padding: var(--space-16) 0;
    font-size: var(--text-sm);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-12);
}

.footer-brand .logo {
    color: var(--primary-400);
    margin-bottom: var(--space-4);
    display: block;
}

.footer-brand p {
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-12);
}

.footer-column {
    min-width: 120px;
}

.footer-column h4 {
    font-size: var(--text-base);
    color: var(--neutral-0);
    margin-bottom: var(--space-4);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--space-2);
}

.footer-column ul li a {
    text-decoration: none;
    color: var(--neutral-400);
    transition: color 0.2s ease-in-out;
}

.footer-column ul li a:hover {
    color: var(--primary-400);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .nav-links {
        gap: var(--space-4);
    }

    .hero-title {
        font-size: var(--text-5xl);
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: var(--space-4);
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-3);
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-image {
        margin-top: var(--space-8);
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .section-subtitle {
        font-size: var(--text-base);
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-8);
    }

    .footer-column {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-sm);
    }

    .btn-lg {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-4);
        height: var(--space-10);
    }
}
