/* Skyline Rotorua Custom Styles */

/* =====================
   CSS Custom Properties (Variables)
   ===================== */
/* Define reusable color values and brand colors for consistency across the site */
:root {
    /* Bootstrap-compatible color scheme */
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    
    /* Custom Skyline brand colors */
    --skyline-blue: #1e3a8a;
    --skyline-green: #059669;
    --skyline-gold: #d97706;
}

/* =====================
   Global Base Styles
   ===================== */
/* Set default font family and text styling for entire site */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* =====================
   Navigation Bar Styles
   ===================== */
/* Main navigation bar - fixed to top with glass morphism effect */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* Glass effect */
}

/* Navbar state when page is scrolled - becomes more compact */
.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

/* Company logo and brand name styling */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Logo image hover effect */
.navbar-brand img {
    height: 45px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.navbar-brand:hover {
    color: var(--skyline-blue) !important;
}

/* Mobile menu toggle button */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none; /* Remove default focus outline */
}

/* Hamburger menu icon */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navigation menu container */
.navbar-nav {
    gap: 0.5rem;
}

/* Individual navigation links with modern pill-shaped design */
.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--dark-color) !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 25px; /* Pill shape */
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Nav link hover effects */
.navbar-nav .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color) !important;
    transform: translateY(-2px); /* Lift effect */
}

/* Active page styling with gradient background */
.navbar-nav .nav-link.active {
    background: linear-gradient(45deg, var(--primary-color), #4dabf7);
    color: white !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.navbar-nav .nav-link.active:hover {
    background: linear-gradient(45deg, var(--skyline-blue), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* =====================
   Hero Section Layouts
   ===================== */
/* Main homepage hero section with parallax background */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/rotorua-view.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
}

/* History page hero section */
.hero-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/skyline-history.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 60vh;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
}

/* Luge experience page hero section */
.luge-hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/luge-action.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 70vh;
    color: white;
    display: flex;
    align-items: center;
}

/* Booking page hero section with darker overlay for text readability */
.purchase-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/booking-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 50vh;
    color: white;
    display: flex;
    align-items: center;
}

/* =====================
   Booking Form Components
   ===================== */
/* Main booking form container with modern card design */
.booking-form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Form header with gradient background */
.booking-form-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4dabf7 100%);
    color: white;
    padding: 1.5rem;
    border: none;
}

/* Form content area */
.booking-form-card .card-body {
    padding: 2rem;
}

/* Individual form sections with visual separation */
.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Section headings with underline accent */
.section-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Enhanced form input styling with hover/focus effects */
.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-2px); /* Lift effect on focus */
}

/* Select dropdown styling */
.form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* =====================
   Ticket Selection Interface
   ===================== */
/* Ticket category containers with different styling per type */
.ticket-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid var(--primary-color); /* Accent border */
}

