/* 
 * Main stylesheet for Financial Audit Company website
 * Colors:
 * - Main: #FFA949 (mandarin)
 * - Accent: #432D92 (indigo)
 * - Background: #F6F6F9 (light gray)
 * - Text: #1C1C1E (charcoal)
 * - Form elements: #C6BFFF (lavender)
 */

/* CSS Reset and Base Styles */
:root {
    --color-main: #FFA949;
    --color-accent: #432D92;
    --color-bg: #F6F6F9;
    --color-text: #1C1C1E;
    --color-form: #C6BFFF;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    position: relative; /* Ensure positioning context */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center; /* Center all headings */
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-main);
    margin: 0.5rem auto 0;
}

h3 {
    font-size: 1.5rem;
    text-align: center;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 80px 0;
    border: 1px solid #e0e0e0;
    margin-bottom: 1px;
    background-color: white;
    overflow: hidden; /* Prevent content from causing horizontal scrolling */
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-main);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--color-main);
    color: white;
}

/* Header Styles */
.site-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    width: 100%; /* Ensure full width */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo svg {
    margin-right: 10px;
    flex-shrink: 0; /* Prevent SVG from shrinking */
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--color-text);
}

.nav-menu a:hover {
    color: var(--color-main);
}

.nav-cta {
    background-color: var(--color-main);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.nav-cta:hover {
    background-color: var(--color-accent);
    color: white !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 20px;
    justify-content: space-between;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('./img/ZrV3f5.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image {
    display: none;
}

/* About Section */
.about-section {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Advantages Section */
.advantages-section {
    background-color: var(--color-bg);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.advantage-card h3 {
    color: var(--color-main);
    margin-bottom: 1rem;
    text-align: center;
}

/* Services Section */
.services-section {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    padding: 20px 20px 10px;
    color: var(--color-accent);
    text-align: center;
}

.service-card p {
    padding: 0 20px 20px;
    text-align: center; /* Center service descriptions */
}

/* Statistics Section */
.statistics-section {
    background-color: var(--color-accent);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.statistics-section h2 {
    color: white;
}

.statistics-section h2:after {
    background-color: var(--color-main);
    margin-left: auto;
    margin-right: auto;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.statistic-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    transition: var(--transition);
}

.statistic-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-main);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.statistic-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-main);
    display: block;
    margin-bottom: 10px;
}

/* Team Section */
.team-section {
    background-color: white;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #e0e0e0;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.member-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .member-image img {
    transform: scale(1.05);
}

.team-member h3 {
    padding: 20px 20px 10px;
    color: var(--color-accent);
    text-align: center;
}

.team-member p {
    padding: 0 20px 20px;
    text-align: center; /* Center team member descriptions */
}

/* Contact Form Section */
.form-section {
    background-color: var(--color-bg);
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: left;
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--color-form);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-main);
    box-shadow: 0 0 0 3px rgba(255, 169, 73, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid #e0e0e0;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--color-main);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-accent);
}

/* Footer Styles */
.site-footer {
    background-color: var(--color-accent);
    color: white;
    padding: 60px 0 20px;
    width: 100%; /* Ensure full width */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo a {
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo svg {
    margin-right: 10px;
    flex-shrink: 0; /* Prevent SVG from shrinking */
}

.footer-col h3 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--color-main);
    text-align: left; /* Left-align footer column headings */
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--color-main);
    margin: 0; /* Reset margin */
}

.footer-nav,
.legal-links {
    list-style: none;
}

.footer-nav li,
.legal-links li {
    margin-bottom: 10px;
}

.footer-nav a,
.legal-links a {
    color: #fff;
    opacity: 0.8;
}

.footer-nav a:hover,
.legal-links a:hover {
    color: var(--color-main);
    opacity: 1;
}

.contact-info p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    text-align: center;
    display: none;
    border: 1px solid #e0e0e0;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.cookie-popup h3 {
    color: var(--color-accent);
}

.cookie-popup p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cookie-popup .btn {
    margin: 5px;
}

/* Policy Pages */
.policy-container {
    max-width: 800px;
    margin: 60px auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e0e0e0;
}

.policy-container h1 {
    color: var(--color-accent);
    margin-bottom: 30px;
    text-align: center;
}

.policy-container h2 {
    color: var(--color-main);
    font-size: 1.8rem;
    margin-top: 40px;
    text-align: left; /* Left-align policy section headings */
}

.policy-container h2:after {
    margin-left: 0; /* Left-align underlines in policy pages */
    margin-right: auto;
}

.policy-section {
    margin-bottom: 30px;
}

/* Thank You Page */
.thank-you-section {
    text-align: center;
    padding: 100px 0;
}

.thank-you-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e0e0e0;
}

.thank-you-section h1 {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.thank-you-section p {
    margin-bottom: 30px;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 50px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    /* Fix for mobile width issues */
    .container {
        width: 95%;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    /* Fixed mobile menu */
    .menu-toggle {
        display: flex;
        z-index: 101;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 100;
    }
    
    .nav-menu.menu-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .menu-toggle.menu-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.menu-open span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.menu-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Additional mobile fixes */
    .service-card,
    .advantage-card,
    .testimonial-card,
    .team-member {
        max-width: 100%; /* Ensure cards don't exceed screen width */
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    /* Ensure elements don't cause horizontal overflow */
    .testimonials-grid,
    .services-grid,
    .advantages-grid,
    .team-grid {
        width: 100%;
        padding: 0;
        margin: 0 auto;
    }

    /* Improved statistics section for mobile */
    .statistics-section {
        padding: 40px 0;
    }
    
    .statistics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 0 15px;
    }
    
    .statistic-item {
        padding: 15px 10px;
    }
    
    .statistic-number {
        font-size: 2.2rem;
        margin-bottom: 5px;
    }
    
    .statistic-item p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    /* For very small screens */
    .statistics-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .statistic-item {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .statistic-number {
        font-size: 2.5rem;
    }
    
    .statistic-item p {
        font-size: 1rem;
    }
} 