/* ========================================
   Rees Consult - Custom CSS
   ======================================== */

/* CSS Variables - Design System */
:root {
    /* Primary Colors */
    --primary: #F8A706;
    --primary-dark: #d68a05;
    --primary-light: #fbb938;

    /* Secondary Colors */
    --secondary: #07294D;
    --secondary-dark: #051d35;
    --secondary-light: #0a3a66;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* ========================================
   Global Styles
   ======================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

/* Ensure white headers in dark containers */
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6,
.page-header h1 {
    color: white !important;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* ========================================
   Utility Classes
   ======================================== */

/* Background Colors */
.bg-primary {
    background-color: var(--primary) !important;
}

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

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

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

/* Text Colors */
.text-primary {
    color: var(--primary) !important;
}

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

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

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

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--gray-900);
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

/* Badges */
.badge {
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
}

/* ========================================
   Component Styles
   ======================================== */

/* Navbar */
.navbar {
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--radius-md);
    border-color: var(--gray-300);
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 91, 186, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

/* Alerts */
.alert {
    border-radius: var(--radius-md);
    border: none;
}

/* ========================================
   Animation Classes
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ========================================
   Responsive Utilities
   ======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* ========================================
   Custom Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-md);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ========================================
   Homepage Specific Styles
   ======================================== */

/* Top Bar */
.top-bar {
    background-color: #0a1e42;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--secondary);
}

/* Main Navigation */
.main-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.main-nav .navbar-brand img {
    height: 70px;
}

.main-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    transition: color 0.3s;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--secondary);
}

.main-nav .btn-book {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.main-nav .btn-book:hover {
    background-color: var(--primary-dark);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1600') center/cover;
    display: flex;
    align-items: center;
}

.hero-content {
    color: white;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    /* Ensure white color */
}

.hero-content h1 .highlight {
    color: var(--primary);
    /* Use primary orange for highlight */
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.hero-content ul li {
    padding: 0.5rem 0;
    font-size: 1rem;
}

.hero-content ul li:before {
    content: "- ";
    color: var(--secondary);
    font-weight: bold;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    margin-right: 1rem;
    border-radius: 5px;
}

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

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

.btn-learn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Contact Form Sidebar */
.contact-sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.contact-header {
    background-color: var(--secondary);
    color: white;
    padding: 2rem;
    text-align: center;
}

.contact-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white !important;
    /* Force white color in sidebar header */
}

.contact-header p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-form {
    padding: 2rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid #ddd;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.contact-form textarea {
    min-height: 100px;
}

.contact-form .btn-submit {
    background-color: var(--primary);
    color: white;
    width: 100%;
    padding: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
}

.contact-form .btn-submit:hover {
    background-color: var(--primary-dark);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-nav.left {
    left: 20px;
}

.carousel-nav.right {
    right: 20px;
}

.carousel-nav button {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-nav button:hover {
    background: white;
    color: var(--primary);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--secondary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s;
}

.scroll-top:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
}