/* Bahar-e-Haram Tours — shared site layout (mobile-first) */
:root {
    --bhe-gold: #c9a227;
    --bhe-gold-light: #f0d78c;
    --bhe-walnut: #120d06;
    --bhe-walnut-soft: #1f1609;
    --bhe-green: #1e4d3f;
    --bhe-green-light: #2d6b58;
    --bhe-text: #1a1510;
    --bhe-muted: #6b6560;
    --bhe-radius: 18px;
    --bhe-radius-lg: 26px;
    --bhe-shadow: 0 16px 48px rgba(18, 13, 6, 0.1);
    --bhe-header-h: 74px;
    --bhe-safe-bottom: env(safe-area-inset-bottom, 0px);
    --bhe-font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --bhe-font-body: 'Plus Jakarta Sans', 'Poppins', system-ui, sans-serif;
}

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

html {
    scrollbar-gutter: stable;
}

body.bhe-scroll-locked {
    overflow: hidden !important;
}

.bhe-site {
    font-family: var(--bhe-font-body);
    color: var(--bhe-text);
    background: #faf7f0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.bhe-site h1, .bhe-site h2, .bhe-site h3 {
    font-family: var(--bhe-font-display);
    font-weight: 600;
    line-height: 1.2;
}

/* ========== HEADER ========== */
.bhe-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 8px 0;
    background: linear-gradient(180deg, rgba(3,2,1,.5), transparent);
}

.bhe-header.scrolled {
    padding: 4px 0;
    background: rgba(3,2,1,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bhe-container {
    width: min(94%, 1320px);
    margin: 0 auto;
    padding: 0 16px;
}

.bhe-header .bhe-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 20px;
    background: linear-gradient(110deg, rgba(8,6,4,.92), rgba(20,14,8,.88));
    border: 1px solid rgba(212,175,55,.25);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.bhe-logo img {
    height: clamp(40px, 10vw, 54px);
    width: auto;
    display: block;
}

.bhe-nav { display: none; gap: 4px; align-items: center; }

.bhe-nav a {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background .25s, color .25s;
}

.bhe-nav a:hover,
.bhe-nav a.active {
    color: #f7e7b0;
    background: rgba(212,175,55,.2);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.bhe-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(130deg, var(--bhe-gold-light), var(--bhe-gold));
    color: var(--bhe-walnut);
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    border: 1px solid rgba(212,175,55,.6);
    box-shadow: 0 8px 20px rgba(212,175,55,.25);
    transition: transform .25s, box-shadow .25s;
    white-space: nowrap;
}

.bhe-cta:hover {
    transform: translateY(-2px);
    color: var(--bhe-walnut);
    box-shadow: 0 12px 28px rgba(212,175,55,.35);
}

.bhe-menu-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212,175,55,.4);
    background: rgba(255,255,255,.06);
    color: var(--bhe-gold);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.bhe-mobile-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(0,0,0,.6);
    opacity: 0;
    pointer-events: none;
    z-index: 10000;
    transition: opacity .28s;
}

.bhe-mobile-backdrop.open { opacity: 1; pointer-events: auto; }

.bhe-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 360px);
    height: 100dvh;
    padding: 16px 18px calc(24px + var(--bhe-safe-bottom));
    background: linear-gradient(180deg, rgba(9,8,6,.98), rgba(0,0,0,.96));
    border-left: 1px solid rgba(212,175,55,.2);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .2s, visibility 0s .35s;
    overflow-y: auto;
}

.bhe-mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.bhe-mobile-menu a {
    color: #fff;
    text-decoration: none;
    padding: 14px 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 1rem;
}

.bhe-mobile-menu a:hover,
.bhe-mobile-menu a.active {
    background: rgba(212,175,55,.12);
    color: var(--bhe-gold-light);
}

.bhe-mobile-menu .mobile-cta { margin-top: 12px; justify-content: center; }

.bhe-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--bhe-gold-light);
    font-size: 1.4rem;
    padding: 8px;
    cursor: pointer;
}

body.mobile-menu-open { overflow: hidden; touch-action: none; }

