/* 
 * Domain - Financial Audit Services
 * Main stylesheet with responsive design
 */

/* ========== VARIABLES & RESET ========== */
:root {
    /* Color palette */
    --primary: #2F3CFA;    /* Vibrant ultramarine blue */
    --secondary: #FF7733;  /* Rich tangerine orange */
    --accent: #5BC0BE;     /* Soft jade green */
    --background: #FAF8F4; /* Off-white ivory */
    --text: #2C2C2C;       /* Deep charcoal gray */
    
    /* Other variables */
    --border-radius: 4px;
    --transition-speed: 0.3s;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global fix to prevent horizontal scrolling */
html, body, div, section, header, footer, main, article {
    max-width: 100%;
}

/* ========== BASE STYLES ========== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    font-size: 16px;
    scroll-padding-top: 500px; /* Extremely large padding for anchor links to ensure visibility */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--primary);
}

p {
    margin-bottom: 1.5rem;
}

section {
    padding: 7rem 0 4rem;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
}

.btn:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--primary);
}

/* Invisible anchor targets */
section:before {
    content: "";
    display: block;
    height: 120px;
    margin-top: -120px;
    visibility: hidden;
    pointer-events: none;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 1rem auto;
}

/* ========== HEADER STYLES ========== */
.site-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo a {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: lowercase;
}

.logo a:hover {
    color: var(--secondary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text);
    transition: var(--transition-speed);
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    font-weight: 600;
    padding: 0.5rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width var(--transition-speed);
}

.nav-menu a:hover::after,
.nav-menu li.active a::after {
    width: 100%;
}

/* ========== HERO SECTION ========== */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./img/pk2jOL.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ========== ABOUT SECTION ========== */
.about {
    background-color: white;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* ========== BENEFITS SECTION ========== */
.benefits {
    background-color: var(--primary);
    color: white;
}

.benefits .section-title {
    color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: transform var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.benefit-item:hover {
    transform: translateY(-10px);
}

.benefit-item h3 {
    color: white;
}

.benefit-image {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 200px;
}

.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.benefit-item:hover .benefit-image img {
    transform: scale(1.05);
}

/* ========== AUDIT TYPES SECTION ========== */
.audit-types {
    background-color: white;
}

.audit-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.audit-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: transform var(--transition-speed);
    border-left: 4px solid var(--primary);
}

.audit-card:hover {
    transform: translateY(-5px);
}

.audit-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
    background-color: var(--background);
    position: relative;
    padding-bottom: 5rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-top: 4px solid var(--primary);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    flex-grow: 1;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    padding-left: 2rem;
}

.testimonial-content p::before {
    content: """;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    left: -1rem;
    top: -1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

/* ========== PROCESS SECTION ========== */
.process {
    background-color: white;
}

.process-roadmap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-roadmap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary);
}

.process-step {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    justify-content: flex-start;
}

.process-step:nth-child(even) {
    justify-content: flex-end;
}

.process-step-content {
    width: 45%;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.process-step-number {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    top: 20px;
}

.process-step:nth-child(odd) .process-step-number {
    right: -60px;
}

.process-step:nth-child(even) .process-step-number {
    left: -60px;
}

/* ========== FORM SECTION ========== */
.contact {
    background-color: var(--background);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

/* Diagonal design element */
.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 50%, var(--secondary) 50%, var(--secondary) 100%);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-check label {
    font-size: 0.9rem;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.form-submit .btn {
    padding: 14px 40px;
}

/* ========== FAQ SECTION ========== */
.faq {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    background-color: var(--background);
    padding: 1rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed), padding var(--transition-speed);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1rem;
}


/* ========== FOOTER STYLES ========== */
.site-footer {
    background-color: var(--text);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.7rem;
}

.footer-column a {
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.footer-column a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========== COOKIE POPUP ========== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text);
    color: white;
    padding: 1rem;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
}

.cookie-more {
    color: white;
    text-decoration: underline;
    margin-left: 1rem;
}

/* ========== POLICY PAGES ========== */
.policy-page {
    background-color: white;
    padding: 4rem 0;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.policy-header {
    margin-bottom: 3rem;
    text-align: center;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--background);
}

/* ========== THANK YOU PAGE ========== */
.thank-you {
    background-color: white;
    padding: 8rem 0;
    text-align: center;
}

.thank-you-container {
    max-width: 600px;
    margin: 0 auto;
    border: 3px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 3rem;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Add decorative elements to the frame */
.thank-you-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 50%, var(--secondary) 50%, var(--secondary) 100%);
}

.thank-you-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary) 50%, var(--primary) 50%, var(--primary) 100%);
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    margin: 0 auto 2rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .audit-cards,
    .benefits-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .process-step:nth-child(odd) .process-step-number {
        right: -45px;
    }
    
    .process-step:nth-child(even) .process-step-number {
        left: -45px;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        padding: 0 15px;
        width: calc(100% - 30px);
        max-width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: var(--box-shadow);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
        font-size: 0.95rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .process-roadmap::before {
        left: 20px;
    }
    
    .process-step,
    .process-step:nth-child(even) {
        justify-content: flex-start;
        padding-left: 60px;
    }
    
    .process-step-content {
        width: 100%;
    }
    
    .process-step-number {
        left: 0 !important;
        right: auto !important;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-more {
        margin-left: 0;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    /* Fix mobile overflow issues */
    section {
        width: 100vw;
        box-sizing: border-box;
        max-width: 100%;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0 1rem;
    }
    
    .testimonial-card {
        width: 100%;
        margin: 0 0 1.5rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .audit-cards,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .policy-container {
        padding: 2rem;
    }
}
