/* Base Styles */
:root {
    --color-background: #FAF9F6;
    --color-primary: #FF6B6B;
    --color-secondary: #4ECDC4;
    --color-heading: #1A1A1A;
    --color-text: #3D3D3D;
    --color-light: #f5f5f5;
    --color-border: #e0e0e0;
    --gradient: linear-gradient(135deg, #FF6B6B 0%, #FFB88C 100%);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-height: 80px; /* Define header height variable */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Add padding for anchor links */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-heading);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
    scroll-margin-top: var(--header-height); /* Fix for anchor links */
}

/* Buttons */
.btn, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn {
    background: var(--gradient);
    color: white;
    border: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

.btn-cookie {
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cookie:hover {
    background: #3dbeb6;
}

/* Cookie Popup */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    color: white;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-popup.active {
    display: block;
    animation: slideUp 0.5s ease;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-content p {
    margin-bottom: 0;
}

.cookie-content a {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Header & Navigation */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    height: var(--header-height); /* Set header height */
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-heading);
}

.logo a span {
    color: var(--color-primary);
}

.menu ul {
    display: flex;
    gap: 25px;
}

.menu a {
    color: var(--color-heading);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.menu a:hover::after,
.menu a:focus::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-heading);
    font-weight: 500;
}

.phone-link svg {
    color: var(--color-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.mobile-menu-toggle .bar {
    height: 3px;
    width: 100%;
    background: var(--color-heading);
    border-radius: 10px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 100%);
    padding: 80px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    margin-bottom: 20px;
    font-size: 3rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transform: rotate(2deg);
    transition: var(--transition);
}

.hero-image:hover {
    transform: rotate(0);
}

/* Benefits Section */
.benefits {
    background: white;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.benefit-card {
    background: var(--color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    margin-bottom: 20px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Services Section */
.services {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3, .service-card ul, .service-card a {
    padding: 0 20px;
}

.service-card h3 {
    margin-top: 20px;
}

.service-card ul {
    margin: 15px 0;
    list-style: disc;
    padding-left: 40px;
}

.service-card ul li {
    margin-bottom: 8px;
}

.service-card .btn-secondary {
    display: block;
    margin: 20px;
}

/* Contact Section */
.contact {
    background: white;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.info-item svg {
    min-width: 24px;
}

.contact-form {
    flex: 2;
    background: var(--color-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 1rem;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 5px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* FAQ Section */
.faq {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(78, 205, 196, 0.05) 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background: white;
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
}

.faq-icon {
    width: 14px;
    height: 14px;
    position: relative;
}

.faq-icon:before,
.faq-icon:after {
    content: '';
    position: absolute;
    background: var(--color-primary);
    transition: var(--transition);
}

.faq-icon:before {
    width: 14px;
    height: 2px;
    top: 6px;
    left: 0;
}

.faq-icon:after {
    width: 2px;
    height: 14px;
    top: 0;
    left: 6px;
}

.faq-toggle:checked ~ .faq-question .faq-icon:after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* Testimonials Section */
.testimonials {
    background: white;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
}

.testimonial-content {
    background: var(--color-light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background: var(--color-light);
    transform: rotate(45deg);
}

.testimonial-author {
    margin-top: 25px;
    padding-left: 20px;
}

.testimonial-author strong {
    display: block;
    color: var(--color-heading);
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #777;
}

/* Footer */
.footer {
    background: var(--color-heading);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #bbb;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Legal Pages */
.legal-page {
    padding: 60px 0;
    background-color: var(--color-background);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 10px;
}

.last-updated {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: left;
}

.legal-section p, .legal-section ul {
    margin-bottom: 15px;
}

.legal-section ul {
    list-style-type: disc;
    padding-left: 30px;
}

.legal-section ul li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px; /* Adjust header height for mobile */
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        transition: var(--transition);
        padding: 20px;
        overflow-y: auto;
    }

    .menu.active {
        left: 0;
    }

    .menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .menu a {
        display: block;
        padding: 10px 0;
        font-size: 1.2rem;
    }

    .header-contact {
        display: none;
    }

    .hero .container,
    .about-content,
    .contact-wrapper {
        flex-direction: column;
    }

    .hero-image,
    .about-image {
        margin-top: 30px;
    }

    .service-card {
        max-width: 100%;
    }
    
    .legal-page {
        padding: 40px 0;
    }
    
    .legal-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .benefit-card,
    .service-card,
    .testimonial {
        min-width: 100%;
    }

    .footer-column {
        min-width: 100%;
    }
}