/* ==========================================
   HOTEL DEVANG — CONTACT PAGE
   Redesigned UI | Brand-matched
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --crimson: #880000;
    --crimson-dark: #5c0000;
    --crimson-mid: #a00000;
    --crimson-light: #b22222;
    --gold: #caa035;
    --gold-light: #ffd700;
    --gold-pale: rgba(202, 160, 53, 0.12);
    --gold-border: rgba(202, 160, 53, 0.35);
    --ivory: #fdf8f1;
    --ivory-dark: #f5ede0;
    --white: #ffffff;
    --text-dark: #2a1a1a;
    --text-mid: #5c4040;
    --text-muted: #8a7070;
    --border: #e8ddd5;
    --shadow-sm: 0 2px 12px rgba(136, 0, 0, 0.07);
    --shadow-md: 0 8px 30px rgba(136, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(136, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

/* ── Reset ──────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-margin-top: 90px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--ivory);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* ── Preloader ──────────────────────────── */
#preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#preloader img {
    width: 200px;
    height: auto;
}

/* ── Scroll progress ────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--crimson), var(--gold));
    z-index: 10000;
    transition: width 0.2s ease-out;
}

/* ══════════════════════════════════════════
   NAVBAR (identical to brand system)
════════════════════════════════════════════ */
header {
    background: #880000;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: top 0.4s ease-in-out;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-left: 0;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow: visible;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
    background: none !important;
}

.nav-links a:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

.nav-links a::before,
.nav-links a::after {
    content: none !important;
    background: none !important;
}

.nav-links a.active {
    color: #ffd700 !important;
    border: 2px solid #caa035;
    background: transparent !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(202, 160, 53, 0.6);
    animation: goldPulse 3s infinite ease-in-out;
}

.nav-links a.active:hover {
    background: rgba(202, 160, 53, 0.1) !important;
    transform: scale(1.05);
}

@keyframes goldPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(202, 160, 53, 0.6);
    }

    50% {
        box-shadow: 0 0 20px rgba(202, 160, 53, 0.9);
    }
}

.menu-toggle {
    width: 34px;
    height: 26px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffd700;
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(0.77, 0, 0.18, 1);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 11px;
    width: 70%;
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}

.mobile-nav-header,
.close-menu {
    display: none;
}

.brand span {
    display: none;
}

/* ══════════════════════════════════════════
   PAGE HERO BANNER
════════════════════════════════════════════ */
.contact-hero {
    background: linear-gradient(165deg, rgba(92, 0, 0, 0.7) 0%, rgba(20, 0, 0, 0.80) 100%),
        url('../Photos/Nearby_attractions/cover.avif') center/cover no-repeat;
    padding: 110px 2rem 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(202, 160, 53, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--ivory);
    clip-path: ellipse(65% 100% at 50% 100%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(202, 160, 53, 0.2);
    border: 1px solid rgba(202, 160, 53, 0.5);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.6rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.contact-hero p {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin: 0 auto 1.4rem;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 16px;
    border-radius: 50px;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.85rem;
}

.breadcrumb a:hover {
    color: white;
}

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

.breadcrumb span {
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 600;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

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

/* ══════════════════════════════════════════
   QUICK-REACH CHIPS (below hero)
════════════════════════════════════════════ */
.quick-reach {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 2rem;
}

.quick-reach-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.reach-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ivory-dark);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.reach-chip i {
    color: var(--gold);
    font-size: 0.9rem;
}

.reach-chip:hover {
    border-color: var(--gold);
    background: var(--gold-pale);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    color: var(--crimson);
}

/* ══════════════════════════════════════════
   MAIN CONTACT SECTION
════════════════════════════════════════════ */
.contact-section {
    padding: 4.5rem 0 5rem;
    background: var(--ivory);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* section label/heading reuse */
.section-label {
    text-align: center;
    margin-bottom: 0.6rem;
}

.section-label span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-pale);
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--crimson);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* ── Two-col layout ─────────────────────── */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* ── Info card ──────────────────────────── */
.contact-info {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.info-card-header {
    background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
    padding: 1.8rem 2.2rem;
    position: relative;
    overflow: hidden;
}

.info-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(202, 160, 53, 0.2) 0%, transparent 60%);
}

.info-card-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.info-card-header h2 i {
    color: var(--gold-light);
    font-size: 1.2rem;
}

.info-items {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* individual item row */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.3rem;
    background: var(--ivory-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.contact-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--crimson), var(--crimson-mid));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    box-shadow: 0 3px 10px rgba(136, 0, 0, 0.22);
}

.contact-details h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--crimson);
    margin-bottom: 0.3rem;
}

.contact-details p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin-bottom: 0;
}

