/* 
* domain - Financial Audit Company
* Main Stylesheet
* Mobile-first responsive design
*/

/* Custom Color Variables */
:root {
    --mint-green: #AAF0D1;
    --midnight-indigo: #1C1F4A;
    --sand-beige: #F7ECD0;
    --bright-coral: #FF6B6B;
    --cloud-white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px base for easier rem calculations */
}

/* Fix for anchor links with fixed header */
section[id] {
    scroll-margin-top: 8rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cloud-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--midnight-indigo);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--bright-coral);
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background-color: var(--bright-coral);
    color: var(--text-light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn:hover {
    background-color: var(--midnight-indigo);
    color: var(--text-light);
    transform: translateY(-2px);
}

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: var(--mint-green);
}

/* Header Styles */
.site-header {
    background-color: var(--midnight-indigo);
    color: var(--text-light);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.site-header .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--text-light);
    font-size: 2.4rem;
    font-weight: 800;
    text-transform: lowercase;
}

.logo a:hover {
    color: var(--mint-green);
}

.contact-info a {
    color: var(--mint-green);
    font-weight: 600;
}

.main-nav ul {
    display: none; /* Hide on mobile by default */
    list-style: none;
}

.main-nav.active ul {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--midnight-indigo);
    padding: 1rem 0;
}

.main-nav ul li {
    padding: 1rem 2rem;
    text-align: center;
}

.main-nav ul li a {
    color: var(--text-light);
    font-weight: 600;
}

.main-nav ul li a:hover {
    color: var(--mint-green);
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    margin: 0.5rem 0;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background-color: var(--midnight-indigo);
    color: var(--text-light);
    padding: 15rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.6rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease forwards;
}

.hero .btn {
    animation: fadeInUp 1.2s ease forwards;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section */
.about {
    background-color: var(--cloud-white);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Section */
.services {
    background-color: var(--sand-beige);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.service-card {
    background-color: var(--cloud-white);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    height: 200px;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Benefits Section */
.benefits {
    background-color: var(--midnight-indigo);
    color: var(--text-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.benefit-icon {
    font-size: 2.4rem;
    color: var(--mint-green);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--sand-beige);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.testimonial-card {
    background-color: var(--cloud-white);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 6rem;
    color: var(--mint-green);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-name {
    font-weight: 700;
}

.testimonial-position {
    color: var(--bright-coral);
    font-size: 1.4rem;
}

/* FAQ Section */
.faq {
    background-color: var(--cloud-white);
}

.faq-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    background-color: var(--sand-beige);
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--cloud-white);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.6rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--midnight-indigo);
    outline: none;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-check input[type="checkbox"] {
    margin-top: 0.5rem;
}

/* Footer Styles */
.site-footer {
    background-color: var(--midnight-indigo);
    color: var(--text-light);
    padding: 6rem 0 3rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info h3,
.footer-links h3,
.footer-contact h3 {
    color: var(--mint-green);
    margin-bottom: 2rem;
}

.footer-info address {
    color: var(--text-light);
}

.footer-info address a {
    color: var(--text-light);
}

.footer-info address a:hover {
    color: var(--mint-green);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--mint-green);
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--midnight-indigo);
    color: var(--text-light);
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: var(--mint-green);
    text-decoration: underline;
}

/* Policy Pages */
.policy-page {
    padding: 12rem 0 6rem;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--cloud-white);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.policy-container h1 {
    margin-bottom: 3rem;
    text-align: center;
}

.policy-container h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--mint-green);
}

/* Thank You Page */
.thank-you-frame {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background-color: var(--sand-beige);
    border: 2px solid var(--mint-green);
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.thank-you-actions {
    margin-top: 2.5rem;
    text-align: center;
}

.thank-you-frame p {
    font-size: 1.8rem;
    line-height: 1.6;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 4.2rem;
    }
    
    h2 {
        font-size: 3.6rem;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-nav ul {
        display: flex;
        gap: 2rem;
    }
    
    .services-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .about-content {
        flex-direction: row;
    }
    
    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .footer-sections {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero h1 {
        font-size: 5rem;
    }
}