:root {
    --primary-color: #1e3a8a;
    /* Deep Blue */
    --secondary-color: #10b981;
    /* Eco Green */
    --accent-color: #f59e0b;
    /* Orange/Amber */
    --text-color: #1f2937;
    --light-bg: #f3f4f6;
    --white: #ffffff;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utilities */
.highlight {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section - Redesign */
.hero {
    background: linear-gradient(to right, #1e3a8a 0%, #1e3a8a 40%, rgba(30, 58, 138, 0.8) 100%), url('https://images.unsplash.com/photo-1632759905292-6d75c6130498?q=80&w=2670&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #e5e7eb;
    max-width: 600px;
}

/* Highlights */
.hero-highlights {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.highlight-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.highlight-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.highlight-item strong {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.highlight-item span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.price-highlight strong {
    color: var(--secondary-color);
}

.security-highlight strong {
    color: #ffd700;
    /* Gold for 0% deposit */
}

/* Hero Carousel - 3D Slider */
.hero-visual {
    flex: 1;
    height: 450px;
    /* Slightly taller for larger image */
    position: relative;
    perspective: 1000px;
    /* Shift visual container slightly right to avoid text overlap */
    transform: translateX(20px);
    border-radius: 20px;
    /* border: 4px solid rgba(255, 255, 255, 0.2); // Removed border to match clean 3D look better */
    background: transparent;
    /* Transparent to let hero bg show through or keep dark if preferred */
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-track {
    /* Resetting marquee styles */
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    animation: none;
}

.carousel-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    /* Slightly narrower base width */
    height: 190px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    /* Smoother transition */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    /* Default hidden state */
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    z-index: 0;
}

/* Active - Larger */
.carousel-slide.active {
    transform: translate(-50%, -50%) scale(1.5);
    /* Increased scale */
    z-index: 20;
    opacity: 1;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

/* Neighbors - Tighter packing to reduce width */
.carousel-slide.prev {
    transform: translate(-110%, -50%) scale(0.8) perspective(600px) rotateY(25deg);
    z-index: 10;
    opacity: 0.8;
}

.carousel-slide.next {
    transform: translate(10%, -50%) scale(0.8) perspective(600px) rotateY(-25deg);
    z-index: 10;
    opacity: 0.8;
}

/* Secondary Neighbors */
.carousel-slide.prev-2 {
    transform: translate(-160%, -50%) scale(0.6) perspective(600px) rotateY(35deg);
    z-index: 5;
    opacity: 0.5;
    filter: blur(2px);
}

.carousel-slide.next-2 {
    transform: translate(60%, -50%) scale(0.6) perspective(600px) rotateY(-35deg);
    z-index: 5;
    opacity: 0.5;
    filter: blur(2px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-promo-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 2rem;
    }

    .hero-highlights {
        justify-content: center;
    }

    .highlight-item {
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
        max-width: 500px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.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: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem;
    color: #666;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-primary {
    background-color: var(--primary-color);
}

.text-white {
    color: var(--white);
}

.text-white h2 {
    color: var(--white);
}

/* Benefits */
.benefits-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.benefit-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Process */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

/* Technical Table */
.table-container {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.tech-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.tech-table tr:last-child td {
    border-bottom: none;
}

.tech-table td:first-child {
    font-weight: 600;
    background-color: #f9fafb;
    width: 40%;
}

/* Contacts */
.contact-wrapper {
    text-align: center;
}

.contact-list {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-list li {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }

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

/* Calculator Section */
.calculator-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.calc-box,
.savings-box {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.calc-box {
    flex: 2;
    min-width: 300px;
}

.savings-box {
    flex: 1;
    min-width: 300px;
    background: #f0fdf4;
    /* Light green tint */
    border: 1px solid #bbf7d0;
}

.calc-box h3,
.savings-box h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-group input[type="number"],
.input-group input[type="text"],
.input-group input[type="tel"],
.input-group input[type="email"],
.input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.input-group small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 0.85rem;
}

.price-result {
    background: #eff6ff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.price-tag {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-details {
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.contact-details h4 {
    margin-bottom: 1.5rem;
}

.checkbox-group {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.checkbox-group input {
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #4b5563;
}

.btn-block {
    width: 100%;
    font-size: 1.1rem;
    padding: 14px;
}

/* Savings Box */
.savings-result {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    border: 2px dashed #10b981;
}

.savings-tag {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0.5rem 0;
}

.info-note {
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
}

/* Range Slider Styles */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    margin: 10px 0;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #ddd;
    border-radius: 5px;
}

input[type=range]::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
}

@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
    }

    .price-result {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    aspect-ratio: 4/3;
    background-color: #e5e7eb;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.gallery-placeholder {
    color: #9ca3af;
    font-weight: 600;
    font-size: 1.2rem;
}

.gallery-note {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--text-color);
    }

    .nav-links {
        display: none;
        /* Default hidden on mobile */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 1rem 0;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-cta {
        display: none;
        /* Hide CTA button in header on mobile to save space */
    }
}

/* --- Cookie Banner (Modal Style) --- */
#cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cookie-banner.visible {
    display: flex;
    opacity: 1;
}

#cookie-banner .cookie-content {
    background: var(--white);
    color: var(--text-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#cookie-banner p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

#cookie-banner strong {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

#cookie-banner .cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

#cookie-banner .btn {
    flex: 1;
    padding: 12px;
}

/* Override button styles for this specific context */
#cookie-banner .btn-primary {
    background-color: var(--primary-color);
    color: white;
}

#cookie-banner .btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #4b5563;
}

#cookie-banner .btn-outline:hover {
    border-color: #374151;
    background: #f3f4f6;
    color: #111827;
}

@media (max-width: 480px) {
    #cookie-banner .cookie-content {
        padding: 1.5rem;
    }

    #cookie-banner .cookie-buttons {
        flex-direction: column;
    }
}