/* Compact header after scrolling past hero (home + contact) */
.bhe-header.compact {
    padding: 4px 0;
    background: linear-gradient(180deg, rgba(3, 2, 1, 0.88), rgba(3, 2, 1, 0.75));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bhe-header.compact .bhe-container {
    padding: 6px 12px;
    border-color: rgba(212, 175, 55, 0.34);
}

@media (min-width: 992px) {
    .bhe-nav { display: flex; }
    .bhe-menu-icon { display: none !important; }
    .header-actions { margin-left: 0; }
}

@media (max-width: 991px) {
    .bhe-nav { display: none !important; }
    .header-actions .bhe-cta:not(.mobile-cta) {
        display: inline-flex !important;
        padding: 8px 14px;
        font-size: 0.78rem;
        min-height: 40px;
    }
    .header-actions .bhe-cta:not(.mobile-cta) span { display: inline !important; }
    .header-actions .bhe-cta:not(.mobile-cta) i { display: none; }
}

html.bhe-is-loading,
html.bhe-is-loading body {
    overflow: hidden;
    height: 100%;
}

/* ========== PAGE HERO ========== */
.bhe-page-hero {
    position: relative;
    min-height: clamp(280px, 45vh, 420px);
    display: flex;
    align-items: flex-end;
    padding: clamp(48px, 8vw, 80px) 0 clamp(32px, 5vw, 56px);
    color: #fff;
    overflow: hidden;
}

.bhe-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(26,18,6,.75) 0%, rgba(45,91,77,.55) 100%);
    z-index: 1;
}

.bhe-page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

@media (max-width: 767px) {
    .bhe-page-hero__bg {
        transform: none;
    }
}

.bhe-page-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.bhe-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(212,175,55,.2);
    border: 1px solid rgba(212,175,55,.35);
    color: var(--bhe-gold-light);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.bhe-page-hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    color: #fff;
    margin-bottom: 12px;
}

.bhe-page-hero p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: rgba(255,255,255,.9);
    margin-bottom: 20px;
    max-width: 56ch;
}

.bhe-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ========== SECTIONS & CARDS ========== */
.bhe-section {
    padding: clamp(48px, 8vw, 80px) 0;
}

.bhe-section--alt { background: #fff; }

.bhe-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(32px, 5vw, 48px);
}

.bhe-section-head .eyebrow {
    color: var(--bhe-green);
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.bhe-section-head h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin: 8px 0 12px;
    color: var(--bhe-walnut);
}

.bhe-section-head p { color: var(--bhe-muted); margin: 0; }

.bhe-card {
    background: #fff;
    border-radius: var(--bhe-radius-lg);
    padding: clamp(20px, 4vw, 28px);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: var(--bhe-shadow);
    height: 100%;
    transition: transform .3s, box-shadow .3s;
}

.bhe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15,23,42,.14);
}

.bhe-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.bhe-card-icon--green { background: rgba(45,91,77,.12); color: var(--bhe-green); }
.bhe-card-icon--gold { background: rgba(212,175,55,.15); color: #b8860b; }
.bhe-card-icon--blue { background: rgba(37,99,235,.12); color: #2563eb; }

.bhe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    min-height: 48px;
}

.bhe-btn--primary {
    background: linear-gradient(130deg, var(--bhe-gold-light), var(--bhe-gold));
    color: var(--bhe-walnut);
    box-shadow: 0 8px 24px rgba(212,175,55,.3);
}

.bhe-btn--green {
    background: linear-gradient(130deg, var(--bhe-green-light), var(--bhe-green));
    color: #fff;
    box-shadow: 0 8px 24px rgba(45,91,77,.3);
}

.bhe-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
}

.bhe-btn:hover {
    transform: translateY(-2px);
    color: inherit;
}

.bhe-btn--outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Destination grid */
.bhe-dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 20px;
}

.bhe-dest-card {
    position: relative;
    border-radius: var(--bhe-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    text-decoration: none;
    color: #fff;
    box-shadow: var(--bhe-shadow);
}

.bhe-dest-card img,
.bhe-dest-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.bhe-dest-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, transparent 55%);
}

.bhe-dest-card:hover img,
.bhe-dest-card:hover .bhe-dest-card__bg { transform: scale(1.08); }

.bhe-dest-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1;
}

.bhe-dest-card h3 {
    font-size: 1.2rem;
    margin: 0 0 4px;
    color: #fff;
}

.bhe-dest-card span { font-size: .85rem; opacity: .85; }

/* Stats bar */
.bhe-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: linear-gradient(135deg, var(--bhe-green), #1a3d32);
    color: #fff;
    padding: clamp(32px, 6vw, 56px) 0;
    border-radius: var(--bhe-radius-lg);
}

.bhe-stat strong {
    display: block;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-family: 'Playfair Display', serif;
}

.bhe-stat span { font-size: .9rem; opacity: .85; }

@media (min-width: 768px) {
    .bhe-stats { grid-template-columns: repeat(4, 1fr); text-align: center; }
}

/* ========== FOOTER ========== */
.bhe-footer {
    position: relative;
    margin-top: 48px;
    color: rgba(255,255,255,.85);
}

.bhe-footer-wave {
    color: var(--bhe-walnut);
    line-height: 0;
    margin-bottom: -1px;
}

.bhe-footer-main {
    background: var(--bhe-walnut);
    padding: clamp(40px, 6vw, 64px) 0 24px;
}