/* Special styling for family package */
.ticket-category.family-package {
    background: linear-gradient(135deg, #fff3cd 0%, #fef7e0 100%);
    border-left-color: var(--warning-color);
}

/* Individual ticket options with hover effects */
.ticket-option {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticket-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.ticket-option:last-child {
    margin-bottom: 0;
}

/* Ticket information text styling */
.ticket-info strong {
    color: var(--dark-color);
    font-size: 1.1rem;
}

/* Price display styling */
.ticket-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

/* Quantity selector layout */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Quantity adjustment buttons */
.quantity-selector .btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

/* Quantity input field */
.quantity-input {
    width: 60px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
}

/* =====================
   Order Summary Component
   ===================== */
/* Sticky order summary card */
.order-summary-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    top: 100px; /* Offset from top when sticky */
}

/* Summary header with success theme */
.order-summary-card .card-header {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    color: white;
    padding: 1.5rem;
    border: none;
}

.order-summary-card .card-body {
    padding: 1.5rem;
}

/* Empty cart state styling */
.empty-cart {
    padding: 2rem;
}

.empty-cart .bi {
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Total amount section */
.total-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

/* Contact information card */
.contact-info {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-info h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* =====================
   Form Validation Styles
   ===================== */
/* Visual feedback for form validation states */
.form-control:invalid {
    border-color: var(--danger-color);
}

.form-control:valid {
    border-color: var(--success-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* =====================
   Mobile-Responsive Form Design
   ===================== */
@media (max-width: 768px) {
    /* Adjust hero heights for mobile */
    .purchase-hero {
        height: 40vh;
        background-attachment: scroll; /* Disable parallax on mobile */
    }
    
    /* Reduce form padding on smaller screens */
    .booking-form-card .card-body {
        padding: 1.5rem;
    }
    
    /* Make order summary non-sticky on mobile */
    .order-summary-card {
        position: static !important;
        margin-top: 2rem;
    }
    
    /* Adjust ticket option layout for mobile */
    .ticket-option {
        padding: 1rem;
    }
    
    .ticket-option .row {
        text-align: center;
    }
    
    .ticket-option .col-md-6,
    .ticket-option .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Center quantity selectors on mobile */
    .quantity-selector {
        justify-content: center;
    }
}

/* =====================
   Animation Keyframes
   ===================== */
/* Hero text entrance animations */
.hero-section h1,
.hero-header h1,
.luge-hero h1 {
    animation: fadeInUp 1s ease-out;
}

.hero-section p,
.hero-header p,
.luge-hero p {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-section .btn,
.hero-header .btn,
.luge-hero .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Fade in from bottom animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   Reusable Card Components
   ===================== */
/* Feature cards with hover lift effects */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Track information cards */
.track-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Track card image zoom effect */
.track-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.track-card:hover .card-img-top {
    transform: scale(1.05);
}

/* =====================
   Pricing Display Cards
   ===================== */
/* Pricing cards with gradient backgrounds */
.price-card {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Glass overlay effect on pricing cards */
.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.price-card:hover {
    transform: translateY(-5px);
}

/* Pricing card buttons */
.price-card .btn {
    background-color: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.price-card .btn:hover {
    background-color: white;
    color: var(--success-color);
    transform: scale(1.05);
}

/* =====================
   Statistics Display Cards
   ===================== */
/* Statistical information cards with purple gradient */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Glass overlay for stat cards */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-3px);
}

/* =====================
   Timeline Component Styles
   ===================== */
/* Timeline items for history/milestones display */
.timeline-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 2rem;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

/* Timeline bullet points */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px white, 0 0 0 6px var(--primary-color);
    transition: all 0.3s ease;
}

/* Timeline hover effects */
.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item:hover::before {
    background-color: var(--skyline-gold);
    box-shadow: 0 0 0 4px white, 0 0 0 6px var(--skyline-gold);
}

/* =====================
   Image Gallery Styles
   ===================== */
/* Gallery image hover effects */
.gallery-img {
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* =====================
   Tips and Icon Elements
   ===================== */
/* Circular icons for tips sections */
.tips-icon {
    background: linear-gradient(135deg, var(--primary-color), #6610f2);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tips-icon:hover {
    transform: scale(1.1);
}

/* =====================
   Enhanced Button Styles
   ===================== */
/* Modern button styling with ripple effects */
.btn {
    border-radius: 50px; /* Pill-shaped buttons */
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Ripple effect animation */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Primary button styling */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #4dabf7);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Warning/call-to-action button styling */
.btn-warning {
    background: linear-gradient(45deg, var(--warning-color), #ffec8b);
    border: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    color: #333;
}

/* =====================
   Section Background Styles
   ===================== */
/* Call-to-action section backgrounds */
.cta-section {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    position: relative;
}

.mission-section {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
}

.safety-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* =====================
   Badge and Label Styles
   ===================== */
/* Modern badge styling */
.badge {
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================
   Footer Component
   ===================== */
/* Site footer with gradient background and accent border */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #343a40 100%);
    border-top: 3px solid var(--skyline-gold);
}

/* =====================
   Mobile Responsive Breakpoints
   ===================== */
/* Tablet and mobile adjustments */
@media (max-width: 768px) {
    /* Reduce hero section heights on mobile */
    .hero-section,
    .hero-header,
    .luge-hero {
        height: 60vh;
        background-attachment: scroll; /* Disable parallax on mobile */
    }
    
    /* Smaller display text on mobile */
    .display-4 {
        font-size: 2.5rem;
    }
    
    /* Adjust timeline spacing */
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-item::before {
        left: -6px;
        width: 11px;
        height: 11px;
    }
    
    /* Smaller buttons on mobile */
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    /* Smaller tip icons */
    .tips-icon {
        width: 60px;
        height: 60px;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    /* Further reduce hero heights */
    .hero-section,
    .hero-header,
    .luge-hero {
        height: 50vh;
    }
    
    /* Even smaller display text */
    .display-4 {
        font-size: 2rem;
    }
    
    /* Smaller navbar logo */
    .navbar-brand img {
        height: 40px;
    }
}

/* =====================
   Accessibility Features
   ===================== */
/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--skyline-gold);
    outline-offset: 2px;
}

/* =====================
   Loading and Transition Effects
   ===================== */
/* Fade-in animation class */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =====================
   Print Media Styles
   ===================== */
/* Optimize layout for printing */
@media print {
    /* Hide interactive elements when printing */
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    /* Remove background images and effects for print */
    .hero-section,
    .hero-header,
    .luge-hero {
        height: auto !important;
        background: none !important;
        color: black !important;
    }
}