/* 
* Main Stylesheet - Audit Financier Canada
* Color Palette:
* - Primary: Deep Purple #4B0082
* - Secondary: Bright Coral #FF6F61
* - Accent: Emerald Green #50C878
* - Background: Soft Cream #FAF3E0
* - Text: Dark Charcoal #333333
*/

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 10px base size for easier rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333333;
    background-color: #FAF3E0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: #4B0082;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #FF6F61;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 2rem;
    line-height: 1.2;
    font-weight: 700;
    color: #4B0082;
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 2rem;
}

/* Buttons */
.button, button, 
input[type="submit"] {
    display: inline-block;
    background-color: #4B0082;
    color: white;
    padding: 1.2rem 2.4rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
}

.button:hover, button:hover,
input[type="submit"]:hover {
    background-color: #3a0064;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button {
    background-color: #FF6F61;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #ff5a4b;
    color: white;
}

/* Header and Navigation */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo a {
    display: block;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: #333333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav a:hover, 
.main-nav a.active {
    color: #4B0082;
    border-bottom-color: #4B0082;
}

/* Hero Section */
.hero-section {
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.8), rgba(80, 200, 120, 0.8)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    margin-top: 8rem;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    color: white;
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* Section Styling */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FF6F61;
}

.section-header p {
    margin-top: 2rem;
    font-size: 1.8rem;
}

.contact-form-section .section-header h2 {
    color: white;
}

.contact-form-section .section-header p {
    color: white;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Approach Section */
.approach-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.approach-card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.approach-card h3 {
    color: #4B0082;
    margin-bottom: 1.5rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: -40px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(75, 0, 130, 0.1);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 4px solid white;
}

.service-content {
    padding: 2rem 3rem 3rem;
    text-align: center;
}

.service-content h3 {
    color: #4B0082;
    margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #f8f8f8;
}

.testimonial-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 8rem;
    line-height: 1;
    color: rgba(75, 0, 130, 0.1);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 2rem;
    font-weight: 600;
    color: #4B0082;
}

/* Case Studies Section */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.case-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.case-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.case-content {
    padding: 2rem;
}

.case-content h3 {
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
    background-color: #f8f8f8;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: #4B0082;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.4rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 2rem 2rem;
}

/* Contact Form Section */
.contact-form-section {
    background: linear-gradient(135deg, #4B0082, #50C878);
    color: white;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 4rem;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h2, 
.contact-form h3 {
    color: #4B0082;
    text-align: center;
}

.contact-form p {
    color: #333333;
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: #333333;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1.6rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4B0082;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.checkbox-group input {
    margin-right: 1rem;
    margin-top: 0.4rem;
}

.checkbox-group label {
    flex: 1;
    font-size: 1.4rem;
    margin-bottom: 0;
    color: #333333;
}

.checkbox-group label a {
    color: #4B0082;
    text-decoration: underline;
}

.form-submit {
    text-align: center;
    margin-top: 3rem;
}

.form-error {
    color: #FF6F61;
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

/* Footer Styling */
.main-footer {
    background-color: #333333;
    color: white;
    padding: 6rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info, 
.footer-contact,
.footer-links {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-contact h3,
.footer-links h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: #FF6F61;
}

.contact-link {
    color: #FF6F61;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ffffff;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(51, 51, 51, 0.95);
    color: white;
    padding: 1.5rem 0;
    z-index: 1000;
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.cookie-banner p {
    margin-bottom: 0;
    flex: 1;
}

.cookie-banner a {
    color: #FF6F61;
    text-decoration: underline;
}

.cookie-accept {
    background-color: #50C878;
    color: white;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-accept:hover {
    background-color: #40a060;
}

/* Thank You Page */
.thank-you-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-content h1 {
    color: #4B0082;
    margin-bottom: 2rem;
}

.thank-you-content .icon {
    font-size: 8rem;
    color: #50C878;
    margin-bottom: 3rem;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 10rem 2rem 6rem;
}

.legal-content h1 {
    margin-bottom: 4rem;
}

.legal-content h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.legal-content ul, 
.legal-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    html {
        font-size: 60%;
    }
    
    .hero-content h1 {
        font-size: 4.2rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle-label {
        display: block;
        cursor: pointer;
        padding: 1rem;
    }
    
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        background: #4B0082;
        height: 2px;
        width: 2.4rem;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        position: absolute;
    }
    
    .nav-toggle-label span::before {
        bottom: 8px;
    }
    
    .nav-toggle-label span::after {
        top: 8px;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .nav-toggle:checked ~ .main-nav {
        height: auto;
        max-height: 300px;
    }
    
    /* Hero section */
    .hero-content h1 {
        font-size: 3.6rem;
    }
    
    .hero-content p {
        font-size: 1.8rem;
    }
    
    /* Sections */
    section {
        padding: 6rem 0;
    }
    
    .section-header {
        margin-bottom: 4rem;
    }
    
    /* Contact form */
    .contact-form-container {
        padding: 3rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
    
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
} 