.bhe-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .bhe-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.bhe-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bhe-gold-light);
    margin-bottom: 12px;
}

.bhe-footer-brand p {
    font-size: .9rem;
    color: rgba(255,255,255,.65);
    margin-bottom: 16px;
}

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

.bhe-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212,175,55,.12);
    border: 1px solid rgba(212,175,55,.25);
    color: var(--bhe-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .25s;
}

.bhe-footer-social a:hover { background: rgba(212,175,55,.25); color: #fff; }

.bhe-footer-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--bhe-gold-light);
    margin-bottom: 14px;
    font-family: 'Poppins', sans-serif;
}

.bhe-footer-links,
.bhe-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.bhe-footer-links a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .9rem;
    transition: color .2s;
}

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

.bhe-footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: .9rem;
    color: rgba(255,255,255,.7);
}

.bhe-footer-contact i { color: var(--bhe-gold); margin-top: 3px; }

.bhe-footer-contact a { color: inherit; text-decoration: none; }

.bhe-footer-bottom {
    border-top: 1px solid rgba(212,175,55,.15);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
}

.bhe-footer-tag { color: rgba(212,175,55,.7); }

/* ========== CONTACT FAB ========== */
.bhe-fab {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, calc(16px + var(--bhe-safe-bottom)));
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.bhe-fab-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.bhe-fab-action {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    transition: transform .25s;
    cursor: pointer;
}

.bhe-fab-action:hover { transform: scale(1.08); color: #fff; }

.bhe-fab-wa { background: linear-gradient(135deg, #25D366, #128C7E); }
.bhe-fab-call { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.bhe-fab-top { background: linear-gradient(135deg, var(--bhe-gold-light), var(--bhe-gold)); color: var(--bhe-walnut); }

.bhe-fab-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--bhe-green-light), var(--bhe-green));
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 8px 28px rgba(45,91,77,.4);
    cursor: pointer;
    position: relative;
}

.bhe-fab-toggle .bhe-fab-icon-close { display: none; }
.bhe-fab.is-open .bhe-fab-toggle .bhe-fab-icon-open { display: none; }
.bhe-fab.is-open .bhe-fab-toggle .bhe-fab-icon-close { display: inline; }

/* Package page overrides */
.bhe-site .package-card { border-radius: var(--bhe-radius-lg); overflow: hidden; }

/* Umrah packages page */
.bhe-page-hero--umrah::before {
    background: linear-gradient(160deg, rgba(5,80,50,.82) 0%, rgba(26,18,6,.7) 100%);
}

.umrah-booking-card {
    background: linear-gradient(135deg, #065f46 0%, #047857 50%, #064e3b 100%);
    border-radius: var(--bhe-radius-lg);
    padding: clamp(24px, 5vw, 40px);
    box-shadow: 0 24px 60px rgba(5,80,50,.25);
    border: 1px solid rgba(212,175,55,.2);
}

.umrah-icon-gold { color: var(--bhe-gold-light); }

.umrah-carousel img { max-height: 320px; object-fit: cover; }

.umrah-carousel-caption {
    background: linear-gradient(0deg, rgba(0,0,0,.7), transparent);
    left: 0; right: 0; bottom: 0;
    padding: 16px;
}

.umrah-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: .92rem;
}

.umrah-features-list i { color: var(--bhe-gold-light); margin-right: 8px; }

.umrah-hajj-banner {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(251,191,36,.35);
}

.departures-simple {
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255,255,255,.1);
}

.departures-simple__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: rgba(255,255,255,.95);
    font-size: .92rem;
}

.departures-simple__date { font-weight: 700; color: var(--bhe-gold-light); }
.departures-simple__air { opacity: .85; }

/* Legacy tour page styles (wrapped pages) */
.bhe-site .hero-section {
    position: relative;
    min-height: clamp(240px, 40vh, 380px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 20px;
    background: linear-gradient(135deg, var(--bhe-green), #1a3d32);
    color: #fff;
    margin-bottom: 24px;
}

.bhe-site .hero-section .hero-content { position: relative; z-index: 2; max-width: 720px; }

.bhe-site .hero-section h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    color: #fff;
    margin-bottom: 12px;
}

.bhe-site .hero-section p { color: rgba(255,255,255,.9); margin: 0; }

.bhe-site .book-btn {
    display: block;
    width: min(280px, 90%);
    margin: 24px auto 48px;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(130deg, var(--bhe-gold-light), var(--bhe-gold));
    color: var(--bhe-walnut);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--bhe-shadow);
}

.bhe-site .feature-section {
    background: #fff;
    border-radius: var(--bhe-radius);
    padding: 24px;
    box-shadow: var(--bhe-shadow);
}

.bhe-site .feature-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; color: var(--bhe-green); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
