/* Canadian Trip - Custom CSS */
/* Color Variables */
:root {
    --primary-color: #EA212E;
    --secondary-color: #FFFAF0;
    --dark-color: #2c3e50;
    --light-color: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --danger-color: #dc3545;
}

/* Typography */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-weight: 700; font-size: 2.5rem; }
h2 { font-weight: 600; font-size: 2rem; }
h3 { font-weight: 500; font-size: 1.75rem; }
h4 { font-weight: 400; font-size: 1.5rem; }
h5 { font-weight: 300; font-size: 1.25rem; }
h6 { font-weight: 300; font-size: 1rem; }

/* Custom Bootstrap Color Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
}
.btn-primary:hover {
    background-color: #c91e2a;
    border-color: #c91e2a;
    color: var(--light-color);
}

.bg-secondary { background-color: var(--secondary-color) !important; }
.text-secondary { color: var(--text-light) !important; }

/* Utility Classes */
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* Header Styles */
.top-bar {
    font-size: 0.9rem;
    background-color: var(--dark-color) !important;
}

.header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo img {
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-cta {
    margin-top: 2rem;
}

.hero-cta .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 10px 10px 0;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

/* Carousel Styles */
.carousel-item {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: center;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Alternating Section Backgrounds */
.section:nth-child(even) {
    background-color: var(--secondary-color);
}

.section:nth-child(odd) {
    background-color: var(--light-color);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Tour Package Cards */
.tour-card {
    position: relative;
    overflow: hidden;
}

.tour-card .card-img-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tour-price {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
}

.tour-duration {
    background-color: rgba(255,255,255,0.9);
    color: var(--text-dark);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
}

/* Icon Boxes */
.icon-box {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.icon-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.icon-box i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.icon-box h5 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.icon-box p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 0 15px;
}

.testimonial-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.testimonial-profession {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid var(--border-color);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(234, 33, 46, 0.25);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.parallax .container {
    position: relative;
    z-index: 2;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-section,
    .carousel-item {
        height: 50vh;
        min-height: 400px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .icon-box {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
.btn:focus,
.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text-dark);
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Additional Section Background */
.section:nth-child(2n) {
    background-color: #EAE6E6;
}

/* Top Bar and Navigation Link Colors */
.top-bar a {
    color: white !important;
    text-decoration: none;
}

.top-bar a:hover {
    color: #f8f9fa !important;
}

.navbar-nav .nav-link {
    color: white !important;
}

.navbar-nav .nav-link:hover {
    color: #f8f9fa !important;
}

/* Testimonials Section Spacing Adjustments */
#testimonials .section-title {
    margin-bottom: 1.5rem;
}

#testimonials .section-subtitle {
    margin-bottom: 2rem;
}

#testimonialsCarousel .carousel-inner {
    margin-bottom: 1rem;
}

#testimonialsCarousel .carousel-indicators {
    margin-bottom: 0;
    position: relative;
    bottom: auto;
    margin-top: 5px;
}

.testimonial-card {
    margin: 0 auto;
    padding: 1.5rem;
}

/* Pulsing Button Animation */
.pulse-button {
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
    background-color: #2b3f53 !important;
    border-color: #2b3f53 !important;
    box-shadow: 0 0 0 0 rgba(43, 63, 83, 0.7);
}

.pulse-button:hover {
    animation: none;
    transform: scale(1.05);
    background-color: #1e2d3a !important;
    border-color: #1e2d3a !important;
    box-shadow: 0 0 20px rgba(43, 63, 83, 0.6);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(43, 63, 83, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(43, 63, 83, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(43, 63, 83, 0);
    }
}
/* Global carousel indicators positioning */
.carousel-indicators {
    margin-top: -150px !important;
}