/**
 * Ovilon Travels™ - Luxury Travel Stylesheet
 * 
 * This file contains all styling for the Ovilon Travels™ luxury travel website.
 * The design follows a sophisticated color palette and typography scheme that
 * reflects the brand's premium positioning.
 * 
 * Table of Contents:
 * 1. Variables & Base Styles
 * 2. Typography
 * 3. Layout & Structure
 * 4. Navigation
 * 5. Hero Section
 * 6. Cards & Packages
 * 7. Forms & Buttons
 * 8. Testimonials
 * 9. Footer
 * 10. Animations & Effects
 * 11. Utility Classes
 */

@font-face {
  font-family: 'Coquette';
  src: url('/assets/fonts/Coquette-Regular2.woff2') format('woff2'),
       url('/assets/fonts/Coquette-Regular2.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ==========================================================================
   1. Variables & Base Styles
   ========================================================================== */

:root {
    /* Luxury Brand Color Palette */
    --primary-color: #002b49;       /* Deep navy blue - primary brand color */
    --luxury-accent: #7c6a4e;       /* Warm bronze - secondary accent */
    --fresh-balance: #c3b9a6;       /* Soft beige - for balance */
    --soft-neutral: #ffffff;        /* Pure white */
    --text-base: #1B1B1B;           /* Dark gray for text */
    --vibrant-accent: #E3B97F;      /* Gold accent for highlights */
    
    /* Additional Luxury Colors */
    --dark-charcoal: #2a2a2a;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    
    /* Typography */
    --font-primary: 'Coquette', 'Playfair Display', serif;
    --font-secondary: 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-max-width: 1320px;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fade: opacity 0.15s linear;
    --transition-collapse: height 0.35s ease;
}

/* Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-base);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.75rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

.secondary-font {
    font-family: var(--font-secondary);
}

.display-1 { font-size: 5rem; }
.display-2 { font-size: 4.5rem; }
.display-3 { font-size: 4rem; }
.display-4 { font-size: 3.5rem; }

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

.text-primary { color: var(--primary-color) !important; }
.text-luxury { color: var(--luxury-accent); }
.text-fresh { color: var(--fresh-balance); }
.text-vibrant { color: var(--vibrant-accent); }

/* ==========================================================================
   3. Layout & Structure
   ========================================================================== */

.container {
    max-width: var(--container-max-width);
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--vibrant-accent);
    bottom: -10px;
    left: 0;
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */

.navbar {
    background-color: var(--primary-color) !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transition: var(--transition-base);
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition-base);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition-base);
    position: relative;
}

.nav-link:hover, 
.nav-link:focus {
    color: var(--vibrant-accent) !important;
}

.nav-link.active {
    color: var(--vibrant-accent) !important;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: var(--vibrant-accent);
    bottom: 0;
    left: 25%;
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(rgba(0, 43, 73, 0.7), rgba(0, 43, 73, 0.7)), url('/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   6. Cards & Packages
   ========================================================================== */

.package-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: var(--shadow);
    height: 100%;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.package-card .card-img-top {
    transition: transform 0.5s ease;
}

.package-card:hover .card-img-top {
    transform: scale(1.05);
}

.package-card .card-footer {
    background-color: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card {
    background-color: var(--soft-neutral);
    border-left: 4px solid var(--vibrant-accent);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

/* ==========================================================================
   7. Forms & Buttons
   ========================================================================== */

.btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #001a2d;
    border-color: #001a2d;
}

.btn-luxury {
    background-color: var(--luxury-accent);
    border-color: var(--luxury-accent);
    color: white;
}

.btn-luxury:hover {
    background-color: #6a5b43;
    border-color: #6a5b43;
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.form-control:focus {
    border-color: var(--luxury-accent);
    box-shadow: 0 0 0 0.25rem rgba(124, 106, 78, 0.25);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(124, 106, 78, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(124, 106, 78, 0.25);
    border-color: var(--luxury-accent);
}

/* ==========================================================================
   8. Testimonials
   ========================================================================== */

.testimonial-card {
    padding: 2rem;
    border-radius: 0.5rem;
}

.testimonial-card .bi-star-fill {
    margin-right: 0.25rem;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer a {
    color: var(--fresh-balance);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer a:hover {
    color: var(--vibrant-accent);
    text-decoration: none;
}

.footer-logo {
    max-height: 80px;
    margin-bottom: 1.5rem;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* ==========================================================================
   10. Animations & Effects
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ==========================================================================
   11. Utility Classes
   ========================================================================== */

.bg-primary { background-color: var(--primary-color) !important; }
.bg-luxury { background-color: var(--luxury-accent); }
.bg-fresh { background-color: var(--fresh-balance); }
.bg-vibrant { background-color: var(--vibrant-accent); }

.rounded-xl { border-radius: 1rem; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.feature-icon {
    font-size: 2.5rem;
    color: var(--luxury-accent);
    margin-bottom: 1rem;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--vibrant-accent);
    margin-right: 10px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 40px;
    }
    
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
    
    .hero-section {
        min-height: 70vh;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .display-1 { font-size: 3.5rem; }
    .display-2 { font-size: 3rem; }
    .display-3 { font-size: 2.5rem; }
    .display-4 { font-size: 2rem; }
}

/**/
/* Add this to ensure consistent image ratios */
.package-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

/* Secure form styling */
#travelInquiryForm {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
}

#travelInquiryForm .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

#travelInquiryForm .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

#travelInquiryForm .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer logo */
.footer-logo {
    max-height: 40px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

/* Cookie Consent Styles */
.cookie-consent-banner {
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    animation: slideUp 0.5s ease-out;
}

.cookie-consent-banner a {
    text-decoration: underline;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Cookie Settings Modal */
#cookieSettingsModal .modal-content {
    border-radius: 10px;
}

#cookieSettingsModal .form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    margin-right: 10px;
}

#cookieSettingsModal .form-switch .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}