/* 
 * Main stylesheet for domain website
 * Color palette:
 * - Primary background: #F4F0E6 (warm cream)
 * - Accent: #FF5E5B (coral red)
 * - Secondary background: #3E3E5E (deep gray-purple)
 * - Text: #1C1C1E (rich black)
 * - Buttons: #4ECDC4 (turquoise)
 * - Highlight: #FFE66D (sunny yellow)
*/

/* ---------- Reset & Base Styles ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #F4F0E6;
    --accent: #FF5E5B;
    --secondary-bg: #3E3E5E;
    --text-color: #1C1C1E;
    --button-color: #4ECDC4;
    --highlight: #FFE66D;
    --white: #FFFFFF;
    --light-gray: #EEEEEE;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--button-color);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--button-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #3dbdb5;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--button-color);
    border: 2px solid var(--button-color);
}

.btn-secondary:hover {
    background-color: var(--button-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #ff4542;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ---------- Header ---------- */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-bg);
    background: linear-gradient(45deg, var(--accent), var(--button-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: lowercase;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-nav ul li {
    margin: 0 15px;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-contact a {
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.header-contact a:hover {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(to right, rgba(62, 62, 94, 0.9), rgba(62, 62, 94, 0.8)), url('../img/7xGk1N.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 150px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ---------- About Section ---------- */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-infographic {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.info-item {
    width: 48%;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--primary-bg);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.info-item .icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ---------- Benefits Section ---------- */
.benefits {
    background-color: var(--primary-bg);
}

.benefits-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.benefit-item {
    width: 30%;
    padding: 30px 20px;
    margin-bottom: 30px;
    background-color: var(--white);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--accent);
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-bg);
    border-radius: 50%;
    color: var(--accent);
    font-size: 2rem;
}

/* ---------- Services Section ---------- */
.services {
    background-color: var(--white);
}

.services-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-item {
    width: calc(33.333% - 20px);
    background-color: var(--primary-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--secondary-bg);
}

.service-content p {
    margin-bottom: 20px;
    min-height: 100px;
}

/* ---------- Testimonials Section ---------- */
.testimonials {
    background: linear-gradient(to right, var(--secondary-bg), rgba(62, 62, 94, 0.9));
    color: var(--white);
    text-align: center;
}

.testimonials h2::after {
    background-color: var(--highlight);
}

.testimonials-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 50px;
}

.testimonial-item {
    width: 30%;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-item::before {
    content: """;
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: var(--highlight);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    color: var(--highlight);
}

.testimonial-position {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ---------- FAQ Section ---------- */
.faq {
    background-color: var(--primary-bg);
}

.faq .container {
    max-width: 900px;
}

.faq-item {
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--white);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--white);
}

.faq-answer-content {
    padding: 0 20px 20px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 20px 20px;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-question::after {
    content: '▼';
    font-size: 12px;
    transition: var(--transition);
}

/* ---------- Contact Form ---------- */
.contact {
    background-color: var(--white);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--primary-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--button-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* ---------- Footer ---------- */
.main-footer {
    background-color: var(--secondary-bg);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-info, .footer-contact, .footer-links {
    width: 30%;
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--accent), var(--button-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    opacity: 0.8;
    font-style: italic;
}

.footer-contact h3, .footer-links h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after, .footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--white);
    opacity: 0.8;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--button-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--button-color);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ---------- Cookie Popup ---------- */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--secondary-bg);
    color: var(--white);
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.cookie-content h3 {
    margin-bottom: 0.5rem;
}

.cookie-content p {
    margin-bottom: 0;
    margin-right: 20px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* ---------- Policy Pages ---------- */
.policy-page {
    padding: 80px 0;
}

.policy-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-content h2, .policy-content h3 {
    color: var(--secondary-bg);
}

.policy-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

/* ---------- Mobile Navigation (PHP Based) ---------- */
@media (max-width: 991px) {
    .header-wrapper {
        flex-wrap: wrap;
    }
    
    .mobile-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 0;
    }
    
    .menu-toggle {
        width: 30px;
        height: 25px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--text-color);
        transition: var(--transition);
    }
    
    .main-nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        order: 3;
    }
    
    .main-nav.mobile-open {
        max-height: 350px;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .main-nav ul li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .header-contact {
        margin-right: 50px;
    }
}

/* ---------- Responsive Design ---------- */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .benefit-item, .service-item, .testimonial-item {
        width: 100%;
    }
    
    .info-item {
        width: 100%;
    }
    
    .footer-info, .footer-contact, .footer-links {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content p {
        margin-bottom: 15px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .benefit-item, .service-item, .testimonial-item {
        width: 48%;
    }
}
