/* 
   Main CSS file for financial audit company website
   Color Palette:
   - Primary Colors: Blue (#0099CC), Mint (#66FF99), Deep Purple (#800080)
   - Accent Colors: Gold (#FFD700), White (#FFFFFF), Gray (#A9A9A9)
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px; /* Add padding to account for fixed header */
}
section[id] {
    scroll-margin-top: 40px; /* Ensures content is not hidden behind fixed header when scrolling to anchors */
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
}

a {
    color: #0099CC;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #800080;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    color: #0099CC;
}

h2 {
    font-size: 2rem;
    color: #800080;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    color: #0099CC;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #0099CC;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #007EA7;
    color: #FFFFFF;
}

.btn-secondary {
    background-color: #66FF99;
    color: #333;
}

.btn-secondary:hover {
    background-color: #4CD97E;
    color: #333;
}

/* Header and Navigation */
.site-header {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #0099CC;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 10px;
}

.menu-icon span:nth-child(3) {
    top: 20px;
}

.menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    top: 10px;
    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: 10px;
    transform: rotate(-135deg);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #333;
    font-weight: 700;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #0099CC;
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

/* Hero section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/cm6LG.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    position: relative;
    color: #FFFFFF;
}

.hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}



.hero h1 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Services section */
.services {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #F9F9F9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3, .service-card p {
    padding: 0 20px;
}

.service-card h3 {
    margin-top: 20px;
}

.service-card .btn {
    margin: 20px;
    display: inline-block;
}

/* Order form */
.order-form {
    background-color: #66FF99;
    padding: 80px 0;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #DDD;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0099CC;
    outline: none;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: #F9F9F9;
    overflow: hidden;
}

.testimonials-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 0 -15px;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 30px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.testimonial-slide:hover {
    opacity: 1;
}

.client-name {
    font-style: italic;
    color: #800080;
    margin-top: 15px;
}

/* Partners */
.partners {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.partner {
    flex: 0 0 calc(20% - 30px);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F9F9F9;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-weight: 700;
    color: #0099CC;
}

/* About Us */
.about-us {
    padding: 80px 0;
    background-color: #F9F9F9;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* News and Articles */
.news-articles {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background-color: #F9F9F9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-card h3 {
    margin-top: 0;
}

.read-more {
    display: inline-block;
    color: #0099CC;
    font-weight: 700;
    margin-top: 10px;
}

.read-more:hover {
    color: #800080;
}

/* Contact */
.contact {
    padding: 80px 0;
    background-color: #66FF99;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.contact-info {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    margin-right: 15px;
    font-size: 1.5rem;
    color: #0099CC;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #FFFFFF;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #FFD700;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #FFFFFF;
}

.footer-links a:hover {
    color: #FFD700;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    color: #A9A9A9;
}

/* Utility classes */
.text-center {
    text-align: center !important;
}

/* Legal pages */
.legal-page {
    padding: 60px 0;
}

.legal-page .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 30px;
}

.legal-content h2 {
    color: #0099CC;
    text-align: center;
    margin-top: 40px;
    width: 100%;
}

.legal-content h3 {
    margin-top: 30px;
    text-align: center;
    width: 100%;
}

.legal-content p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 20px;
    padding-left: 0;
    list-style-position: inside;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.legal-content li {
    margin-bottom: 10px;
    text-align: center;
    width: 100%;
}

.legal-content address {
    text-align: center;
    width: 100%;
}

.legal-content address p {
    margin-bottom: 5px;
    text-align: center;
}

/* Thank you page */
.thank-you {
    padding: 100px 0;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Contact page */
.contact-page {
    padding: 60px 0;
}

.contact-page .contact-grid {
    grid-template-columns: 1fr 1fr;
}

.contact-text h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.error-message {
    background-color: #FFE6E6;
    color: #CC0000;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #FFFFFF;
    padding: 15px;
    z-index: 1000;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.cookie-content p {
    margin-right: 20px;
    margin-bottom: 0;
}

/* Icons */
.icon-phone:before {
    content: "📞";
}

.icon-location:before {
    content: "📍";
}

.icon-email:before {
    content: "📧";
}

.icon-clock:before {
    content: "🕒";
}

/* Map container */
.map-container {
    background-color: #FFFFFF;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.responsive-map {
    position: relative;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.responsive-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-toggle:checked ~ .mobile-menu-overlay {
    display: block;
    opacity: 1;
}

/* Responsive design - improved mobile styles */
@media (max-width: 992px) {
    .services-grid,
    .articles-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        padding-bottom: 30px;
    }
    
    .partners-grid {
        gap: 20px;
    }
    
    .partner {
        flex: 0 0 calc(33.333% - 20px);
    }

    .legal-content {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .site-header {
        padding: 5px 0;
    }
    
    .logo svg {
        width: 120px;
        height: 40px;
    }
    
    .menu-icon {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100% - 70px);
        background-color: #FFFFFF;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        z-index: 95;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    
    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }
    
    .nav-links li {
        margin-left: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 8px 0;
        width: 100%;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .services,
    .order-form,
    .testimonials,
    .partners,
    .about-us,
    .news-articles,
    .contact,
    .legal-page {
        padding: 40px 0;
    }
    
    .contact-grid,
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partner {
        flex: 0 0 calc(50% - 20px);
        padding: 15px 10px;
    }
    
    form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 14px;
    }
    
    .testimonial-slide {
        padding: 15px;
        margin: 5px;
        min-width: 260px;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .site-footer {
        padding: 30px 0;
    }
    
    .footer-column h3 {
        margin-top: 20px;
    }

    .legal-content {
        padding: 0 15px;
        width: 100%;
    }

    .legal-content ul, .legal-content ol {
        width: 90%;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .partner {
        flex: 0 0 100%;
        margin-bottom: 10px;
    }
    
    .hero {
        padding: 60px 0;
        background-position: center right;
    }
    
    .services,
    .order-form,
    .testimonials,
    .partners,
    .about-us,
    .news-articles,
    .contact,
    .legal-page {
        padding: 30px 0;
    }
    
    .service-card,
    .article-card {
        padding: 15px;
    }
    
    .service-card img {
        height: 150px;
    }
    
    .footer-column {
        margin-bottom: 20px;
    }
    
    .site-footer {
        text-align: center;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
        margin-top: 25px;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .legal-content {
        padding: 0 10px;
    }

    .legal-content ul, .legal-content ol {
        width: 100%;
        padding-left: 15px;
    }

    .legal-page .container {
        width: 100%;
        padding: 0 5px;
    }
}

/* Additional responsive fixes for very small screens */
@media (max-width: 360px) {
    h1 {
        font-size: 1.4rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .legal-content h2 {
        font-size: 1.2rem;
    }
}