/* 
 * Main stylesheet for domain website
 * Color palette:
 * - Background: #F1EFE5 (milk sand)
 * - Accents: #3B82F6 (electric blue), #22C55E (mint), #FF9F1C (orange)
 * - Text: #1E293B (dark gray)
 * - Cards/blocks: gradient from #FFFFFF to #EAEAEA
 */

/* ---------- Reset & Defaults ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F1EFE5;
    color: #1E293B;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #3B82F6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2563EB;
}

ul, ol {
    list-style-position: inside;
}

.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;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #3B82F6;
}

h3 {
    font-size: 1.5rem;
}

.text-center {
    text-align: center;
}

h2.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #3B82F6;
    color: white;
}

.btn-primary:hover {
    background-color: #2563EB;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #22C55E;
    color: white;
}

.btn-secondary:hover {
    background-color: #16A34A;
    color: white;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E293B;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mobile-menu-trigger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.mobile-menu-trigger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #1E293B;
    transition: all 0.3s ease;
}

.mobile-menu-trigger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-trigger.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-trigger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Main Content Sections ---------- */
.hero {
    padding: 160px 0 80px;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('../img/lAgDN2.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #475569;
}

/* About section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services section */
.services-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, #FFFFFF, #EAEAEA);
    border-radius: 16px;
    padding: 30px;
    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(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

/* Benefits section */
.benefits-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.benefit-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 2rem;
    color: #3B82F6;
    margin-bottom: 15px;
}

/* Testimonials section */
.testimonials-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: linear-gradient(145deg, #FFFFFF, #EAEAEA);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-rating {
    color: #FF9F1C;
    margin-bottom: 15px;
}

.testimonial-author {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* FAQ section */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: #FFFFFF;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    background-color: #F8FAFC;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 1000px;
}

/* Contact form */
.form-section {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background-color: #F8FAFC;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 5px;
}

.form-error {
    color: #EF4444;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Footer */
.footer {
    background-color: #1E293B;
    color: #FFFFFF;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info .footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-desc {
    color: #CBD5E1;
    max-width: 300px;
}

.footer h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #3B82F6;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #CBD5E1;
}

.footer-legal ul {
    list-style: none;
}

.footer-legal li {
    margin-bottom: 8px;
}

.footer-legal a {
    color: #CBD5E1;
}

.footer-legal a:hover {
    color: #3B82F6;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    font-size: 0.9rem;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1E293B;
    color: white;
    padding: 15px;
    z-index: 1000;
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Legal Pages ---------- */
.legal-page {
    padding: 120px 0 60px;
}

.legal-container {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legal-header {
    margin-bottom: 30px;
    text-align: center;
}

.legal-content h2 {
    margin-top: 40px;
}

.legal-content h3 {
    margin-top: 25px;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* ---------- Thank you page ---------- */
.thank-you-page {
    padding: 160px 0 80px;
    text-align: center;
}

.thank-you-container {
    background-color: #FFFFFF;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-icon {
    font-size: 5rem;
    color: #22C55E;
    margin-bottom: 20px;
}

/* ---------- Media Queries ---------- */
@media (max-width: 1024px) {
    .benefits-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .header-contact {
        display: none;
    }
    
    .mobile-menu-trigger {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-wrapper, .services-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 140px 0 60px;
    }
    
    .benefits-wrapper {
        grid-template-columns: 1fr;
    }
    
    .testimonials-wrapper {
        grid-template-columns: 1fr;
    }
    
    .form-section {
        padding: 30px 20px;
    }
    
    .legal-container {
        padding: 30px 20px;
    }
    
    .thank-you-container {
        padding: 40px 20px;
    }
}
