/* 
  Euroconfort Design System 
  Palette:
  - Primary: #062b68
  - Dark Support: #001e4f
  - Light Support: #ccedff
  - Gray bg: #dbdcdd
  - White: #ffffff
*/

:root {
    --primary-blue: #062b68;
    --dark-blue: #001e4f;
    --light-blue: #ccedff;
    --gray-bg: #dbdcdd;
    --white: #ffffff;
    
    --font-heading: 'Aleo', serif;
    --font-body: 'Noto Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 20px;
    color: var(--dark-blue);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, .badge {
    font-family: var(--font-heading);
}

h1 {
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 500;
    color: var(--primary-blue);
    line-height: 1.3;
}

p {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 24px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navbar */
.navbar {
    background-color: var(--primary-blue); /* Updated as requested */
    padding: 10px 0; /* Proportionally increased */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(6, 43, 104, 0.15);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    height: 31px; /* Increased by ~5px as requested */
    width: auto;
    display: block;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 18px;
    padding: 16px 36px;
    border-radius: 4px; /* Classic, serious look */
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 43, 104, 0.2);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-blue);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
    overflow: hidden;
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background-color: var(--white);
    color: var(--dark-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(6, 43, 104, 0.08);
    position: relative;
}
.badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    margin-right: 8px;
}

.hero p {
    color: var(--dark-blue);
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.floating-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 24px 48px rgba(0, 30, 79, 0.15);
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    object-fit: cover;
    max-height: 600px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.glow-bg {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--white) 0%, transparent 70%);
    z-index: 1;
    opacity: 0.6;
}

/* Authority Section (Redesigned) */
.authority {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.authority-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.auth-badge {
    color: var(--dark-blue) !important;
}

.authority-container h2 {
    color: var(--white);
    margin-bottom: 24px;
}

.authority-container p {
    color: var(--light-blue);
    opacity: 0.9;
    font-size: 18px;
    margin-bottom: 20px;
}

.auth-image-wrapper {
    position: relative;
    z-index: 2;
}

.auth-img {
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.auth-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    z-index: -1;
}

/* Family Comfort Section */
.family-comfort {
    background-color: var(--gray-bg);
    padding: 100px 0;
}

.comfort-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.rounded-img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 500px;
}

.shadow-lg {
    box-shadow: 0 32px 64px rgba(0, 30, 79, 0.1);
}

/* Card Icons */
.comfort-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.comfort-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 30, 79, 0.05);
    transition: transform 0.3s ease;
}

.comfort-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 30, 79, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: var(--light-blue);
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.comfort-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.comfort-card p {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

/* Reviews Carousel Section */
.reviews-section {
    background-color: var(--primary-blue);
    padding: 80px 0;
    overflow: hidden;
}

.reviews-title {
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.carousel-container::before,
.carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-blue) 0%, transparent 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-blue) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

.review-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 30px;
    width: 350px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card .stars {
    color: #f5b301;
    font-size: 24px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    font-size: 16px;
    color: var(--dark-blue);
    margin-bottom: 24px;
    line-height: 1.5;
}

.review-author {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-blue);
    margin: 0;
}

/* FAQ Section */
.faq-section {
    background-color: var(--white);
    padding: 100px 0;
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.faq-header {
    max-width: 400px;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.faq-header h2 {
    margin-bottom: 16px;
}

.faq-header p {
    font-size: 16px;
    color: #555; /* Slightly softer text for description */
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background-color: #d8f1e9; /* Light mint/blueish matching the reference */
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--dark-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background-color 0.3s ease;
}

.accordion-header .icon {
    font-weight: 700;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--white);
}

.accordion-content p {
    padding: 0 24px 16px 56px; /* indent to match icon */
    margin: 0;
    font-size: 15px;
    color: #555;
}

.faq-footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 24px;
}

.faq-footer-contact p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Footer (Redesigned) */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0;
    border-top: 4px solid var(--primary-blue);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Changed to center align horizontally with text */
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.brand-col {
    max-width: 250px;
}

.footer-logo-img {
    height: 36px; /* Reduced footer logo size */
    width: auto;
    margin-bottom: 0; /* Removed margin to center perfectly */
}

.info-col h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--white);
}

.info-col p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* WhatsApp Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 30, 79, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--dark-blue);
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 12px;
}

.modal-desc {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.store-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-btn {
    background-color: var(--light-blue);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.store-btn:hover {
    background-color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(6, 43, 104, 0.1);
}

.store-name {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.store-address {
    font-family: var(--font-body);
    color: #555;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .comfort-container, .faq-container, .authority-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .faq-section {
        padding: 60px 0;
    }

    .faq-header {
        max-width: 100%;
        margin: 0 auto 32px;
    }
    
    .faq-header p {
        font-size: 15px; /* Slightly smaller on mobile */
    }

    /* Fixed Accordion Alignment on Mobile */
    .accordion-header {
        justify-content: flex-start;
        text-align: left;
        padding: 16px 20px;
    }

    .accordion-content p {
        padding: 0 20px 16px 52px;
    }
    
    .faq-footer-contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }
    
    .comfort-image {
        order: -1;
    }
    
    .comfort-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Comfort Cards Mobile Fixes */
    .comfort-card {
        padding: 20px 16px;
    }

    .card-icon {
        margin: 0 auto 16px; /* Center the icon */
    }
    
    .comfort-card h4 {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .nav-container {
        flex-direction: column;
        gap: 0;
    }
    .authority {
        padding: 60px 0;
    }
    .family-comfort {
        padding: 60px 0;
    }
    .reviews-section {
        padding: 60px 0;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
