/**
 * Main Stylesheet for domain Financial Auditing Website
 */

/* CSS Reset and Base Styles */
:root {
    /* Color Variables */
    --ocean-jade: #00A693;
    --tangerine-cream: #FFC87C;
    --velvet-plum: #6D214F;
    --misty-mint: #D6F5E1;
    --charcoal-ink: #2E2E38;
    
    /* Font Variables */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    
    /* Layout Variables */
    --container-max: 1200px;
    --container-padding: 20px;
    --section-spacing: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal-ink);
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--velvet-plum);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--ocean-jade);
}

.text-center h2:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--ocean-jade);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--velvet-plum);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.text-center {
    text-align: center;
}

section {
    padding: 80px 0;
}

.section-alt {
    background-color: var(--misty-mint);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--heading-font);
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--tangerine-cream), var(--ocean-jade));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 166, 147, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 166, 147, 0.4);
    color: #fff;
}

.btn-secondary {
    background-color: #fff;
    color: var(--ocean-jade);
    border: 2px solid var(--ocean-jade);
}

.btn-secondary:hover {
    background-color: var(--ocean-jade);
    color: #fff;
}

/* Header and Navigation */
.site-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--velvet-plum);
    font-family: var(--heading-font);
}

.main-navigation .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation .menu li {
    margin-left: 30px;
}

.main-navigation .menu a {
    color: var(--charcoal-ink);
    font-weight: 500;
    position: relative;
}

.main-navigation .menu a:hover {
    color: var(--ocean-jade);
}

.main-navigation .menu a:not(.btn-primary):after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--ocean-jade);
    transition: width 0.3s ease;
}

.main-navigation .menu a:not(.btn-primary):hover:after {
    width: 100%;
}

.menu-toggle, .menu-icon {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, rgba(0, 166, 147, 0.9), rgba(109, 33, 79, 0.8)), url('./img/P3IkWu.jpg') center/cover no-repeat;
    padding: 120px 0;
    color: #fff;
    text-align: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* About Section */
.about h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    margin-left: auto;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    padding: 0 0 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    padding: 0 20px;
}

.service-card p {
    padding: 0 20px;
}

/* Audit Details Accordion */
.accordion {
    margin-top: 40px;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    background-color: var(--ocean-jade);
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    color: #fff;
    font-weight: 600;
    font-family: var(--heading-font);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #008e7d;
}

.accordion-header:after {
    content: "+";
    font-size: 24px;
    transition: transform 0.3s ease;
}

.accordion-item input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: #fff;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item input:checked ~ .accordion-content {
    max-height: 500px;
    padding: 20px;
}

.accordion-item input:checked ~ .accordion-header:after {
    transform: rotate(45deg);
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--tangerine-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    color: var(--velvet-plum);
    flex-shrink: 0;
}

/* Testimonials Section */
.testimonials-container {
    position: relative;
    padding: 20px 0;
    margin-top: 40px;
}

.testimonial {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    animation: testimonialRotate 15s infinite;
}

.testimonial:nth-child(1) { animation-delay: 0s; }
.testimonial:nth-child(2) { animation-delay: 5s; }
.testimonial:nth-child(3) { animation-delay: 10s; }

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    position: relative;
    padding: 0 30px;
}

.testimonial-text:before,
.testimonial-text:after {
    content: '"';
    font-size: 50px;
    position: absolute;
    color: var(--ocean-jade);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-text:before {
    top: -20px;
    left: 0;
}

.testimonial-text:after {
    bottom: -40px;
    right: 0;
}

.testimonial-author {
    font-weight: 600;
    color: var(--velvet-plum);
    margin-top: 20px;
}

/* Space between testimonials and form */
.testimonials {
    margin-bottom: 40px;
}

/* Form Section */
.form-section {
    background-color: var(--velvet-plum);
    color: #fff;
    padding: 80px 0;
}

.form-section h2 {
    color: #fff;
}

.form-section h2:after {
    background-color: var(--tangerine-cream);
}

.form-container {
    max-width: 600px;
    margin: 40px auto 0;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--charcoal-ink);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--ocean-jade);
    box-shadow: 0 0 0 3px rgba(0, 166, 147, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    flex: 1;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-list {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: #fff;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    font-family: var(--heading-font);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    color: var(--charcoal-ink);
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question:after {
    content: "+";
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-item input {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background-color: #f9f9f9;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item input:checked ~ .faq-answer {
    max-height: 500px;
    padding: 20px;
}

.faq-item input:checked ~ .faq-question:after {
    transform: rotate(45deg);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: var(--ocean-jade);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--misty-mint);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    color: var(--ocean-jade);
    flex-shrink: 0;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--ocean-jade);
    color: #fff;
    padding: 15px 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent a {
    color: var(--tangerine-cream);
    text-decoration: underline;
}

.cookie-consent button {
    margin-left: 20px;
    flex-shrink: 0;
}

/* Footer */
.site-footer {
    background-color: var(--charcoal-ink);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--heading-font);
    margin-bottom: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact h3,
.footer-links h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-contact address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact address p {
    margin-bottom: 10px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--tangerine-cream);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--tangerine-cream);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes testimonialRotate {
    0%, 30% {
        opacity: 1;
        z-index: 2;
    }
    33%, 96% {
        opacity: 0;
        z-index: 1;
    }
    97%, 100% {
        opacity: 1;
        z-index: 2;
    }
}

/* Policy Pages */
.policy-page {
    padding: 80px 0;
    background-color: var(--misty-mint);
}

.policy-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-header {
    background-color: var(--velvet-plum);
    color: #fff;
    padding: 20px;
    margin: -40px -40px 30px;
    border-radius: 10px 10px 0 0;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .menu-toggle {
        position: absolute;
        opacity: 0;
    }
    
    .menu-icon {
        display: block;
        width: 30px;
        height: 22px;
        position: relative;
        cursor: pointer;
        z-index: 2;
    }
    
    .menu-icon span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: var(--charcoal-ink);
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }
    
    .menu-icon span:nth-child(1) { top: 0px; }
    .menu-icon span:nth-child(2) { top: 9px; }
    .menu-icon span:nth-child(3) { top: 18px; }
    
    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        top: 9px;
        transform: rotate(135deg);
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        top: 9px;
        transform: rotate(-135deg);
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1;
        padding: 80px 20px 20px;
    }
    
    .menu-toggle:checked ~ .main-navigation {
        right: 0;
    }
    
    .main-navigation .menu {
        flex-direction: column;
    }
    
    .main-navigation .menu li {
        margin: 0 0 15px;
    }
    
    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-consent .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-consent button {
        margin: 15px 0 0;
        width: 100%;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero {
        padding: 80px 0;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .policy-container {
        padding: 20px;
    }
    
    .policy-header {
        margin: -20px -20px 20px;
    }
}
