/* 
 * AuditPro Canada - Modern Styles
 * Color palette:
 * - Primary: #2563EB (blue)
 * - Secondary: #0F172A (dark blue)
 * - Accent: #3B82F6 (light blue)
 * - Text: #1E293B (dark slate)
 * - Light Text: #64748B (slate)
 * - Background: #F8FAFC (light gray)
 * - Card Background: #FFFFFF (white)
 */

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #1E293B;
    background-color: #F8FAFC;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

a {
    text-decoration: none;
    color: #2563EB;
    transition: all 0.2s ease;
}

a:hover {
    color: #1E40AF;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: #0F172A;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #2563EB;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.25rem;
    color: #475569;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #2563EB;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
}

.btn-primary:hover {
    background-color: #1D4ED8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2), 0 4px 6px -2px rgba(37, 99, 235, 0.1);
}

.btn-secondary {
    background-color: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #0F172A;
}

.btn-secondary:hover {
    background-color: #E2E8F0;
    color: #0F172A;
    transform: translateY(-2px);
}

.btn-nav {
    background-color: #2563EB;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-nav:hover {
    background-color: #1D4ED8;
    color: white;
    transform: translateY(-1px);
}

/* Cookie Popup */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FFFFFF;
    color: #1E293B;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    z-index: 1000;
    max-width: 500px;
    width: calc(100% - 3rem);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    border: 1px solid #E2E8F0;
}

.cookie-popup.active {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-content p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.btn-cookie {
    background-color: #2563EB;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-cookie:hover {
    background-color: #1D4ED8;
    transform: translateY(-1px);
}

@keyframes slideUp {
    0% {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: #0F172A;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo svg {
    margin-right: 0.8rem;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: #334155;
    font-weight: 500;
    position: relative;
}

.main-nav a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #2563EB;
    transition: width 0.3s ease;
}

.main-nav a:not(.btn-nav):hover {
    color: #2563EB;
}

.main-nav a:not(.btn-nav):hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 15rem 0 15rem;
    background: linear-gradient(120deg, #f8fafc 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    margin: 0 auto;
    max-width: 550px;
   text-align: center;
   position: relative;
   z-index: 2;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    color: #0F172A;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #475569;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0.1;
 
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: 12px;
    overflow: hidden;
    
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* About Section */
.about-section {
    background-color: white;
    padding: 8rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Services Section */
.services-section {
    background-color: #F8FAFC;
    padding: 8rem 0;
    position: relative;
}

.services-section h2 {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #E2E8F0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.07), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
    margin-bottom: 1.5rem;
    color: #2563EB;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

/* Advantages Section */
.advantages-section {
    background-color: white;
    padding: 8rem 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.advantage-card {
    padding: 0;
    background: linear-gradient(145deg, #f9fafb, #ffffff);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
    overflow: hidden;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.advantage-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.advantage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.advantage-card:hover .advantage-image img {
    transform: scale(1.05);
}

.advantage-card h3 {
    color: #0F172A;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.advantage-card p {
    padding: 0 1.5rem 1.5rem;
}

.advantage-card h3::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #2563EB;
    border-radius: 50%;
    margin-right: 0.75rem;
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 100%);
    padding: 8rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.statistics-section h2 {
    color: white;
}

.statistics-section h2::after {
    background-color: #3B82F6;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.statistic-item {
    text-align: center;
}

.statistic-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1.1;
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.statistic-text {
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #F8FAFC;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 300%;
}

.testimonial-item {
    flex: 1;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    margin: 0 1rem;
    transition: all 0.3s ease;
    border: 1px solid #E2E8F0;
}

.testimonial-text {
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    color: #334155;
}

.testimonial-text::before {
    content: "";
    font-size: 4rem;
    position: absolute;
    top: -2rem;
    left: -1rem;
    color: #E2E8F0;
    z-index: -1;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: #0F172A;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #64748B;
    font-size: 0.875rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.75rem;
}

.carousel-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #CBD5E1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: #94A3B8;
}

.carousel-control.active {
    background-color: #2563EB;
    transform: scale(1.2);
}

/* Contact Section */
.contact-section {
    background-color: white;
    padding: 8rem 0;
    position: relative;
}

.contact-section h2 {
    margin-bottom: 4rem;
}

.contact-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 1.5rem;
    color: #0F172A;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-map {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #E2E8F0;
}

.contact-map img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.contact-form {
    background-color: #F8FAFC;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #E2E8F0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    color: #1E293B;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3B82F6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.3rem;
    accent-color: #2563EB;
}

.checkbox-group label {
    font-size: 0.95rem;
    margin: 0;
    color: #475569;
}

.form-errors {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #B91C1C;
}

.form-errors ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.form-errors li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-error-message {
    color: #B91C1C;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
}

/* Footer */
.site-footer {
    background-color: #0F172A;
    color: #E2E8F0;
    padding: 5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo a {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-logo svg {
    margin-right: 0.6rem;
}

.footer-description {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #94A3B8;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: #94A3B8;
}

.footer-links h4,
.footer-legal h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-legal h4::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #3B82F6;
    bottom: -5px;
    left: 0;
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-legal a {
    color: #94A3B8;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: #3B82F6;
    transform: translateX(3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 0.9rem;
    color: #64748B;
}

/* Legal pages */
.legal-section {
    padding: 8rem 0;
    background-color: #F8FAFC;
}

.legal-section h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.legal-content {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #E2E8F0;
}

.legal-content h2 {
    font-size: 1.75rem;
    text-align: left;
    margin-bottom: 2rem;
    color: #0F172A;
}

.legal-content h2::after {
    left: 0;
    transform: none;
}

.legal-content h3 {
    font-size: 1.35rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #0F172A;
}

.legal-content p, .legal-content ul {
    margin-bottom: 1.5rem;
    color: #475569;
}

.legal-content ul {
    padding-left: 2rem;
    list-style: disc;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
}

.last-updated {
    margin-top: 3rem;
    font-style: italic;
    color: #64748B;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 55%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }

    section {
        padding: 5rem 0;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        z-index: 1000;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        display: none;
    }
    
    .main-nav li {
        margin: 0;
        width: 100%;
        padding: 0.75rem 0;
    }
    
    .main-nav a {
        display: block;
        width: 100%;
    }
    
    .hero-section {
        padding: 15rem 0 15rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }


    
    .about-content, .contact-content {
        flex-direction: column;
    }

    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .testimonial-carousel {
        padding: 1rem 0;
    }

    .contact-content {
        gap: 3rem;
    }
    
    .advantage-image {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .services-grid, .advantages-grid, .statistics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .site-footer {
        padding: 4rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .legal-content {
        padding: 2rem;
    }
} 