/* 
   Main color palette:
   - Background: #F4F0ED (pastel peach)
   - Accents: #153243 (deep blue), #F5A623 (amber), #A1C6EA (sky blue)
   - Text: #2E2E2E (dark gray), #666 (captions)
   - Icons/buttons: gradient #F5A623 → #A1C6EA
*/

/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Add padding to account for fixed header height when scrolling to anchors */
    scroll-padding-top: 80px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #2E2E2E;
    background-color: #F4F0ED;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

h1, h2, h3, h4, h5, h6 {
    color: #153243;
    margin-bottom: 0.8em;
}

p {
    margin-bottom: 1.2em;
}

a {
    color: #153243;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #F5A623;
}

section {
    padding: 80px 0 60px; /* Increased top padding to account for fixed header */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #F5A623, #A1C6EA);
    margin: 15px auto 0;
}

/* Buttons */
.button, .cta-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: linear-gradient(to right, #F5A623, #A1C6EA);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.button:hover, .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Header styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #153243;
    text-transform: lowercase;
}

.main-nav ul {
    display: flex;
    list-style: none;
    align-items: center; /* Align all items vertically */
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    font-weight: 500;
    display: inline-block; /* Ensure consistent display */
    padding: 8px 15px; /* Add padding to all nav links to match button */
    border-radius: 30px; /* Match the button's border-radius */
    transition: all 0.3s ease;
}

/* Add hover effect for non-CTA nav links */
.main-nav a:not(.cta-button):hover {
    background-color: rgba(161, 198, 234, 0.1);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
}

/* Cookie popup */
#cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(21, 50, 67, 0.95);
    color: white;
    z-index: 1000;
    padding: 15px;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: #A1C6EA;
    margin-right: 15px;
}

#accept-cookies {
    background-color: #F5A623;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#accept-cookies:hover {
    background-color: #e69100;
}

/* Hero section */
.hero {
    background: linear-gradient(to bottom right, rgba(161, 198, 234, 0.1), rgba(245, 166, 35, 0.1));
    text-align: center;
    padding: 100px 0 60px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* About section */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    display: block;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-top: 0;
}

/* Benefits section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #F5A623, #A1C6EA);
    border-radius: 50%;
}

.benefit-icon img {
    width: 40px;
    height: auto;
}

/* Process section */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: linear-gradient(to bottom, #F5A623, #A1C6EA);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    width: 45%;
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    width: 30px;
    height: 30px;
    background-color: #F5A623;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Even items */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Reviews section */
.reviews-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.review-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.review-text:before {
    content: '"';
    font-size: 60px;
    color: #A1C6EA;
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.review-author {
    display: flex;
    align-items: center;
}

.review-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.review-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-author-details h4 {
    margin: 0;
}

.review-author-details p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* FAQ section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.faq-question {
    display: block;
    padding: 15px 15px 15px 0;
    font-weight: bold;
    position: relative;
    cursor: pointer;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 0;
    top: 15px;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 0 15px;
    display: none;
}

.faq-active .faq-question:after {
    content: '-';
}

.faq-active .faq-answer {
    display: block;
}

/* Contact form */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    background-color: #f9f9f9;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #A1C6EA;
    outline: none;
    box-shadow: 0 0 0 3px rgba(161, 198, 234, 0.2);
}

.form-icon {
    position: absolute;
    top: 38px;
    left: 15px;
    color: #666;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input {
    margin-right: 10px;
    width: auto;
}

.form-submit {
    text-align: center;
}

/* Contact section */
.contact-info {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.contact-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #F5A623, #A1C6EA);
    border-radius: 50%;
    color: white;
}

.map-container {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
    background-color: #153243;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info,
.footer-contact,
.footer-links {
    flex: 1;
    min-width: 250px;
}

.footer-info h3 {
    color: white;
    font-size: 24px;
}

.footer-contact h4,
.footer-links h4 {
    color: #A1C6EA;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: #A1C6EA;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #ccc;
}

/* Responsive styles */
@media (max-width: 992px) {
    .services-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .process-timeline:before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column-reverse;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: auto;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    /* Mobile hero adjustments */
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 32px;
        padding: 0 10px;
    }
    
    /* Mobile menu */
    .mobile-toggle {
        display: block;
        z-index: 101;
    }
    
    .mobile-toggle a {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
    }
    
    .mobile-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #153243;
        transition: all 0.3s ease;
    }
    
    .mobile-toggle.menu-open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-toggle.menu-open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.menu-open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 100;
    }
    
    .main-nav.menu-open {
        transform: translateX(0);
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav li {
        margin: 15px 0;
    }
    
    .main-nav a {
        font-size: 20px;
    }
    
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Fix for any elements that might cause horizontal overflow */
img, svg, video, iframe, table {
    max-width: 100%;
    height: auto;
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Ensure full width for all contents */
    .service-card, 
    .benefit-item, 
    .timeline-content, 
    .review-item, 
    .contact-card {
        width: 100%;
    }
}