/* Main Styles for domain.com Financial Audit Services */

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #F7F7F7;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Color Variables */
:root {
    --primary: #0D1B2A;
    --secondary: #FF6F61;
    --accent: #B8E986;
    --light-bg: #F7F7F7;
    --dark-bg: #2E2E2E;
    --white: #FFFFFF;
    --dark-text: #333333;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* Header */
header {
    background-color: var(--primary);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    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;
}

.logo a {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: var(--white);
}

.hamburger-menu {
    display: none;
}

.menu-toggle {
    display: none;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        width: 30px;
        height: 22px;
        position: relative;
        cursor: pointer;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--white);
        position: absolute;
        transition: all 0.3s ease;
    }

    .hamburger-menu span:nth-child(1) {
        top: 0;
    }

    .hamburger-menu span:nth-child(2) {
        top: 9px;
    }

    .hamburger-menu span:nth-child(3) {
        top: 18px;
    }

    .menu-toggle {
        display: none;
    }

    .menu-toggle + .hamburger-menu + nav {
        display: none;
    }

    .menu-toggle:checked + .hamburger-menu + nav {
        display: block;
    }

    nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        width: 100%;
        margin: 10px 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    background-color: var(--primary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.7)), url('./img/XbjDz.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

/* Sections - General */
section {
    padding: 80px 0;
}

.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;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

/* About Section */
.about {
    background-color: var(--light-bg);
}

/* Services Section */
.services {
    background-color: var(--white);
}

/* Why Choose Us Section */
.why-us {
    background-color: var(--primary);
    color: var(--white);
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--accent);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-bg);
}

.testimonial-card {
    padding: 30px;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 80px;
    color: rgba(255, 111, 97, 0.2);
    font-family: serif;
    line-height: 1;
}

/* Form Section */
.form-section {
    background-color: var(--white);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

select.form-control {
    appearance: none;
    background: white url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") no-repeat right 10px center;
    padding-right: 30px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-container input {
    margin-top: 5px;
    margin-right: 10px;
}

/* FAQ Section */
.faq {
    background-color: var(--light-bg);
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.faq-checkbox {
    display: none;
}

.faq-question {
    background-color: var(--white);
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    display: block;
    font-weight: 600;
    border-left: 3px solid var(--secondary);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: var(--white);
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-checkbox:checked + .faq-question::after {
    content: '−';
}

.faq-checkbox:checked + .faq-question + .faq-answer {
    max-height: 500px;
    padding: 15px 20px;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Policy Pages */
.policy-container {
    max-width: 800px;
    margin: 8rem auto 5rem;
    padding: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

/* Thank You Page */
.thankyou-container {
    max-width: 600px;
    margin: 8rem auto 5rem;
    padding: 40px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    z-index: 9999;
    display: none;
}

.cookie-popup.active {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .policy-container, 
    .thankyou-container {
        padding: 20px;
        margin: 6rem auto 3rem;
    }
}
