/* 
 * Dunatlas - Luxury Tours Morocco
 * Custom CSS
 */

:root {
    /* Color Palette - Premium Light Beige Theme */
    --color-bg-dark: #f5f0e6;
    --color-bg-light: #ffffff;
    --color-primary: #c8895b; 
    --color-primary-hover: #a66a41;
    --color-text-main: #2c2a29;
    --color-text-muted: #7d756d;
    
    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    overflow-x: hidden;
}

/* Typography Classes */
.font-playfair {
    font-family: var(--font-serif);
}

.tracking-wider {
    letter-spacing: 0.1em;
}

.text-primary {
    color: var(--color-primary) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

/* General Layout Utils */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section-dark {
    background-color: var(--color-bg-dark);
}

.bg-texture {
    background-color: var(--color-bg-light);
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(245, 240, 230, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-family: var(--font-serif);
    color: var(--color-text-main) !important;
    letter-spacing: 1px;
}

.navbar-brand img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background-color: white;
    padding: 5px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.brand-dot {
    color: var(--color-primary);
}

.nav-link {
    color: var(--color-text-main);
    font-weight: 300;
    font-size: 0.95rem;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.2);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    font-size: 0.9rem;
}

.btn-outline-light:hover {
    background-color: var(--color-text-main);
    color: var(--color-bg-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-color: #0a0a0a;
    /* Normally you would have an image here. Using a sophisticated dark gradient for now */
    background: linear-gradient(rgba(245, 240, 230, 0.6), rgba(245, 240, 230, 0.9)), url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="%23fdfbf7"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--color-bg-dark) 100%);
}

.z-index-1 {
    z-index: 1;
}

/* Destinations */
.destination-card {
    transition: transform 0.4s ease;
}

.destination-card:hover {
    transform: translateY(-10px);
}

.card-img-wrapper {
    overflow: hidden;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    pointer-events: none;
}

.placeholder-img {
    transition: transform 0.6s ease;
}

.destination-card:hover .placeholder-img {
    transform: scale(1.05);
}

/* Activities */
.activity-icon {
    width: 60px;
    height: 60px;
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.2);
}

.activity-item:hover .activity-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Forms & Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control {
    border-color: rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-text-main);
    box-shadow: 0 0 0 0.25rem rgba(212, 163, 115, 0.25);
}

.form-floating > label {
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    background-color: var(--color-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-dark);
    transform: translateY(-3px);
}

.custom-link {
    position: relative;
    padding-bottom: 2px;
}

.custom-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.custom-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Animations */
.animate-fade-up {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animation-delay-1 {
    animation-delay: 0.2s;
}

.animation-delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
