/* Domain - Financial Audit Company CSS */
:root {
    /* Color palette */
    --turquoise: #00E5A8;
    --indigo: #1D1B3A;
    --sand: #F5F0E1;
    --saffron: #F4A261;
    --steel: #4A5568;

    /* Font sizes */
    --h1-size: clamp(2.5rem, 5vw, 3.5rem);
    --h2-size: clamp(2rem, 4vw, 2.8rem);
    --h3-size: clamp(1.5rem, 3vw, 2rem);
    --body-size: clamp(1rem, 2vw, 1.2rem);
    --small-size: clamp(0.8rem, 1.5vw, 1rem);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--indigo);
    background-color: var(--sand);
    line-height: 1.6;
    font-size: var(--body-size);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--indigo);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--turquoise);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: var(--turquoise);
    color: var(--indigo);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    border-color: var(--turquoise);
    color: var(--turquoise);
}

.btn-secondary {
    background-color: var(--saffron);
}

.btn-secondary:hover {
    border-color: var(--saffron);
    color: var(--saffron);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--indigo);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--turquoise);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--sand);
    position: relative;
}

nav ul li a:hover {
    color: var(--turquoise);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--turquoise);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--sand);
    transition: all 0.3s ease;
}

.menu-toggle-form {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 0;
    padding-top: 80px;
    text-align: center; /* Center align the hero content */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 27, 58, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--sand);
    max-width: 800px;
    margin: 0 auto; /* Center the hero content box */
}

.hero h1 {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

/* About Section */
.about {
    background-color: var(--sand);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(0, 229, 168, 0.1);
    top: -150px;
    right: -150px;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Adjust ratio to make image smaller */
    gap: 3rem;
    align-items: center;
}

.about-image {
    max-width: 100%;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Services Section */
.services {
    background-color: var(--indigo);
    color: var(--sand);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 0;
    left: 0;
    background-color: var(--turquoise);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-image {
    height: 180px;
    margin: -2rem -2rem 1.5rem;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Benefits Section */
.benefits {
    background-color: var(--sand);
}

.benefits h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--turquoise);
    margin-bottom: 1.5rem;
}

/* Testimonials */
.testimonials {
    background-color: var(--indigo);
    color: var(--sand);
    text-align: center;
    padding: 5rem 0;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.testimonial-item {
    background-color: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 10px;
    margin: 1rem auto;
    max-width: 600px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--turquoise);
}

/* Infographic Section */
.infographic {
    background-color: var(--sand);
}

.infographic h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--turquoise);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

/* FAQ Section */
.faq {
    background-color: white;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--sand);
    padding: 1rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
}

.faq-answer {
    background-color: white;
    padding: 1rem;
    display: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-item.active .faq-answer {
    display: block;
}

/* Contact Form */
.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--turquoise);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input {
    margin-top: 5px;
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: var(--indigo);
    color: var(--sand);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-info h3 {
    color: var(--turquoise);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--sand);
}

.footer-links ul li a:hover {
    color: var(--turquoise);
}

.footer-contact p {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    text-align: center;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Legal Pages */
.legal-page {
    padding: 8rem 2rem 5rem;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content {
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.legal-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .menu-toggle-form {
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--indigo);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    nav ul {
        flex-direction: column;
        padding: 2rem;
    }

    nav ul li {
        margin: 1rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
} 