/* 
 * domain - Financial Auditing Website
 * Color Palette:
 * - Obsidian Black (#0B0C10) - text and header contrast
 * - Aurora Green (#2EC4B6) - accent elements and CTA buttons
 * - Amber Glow (#FFB400) - secondary highlights
 * - Misty White (#F7F7F7) - background sections
 * - Velvet Plum (#6A0572) - block separators and hover effects
 */

/* ---------- RESET & BASE STYLES ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --obsidian-black: #0B0C10;
    --aurora-green: #2EC4B6;
    --amber-glow: #FFB400;
    --misty-white: #F7F7F7;
    --velvet-plum: #6A0572;
    
    --text-color: #333333;
    --body-font: 'Open Sans', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html {
    font-size: 62.5%; /* 10px base for easy rem calculation */
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--misty-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--obsidian-black);
}

h1 { font-size: 3.6rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2.4rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--aurora-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--velvet-plum);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 8rem;
    height: 0.4rem;
    background: var(--aurora-green);
    margin: 1rem auto 0;
}

/* ---------- BUTTONS ---------- */
.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background-color: var(--aurora-green);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.cta-button:hover, .cta-button:focus {
    background-color: var(--velvet-plum);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.secondary-button {
    background-color: transparent;
    color: var(--aurora-green);
    border: 2px solid var(--aurora-green);
}

.secondary-button:hover, .secondary-button:focus {
    background-color: var(--aurora-green);
    color: white;
}

/* ---------- HEADER & NAVIGATION ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 2.4rem;
    font-weight: 700;
}

.logo-text {
    color: var(--obsidian-black);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
}

.main-navigation li {
    margin-left: 2.5rem;
    display: flex;
    align-items: center;
}

.main-navigation a {
    color: var(--obsidian-black);
    font-weight: 500;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--aurora-green);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a:focus::after {
    width: 100%;
}

.main-navigation .cta-button {
    padding: 0.8rem 1.5rem;
}

.main-navigation .cta-button::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu-checkbox,
.mobile-menu-button {
    display: none;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--obsidian-black);
    position: relative;
    transition: var(--transition);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 60rem;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: white;
    margin-top: 7.5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 12, 16, 0.7), rgba(106, 5, 114, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 4.8rem;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.value-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card h3 {
    margin-top: 1.5rem;
}

.value-icon {
    width: 7rem;
    height: 7rem;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--aurora-green);
    color: white;
    font-size: 3rem;
}

/* ---------- SERVICES SECTION ---------- */
.services-section {
    background-color: var(--misty-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 4rem;
    justify-content: center;
    max-width: 90%;
    margin: 0 auto;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-content {
    padding: 2rem;
}

.service-card h3 {
    color: var(--obsidian-black);
    margin-top: 0;
}

/* ---------- AUDIT TYPES SECTION ---------- */
.audit-types-section {
    background-color: white;
}

.audit-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.audit-type-card {
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    background-color: var(--misty-white);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.audit-type-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.4rem;
    background-color: var(--aurora-green);
    transition: var(--transition);
}

.audit-type-card:hover::after {
    height: 0.8rem;
}

.audit-type-card:hover {
    transform: translateY(-5px);
}

/* ---------- CASE STUDIES SECTION ---------- */
.case-studies-section {
    background-color: var(--misty-white);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
}

.case-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: white;
}

.case-image {
    height: 20rem;
    background-size: cover;
    background-position: center;
}

.case-content {
    padding: 2rem;
}

.case-content h3 {
    margin-top: 0;
}

/* ---------- ORDER FORM SECTION ---------- */
.order-form-section {
    background: linear-gradient(135deg, var(--obsidian-black), var(--velvet-plum));
    color: white;
}

.order-form-section .section-title {
    color: white;
}

.order-form-section .section-title::after {
    background: var(--amber-glow);
}

.order-form {
    max-width: 60rem;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--body-font);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--aurora-green);
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' 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 1rem center;
    background-size: 1.5rem;
    cursor: pointer;
}

.form-select option {
    color: var(--obsidian-black);
    background-color: white;
    padding: 0.8rem;
}

