/* Domain Financial Audit Website - Main Stylesheet */

/* Color Palette:
 * Deep Indigo: #2D1E4C
 * Solar Gold: #FFD43B
 * Coral Red: #FF5A5F
 * Mint Cream: #F5FFFA
 * Slate Gray: #708090
 */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --indigo: #2D1E4C;
    --gold: #FFD43B;
    --coral: #FF5A5F;
    --mint: #F5FFFA;
    --slate: #708090;
    --dark-slate: #3A4754;
    --light-indigo: #3D2A6C;
    
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 4px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--mint);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--indigo);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--light-indigo);
    transition: var(--transition);
}

a:hover {
    color: var(--coral);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--coral);
    color: white;
}

.btn-primary:hover {
    background-color: #e44a4f;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--coral);
    color: var(--coral);
}

.btn-outline:hover {
    background-color: var(--coral);
    color: white;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--gold);
}

.section-header p {
    color: var(--slate);
    font-size: 1.1rem;
}

/* Header & Navigation */
.site-header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--indigo);
    text-transform: lowercase;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--slate);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--coral);
}

.menu-toggle,
.menu-icon {
    display: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(45, 30, 76, 0.85), rgba(45, 30, 76, 0.9)), url('../img/KLkIuN.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-values {
    flex: 1;
}

.about-values ul {
    list-style: none;
}

.about-values li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.about-values li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: bold;
}

.about-values span {
    font-weight: 600;
    color: var(--indigo);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

/* Audit Types Section */
.audit-types-section {
    background-color: var(--indigo);
    color: white;
}

.audit-types-section .section-header h2 {
    color: white;
}

.audit-types-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.audit-type {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.audit-type:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.audit-type h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.audit-type ul {
    list-style: none;
}

.audit-type li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.audit-type li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--coral);
    font-weight: bold;
}

/* Case Studies Section */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-study {
    border-radius: var(--radius);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-study:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.case-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-content {
    padding: 1.5rem;
}

/* Order Form Section */
.order-section {
    background-color: var(--mint);
}

.order-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--indigo);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.3rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-submit {
    text-align: center;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f8f8f8;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    position: relative;
}

.testimonial::before {
    content: """;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(45, 30, 76, 0.1);
    font-family: serif;
}

.testimonial-content {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    background-color: white;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-toggle-link {
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--coral);
}

.faq-answer {
    padding: 1.2rem;
    background-color: #f9f9f9;
    display: none;
}

/* Footer */
.site-footer {
    background-color: var(--dark-slate);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-company h3,
.footer-contact h3,
.footer-links h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-contact a,
.footer-links a {
    color: #ccc;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    margin-top: 3rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(45, 30, 76, 0.95);
    color: white;
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-content p {
    margin: 0 1rem 0 0;
}

.cookie-content a {
    color: var(--gold);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .audit-types-columns {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-bottom: 1rem;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        padding: 5rem 0;
    }
    
    .menu-toggle {
        position: absolute;
        opacity: 0;
    }
    
    .menu-icon {
        display: block;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 200;
    }
    
    .menu-line {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--indigo);
        margin: 5px 0;
        transition: var(--transition);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .menu-toggle:checked ~ .nav-menu {
        right: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle:checked ~ .menu-icon .menu-line:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon .menu-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-menu li {
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .nav-menu li a.btn {
        display: inline-block;
        width: auto;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    /* Ensure all content is properly contained on mobile */
    table, img, .service-card, .case-study, .testimonial, .audit-type {
        max-width: 100%;
        width: 100%;
    }
}
