/* 
 * Main CSS Stylesheet for Domain - Financial Audit Services
 * Colors:
 * - Main: #2A4C7C (electric-blue)
 * - Accent: #FFCA3A (sunny-yellow)
 * - Background: #F4F4F9 (light dusty-white)
 * - Text: #333333 (graphite)
 * - Secondary: #A7F3D0 (mint)
 */

/* ===== Base Styles ===== */
:root {
    --color-main: #2A4C7C;
    --color-accent: #FFCA3A;
    --color-bg: #F4F4F9;
    --color-text: #333333;
    --color-secondary: #A7F3D0;
    --gradient-main: linear-gradient(135deg, #2A4C7C 0%, #3A6DA0 100%);
    --gradient-accent: linear-gradient(135deg, #FFCA3A 0%, #FFD65C 100%);
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--header-height) + 30px);
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Anchor positioning */
section[id], div[id] {
    scroll-margin-top: calc(var(--header-height) + 30px);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--color-accent);
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-main);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: white;
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--color-text);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* ===== Header Styles ===== */
.main-header {
    background: white;
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 150px;
}

.logo-img {
    width: 100%;
}

/* Text logo styles */
.text-logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-main);
    text-transform: lowercase;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.text-logo:hover {
    color: var(--color-accent);
    transform: scale(1.03);
}

.main-nav .nav-list {
    display: flex;
    gap: 20px;
}

.main-nav .nav-list a {
    font-weight: 600;
    padding: 5px;
    position: relative;
}

.main-nav .nav-list a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

.main-nav .nav-list a:hover:after {
    width: 100%;
}

.header-phone a {
    font-weight: 700;
    font-size: 1.1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-main);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    padding: 100px 0;
    background: var(--gradient-main);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .btn {
    margin-right: 15px;
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-text {
    margin-bottom: 30px;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.advantage-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    margin-bottom: 15px;
    color: var(--color-accent);
    font-size: 2.5rem;
}

/* ===== Services Section ===== */
.services {
    background-color: white;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    margin-bottom: 20px;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.service-icon img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* ===== Why Choose Us Section ===== */
.why-us {
    background: var(--gradient-main);
    color: white;
}

.why-us .section-title h2 {
    color: white;
}

.why-us .section-title h2:after {
    background: var(--color-accent);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.feature h4 {
    color: white;
}

/* ===== Process Section ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 40px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--color-main);
    z-index: -1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: var(--color-bg);
}

.testimonial-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 5rem;
    opacity: 0.1;
    color: var(--color-main);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-main);
}

.author-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.author-title {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== Contact Form Section ===== */
.contact-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232A4C7C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.form-check {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
}

.form-check input {
    margin-top: 5px;
    margin-right: 10px;
}

.form-submit {
    margin-top: 30px;
}

.form-errors {
    background-color: #fff5f5;
    color: #e53e3e;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid #e53e3e;
}

/* ===== Footer ===== */
.main-footer {
    background: var(--color-main);
    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-info h3 {
    color: white;
}

.footer-contact ul,
.footer-links ul {
    margin-top: 15px;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 10px;
}

.footer-contact a,
.footer-links a {
    color: #ddd;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== Cookie Popup ===== */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: bottom 0.5s ease;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
}

#accept-cookies {
    padding: 8px 20px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

#accept-cookies:hover {
    background: var(--gradient-accent);
    color: var(--color-text);
}

.cookie-popup a {
    text-decoration: underline;
}

/* ===== Legal Pages ===== */
.legal-page {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.legal-page h2 {
    margin-top: 30px;
}

.legal-page h3 {
    margin-top: 20px;
}

.legal-page ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-page ul li {
    margin-bottom: 10px;
}

/* ===== Thank You Page ===== */
.thank-you {
    text-align: center;
    max-width: 700px;
    margin: 80px auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.thank-you h1 {
    color: var(--color-main);
    margin-bottom: 30px;
}

.thank-you .btn {
    margin-top: 20px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: fadeIn 0.8s ease forwards;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-wrapper {
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background: white;
        box-shadow: var(--box-shadow);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav .nav-list {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav .nav-list a {
        display: block;
        padding: 15px 0;
    }
    
    .header-phone {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .step:not(:last-child):after {
        display: none;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-popup a {
        margin-top: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .legal-page {
        padding: 20px;
    }
}

/* Show the mobile menu when active - To be handled by PHP */
.main-nav.active {
    left: 0;
} 