.form-select:focus {
    border-color: var(--amber-glow);
    box-shadow: 0 0 0 0.2rem rgba(255, 180, 0, 0.25);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-checkbox {
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.form-actions {
    text-align: center;
    margin-top: 3rem;
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials-section {
    background-color: white;
}

.testimonials-slider {
    max-width: 70rem;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    text-align: center;
    padding: 2rem;
}

.testimonial-text {
    font-size: 1.8rem;
    font-style: italic;
    position: relative;
    padding: 0 2rem;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 4rem;
    color: var(--amber-glow);
    position: absolute;
    line-height: 1;
}

.testimonial-text::before {
    left: 0;
    top: -1rem;
}

.testimonial-text::after {
    right: 0;
    bottom: -2rem;
}

.testimonial-author {
    margin-top: 2rem;
    font-weight: 600;
}

.testimonial-position {
    color: var(--aurora-green);
    font-size: 1.4rem;
}

/* ---------- FAQ SECTION ---------- */
.faq-section {
    background-color: var(--misty-white);
}

.faq-list {
    max-width: 80rem;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    background-color: white;
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.8rem;
}

.faq-toggle {
    width: 2rem;
    height: 2rem;
    position: relative;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background-color: var(--aurora-green);
    transition: var(--transition);
}

.faq-toggle::before {
    width: 100%;
    height: 0.3rem;
    top: 50%;
    transform: translateY(-50%);
}

.faq-toggle::after {
    width: 0.3rem;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq-answer {
    background-color: white;
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-question {
    background-color: var(--aurora-green);
    color: white;
}

.faq-item.active .faq-toggle::before,
.faq-item.active .faq-toggle::after {
    background-color: white;
}

.faq-item.active .faq-toggle::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 2rem;
    max-height: 50rem;
}

/* ---------- FOOTER ---------- */
.site-footer {
    background-color: var(--obsidian-black);
    color: var(--misty-white);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 4rem;
}

.site-footer h3 {
    color: white;
    margin-bottom: 2rem;
    position: relative;
}

.site-footer h3::after {
    content: '';
    display: block;
    width: 4rem;
    height: 0.3rem;
    background: var(--aurora-green);
    margin-top: 1rem;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-services a {
    color: var(--misty-white);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--aurora-green);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- COOKIE CONSENT ---------- */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--obsidian-black);
    color: white;
    padding: 2rem;
    z-index: 1001;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
    transform: translateY(100%);
}

.cookie-consent.show {
    transform: translateY(0);
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 120rem;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
}

/* ---------- POLICY PAGES ---------- */
.policy-page {
    padding-top: 12rem;
    padding-bottom: 6rem;
}

.policy-content {
    max-width: 80rem;
    margin: 0 auto;
    background-color: white;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.policy-content h2 {
    margin-top: 4rem;
}

.policy-content h3 {
    margin-top: 3rem;
}

.policy-content p + h2,
.policy-content p + h3 {
    margin-top: 3rem;
}

.policy-content ul,
.policy-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.8rem;
}

/* ---------- RESPONSIVE STYLES ---------- */
@media (max-width: 992px) {
    html {
        font-size: 60%;
    }
    
    .audit-types-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 4.2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    .mobile-menu-button {
        display: block;
        position: relative;
        z-index: 1002;
        cursor: pointer;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 8rem 3rem 3rem;
        transition: var(--transition);
        z-index: 1001;
    }
    
    .mobile-menu-checkbox:checked ~ .main-navigation {
        right: 0;
    }
    
    .mobile-menu-checkbox:checked + .mobile-menu-button .menu-icon {
        background-color: transparent;
    }
    
    .mobile-menu-checkbox:checked + .mobile-menu-button .menu-icon::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .mobile-menu-checkbox:checked + .mobile-menu-button .menu-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        margin: 0 0 1.5rem;
    }
    
    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.6rem; }
    h3 { font-size: 2rem; }
    
    .hero {
        height: 50vh;
    }
    
    .hero h1 {
        font-size: 3.6rem;
    }
    
    .policy-content {
        padding: 2rem;
    }
}

/* Thank You Page Styling */
.thank-you-section {
    padding-top: 12rem;
}

.thank-you-section .policy-content {
    text-align: center;
}
