/*
Theme Name: Sahara Explore
Theme URI: https://sahara-explore.com
Author: Senior WP Developer
Description: Premium Travel Management System & Luxury Booking Engine powered by Elementor.
Version: 3.0.0
*/

/* ==========================================================================
   1. LUXURY DESIGN SYSTEM (CSS VARIABLES)
   ========================================================================== */
:root {
	/* Moroccan Luxury Color Palette */
	--color-brand-primary: #C17F59; /* Terracotta / Desert Sand */
	--color-brand-secondary: #2C3E50; /* Midnight Oasis Blue */
	--color-brand-accent: #D4AF37; /* Sahara Gold */
	
	--color-text-main: #333333;
	--color-text-muted: #777777;
	--color-text-light: #F9F9F9;
	
	--color-bg-base: #FAFAFA;
	--color-bg-card: #FFFFFF;
	--color-bg-dark: #1A1A1A;
	
	--color-success: #2E7D32;
	--color-warning: #F57C00;
	--color-error: #D32F2F;

	/* Fluid Typography Scale (Base 16px) */
	--font-family-headings: 'Playfair Display', serif; /* Elegant, Premium */
	--font-family-body: 'Inter', sans-serif; /* Clean, Readable */
	
	--text-xs: clamp(0.75rem, 0.7vw + 0.5rem, 0.875rem);
	--text-sm: clamp(0.875rem, 0.8vw + 0.6rem, 1rem);
	--text-base: clamp(1rem, 1vw + 0.75rem, 1.125rem);
	--text-lg: clamp(1.125rem, 1.2vw + 0.8rem, 1.25rem);
	--text-xl: clamp(1.25rem, 1.5vw + 1rem, 1.5rem);
	--text-2xl: clamp(1.5rem, 2vw + 1rem, 2rem);
	--text-3xl: clamp(2rem, 3vw + 1.2rem, 3rem);
	--text-4xl: clamp(2.5rem, 4vw + 1.5rem, 4.5rem);

	/* Spacing System */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 2rem;
	--space-lg: 4rem;
	--space-xl: 8rem;

	/* Shadows & Radii */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 16px;
	--radius-pill: 50px;
	
	--shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
	--shadow-md: 0 4px 12px rgba(0,0,0,0.08);
	--shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
	--shadow-hover: 0 20px 40px rgba(0,0,0,0.15);

	/* Transitions */
	--transition-fast: 0.2s ease-in-out;
	--transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. GLOBAL RESETS & TYPOGRAPHY
   ========================================================================== */
html {
	box-sizing: border-box;
	font-size: 16px;
	scroll-behavior: smooth;
}

*, *:before, *:after {
	box-sizing: inherit;
}

body {
	font-family: var(--font-family-body);
	color: var(--color-text-main);
	background-color: var(--color-bg-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-family-headings);
	color: var(--color-brand-secondary);
	line-height: 1.2;
	margin-bottom: var(--space-sm);
	font-weight: 700;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

a {
	color: var(--color-brand-primary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover {
	color: var(--color-brand-secondary);
}

/* ==========================================================================
   3. LUXURY UI COMPONENTS
   ========================================================================== */
/* Buttons */
.btn, .elementor-button {
	display: inline-block;
	font-family: var(--font-family-body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 14px 32px;
	border-radius: var(--radius-sm);
	transition: all var(--transition-smooth);
	cursor: pointer;
	border: none;
	text-align: center;
}

.btn-primary {
	background-color: var(--color-brand-primary);
	color: var(--color-text-light);
	box-shadow: var(--shadow-md);
}

.btn-primary:hover {
	background-color: var(--color-brand-secondary);
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
	color: var(--color-text-light);
}

.btn-outline {
	background-color: transparent;
	color: var(--color-brand-primary);
	border: 2px solid var(--color-brand-primary);
}

.btn-outline:hover {
	background-color: var(--color-brand-primary);
	color: var(--color-text-light);
}

/* Cards (Tour / Destination) */
.luxury-card {
	background: var(--color-bg-card);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-md);
	transition: all var(--transition-smooth);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.luxury-card:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-5px);
}

.luxury-card img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	transition: transform var(--transition-smooth);
}

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

/* Form Inputs */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #E0E0E0;
	border-radius: var(--radius-sm);
	font-family: var(--font-family-body);
	font-size: var(--text-base);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
	background-color: var(--color-bg-card);
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--color-brand-primary);
	box-shadow: 0 0 0 3px rgba(193, 127, 89, 0.1);
}

/* ==========================================================================
   4. MICRO-INTERACTIONS & UTILITIES
   ========================================================================== */
/* Image Zoom on Hover */
.hover-zoom {
	overflow: hidden;
}
.hover-zoom img {
	transition: transform var(--transition-smooth);
}
.hover-zoom:hover img {
	transform: scale(1.08);
}

/* Subtle Lift */
.hover-lift {
	transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.hover-lift:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-hover);
}

/* Text Reveal */
.reveal-text {
	position: relative;
	overflow: hidden;
}
.reveal-text::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
	transition: left 0.6s ease-in-out;
}
.reveal-text:hover::after {
	left: 100%;
}

/* ==========================================================================
   5. MOBILE UX & STICKY BARS
   ========================================================================== */
.mobile-sticky-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: var(--color-bg-card);
	box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
	padding: 12px 20px;
	z-index: 9999;
	align-items: center;
	justify-content: space-between;
}

@media (max-width: 768px) {
	.mobile-sticky-bar {
		display: flex;
	}
	
	/* Ensure body has padding so content isn't hidden behind sticky bar */
	body {
		padding-bottom: 70px;
	}
}

/* Floating WhatsApp Button */
.floating-whatsapp {
	position: fixed;
	bottom: 80px;
	right: 20px;
	background-color: #25D366;
	color: white;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	box-shadow: var(--shadow-lg);
	z-index: 9998;
	transition: transform var(--transition-fast);
}

.floating-whatsapp:hover {
	transform: scale(1.1);
	color: white;
}

@media (min-width: 769px) {
	.floating-whatsapp {
		bottom: 30px;
		right: 30px;
	}
}

/* ==========================================================================
   6. ACCESSIBILITY (WCAG AA)
   ========================================================================== */
/* Keyboard Focus Ring */
*:focus-visible {
	outline: 3px solid var(--color-brand-primary);
	outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}
