/* 
* Main Stylesheet for Domain - Accounting Services 
* Color Palette:
* - Primary: Bright Turquoise (#00E8C6)
* - Secondary: Deep Purple (#3F2B96)
* - Accent: Bright Yellow (#FFD500)
* - Background: Light Grey (#F6F7F8)
* - Text: Dark Blue (#1E1E2F)
*/

/* CSS Reset and Base Styles */
:root {
    --primary: #00E8C6;
    --secondary: #3F2B96;
    --accent: #FFD500;
    --background: #F6F7F8;
    --text: #1E1E2F;
    --white: #FFFFFF;
    --light-grey: #E8E9EB;
    --medium-grey: #CCCCCC;
    --dark-grey: #888888;
    --black: #000000;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

.text-center {
    text-align: center;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text);
}

.btn-accent:hover {
    background-color: var(--white);
    color: var(--accent);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Header and Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo a {
    color: var(--text);
}

.logo a:hover {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text);
    transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Main Content Sections */
main {
    padding-top: 80px;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 3rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* About Section */
.about {
    background-color: var(--white);
}

/* Benefits Section */
.benefits {
    background-color: var(--background);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Services Section */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    background-color: var(--background);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 20px;
}

/* Process Section */
.process {
    background-color: var(--background);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-steps:before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--primary);
    z-index: 1;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 30%;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

.step-content {
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.testimonials-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-slider {
    display: flex;
    width: fit-content;
}

.testimonial-slide {
    flex: 0 0 100%;
    min-width: 280px;
    max-width: 100%;
    padding: 20px;
    scroll-snap-align: center;
}

.testimonial-card {
    background-color: var(--background);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-content {
    position: relative;
    padding-left: 30px;
}

.testimonial-content:before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--primary);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.testimonial-author-name {
    font-weight: 600;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-grey);
    margin: 0 6px;
    cursor: pointer;
}

.testimonial-nav-dot.active {
    background-color: var(--primary);
}

/* FAQ Section */
.faq {
    background-color: var(--background);
}

.faq .container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform var(--transition-normal);
}

.faq-answer {
    display: none;
    padding: 20px;
    background-color: var(--white);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: -5px;
}

.faq-active .faq-toggle {
    transform: rotate(45deg);
}

.faq-active .faq-answer {
    display: block;
}

/* Contact Form Section */
.contact {
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-grey);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: border var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.error-message {
    color: #ff3b30;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Footer */
.site-footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-info p {
    opacity: 0.8;
}

.footer-contact address {
    font-style: normal;
    opacity: 0.8;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-links h4, .footer-services h4, .footer-contact h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-links ul li, .footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a, .footer-services a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover, .footer-services a:hover {
    opacity: 1;
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: bottom var(--transition-normal);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content h3 {
    margin-bottom: 10px;
}

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cookie-link {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0.5;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Ensure all sections are visible by default */
#about, #process, #contact {
    display: block !important;
    opacity: 1 !important;
}

/* Make sure all section content is visible */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

/* Apply animations only for browsers that support it properly */
@supports (animation-timeline: scroll()) {
    .animate-on-scroll {
        animation: fadeInUp 0.8s ease forwards;
        animation-play-state: running;
        animation-delay: 0.1s;
    }
}



/* Add some staggered animation delays for groups of elements */
@supports (animation-timeline: scroll()) {
    .benefit-card:nth-child(1) { animation-delay: 0.1s; }
    .benefit-card:nth-child(2) { animation-delay: 0.2s; }
    .benefit-card:nth-child(3) { animation-delay: 0.3s; }
    .benefit-card:nth-child(4) { animation-delay: 0.4s; }
    
    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    
    .process-step:nth-child(1) { animation-delay: 0.1s; }
    .process-step:nth-child(2) { animation-delay: 0.25s; }
    .process-step:nth-child(3) { animation-delay: 0.4s; }
}

/* Legal Pages Style */
.legal-page {
    padding: 80px 0;
}

.legal-container {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.legal-title {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-grey);
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content ul li, .legal-content ol li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.legal-content ol li {
    list-style-type: decimal;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .process-steps:before {
        top: 0;
        bottom: 0;
        left: 50px;
        right: auto;
        width: 2px;
        height: 80%;
    }
    
    .process-step {
        flex-direction: row;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .step-number {
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    .step-content {
        text-align: left;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px;
        display: none;
    }
    
    .main-nav.open {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav li {
        margin: 10px 0;
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 8px 0;
        width: 100%;
    }
    
    .services-grid, .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .legal-container {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .header-wrapper {
        height: 60px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    main {
        padding-top: 60px;
    }
    
    section {
        padding: 40px 0;
    }
    
    .main-nav {
        top: 60px;
    }
    
    .btn {
        padding: 10px 20px;
    }
}
