/*
 * The Majesty Thalawathugoda - Main Stylesheet
 * Luxury Restaurant & Entertainment Venue
 * Developer: Ceylony Digital
 * Date: October 2024
 */

/* ========================================
   CSS Variables & Color Palette
======================================== */
:root {
    /* Primary Colors */
    --gold: #D4AF37;
    --gold-light: #FFD700;
    --gold-dark: #B8860B;

    /* Dark Colors */
    --black: #000000;
    --rich-black: #0D0D0D;
    --charcoal: #1a1a1a;
    --gray-dark: #2d2d2d;

    /* Light Colors */
    --white: #FFFFFF;
    --cream: #FFFDD0;
    --light-gray: #F8F8F8;

    /* Accent Colors */
    --bronze: #CD7F32;
    --copper: #B87333;

    /* Utility Colors */
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: 'Cinzel', serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;

    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.3);
}

/* ========================================
   Reset & Base Styles
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--charcoal);
    background-color: var(--white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Ensure body starts at top */
body.home-page {
    padding-top: 0 !important;
}

/* Ensure main content doesn't have extra spacing */
main {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--gold);
}

ul, ol {
    list-style: none;
}

/* ========================================
   Typography
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--rich-black);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

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

.text-center {
    text-align: center;
}

/* ========================================
   Layout & Grid
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding: var(--container-padding);
}

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

.section-dark {
    background-color: var(--rich-black);
    color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--white);
}

.section-dark p {
    color: var(--light-gray);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .subtitle {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    letter-spacing: 3px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.section-title p {
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    color: var(--gray-dark);
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-block;
    padding: 14px 35px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--rich-black);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    color: var(--rich-black);
}

.btn-gold:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--rich-black);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    border-color: var(--gold-light);
}

.btn-outline-gold:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-white {
    background: var(--white);
    color: var(--rich-black);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
    background: var(--gold);
    color: var(--rich-black);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-white:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   Preloader - DISABLED
======================================== */
#preloader {
    display: none !important;
    visibility: hidden !important;
}

/* ========================================
   Navigation - FIXED & IMPROVED
   Z-Index Hierarchy:
   - Preloader: 99999
   - Mobile Menu: 9999
   - Navbar: 9998
   - Floating Buttons: 999
======================================== */

/* Add padding to body to prevent content from hiding under fixed navbar */
/* Note: Home page hero should be full height, other pages need padding */
body:not(.home-page) {
    padding-top: 90px;
}

/* For home page, hero section handles the navbar overlap */
.hero {
    margin-top: 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    z-index: 9998;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
    background: rgba(13, 13, 13, 0.98);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-wrapper {
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr;
    align-items: center;
    gap: 20px;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (min-width: 1440px) {
    .nav-wrapper {
        grid-template-columns: 240px 1fr;
        gap: 40px;
    }
}

/* Logo - LEFT ALIGNED (TEXT ONLY) */
.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    transition: all 0.3s ease;
    text-decoration: none;
    height: 60px;
    grid-column: 1;
}

/* Logo Text - FIXED ALIGNMENT */
.logo-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1;
    justify-content: center;
}

.logo-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.logo-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 2.8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-title {
    font-size: 1.2rem;
}

.navbar.scrolled .logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 2.5px;
}

.nav-logo:hover .logo-title {
    color: var(--gold);
}

.nav-logo:hover .logo-subtitle {
    color: var(--gold-light);
}

