/* Cujabah Village - Professional Restaurant Modernization CSS */
/* Bootstrap 5 Enhancements with Professional Restaurant Branding */

:root {
    --primary-color: #6f42c1;
    --primary-dark: #5a32a3;
    --primary-light: #8e7cc3;
    --accent-gold: #ffd700;
    --accent-gold-light: #ffe55c;
    --white: #ffffff;
    --light-bg: #f9f8f6;
    --dark-bg: #1a1a1a;
    --text-primary: #2c3e50;
    --text-secondary: #555555;
    --text-light: #888888;
    --border-color: #e0e0e0;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
}

/* ============ GENERAL IMPROVEMENTS ============ */

body {
    background-color: var(--white);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    line-height: 1.85;
    font-size: 1.025rem;
}

.lead {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    line-height: 1.9;
    color: var(--text-secondary);
}

/* Link Styling */
a {
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* ============ BUTTONS ============ */

.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    text-decoration: none;
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Secondary Button */
.btn-secondary {
    background: var(--light-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

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

/* Gold Button */
.btn-gold {
    background: var(--accent-gold);
    color: var(--text-primary);
}

.btn-gold:hover {
    background: var(--accent-gold-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Button Sizes */
.btn-lg {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* ============ FORMS ============ */

.form-control, .form-select, textarea {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background-color: var(--light-bg);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.form-control:focus, .form-select:focus, textarea:focus {
    border-color: var(--accent-gold);
    background-color: var(--white);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.15);
    color: var(--text-primary);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-text {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-valid {
    border-color: var(--success);
}

.invalid-feedback, .valid-feedback {
    font-size: 0.875rem;
    display: block;
    margin-top: 0.3rem;
}

/* ============ CARDS & CONTAINERS ============ */

.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    font-weight: 600;
    padding: 1.25rem;
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ============ NAVIGATION BAR ============ */

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white) !important;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    color: var(--accent-gold) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold) !important;
    border-bottom-color: var(--accent-gold);
}

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

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
}

.dropdown-item {
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.dropdown-item:hover, .dropdown-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    transform: translateX(5px);
}

/* ============ FOOTER ============ */

footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    margin-top: 5rem;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h5 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-color);
    transform: scale(1.2);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.3rem 0;
}

.powered-by {
    color: var(--accent-gold);
    font-weight: 600;
}

/* ============ SECTIONS & SPACING ============ */

section {
    padding: 4rem 0;
}

section.alt-bg {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0ebe5 100%);
}

.container-fluid {
    padding-left: clamp(1rem, 5vw, 3rem);
    padding-right: clamp(1rem, 5vw, 3rem);
}

/* ============ HERO SECTIONS ============ */

.hero {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.95) 0%, rgba(90, 50, 163, 0.95) 100%);
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(111, 66, 193, 0.1), transparent);
    border-radius: 50%;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.hero-accent {
    color: var(--accent-gold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

.hero p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
}

/* ============ TEXT & DIVIDERS ============ */

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

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

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

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 0 auto 2rem;
    border-radius: 2px;
    animation: expandWidth 0.8s ease;
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============ ALERTS ============ */

.alert {
    border: none;
    border-radius: 10px;
    padding: 1.25rem;
    font-weight: 500;
    animation: slideDown 0.4s ease;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(34, 139, 34, 0.1) 100%);
    color: #155724;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(200, 30, 50, 0.1) 100%);
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(230, 170, 0, 0.1) 100%);
    color: #856404;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(17, 140, 160, 0.1) 100%);
    color: #0c5460;
    border-left: 4px solid var(--info);
}

/* ============ RESPONSIVE GRID ============ */

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

@media (max-width: 768px) {
    .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

/* ============ ANIMATIONS ============ */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Utility Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.6s ease-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* ============ RESPONSIVE DESIGN ============ */

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

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

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

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
    }

    section {
        padding: 2rem 0;
    }

    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-link {
        margin: 0.25rem 0;
        padding: 0.35rem 0.5rem !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

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

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p, .lead {
        font-size: 0.95rem;
    }

    section {
        padding: 1.5rem 0;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ============ ACCESSIBILITY ============ */

a:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.8rem;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

/* ============ LOADING STATES ============ */

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(111, 66, 193, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ TOOLTIPS & POPOVERS ============ */

.tooltip-inner {
    background: var(--primary-color);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font-weight: 500;
}

.popover {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: none;
}

.popover-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 12px 12px 0 0;
}

/* ============ ROOM CARDS STYLING ============ */

.room-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 16px;
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.room-card:nth-child(1) {
    animation-delay: 0.1s;
}

.room-card:nth-child(2) {
    animation-delay: 0.2s;
}

.room-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.room-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(111, 66, 193, 0.25) !important;
}

.room-card-header {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.room-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.room-card:hover .room-card-img {
    transform: scale(1.08);
}

.room-price-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--dark-bg);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.room-card:hover .room-price-badge {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.room-price-badge-premium {
    background: linear-gradient(135deg, #ff6b6b, #ff8e72);
    color: var(--white);
}

.room-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e72);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.room-card .card-body {
    padding: 1.8rem;
}

.room-card .card-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.room-features li {
    transition: all 0.2s ease;
}

.room-card:hover .room-features li {
    padding-left: 5px;
}

.room-features i {
    color: var(--accent-gold) !important;
}

.room-card .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.room-card .btn:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 16px rgba(111, 66, 193, 0.3);
    color: var(--white);
}

.room-card-premium {
    border: 2px solid var(--accent-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.03), rgba(255, 107, 107, 0.02));
}

.room-card-premium:hover {
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.25) !important;
}

/* ============ PRINT STYLES ============ */

@media print {
    .navbar, footer, .btn-close {
        display: none !important;
    }

    body {
        background: var(--white);
    }

    a {
        color: var(--primary-color);
    }
}

