/* 
Theme: domain Financial Audit
Author: Professional Web Developer
Version: 1.0
*/

/* CSS Variables for Color Palette */
:root {
    --arctic-teal: #00D9C0;
    --solar-sand: #F4D06F;
    --graphite-violet: #403F4C;
    --snow-drift: #F9FAF8;
    --coral-dust: #FF6B6C;
    --dark: #222222;
    --light: #ffffff;
    --medium: #888888;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--graphite-violet);
    background-color: var(--snow-drift);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--arctic-teal);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--coral-dust);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 600;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--arctic-teal);
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

ul, ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

/* Header */
.site-header {
    background-color: var(--light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--graphite-violet);
    text-transform: lowercase;
}

.logo a:hover {
    color: var(--arctic-teal);
}

.main-nav ul.menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    color: var(--dark);
    font-weight: 500;
    padding: 5px 10px;
    display: inline-block;
}

.cta-button {
    background-color: var(--arctic-teal);
    color: var(--light) !important;
    padding: 10px 20px !important;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--coral-dust);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--graphite-violet);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    margin-bottom: 20px;
    color: var(--graphite-violet);
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px var(--shadow);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-10px);
}

/* About Section */
.about-section {
    background-color: var(--snow-drift);
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px var(--shadow);
}

/* Services Section */
.services-section {
    background-color: var(--light);
    position: relative;
}

.services-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.service-card {
    background-color: var(--snow-drift);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow);
}

.service-image {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
}

.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);
}

/* Audit Types Section */
.audit-types-section {
    background-color: var(--graphite-violet);
    color: var(--light);
}

.audit-types-section h2 {
    color: var(--light);
}

.audit-types-section h2::after {
    background-color: var(--solar-sand);
}

.audit-types-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.audit-type {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.audit-type:hover {
    transform: translateY(-5px);
}

.audit-icon {
    color: var(--solar-sand);
    margin-bottom: 20px;
}

.audit-type h3 {
    color: var(--light);
}

.audit-type ul {
    list-style-type: none;
    padding-left: 0;
}

.audit-type ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.audit-type ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--solar-sand);
}

/* Benefits Section */
.benefits-section {
    background-color: var(--snow-drift);
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.benefit {
    position: relative;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--light);
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.benefit:hover {
    transform: translateY(-5px);
}

.benefit-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(0, 217, 192, 0.2);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light);
}

.testimonials-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    padding: 30px;
    border-radius: 10px;
    background-color: var(--snow-drift);
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: rgba(0, 217, 192, 0.2);
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--medium);
}

/* FAQ Section */
.faq-section {
    background-color: var(--snow-drift);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    background-color: var(--light);
    box-shadow: 0 5px 10px var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--arctic-teal);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 300px;
    padding: 0 20px 20px;
}

/* Contact Section */
.contact-section {
    background-color: var(--light);
}

.contact-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
    gap: 15px;
}

.info-item svg {
    color: var(--arctic-teal);
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 5px;
}

.info-item p {
    margin-bottom: 0;
}

/* Form Styles */
.contact-form {
    padding: 30px;
    background-color: var(--snow-drift);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--arctic-teal);
    outline: none;
}

/* Floating label effect */
.floating-label {
    position: relative;
}

.floating-label input {
    padding: 20px 12px 10px;
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    margin-bottom: 0;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label {
    top: 25%;
    font-size: 0.8rem;
    color: var(--arctic-teal);
    transform: translateY(-50%);
}

/* Checkbox styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
}

.checkbox-group label {
    font-size: 0.9rem;
    margin-bottom: 0;
    flex: 1;
}

.submit-button {
    background-color: var(--arctic-teal);
    color: var(--light);
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--coral-dust);
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    background-color: var(--graphite-violet);
    color: var(--light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: var(--light);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--arctic-teal);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: var(--arctic-teal);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #bbb;
}

/* Cookie Popup Styling */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 320px;
    background-color: var(--light);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
}

.cookie-popup.active {
    display: block;
    animation: slideIn 0.5s forwards;
}

.cookie-popup h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.cookie-popup p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-accept, .cookie-decline {
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.cookie-accept {
    background-color: var(--arctic-teal);
    color: var(--light);
}

.cookie-decline {
    background-color: #eee;
    color: var(--dark);
}

/* Animations */
@keyframes slideIn {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* CSS-only animations and transitions */
.hero-content, .about-content, .service-card, .audit-type, .benefit, .testimonial, .faq-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
    animation-play-state: paused;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Trigger animations when element is in viewport */
.hero-content, .about-content, .service-card, .audit-type, .benefit, .testimonial, .faq-item {
    animation-play-state: running;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        width: 100%;
    }
    
    .hero-image {
        margin-top: 30px;
        width: 100%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-grid {
        flex-direction: column-reverse;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav ul.menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--light);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 15px var(--shadow);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 100;
    }
    
    .main-nav ul.menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 576px) {
    .service-card, .audit-type, .testimonial {
        min-width: 100%;
    }
}