/* Desktop Menu - CENTER ALIGNED */
.nav-menu {
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 20px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link i {
    font-size: 0.65rem;
    transition: transform 0.3s ease, color 0.3s ease;
    opacity: 0.9;
    margin-left: 2px;
}

/* Underline effect on hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

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

.nav-link:hover i {
    opacity: 1;
    color: var(--gold);
}

/* Dropdown - FIXED & IMPROVED */
.dropdown {
    position: relative;
}

.dropdown:hover .nav-link i {
    transform: rotate(180deg);
    color: var(--gold);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    min-width: 250px;
    padding: 8px 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    z-index: 10000;
    margin-top: -5px;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-transform: none;
    letter-spacing: 0.3px;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border-left-color: var(--gold);
    padding-left: 25px;
}


.btn-reserve {
    padding: 12px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-radius: 50px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    text-decoration: none;
    background: var(--gold);
    color: var(--rich-black);
    border: none;
}

.btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: var(--gold-light);
}

.btn-phone {
    color: var(--rich-black);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    background: var(--gold);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    letter-spacing: 0.5px;
}

.btn-phone i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-phone:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-phone:hover i {
    transform: scale(1.1);
}

/* Mobile Menu Toggle - HIDDEN ON DESKTOP */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 10001;
    transition: all 0.3s ease;
    border-radius: 6px;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-toggle:hover {
    background: rgba(212, 175, 55, 0.15);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 4px;
    background: var(--gold);
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.mobile-menu-toggle:hover span {
    background: var(--gold-light);
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.active {
    background: rgba(212, 175, 55, 0.2);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
}

/* ========================================
   Mobile Menu Overlay - FIXED & IMPROVED
======================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-content {
    padding: 80px 30px 30px;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
}

.mobile-menu-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
    touch-action: manipulation;
}

.mobile-menu-close i {
    pointer-events: none;
    display: block;
}

.mobile-menu-close:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--rich-black);
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
    background: var(--gold-dark);
}

/* Ensure close button is always clickable */
.mobile-menu-overlay.active .mobile-menu-close {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.mobile-logo {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px 0;
}

.mobile-nav-list {
    margin-bottom: 40px;
    list-style: none;
    padding: 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.mobile-nav-list > li > a {
    display: block;
    padding: 18px 15px;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-nav-list > li > a.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

.mobile-nav-list > li > a:hover {
    color: var(--gold);
    padding-left: 25px;
    background: rgba(212, 175, 55, 0.05);
}

.mobile-nav-list > li > a i {
    margin-right: 15px;
    width: 24px;
    color: var(--gold);
    text-align: center;
}

.mobile-submenu {
    padding-left: 40px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    list-style: none;
    background: rgba(0, 0, 0, 0.3);
}

.mobile-nav-list > li.submenu-open .mobile-submenu {
    max-height: 500px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-submenu li a:hover {
    color: var(--gold);
    padding-left: 20px;
}

.mobile-menu-cta {
    margin-bottom: 30px;
    padding-top: 20px;
}

.mobile-menu-cta .btn-block {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
}

.mobile-contact {
    text-align: center;
    margin-top: 15px;
}

.mobile-phone {
    display: inline-block;
    color: var(--white);
    font-size: 1.05rem;
    padding: 14px 28px;
    border: 2px solid var(--gold);
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-phone:hover {
    background: var(--gold);
    color: var(--rich-black);
}

.mobile-menu-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-menu-social a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-menu-social a:hover {
    background: var(--gold);
    color: var(--rich-black);
    transform: translateY(-3px);
}

/* ========================================
   Scroll to Top Button
======================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--rich-black);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-gold);
    z-index: 999;
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

/* ========================================
   WhatsApp Floating Button
======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: var(--white);
}

@keyframes whatsapp-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   Hero Section
======================================== */
.hero {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 650px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    filter: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Hero Slider Styles */
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    transform: scale(1.02);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.5));
    z-index: 0;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 10;
    max-width: 1000px;
    width: 90%;
    padding: 40px 20px;
}

.hero-logo {
    width: 160px;
    max-width: 200px;
    height: auto;
    margin: 0 auto 25px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    animation: fadeInDown 1s ease;
    display: block;
}

/* Hide broken logo image icons */
.hero-logo[src=""],
.hero-logo[src*="logo.png"]:not([src*=".svg"]) {
    display: none;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease 0.2s both;
    line-height: 1.2;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-bottom: 35px;
    color: var(--gold-light);
    animation: fadeInUp 1s ease 0.4s both;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
    margin-top: 10px;
}

.hero-cta .btn {
    padding: 15px 35px;
    font-size: 0.95rem;
    min-width: 180px;
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
    z-index: 15;
}

.scroll-indicator i {
    font-size: 1.8rem;
    color: var(--gold);
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

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

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

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


/* Hero Slider Dots */
.hero-slider-dots {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 15;
}

.hero-slider-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dots .dot:hover {
    background: rgba(212, 175, 55, 0.6);
    transform: scale(1.2);
}

.hero-slider-dots .dot.active {
    background: var(--gold);
    border-color: var(--gold);
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   Page Header (Sub-pages)
======================================== */
.page-header {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -90px;
    padding-top: 90px;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.page-header-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 1;
}

.page-header-content h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--gold-light);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb i {
    color: var(--gold);
    font-size: 0.7rem;
}

/* ========================================
   Cards & Features
======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
    display: block;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

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

/* Image loading state */
.card-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.card-img-wrapper {
    overflow: hidden;
    position: relative;
    background: var(--light-gray);
}

.price-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: var(--rich-black);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-text {
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--rich-black);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.card:hover .card-icon {
    transform: rotateY(360deg);
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: var(--transition-smooth);
    border: 2px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    min-height: 400px;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--rich-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--white);
    font-family: 'Cinzel', serif;
}

.feature-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: auto;
    flex-grow: 1;
}

.feature-card .btn {
    margin-top: 25px;
    align-self: center;
}

/* Feature Cards - Light Section Variant */
.why-choose-us .feature-card,
.our-values .feature-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    min-height: 320px;
}

.why-choose-us .feature-card:hover,
.our-values .feature-card:hover {
    background: var(--white);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.why-choose-us .feature-title,
.our-values .feature-title {
    color: var(--rich-black);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.why-choose-us .feature-text,
.our-values .feature-text {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Carousel / Swiper
======================================== */
.swiper {
    width: 100%;
    padding-bottom: 60px;
    position: relative;
}

.swiper-slide {
    height: auto;
    display: flex;
}

.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--gold);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 30px;
    border-radius: 6px;
    background: var(--gold);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--gold);
    width: 55px;
    height: 55px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
    font-weight: 700;
}

.swiper-button-next {
    right: -20px;
}

.swiper-button-prev {
    left: -20px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--gold);
    color: var(--rich-black);
    border-color: var(--gold);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}


/* ========================================
   Forms
======================================== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--rich-black);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.btn-submit {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--rich-black);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-gold);
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

/* ========================================
   Location Section & Map
======================================== */
.location-section {
    position: relative;
    overflow: hidden;
}

.location-info {
    padding: 0;
}

.location-info h3 {
    color: var(--rich-black);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 30px;
}

.location-info h5 {
    color: var(--rich-black);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.location-info p {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 5px;
}

.location-info a {
    color: var(--gray-dark);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.location-info a:hover {
    color: var(--gold);
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.95), rgba(26, 26, 26, 0.9));
    padding: 80px 0;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern-bg.jpg') center/cover;
    opacity: 0.03;
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-section .text-gold {
    color: var(--gold);
    display: inline-block;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--light-gray);
    line-height: 1.8;
    margin: 0 auto 40px;
    max-width: 700px;
}

.cta-section .btn {
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    min-width: 220px;
    transition: all 0.3s ease;
}

.cta-section .btn i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.cta-section .btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
}

.cta-section .btn-white {
    background: var(--white);
    color: var(--rich-black);
    border: 2px solid var(--white);
}

.cta-section .btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--rich-black);
    color: var(--white);
}

