/* 
 * Main CSS for domain - Financial Audit Services
 * Colors: 
 * - Dark Blue: #172A3A
 * - Coral Red: #FF595E
 * - Light Blue: #E0FBFC
 * - Olive: #A1C181
 * - Background: #EDF6F9
 */

/* ===== Base Styles ===== */
:root {
    --dark-blue: #172A3A;
    --coral-red: #FF595E;
    --light-blue: #E0FBFC;
    --olive: #A1C181;
    --bg-color: #EDF6F9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--dark-blue);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--dark-blue);
    text-decoration: underline;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--coral-red), var(--olive));
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--olive), var(--coral-red));
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.2rem;
}

section {
    padding: 80px 0;
}

/* Alternating section backgrounds */
section:nth-child(odd) {
    background-color: var(--light-blue);
}

section:nth-child(even) {
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--coral-red), var(--olive));
}

/* ===== Header Styles ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    background: linear-gradient(45deg, var(--dark-blue), var(--coral-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav .menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.main-nav .menu li {
    margin-left: 20px;
}

.main-nav .menu a {
    text-decoration: none;
    position: relative;
}

.main-nav .menu a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--coral-red), var(--olive));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.main-nav .menu a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
}

.menu-button {
    display: none;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(23, 42, 58, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transform: none;
    transition: none;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    transform: none;
    transition: none;
}

/* Hero mobile adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 40px;
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 20px 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}

/* ===== About Section ===== */
.about-section {
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Services Section ===== */
.services-section .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: white;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 25px;
}

/* ===== Benefits Section ===== */
.benefits-section .benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
}

.benefit-icon {
    flex: 0 0 50px;
    font-size: 1.8rem;
    margin-right: 15px;
    color: var(--olive);
}

.benefit-content {
    flex: 1;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    text-align: center;
}

.testimonials-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    justify-content: center;
}

.testimonial-item {
    scroll-snap-align: center;
    min-width: 300px;
    flex: 0 0 300px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    position: relative;
    padding: 20px 0;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 4rem;
    line-height: 1;
    color: var(--light-blue);
    opacity: 0.5;
}

.testimonial-author {
    margin-top: 20px;
    font-weight: bold;
}

.testimonial-role {
    font-size: 0.9rem;
    color: #666;
}

/* ===== Clients Section ===== */
.clients-section {
    text-align: center;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.client-item {
    padding: 20px;
    background: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
}

.client-item img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-item:hover img {
    filter: grayscale(0%);
}

/* ===== Team Section ===== */
.team-section {
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 280px;
    width: 100%;
}

.team-member-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.team-member-info {
    padding: 20px;
}

.team-member-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-member-role {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: var(--light-blue);
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group select option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

/* ===== Footer ===== */
.site-footer {
    background-color: var(--dark-blue);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-info p,
.footer-info address p {
    margin-bottom: 10px;
}

.footer-links h3,
.footer-legal h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-legal h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--coral-red);
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-legal a,
.footer-info a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-info a:hover {
    color: var(--coral-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Cookie Popup ===== */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 400px;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.cookie-content {
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
}

@media (max-width: 576px) {
    .cookie-popup {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        padding: 15px;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Policy Pages ===== */
.policy-page {
    padding: 120px 0 80px;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
    margin-bottom: 30px;
}

.policy-container h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.policy-container p {
    margin-bottom: 15px;
}

.policy-container ul {
    margin: 15px 0 15px 20px;
}

.policy-container li {
    margin-bottom: 10px;
}

/* ===== Thank You Page ===== */
.thanks-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
}

.thanks-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 60px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.thanks-icon {
    font-size: 4rem;
    color: var(--olive);
    margin-bottom: 30px;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .main-nav .menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 99;
    }
    
    .main-nav .menu li {
        margin: 15px 0;
    }
    
    .menu-button {
        display: block;
        width: 30px;
        height: 25px;
        position: relative;
        cursor: pointer;
    }
    
    .menu-icon, 
    .menu-icon::before, 
    .menu-icon::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--dark-blue);
        transition: all 0.3s ease;
    }
    
    .menu-icon {
        top: 50%;
        transform: translateY(-50%);
    }
    
    .menu-icon::before {
        top: -8px;
    }
    
    .menu-icon::after {
        bottom: -8px;
    }
    
    .menu-toggle:checked ~ .menu {
        left: 0;
    }
    
    .menu-toggle:checked ~ .menu-button .menu-icon {
        background-color: transparent;
    }
    
    .menu-toggle:checked ~ .menu-button .menu-icon::before {
        top: 0;
        transform: rotate(45deg);
    }
    
    .menu-toggle:checked ~ .menu-button .menu-icon::after {
        bottom: 0;
        transform: rotate(-45deg);
    }
    
    .benefits-section .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .policy-container {
        padding: 30px 20px;
    }
}
