/* Main styles for domain website */
:root {
    --primary: #2B3A42; /* deep coal-blue */
    --accent: #FF715B; /* bright coral */
    --background: #F9F9F9; /* milk white */
    --secondary: #4F5D75; /* subdued blue-gray */
    --text: #1B1B1B; /* text color */

    --border-radius: 1rem; /* 2xl border radius */
    --transition: all 0.3s ease;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Add padding for anchor links to account for sticky header */
}

body {
    font-family: 'Poppins', 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: white;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

section {
    padding: 4rem 0;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: var(--primary);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    background-color: var(--primary);
    color: white;
    padding: 5rem 0;
    border-radius: var(--border-radius);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* Benefits Section */
.benefits {
    text-align: center;
}

.benefits h2 {
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Services Section */
.services {
    background-color: white;
    text-align: center;
}

.services h2 {
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-item {
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-item img {
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 0.5rem);
    margin-bottom: 1.5rem;
}

.service-item h3 {
    margin: 1rem 0;
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 2rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials {
    background-color: white;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-item {
    background-color: var(--background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary);
}

/* FAQ Section */
.faq {
    background-color: var(--background);
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq .container {
    max-width: 900px; /* Make FAQ content narrower */
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background-color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    width: 100%; /* Make question width match answer width */
    border: none;
    text-align: left;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--background);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* Contact Form Section */
.contact {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: var(--background);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 113, 91, 0.25);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.form-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-checkbox {
    position: relative;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.service-checkbox input {
    position: absolute;
    opacity: 0;
}

.service-checkbox:hover {
    border-color: var(--accent);
}

.service-checkbox input:checked + span {
    color: var(--accent);
    font-weight: bold;
}

.service-checkbox input:checked ~ .service-checkbox {
    border-color: var(--accent);
    background-color: rgba(255, 113, 91, 0.1);
}

/* Footer Styles */
footer {
    background-color: var(--primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-contact a {
    color: white;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

.cookie-popup.active {
    display: block;
}

.cookie-popup p {
    margin-bottom: 1rem;
}

.cookie-popup button {
    width: 100%;
}

/* Policy Pages */
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.policy-container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-container ul,
.policy-container ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.policy-container li {
    margin-bottom: 0.5rem;
}

/* Thank You Page */
.thank-you {
    text-align: center;
    padding: 5rem 0;
}

.thank-you .container {
    border: 2px solid var(--accent);
    border-radius: var(--border-radius);
    padding: 3rem;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
}

.thank-you h1 {
    margin-bottom: 2rem;
}

.thank-you .btn {
    margin-top: 2rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .benefits-grid,
    .services-grid,
    .testimonial-grid,
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        padding: 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0 0 1rem 0;
    }

    .benefits-grid,
    .services-grid,
    .testimonial-grid,
    .form-services,
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}