.contact-details a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-details a:hover {
    color: var(--crimson);
}

/* Social row */
.social-row {
    display: flex;
    gap: 0.7rem;
    padding: 0 2rem 2rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn.wa {
    background: #25D366;
    color: white;
}

.social-btn.fb {
    background: #1877F2;
    color: white;
}

.social-btn.ig {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

/* ── Map card ───────────────────────────── */
.map-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.map-card-header {
    background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
    padding: 1.8rem 2.2rem;
    position: relative;
    overflow: hidden;
}

.map-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(202, 160, 53, 0.2) 0%, transparent 60%);
}

.map-card-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.map-card-header h2 i {
    color: var(--gold-light);
    font-size: 1.2rem;
}

.map-frame {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
}

/* ══════════════════════════════════════════
   360° VIRTUAL TOUR SECTION
════════════════════════════════════════════ */
.full-map-section {
    background: var(--white);
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.full-map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.full-map-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.full-map-header .section-label {
    margin-bottom: 0.7rem;
}

.full-map-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--crimson);
}

.tour-frame-wrap {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
}

/* Crimson top bar accent */
.tour-frame-wrap::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--crimson), var(--gold), var(--crimson));
}

.full-map-frame {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* ══════════════════════════════════════════
   CTA STRIP
════════════════════════════════════════════ */
.cta-section {
    background: linear-gradient(135deg, var(--crimson-dark) 0%, var(--crimson) 55%, var(--gold) 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.8rem;
    line-height: 1.15;
}

.cta-content p {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    font-family: 'Jost', sans-serif;
    font-size: 0.97rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-3px);
}

/* Primary — white bg */
.cta-button.primary {
    background: var(--white);
    color: var(--crimson);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.cta-button.primary:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Secondary — outline */
.cta-button.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* ══════════════════════════════════════════
   FOOTER (unchanged)
════════════════════════════════════════════ */
footer {
    background: var(--crimson);
    padding: 1.5rem 0 0;
}

.footer-bottom {
    text-align: center;
    padding: 25px 15px;
    background: #8b1c10;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.4px;
    color: #f1f1f1;
}

.footer-tagline {
    font-size: 17px;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 8px;
    color: #ffd7a0;
}

.footer-text span {
    font-weight: 600;
    color: #fff;
}

.footer-text a {
    color: gold;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-text a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* ══════════════════════════════════════════
   CHATBOT
════════════════════════════════════════════ */
.chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-height: 520px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    z-index: 9998;
    overflow: hidden;
    display: none;
    flex-direction: column;
    border: 1.5px solid var(--border);
}

.chat-container.show {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-icons {
    display: flex;
    gap: 14px;
}

.contact-icons a {
    color: white;
    font-size: 18px;
    transition: opacity 0.2s;
}

.contact-icons a:hover {
    opacity: 0.8;
}

.chat-header button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.chat-header button:hover {
    background: rgba(255, 255, 255, 0.35);
}

.chat-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 280px;
    background: #f9f5f0;
}

.bot-message {
    background: white;
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 4px 16px 16px 16px;
    font-size: 0.88rem;
    color: var(--text-dark);
    max-width: 85%;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.user-message {
    background: linear-gradient(135deg, var(--crimson), #a00000);
    color: white;
    padding: 10px 14px;
    border-radius: 16px 4px 16px 16px;
    font-size: 0.88rem;
    max-width: 85%;
    align-self: flex-end;
    line-height: 1.5;
}

.chat-input {
    display: flex;
    padding: 12px;
    gap: 8px;
    border-top: 1px solid var(--border);
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.88rem;
    font-family: 'Jost', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(202, 160, 53, 0.15);
}

.chat-input button {
    background: var(--crimson);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.chat-input button:hover {
    background: var(--crimson-dark);
    transform: scale(1.04);
}

.chat-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--gold), #ffd700);
    color: var(--crimson);
    border: none;
    border-radius: 50%;
    width: 62px;
    height: 62px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 8px 28px rgba(202, 160, 53, 0.45);
    transition: transform 0.3s, box-shadow 0.3s;
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 35px rgba(202, 160, 53, 0.6);
}

/* ── Back to Top ──────────────────────── */
.back-to-top {
    position: fixed;
    left: 30px;
    top: -80px;
    width: 46px;
    height: 46px;
    background: var(--white);
    border: 2px solid var(--gold);
    color: var(--crimson);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    z-index: 999;
    box-shadow: var(--shadow-sm);
    transition: top 1.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, color 0.2s;
}

.back-to-top.show {
    top: calc(100vh - 80px);
}

.back-to-top:hover {
    background: var(--crimson);
    color: white;
    border-color: var(--crimson);
}

/* ══════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .brand img {
        height: 48px;
        border-radius: 50%;
    }

    .brand span {
        display: inline-block;
        font-size: 1.4rem;
        font-weight: 600;
        color: #fff;
        letter-spacing: 0.5px;
    }

    nav {
        padding: 0 1rem;
        justify-content: space-between;
    }

    .logo {
        margin-left: 0;
        font-size: 1.4rem;
        flex-shrink: 0;
    }

    .logo img {
        height: 35px;
        margin-right: 8px;
    }

    .nav-links {
        gap: 0.1rem;
        overflow-x: auto !important;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 0.5rem;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }




    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .chat-container {
        width: 330px;
        right: 20px;
        bottom: 95px;
        max-height: 480px;
    }

    .chat-messages {
        height: 260px;
    }

    .chat-toggle {
        width: 60px;
        height: 60px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001; /* Lower than nav-links (1050) when active */
    }

    body.menu-open .menu-toggle {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -120%;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(160deg, #8b0000, #5c0000);
        flex-direction: column;
        padding: 2.5rem 2rem;
        transition: left 0.45s cubic-bezier(0.77, 0, 0.18, 1);
        z-index: 1050;
        overflow-y: auto;
        gap: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 3rem;
    }

    .mobile-nav-header img {
        height: 50px;
        border-radius: 50%;
    }

    .close-menu {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
    }

    .nav-links li {
        list-style: none;
        margin-bottom: 1.4rem;
        opacity: 0;
        transform: translateX(-30px);
        animation: slideFade 0.5s ease forwards;
        margin-top: -5px;
    }

    .nav-links.active li:nth-child(2) {
        animation-delay: 0.10s;
    }

    .nav-links.active li:nth-child(3) {
        animation-delay: 0.15s;
    }

    .nav-links.active li:nth-child(4) {
        animation-delay: 0.20s;
    }

    .nav-links.active li:nth-child(5) {
        animation-delay: 0.25s;
    }

    .nav-links.active li:nth-child(6) {
        animation-delay: 0.30s;
    }

    .nav-links.active li:nth-child(7) {
        animation-delay: 0.35s;
    }

    .nav-links.active li:nth-child(8) {
        animation-delay: 0.40s;
    }

    .nav-links.active li:nth-child(9) {
        animation-delay: 0.45s;
    }

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

    .nav-links a {
        font-size: 1.25rem;
        color: #fff;
        font-weight: 500;
        display: inline-block;
        position: relative;
        padding: 0.4rem 0;
        background: none !important;
    }

    .nav-links a::after {
        content: "";
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0%;
        height: 2px;
        background: gold;
        transition: width 0.3s ease;
    }

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

    .contact-hero h1 {
        font-size: 2.4rem;
    }

    .contact-hero p {
        font-size: 0.97rem;
    }

    .contact-hero {
        padding: 100px 1.5rem 70px;
    }

    .contact-section {
        padding: 3rem 0 3.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        flex-direction: row;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .full-map-frame {
        height: 300px;
    }

    .chat-container {
        width: 94%;
        right: 3%;
        bottom: 85px;
        max-height: 80vh;
        border-radius: 18px;
    }

    .chat-header {
        padding: 14px;
    }

    .chat-messages {
        height: 55vh;
        font-size: 14px;
    }

    .chat-input input {
        font-size: 14px;
    }

    .chat-input button {
        padding: 10px 16px;
        font-size: 14px;
    }

    .chat-toggle {
        width: 55px;
        height: 55px;
        font-size: 20px;
        bottom: 18px;
        right: 18px;
    }
}

@media (max-width: 600px) {
    #preloader img {
        width: 100px;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1.2rem;
    }

    .social-row {
        flex-wrap: wrap;
    }

    .reach-chip span {
        display: none;
    }

    .back-to-top {
        left: 15px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 90px 1rem 60px;
    }

    .contact-hero h1 {
        font-size: 1.75rem;
    }

    .info-items {
        padding: 1.2rem 1.2rem 1.5rem;
    }

    .social-row {
        padding: 0 1.2rem 1.5rem;
    }

    .chat-container {
        width: 96%;
        right: 2%;
        bottom: 75px;
        max-height: 85vh;
        border-radius: 16px;
    }

    .chat-messages {
        height: 58vh;
        font-size: 13px;
    }

    .bot-message,
    .user-message {
        font-size: 13px;
        max-width: 92%;
    }

    .chat-input {
        padding: 10px;
    }

    .chat-input input {
        padding: 9px 12px;
        font-size: 13px;
    }

    .chat-input button {
        padding: 9px 14px;
        font-size: 13px;
    }

    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }

    .back-to-top {
        left: 15px;
    }
}