/* 
   Main Stylesheet for Domain Financial Audit Website
   Colors:
   - Primary: Electric Blue #0077FF
   - Accent: Sunset Orange #FF5E3A
   - Background: Ivory #FFFFF0
   - Text: Midnight Navy #0D1B2A
   - UI Elements: Warm Grey #B0A990
*/

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFFFF0;
    color: #0D1B2A;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #0077FF;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF5E3A;
}

h1, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

h2 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: center;
}

p {
    margin-bottom: 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, .btn {
    background-color: #0077FF;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    background-color: #FF5E3A;
}

section {
    padding: 80px 0;
}

/* Header Styles */
header {
    background-color: #FFFFF0;
    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: 15px 0;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0077FF;
    margin-bottom: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: #0D1B2A;
    font-weight: 500;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #FF5E3A;
    transition: width 0.3s ease;
}

.main-nav a:hover:after {
    width: 100%;
}

.mobile-toggle {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, rgba(0, 119, 255, 0.1), rgba(255, 94, 58, 0.1));
    padding: 120px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #0077FF;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* About Section */
.about {
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Benefits Section */
.benefits {
    background-color: #0077FF;
    color: white;
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.benefit-card {
    flex: 1 1 300px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

/* Services Section */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-content {
    padding: 25px;
}

/* Case Study Section */
.case-study {
    background-color: #0D1B2A;
    color: white;
}

/* Form Section */
.form-section {
    background-color: #FFFFF0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(3deg);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #B0A990;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #B0A990;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-form {
    width: 100%;
    display: block;
}

.faq-question {
    background-color: #fff;
    padding: 15px 20px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color: #0077FF;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    display: block;
    text-align: left;
}

.faq-question:hover {
    background-color: #f8f8f8;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
    font-size: 20px;
    font-weight: bold;
    color: #0077FF;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #f9f9f5;
    transition: all 0.3s ease;
    width: 100%;
}

.faq-answer-content {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.6;
}

.faq-item.active .faq-question {
    background-color: #0077FF;
    color: white;
}

.faq-item.active .faq-question:after {
    content: '-';
    color: white;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

/* Testimonials Section */
.testimonials {
    background-color: #f9f9f5;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    flex: 1 1 300px;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

/* Footer Styles */
footer {
    background-color: #0D1B2A;
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #0077FF;
    font-size: 20px;
}

.contact-info, .legal-links {
    list-style: none;
}

.contact-info li, .legal-links li {
    margin-bottom: 10px;
}

.legal-links a {
    color: #B0A990;
}

.legal-links a:hover {
    color: #FF5E3A;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
#cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0D1B2A;
    color: white;
    padding: 15px;
    z-index: 9999;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    padding-right: 20px;
}

/* Policy Pages */
.policy-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border: 1px solid #B0A990;
    border-radius: 10px;
}

.policy-container h1 {
    color: #0077FF;
    margin-bottom: 30px;
}

.policy-container h2 {
    color: #0D1B2A;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Thanks Page */
.thanks-section {
    padding: 60px 0;
}

.thanks-container {
    text-align: center;
    padding: 40px;
    border: 2px solid #0077FF;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.thanks-container h1 {
    color: #0077FF;
    font-size: 36px;
    margin-bottom: 30px;
}

.thanks-container p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.thanks-container .btn {
    margin-top: 20px;
    display: inline-block;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.scale-up {
    transform: scale(0.9);
    opacity: 0;
    animation: scaleUp 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scaleUp {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-toggle {
        display: block;
    }
    
    .menu-button {
        background: none;
        border: none;
        width: 40px;
        height: 40px;
        position: relative;
        cursor: pointer;
        padding: 0;
    }
    
    .menu-button span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #0D1B2A;
        position: absolute;
        left: 5px;
        transition: all 0.3s ease;
    }
    
    .menu-button span:nth-child(1) {
        top: 10px;
    }
    
    .menu-button span:nth-child(2) {
        top: 19px;
    }
    
    .menu-button span:nth-child(3) {
        top: 28px;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #FFFFF0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 10px 0;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 28px;
    }
    
    .form-container {
        padding: 20px;
        transform: none;
    }
}
