/* 
* Main stylesheet for domain.com
* Financial Audit Services Website
* Colors:
* - Background: #F8F5F0
* - Main text: #1E2B3A
* - Accent: #EF476F
* - Additional elements: #FFD166
* - Secondary accents: #118AB2
* - Buttons: #06D6A0 (hover: #048C73)
*/

/* --- CSS Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #F8F5F0;
    --text-primary: #1E2B3A;
    --accent: #EF476F;
    --additional: #FFD166;
    --secondary: #118AB2;
    --btn-bg: #06D6A0;
    --btn-hover: #048C73;
    --white: #ffffff;
    --bg-gradient: linear-gradient(to bottom, #F8F5F0, #ffffff);
    --shadow: 0 4px 12px rgba(30, 43, 58, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 60px;
    background-color: var(--accent);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    background-color: var(--btn-bg);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    background-color: var(--btn-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 4rem 0;
}

.text-center {
    text-align: center;
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

/* --- Anchor Navigation --- */
.anchor-navigation {
    background-color: var(--accent);
    position: sticky;
    top: 80px;
    width: 100%;
    z-index: 999;
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.anchor-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.anchor-menu li {
    margin: 0 1.5rem;
}

.anchor-menu a {
    color: var(--white);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.anchor-menu a:hover {
    color: var(--additional);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.logo:hover {
    color: var(--accent);
}

.main-nav {
    position: relative;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 1.5rem;
}

.menu a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: var(--bg-gradient);
    overflow: hidden;
    position: relative;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-image {
    position: relative;
    width: 35%;
    max-height: 300px;
    margin-left: 2rem;
    z-index: 1;
    object-fit: contain;
    animation: fadeInRight 1s ease-out 0.5s both;
}

/* --- Section Anchor Offset --- */
section[id] {
    scroll-margin-top: 140px; /* Accounts for header + anchor navigation height */
}

/* --- About Section --- */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 2rem;
}

.about-card {
    background: var(--bg-gradient);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-icon {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* --- Services Section --- */
.services {
    background-color: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.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;
}

/* --- Advantages Section --- */
.advantages {
    background-color: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 2rem;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* --- Testimonials Section --- */
.testimonials {
    background-color: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 2rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-info h4 {
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --- Certificates Section --- */
.certificates {
    background-color: var(--white);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 2rem;
    align-items: center;
}

.certificate-item {
    text-align: center;
    transition: var(--transition);
}

.certificate-item:hover {
    transform: scale(1.05);
}

.certificate-item img {
    max-width: 150px;
    margin: 0 auto 1rem;
}

/* --- FAQ Section --- */
.faq {
    background-color: var(--bg-primary);
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--white);
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem;
}

/* --- Contact Form Section --- */
.contact-form-section {
    background-color: var(--white);
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--bg-primary);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(17, 138, 178, 0.1);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check input {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.form-button {
    width: 100%;
}

.error-message {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--text-primary);
    color: var(--white);
    padding-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 2rem;
    margin-bottom: 2rem;
}

.footer a {
    color: var(--white);
}

.footer a:hover {
    color: var(--additional);
}

.footer-logo {
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    text-transform: lowercase;
    letter-spacing: 1px;
}

.logo-tagline {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: normal;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: normal;
    color: rgba(255, 255, 255, 0.7);
    text-transform: none;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.footer-links h3,
.contact-info h3 {
    color: var(--additional);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.map-image {
    width: 100%;
    border-radius: 8px;
}

.copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.3s ease-in-out;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cookie-content p {
    margin: 0;
    margin-right: 1rem;
}

/* --- Policy Pages --- */
.policy-page {
    padding: 4rem 0;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.policy-content h1 {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0;
}

.policy-content h1::after {
    display: none;
}

.policy-content h2 {
    margin-top: 2rem;
    padding-bottom: 0;
}

.policy-content h2::after {
    display: none;
}

.policy-content a {
    text-decoration: none;
    border-bottom: none;
}

.policy-content a:hover,
.policy-content a:focus {
    text-decoration: none;
    border-bottom: none;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --- Utility Classes --- */
.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .anchor-navigation {
        top: 60px;
        overflow-x: auto;
    }
    
    .anchor-menu {
        justify-content: flex-start;
        padding: 0 1rem;
    }
    
    .anchor-menu li {
        margin: 0 1rem;
        flex-shrink: 0;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--white);
        width: 200px;
        box-shadow: var(--shadow);
        padding: 1rem;
        border-radius: 4px;
    }
    
    .menu li {
        margin-left: 0;
        margin-bottom: 1rem;
    }
    
    .menu-icon {
        display: block;
    }
    
    .menu-toggle:checked ~ .menu {
        display: flex;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-image {
        width: 70%;
        position: relative;
        margin-top: 2rem;
        margin-left: 0;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .hero {
        min-height: 70vh;
    }
}