/* 
 * Main Stylesheet for domain.com
 * Colors:
 * - Deep Purple: #5D3FD3
 * - Lavender: #E6E6FA
 * - Turquoise: #40E0D0
 * - Misty Gray: #F5F5F5
 * - Charcoal: #2E2E2E
 */

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2E2E2E;
    background-color: #FFFFFF;
}

a {
    color: #5D3FD3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #40E0D0;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.8em;
    line-height: 1.3;
    color: #2E2E2E;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

/* Centered headings for sections */
section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    text-align: center;
}

section h2:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #40E0D0;
}

/* Keep left alignment for specific sections if needed */
.policy-section h2, .footer h2, .footer h3, .footer h4 {
    text-align: left;
}

.policy-section h2:after {
    left: 0;
    transform: none;
}

/* Center policy page main titles */
.policy-page h1 {
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #5D3FD3;
    color: white;
}

.btn-primary:hover {
    background-color: #4E35A8;
    color: white;
}

.btn-secondary {
    background-color: white;
    color: #5D3FD3;
    border: 2px solid #5D3FD3;
}

.btn-secondary:hover {
    background-color: #E6E6FA;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: #2E2E2E;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-svg {
    margin-right: 10px;
}

.site-name {
    color: #5D3FD3;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    color: #2E2E2E;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #40E0D0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.main-nav .contact-btn {
    background-color: #5D3FD3;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
}

.main-nav .contact-btn:hover {
    background-color: #4E35A8;
}

.main-nav .contact-btn::after {
    display: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #2E2E2E;
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #5D3FD3, #40E0D0);
    color: white;
    padding: 100px 0;
    text-align: center;
    border-radius: 0 0 30px 30px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: white;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: #F5F5F5;
}

/* About section - Adjusted for better image alignment */
.about-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.about-text {
    flex: 1;
    margin-top: 50px; /* Increased to align text with middle of image */
}

.about-image {
    flex: 1;
    margin-top: 20px; /* Added spacing to push image down a bit */
}

.rounded-image {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid #E6E6FA; /* Added border to images */
}

/* Services section with images and borders */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #E6E6FA; /* Added border */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 20px;
    color: #5D3FD3;
    text-align: center;
}

.service-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #5D3FD3;
}

/* Advantages section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 3px solid #40E0D0;
}

/* Testimonials section */
.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -15px;
    color: #E6E6FA;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0;
}

.author-info p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Contact section */
.contact-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-image {
    margin-top: 20px;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #5D3FD3;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    width: auto;
    margin-right: 10px;
}

.checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* FAQ section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    background-color: white;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
    flex: 1;
}

.faq-icon {
    font-size: 1.5rem;
    color: #5D3FD3;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

.faq-answer p {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #2E2E2E;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info, .footer-contact, .footer-links {
    flex: 1;
    min-width: 250px;
}

.footer h3, .footer h4 {
    color: white;
    margin-bottom: 20px;
}

.footer a {
    color: #40E0D0;
}

.footer a:hover {
    color: #E6E6FA;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Thank you page with border */
.thank-you {
    text-align: center;
    padding: 100px 0;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    border: 2px solid #5D3FD3;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.thank-you-icon {
    margin-bottom: 30px;
    color: #5D3FD3;
}

.button-group {
    margin-top: 30px;
}

/* Policy pages with consistent styling */
.policy-page {
    padding: 80px 0;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border: 2px solid #5D3FD3;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-section {
    margin-bottom: 40px;
}

.last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
}

/* Responsive styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .about-content, .contact-content {
        flex-direction: column;
    }
    
    .about-text {
        margin-top: 0; /* Reset margin when in column layout */
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        transition: left 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav li {
        margin: 15px 0;
    }
    
    body.menu-open .main-nav {
        left: 0;
    }
    
    body.menu-open .mobile-menu-toggle .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    body.menu-open .mobile-menu-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    
    body.menu-open .mobile-menu-toggle .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-buttons .btn {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .services-grid, .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-slider {
        flex-direction: column;
    }
    
    .testimonial {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
    }
} 