/* IFP Canada Inc. - Modern Design System */

:root {
    /* Colors */
    --primary-blue: #002D72;
    /* Deep Navy Blue */
    --primary-red: #D80621;
    /* Vibrant Red similar to flag */
    --primary-red-hover: #b0051b;
    --dark-bg: #0b0f19;
    --light-bg: #f4f6f9;
    --white: #ffffff;
    --text-main: #1a1a1a;
    --text-light: #555555;
    --border-color: #e0e0e0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-red);
    border-radius: 2px;
}

/* Header */
.site-header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Adjust based on actual logo */
    object-fit: contain;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-red);
}

.btn-contact {
    padding: 8px 20px;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    color: var(--primary-blue) !important;
    font-weight: 600;
}

.btn-contact:hover {
    background: var(--primary-blue);
    color: var(--white) !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    /* Large hero */
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/images/canada-mountains.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient overlay for readability */
    background: linear-gradient(135deg, rgba(0, 45, 114, 0.6) 0%, rgba(216, 6, 33, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content .highlight {
    color: var(--primary-red);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    border-color: var(--primary-red-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.btn-small:hover {
    filter: brightness(1.2);
}


/* Services Preview */
.services-preview {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Destinations Section */
.destinations-section {
    background-color: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header.centered-header {
    flex-direction: column;
    text-align: center;
}

.destinations-grid {
    display: flex;
    flex-wrap: wrap;
    /* Wrap to next line */
    justify-content: center;
    /* Center align */
    gap: 20px;
}

.destination-card {
    min-width: 150px;
    height: 150px;
    background-color: var(--light-bg);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.destination-card:hover {
    background-color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.destination-card h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.destination-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

/* Testimonials */
.testimonials-section {
    background-color: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: rgba(0, 45, 114, 0.1);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.quote {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.author-info strong {
    display: block;
    color: var(--primary-blue);
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff4d4d 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.cta-section .btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

/* Footer */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-block h3 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-block h4 {
    margin-bottom: 20px;
    color: var(--primary-red);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-block p {
    color: #a0a0a0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-block ul li {
    margin-bottom: 10px;
}

.footer-block ul li a {
    color: #a0a0a0;
}

.footer-block ul li a:hover {
    color: var(--primary-red);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 0.9rem;
}

.social-links a:hover {
    background-color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .header-container {
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        /* Hidden */
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .main-nav a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .btn-contact {
        text-align: center;
        margin-top: 10px;
        background-color: var(--primary-blue);
        color: var(--white) !important;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Mobile Fix */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Ensure Contact Info is ABOVE Form */
    .contact-info {
        order: -1;
    }
}

/* Custom Dark Popup */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.custom-modal.active .modal-content {
    transform: translateY(0);
}

.modal-content h3 {
    margin-bottom: 15px;
    color: var(--white);
}

.modal-content p {
    margin-bottom: 25px;
    color: #ccc;
}

.modal-close-btn {
    background-color: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.modal-close-btn:hover {
    background-color: var(--primary-red-hover);
}