/**
 * Main stylesheet for financial audit website
 * Color palette:
 * - Background: #F7F6F4 (beige)
 * - Main accent: #F34F5C (red)
 * - Additional blocks: #FFFFFF, #F9E6E1, #EDEDED
 * - Text: #1C1C1C (primary), #656565 (secondary)
 * - Buttons: gradient from #F34F5C to #FF8960
 */

/* ===== BASE STYLES ===== */
:root {
    --bg-color: #F7F6F4;
    --accent-color: #F34F5C;
    --accent-gradient: linear-gradient(135deg, #F34F5C 0%, #FF8960 100%);
    --white: #FFFFFF;
    --light-pink: #F9E6E1;
    --light-gray: #EDEDED;
    --text-primary: #1C1C1C;
    --text-secondary: #656565;
    --header-bg: #EDEDED;
    --footer-bg: #1C1C1C;
    --footer-text: #F7F6F4;
    --container-width: 1200px;
    --section-spacing: 5rem;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
}

body:has(#menu-toggle:checked) {
    overflow: hidden;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

section[id] {
    scroll-margin-top: 80px;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    margin: auto;
    max-width: max-content;
    display: block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(243, 79, 92, 0.3);
}

.btn-primary:hover {
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(243, 79, 92, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: rgba(243, 79, 92, 0.1);
    text-decoration: none;
}

/* ===== HEADER ===== */
header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -1px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
    margin-bottom: 0;
}

nav a {
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.menu-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 200;
}

.menu-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin-bottom: 5px;
    transition: var(--transition);
}

.menu-toggle-label span:last-child {
    margin-bottom: 0;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: calc(100vh - 76px);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--section-spacing) 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-color);
}

.services-grid,
.benefits-grid,
.steps-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 1rem;
}

.service-content ul {
    margin-top: 1rem;
}

/* ===== WHY US SECTION ===== */
.why-us-section {
    padding: var(--section-spacing) 0;
    background-color: var(--light-pink);
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

/* ===== STEPS SECTION ===== */
.steps-section {
    padding: var(--section-spacing) 0;
    background-color: var(--white);
}

.step-card {
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    color: var(--white);
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-color);
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.author-name {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.author-company {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: var(--section-spacing) 0;
    background-color: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-checkbox {
    display: none;
}

.faq-question {
    display: block;
    background-color: var(--white);
    padding: 1.2rem;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(243, 79, 92, 0.05);
}

.faq-arrow {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-arrow::before,
.faq-arrow::after {
    content: '';
    position: absolute;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.faq-arrow::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-arrow::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-answer {
    background-color: var(--white);
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-checkbox:checked ~ .faq-question {
    background-color: rgba(243, 79, 92, 0.1);
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 1.2rem;
}

.faq-checkbox:checked ~ .faq-question .faq-arrow::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--section-spacing) 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-map {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-map iframe {
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--white);
}

select option {
    background-color: var(--white);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-errors {
    padding: 1rem;
    background-color: #FBE9E7;
    border-left: 3px solid #D32F2F;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}

.form-errors ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}

footer .logo {
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-info p {
    margin-bottom: 1.5rem;
}

.footer-contact h3,
.footer-links h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-contact a {
    color: var(--light-pink);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--footer-text);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.cookie-content h3 {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

/* ===== POLICY PAGES ===== */
.policy-section {
    padding: var(--section-spacing) 0;
}

.policy-section h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.policy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.policy-content h3 {
    margin-top: 1.5rem;
}

.policy-content p, 
.policy-content ul, 
.policy-content ol {
    margin-bottom: 1.5rem;
}

.policy-actions {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
}

/* ===== THANK YOU PAGE ===== */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-content {
    max-width: 800px;
    margin: 5rem auto;
    text-align: center;
    padding: 3rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.thanks-content h1 {
    margin-bottom: 2rem;
}

.thanks-actions {
    margin-top: 2rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    :root {
        --section-spacing: 4rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 3rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }

    .menu-toggle-label {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 0;
        max-height: 0;
        background-color: var(--white);
        overflow: hidden;
        transition: max-height 0.5s ease;
        z-index: 99;
    }
    
    nav ul {
        flex-direction: column;
        padding: 80px 20px 40px;
        gap: 5px;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 10px;
        text-align: center;
        font-size: 1.1rem;
    }
    
    .menu-checkbox:checked ~ nav {
        max-height: 100vh;
        height: 100vh;
    }
    
    .menu-checkbox:checked ~ .menu-toggle-label span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-checkbox:checked ~ .menu-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-checkbox:checked ~ .menu-toggle-label span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .about-image {
        margin-bottom: 1rem;
    }
    
    .contact-map iframe {
        height: 300px;
    }

    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        margin-top: 1rem;
        flex-direction: column;
    }
    
    .cookie-buttons button,
    .cookie-buttons a {
        width: 100%;
    }

    .thanks-section {
        height: auto;
    }
}

@media (max-width: 480px) {
    :root {
        --section-spacing: 2.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        text-align: center;
    }
    
    .policy-content {
        padding: 1.5rem;
    }
}