.footer-top {
    padding: 80px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    align-items: flex-start;
}

.footer-logo .logo-title {
    font-size: 1.8rem;
    color: var(--gold);
}

.footer-logo .logo-subtitle {
    font-size: 0.8rem;
    color: var(--white);
}

.footer-desc {
    color: var(--light-gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    background: var(--gold);
    color: var(--rich-black);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.footer-title {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gold);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light-gray);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-contact li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--light-gray);
    line-height: 1.6;
}

.footer-contact li i {
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 3px;
    min-width: 20px;
}

.footer-contact a {
    color: var(--light-gray);
    transition: var(--transition-smooth);
    display: block;
}

.footer-contact a:hover {
    color: var(--gold);
}

.contact-phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-phones a {
    padding: 2px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 30px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    color: var(--light-gray);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--gold);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--gold-light);
}

/* ========================================
   Utility Classes
======================================== */
.text-white {
    color: var(--white) !important;
}

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

.bg-light {
    background-color: var(--light-gray);
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-60 {
    margin-top: 60px;
}

.py-100 {
    padding: 100px 0;
}

.text-justify {
    text-align: justify;
}

/* Image hover effect */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: var(--transition-slow);
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* ========================================
   Touch-Friendly Mobile Improvements
======================================== */

/* Smooth scrolling for all devices */
html {
    -webkit-overflow-scrolling: touch;
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Touch-friendly link and button spacing */
a, button, .btn {
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    touch-action: manipulation;
}

/* Prevent text selection on buttons */
.btn, button, .mobile-menu-toggle {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Better image rendering on mobile */
img {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Smooth font rendering on mobile */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent zoom on input focus (iOS) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    font-size: 16px;
}

/* Touch-friendly navigation items */
.nav-link,
.mobile-nav-list a,
.dropdown-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Larger touch targets for mobile */
@media (max-width: 768px) {
    /* Minimum 44x44px touch targets */
    .btn,
    .mobile-menu-toggle,
    .social-link,
    .footer-social a,
    .mobile-menu-social a {
        min-width: 44px;
        min-height: 44px;
    }

    /* Better spacing for touch */
    .nav-link,
    .mobile-nav-list > li > a {
        min-height: 48px;
        padding: 14px 15px;
    }

    /* Touch-friendly forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
        font-size: 16px;
    }

    /* Touch-friendly checkboxes/radio */
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
    }
}

/* Prevent horizontal scroll */
body, html {
    overflow-x: hidden;
    max-width: 100%;
}

/* Fix for iOS Safari bottom bar */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Orientation change handling */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: 100vh;
        height: 100vh;
        max-height: none;
        padding: 90px 0 30px;
    }

    .hero-content {
        padding: 15px 20px;
    }

    .hero-logo {
        width: 100px;
        margin-bottom: 15px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .hero-tagline {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .hero-cta {
        gap: 10px;
    }

    .hero-cta .btn {
        padding: 10px 25px;
        font-size: 0.75rem;
        min-width: 140px;
    }

    .scroll-indicator {
        bottom: 15px;
    }

    .scroll-indicator i {
        font-size: 1.2rem;
    }

    .hero-slider-dots {
        bottom: 25px;
        gap: 6px;
    }

    .hero-slider-dots .dot {
        width: 8px;
        height: 8px;
    }

    .hero-slider-dots .dot.active {
        width: 20px;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Reduce animation complexity on mobile */
    .card:hover {
        transform: translateY(-5px);
    }

    .feature-card:hover {
        transform: translateY(-3px);
    }

    /* Faster transitions on mobile */
    * {
        transition-duration: 0.2s !important;
    }

    /* Reduce shadow complexity */
    .btn-gold,
    .btn-submit {
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    }

    .btn-gold:hover,
    .btn-submit:hover {
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-slider-dots,
    .scroll-indicator {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-outline-gold {
        border-width: 3px;
    }

    .nav-link::after {
        height: 3px;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Can add dark mode styles here */
}
