/* 
 * domain - Main Stylesheet
 * Color palette:
 * - Main background: #F8F5EF (warm light sand)
 * - Accent 1: #F94144 (expressive watermelon)
 * - Accent 2: #577590 (smoky blue)
 * - Accent 3: #F9C74F (sunny amber)
 * - Text: #1A1A1A
 * - Buttons: gradient from #F94144 to #F3722C
 */

/* ===== Reset & Base Styles ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-main: #F8F5EF;
    --accent-1: #F94144;
    --accent-2: #577590;
    --accent-3: #F9C74F;
    --text: #1A1A1A;
    --btn-gradient-start: #F94144;
    --btn-gradient-end: #F3722C;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Fix anchors to account for fixed header height */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-main);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

/* ===== Layout & Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    text-align: center; /* Center align all section content */
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center; /* Center all headings */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    display: inline-block; /* For centering the underline */
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 100%; /* Make underline full width of the heading */
    height: 3px;
    background: linear-gradient(to right, var(--accent-1), var(--accent-3));
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-1);
}

/* Underline animation for links */
a:not(.logo a, .cta-button):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-1);
    transition: width 0.3s ease;
}

a:not(.logo a, .cta-button):hover:after {
    width: 100%;
}

/* ===== Buttons ===== */
.button, .cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(to right, var(--btn-gradient-start), var(--btn-gradient-end));
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(249, 65, 68, 0.2);
    position: relative;
    overflow: hidden;
    margin: 0 auto; /* Center buttons */
}

.button:hover, .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(249, 65, 68, 0.3);
    color: white;
}

.button::before, .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s;
}

.button:hover::before, .cta-button:hover::before {
    left: 100%;
}

/* ===== Header & Navigation ===== */
.site-header {
    background-color: rgba(248, 245, 239, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text);
    display: flex;
    align-items: center; /* Align logo text vertically */
}

.logo h1 {
    margin: 0;
    font-size: inherit;
    color: var(--accent-1);
    letter-spacing: 1px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center; /* Align nav items vertically */
    margin: 0;
}

.main-nav a {
    padding: 10px 0;
    color: var(--text);
    font-weight: 500;
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav .cta-button {
    padding: 8px 15px; /* Slightly smaller to fit in header */
}

/* Mobile menu (PHP only implementation) */
.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2;
}

.menu-icon, .menu-icon::before, .menu-icon::after {
    display: block;
    background-color: var(--accent-1);
    position: absolute;
    height: 3px;
    width: 100%;
    transition: transform 0.3s;
}

.menu-icon {
    top: 50%;
    transform: translateY(-50%);
}

.menu-icon::before {
    content: '';
    top: -8px;
}

.menu-icon::after {
    content: '';
    top: 8px;
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('../img/EcOZUa.jpg') center/cover no-repeat;
    position: relative;
    margin-top: 0;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    text-align: left;
}

.about-text h2 {
    text-align: center;
}

/* ===== Features Section ===== */
.features {
    background-color: var(--bg-main);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-3));
    transition: height 0.4s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(87, 117, 144, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-1);
    margin-bottom: 1.5rem;
}

/* ===== Services Section ===== */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    border: 1px solid rgba(87, 117, 144, 0.2);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: white;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-1), var(--accent-3));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-image {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-2);
}

.service-title {
    margin-bottom: 1rem;
}

.service-card ul {
    text-align: left;
    padding-left: 20px;
    margin-top: 15px;
}

.service-card li {
    margin-bottom: 8px;
}

/* ===== Trust Section ===== */
.trust {
    background-color: var(--bg-main);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    text-align: center;
    padding: 20px;
}

.badge-icon {
    font-size: 3rem;
    color: var(--accent-2);
    margin-bottom: 15px;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-main);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgba(249, 65, 68, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-weight: bold;
}

.author-position {
    color: var(--accent-2);
    font-size: 0.9rem;
}

/* ===== FAQ Section ===== */
.faq {
    background-color: var(--bg-main);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* PHP Accordion (no JS) */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(87, 117, 144, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: white;
    transition: all 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-1);
}

.faq-question:hover {
    background-color: rgba(249, 65, 68, 0.05);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
    text-align: left;
}

.faq-item input[type="checkbox"] {
    display: none;
}

.faq-item input[type="checkbox"]:checked ~ .faq-answer {
    max-height: 500px;
    padding: 20px;
}

.faq-item input[type="checkbox"]:checked + .faq-question::after {
    content: '-';
}


.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-main);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(87, 117, 144, 0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(87, 117, 144, 0.2);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(87, 117, 144, 0.1);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check input {
    margin-right: 10px;
    margin-top: 6px;
}

.form-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    text-align: center;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--accent-2);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-align: left;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-3);
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section.links ul {
    list-style: none;
    padding: 0;
}

.footer-section.links li {
    margin-bottom: 10px;
}

.footer-section.links a {
    color: rgba(255,255,255,0.8);
}

.footer-section.links a:hover {
    color: var(--accent-3);
}

/* Fix for the white squares in footer */
.footer-section i {
    display: inline-block;
    width: auto;
    height: auto;
    background: none;
    margin-right: 8px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* ===== Cookie Consent ===== */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid rgba(87, 117, 144, 0.2);
}

.cookie-text {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cookie-buttons button {
    flex: 1;
    padding: 10px;
}

.cookie-accept {
    background: linear-gradient(to right, var(--btn-gradient-start), var(--btn-gradient-end));
    color: white;
}

.cookie-reject {
    background-color: #f1f1f1;
    color: var(--text);
    border: 1px solid rgba(87, 117, 144, 0.2);
}

/* ===== Legal Pages ===== */
.legal-page {
    padding: 120px 0 60px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.legal-content h1 {
    margin-bottom: 30px;
    text-align: center;
}

.legal-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: left;
}

.legal-content p, .legal-content ul {
    margin-bottom: 20px;
    text-align: left;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content ul li {
    margin-bottom: 10px;
}

.back-button {
    margin-top: 30px;
    display: block;
    width: fit-content;
}

/* ===== Thank You Page ===== */
.thank-you {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.thank-you-content {
    max-width: 600px;
    background-color: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid var(--accent-1); /* Add border to thank you content */
    margin: 0 auto;
    position: relative;
}

.thank-you-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px dashed var(--accent-3);
    border-radius: 4px;
    pointer-events: none;
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--accent-1);
    margin-bottom: 20px;
}

.thank-you h1 {
    margin-bottom: 20px;
}

.thank-you p {
    margin-bottom: 30px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    /* Tablet & Smaller */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation (PHP only) */
    .menu-button {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .menu-toggle:checked ~ .main-nav {
        right: 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Small Mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .legal-container {
        padding: 20px;
    }
    
    .thank-you-content {
        padding: 30px 20px;
    }
} 