/* ==========================================================================
   Miraya Exim — premium theme (Bootstrap 5 layer)
   Palette derived from the Miraya Exim logo:
   Deep Maritime Navy  #0B192C  (primary)
   Royal Aurum Gold    #D4AF37  (accent)
   Alabaster White     #F8FAFC  (base surface)
   Typography: Playfair Display (headings) + Poppins (body)
   ========================================================================== */

:root {
    --mx-navy: #0b192c;
    --mx-navy-800: #102a43;
    --mx-navy-700: #16324f;
    --mx-navy-tint: #eef2f8;
    --mx-gold: #d4af37;
    --mx-gold-dark: #b89628;
    --mx-gold-deep: #92400e;
    --mx-gold-light: #fef3c7;
    --mx-ink: #0f172a;
    --mx-muted: #475569;
    --mx-soft: #64748b;
    --mx-line: #e2e8f0;
    --mx-page: #f8fafc;
    --mx-white: #ffffff;
    --mx-whatsapp: #25d366;
    --mx-whatsapp-dark: #1da851;
    --mx-error: #be123c;
    --mx-success: #047857;
    --mx-link: #0f4c81;

    --mx-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --mx-font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;

    --mx-radius: 18px;
    --mx-radius-sm: 12px;
    --mx-shadow-sm: 0 2px 10px rgba(11, 25, 44, 0.06);
    --mx-shadow-md: 0 10px 30px rgba(11, 25, 44, 0.10);
    --mx-shadow-lg: 0 24px 60px rgba(11, 25, 44, 0.16);
    --mx-gold-grad: linear-gradient(135deg, #e3c565 0%, #d4af37 45%, #b89628 100%);
}

/* ----------------------------- Base ------------------------------------ */
html { scroll-behavior: smooth; }

body.site-body {
    font-family: var(--mx-font-body);
    color: var(--mx-ink);
    background: var(--mx-page);
    line-height: 1.7;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .hero-title, .section-title {
    font-family: var(--mx-font-heading);
    color: var(--mx-navy);
    letter-spacing: -0.01em;
}

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

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

::selection { background: var(--mx-gold); color: var(--mx-navy); }

:focus-visible {
    outline: 2px solid var(--mx-gold-dark);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--mx-navy);
    color: var(--mx-white);
    padding: 10px 18px;
    border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; color: var(--mx-white); }

/* --------------------------- Utilities --------------------------------- */
.text-gold { color: var(--mx-gold); }
.text-navy { color: var(--mx-navy); }
.bg-gold { background: var(--mx-gold-grad); }

.section { padding: 72px 0; }
.section-alt { background: var(--mx-white); border-top: 1px solid var(--mx-line); border-bottom: 1px solid var(--mx-line); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head-split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    text-align: left;
}
@media (max-width: 767.98px) {
    .section-head-split { flex-direction: column; align-items: flex-start; }
    .section { padding: 56px 0; }
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mx-gold-deep);
    margin-bottom: 10px;
}

.section-title { font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 700; margin-bottom: 14px; }
.section-title-sm { font-size: 1.5rem; }
.section-lead { color: var(--mx-muted); font-size: 1.02rem; margin-bottom: 0; }

/* ----------------------------- Buttons --------------------------------- */
.btn { font-weight: 500; border-radius: 999px; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease; }
.btn-lg { padding: 12px 30px; }

.btn-gold {
    background: var(--mx-gold-grad);
    color: var(--mx-navy);
    border: none;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}
.btn-gold:hover, .btn-gold:focus { color: var(--mx-navy); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212, 175, 55, 0.5); }

.btn-navy { background: var(--mx-navy); color: var(--mx-white); border: none; }
.btn-navy:hover, .btn-navy:focus { color: var(--mx-white); background: var(--mx-navy-700); transform: translateY(-2px); }

.btn-outline-navy { border: 1.5px solid var(--mx-navy); color: var(--mx-navy); background: transparent; }
.btn-outline-navy:hover, .btn-outline-navy:focus { background: var(--mx-navy); color: var(--mx-white); }

.btn-whatsapp { background: var(--mx-whatsapp); color: var(--mx-white); border: none; }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: var(--mx-whatsapp-dark); color: var(--mx-white); transform: translateY(-2px); }

/* ----------------------------- Topbar ---------------------------------- */
.topbar { background: var(--mx-navy); color: #cbd5e1; font-size: 0.82rem; padding: 7px 0; }
.topbar a { color: #cbd5e1; text-decoration: none; margin-right: 18px; transition: color 0.2s ease; }
.topbar a:hover { color: var(--mx-gold); }
.topbar-note { color: var(--mx-gold); letter-spacing: 0.06em; font-weight: 500; }

/* ----------------------------- Navbar ---------------------------------- */
.site-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--mx-line);
    padding: 14px 0;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}
/* .site-nav.is-scrolled { padding: 8px 0; box-shadow: var(--mx-shadow-md); } */
.site-nav { padding: 6px 0; }
.site-nav.is-scrolled { padding: 4px 0; }
.navbar-brand img { height: 90px; width: auto; max-width: none; object-fit: contain; }

@media (max-width: 991.98px) {
    .navbar-brand img { height: 64px; }
}

.site-nav .nav-link {
    color: var(--mx-ink);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    position: relative;
}
.site-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 2px;
    height: 2px;
    background: var(--mx-gold-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active { color: var(--mx-navy); }

.navbar-toggler { border: none; font-size: 1.3rem; color: var(--mx-navy); }
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--mx-gold); }

/* ------------------------------- Hero ---------------------------------- */
.hero {
    position: relative;
    min-height: min(88vh, 780px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--mx-white);
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(11, 25, 44, 0.96) 8%, rgba(16, 42, 67, 0.86) 48%, rgba(11, 25, 44, 0.55) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 110px 0; }

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mx-gold);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 999px;
    padding: 7px 18px;
    margin-bottom: 22px;
    background: rgba(212, 175, 55, 0.08);
}

.hero-title {
    color: var(--mx-white);
    font-size: clamp(2.3rem, 5vw, 3.9rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 20px;
}
.hero-sub { color: #cbd5e1; font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 620px; margin-bottom: 30px; font-weight: 300; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}
.hero-pills li {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    color: #e2e8f0;
    font-size: 0.82rem;
    padding: 7px 16px;
    border-radius: 999px;
}
.hero-pills i { color: var(--mx-gold); margin-right: 6px; }

/* --------------------------- About media ------------------------------- */
.about-media { position: relative; border-radius: var(--mx-radius); overflow: hidden; box-shadow: var(--mx-shadow-lg); }
.about-media img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.about-media-chip {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mx-navy);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: var(--mx-shadow-sm);
}
.about-media-chip i { color: var(--mx-gold-dark); margin-right: 4px; }

.about-checklist { list-style: none; padding: 0; margin: 18px 0 26px; }
.about-checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--mx-muted); }
.about-checklist i { color: var(--mx-success); position: absolute; left: 0; top: 4px; }

/* --------------------------- Category cards ---------------------------- */
.category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--mx-white);
    border-radius: var(--mx-radius);
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--mx-line);
    box-shadow: var(--mx-shadow-sm);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mx-shadow-lg);
    border-color: rgba(212, 175, 55, 0.55);
}
.category-card-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.category-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.category-card:hover .category-card-media img { transform: scale(1.07); }

.category-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.category-card-body h3 { font-size: 1.18rem; margin: 0; color: var(--mx-navy); }
.category-card-body p { color: var(--mx-muted); font-size: 0.88rem; margin: 0; flex-grow: 1; }
.category-card-link { color: var(--mx-gold-deep); font-weight: 600; font-size: 0.88rem; transition: letter-spacing 0.25s ease; }
.category-card:hover .category-card-link { letter-spacing: 0.04em; }

/* --------------------------- Product cards ----------------------------- */
.product-card {
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-radius);
    overflow: hidden;
    box-shadow: var(--mx-shadow-sm);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    background: var(--mx-white);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--mx-shadow-lg); }

.product-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-card-media img { transform: scale(1.08); }

.product-card-flag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--mx-gold-grad);
    color: var(--mx-navy);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 999px;
}
.product-card-flag i { font-size: 0.65rem; }

.product-card .card-body { padding: 16px; }
.product-card-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mx-gold-deep);
    background: var(--mx-gold-light);
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 8px;
}
.product-card-title { font-size: 1.02rem; line-height: 1.35; margin: 0 0 6px; }
.product-card-title a { color: var(--mx-navy); text-decoration: none; }
.product-card-title a:hover { color: var(--mx-gold-dark); }
.product-card-meta { font-size: 0.8rem; color: var(--mx-soft); margin-bottom: 12px; }
.product-card-meta i { color: var(--mx-gold-dark); }
.product-card-meta .dot { margin: 0 4px; }

/* ------------------------ Country cards (navy) -------------------------- */
.section-navy { background: radial-gradient(1200px 500px at 20% -10%, #16324f 0%, var(--mx-navy) 55%); }

.country-card {
    position: relative;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--mx-radius);
    padding: 26px 22px;
    color: #e2e8f0;
    backdrop-filter: blur(4px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
}
.country-card:hover { transform: translateY(-6px); border-color: rgba(212, 175, 55, 0.6); background: rgba(212, 175, 55, 0.08); }
.country-card-globe { font-size: 1.9rem; color: var(--mx-gold); margin-bottom: 14px; display: block; }
.country-card h3 { color: var(--mx-white); font-size: 1.15rem; margin-bottom: 6px; }
.country-card p { font-size: 0.85rem; color: #94a3b8; margin: 0; }
.country-card-flag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--mx-gold-grad);
    color: var(--mx-navy);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 999px;
    padding: 4px 12px;
}

/* ----------------------------- Why cards ------------------------------- */
.why-card {
    height: 100%;
    background: var(--mx-white);
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-radius);
    padding: 28px 24px;
    box-shadow: var(--mx-shadow-sm);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--mx-shadow-md); }
.why-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--mx-gold-light);
    color: var(--mx-gold-deep);
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.why-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.why-card p { color: var(--mx-muted); font-size: 0.9rem; margin: 0; }

/* ------------------------------ Timeline ------------------------------- */
.timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    position: relative;
}
@media (min-width: 992px) {
    .timeline { grid-template-columns: repeat(5, 1fr); gap: 22px; }
    .timeline::before {
        content: '';
        position: absolute;
        top: 26px;
        left: 6%;
        right: 6%;
        height: 2px;
        background: linear-gradient(90deg, var(--mx-gold) 0%, rgba(212, 175, 55, 0.25) 100%);
        z-index: 0;
    }
}
.timeline-item { position: relative; z-index: 1; background: transparent; padding: 0 6px; }
.timeline-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--mx-navy);
    color: var(--mx-gold);
    font-weight: 600;
    font-family: var(--mx-font-body);
    border: 2px solid var(--mx-gold);
    margin-bottom: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item:hover .timeline-step { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.18); }
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-item p { color: var(--mx-muted); font-size: 0.86rem; margin: 0; }

/* ----------------------------- Licence cards ---------------------------- */
.licence-card {
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-radius);
    overflow: hidden;
    box-shadow: var(--mx-shadow-sm);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    background: var(--mx-white);
}
.licence-card:hover { transform: translateY(-5px); box-shadow: var(--mx-shadow-md); }
.licence-media { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--mx-navy-tint); position: relative; }
.licence-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.licence-pdf {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--mx-navy);
    color: var(--mx-gold);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}
.licence-pdf-sm { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; background: var(--mx-navy-tint); border-radius: 12px; color: var(--mx-gold-deep); font-size: 1.4rem; }
.licence-card .card-body { padding: 16px; }
.licence-title { font-size: 0.98rem; margin-bottom: 8px; }
.licence-no {
    display: inline-block;
    font-size: 0.72rem;
    background: var(--mx-navy-tint);
    color: var(--mx-navy);
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}
.licence-authority { font-size: 0.8rem; color: var(--mx-soft); margin: 0; }

/* ------------------------------ CTA banner ----------------------------- */
.cta-banner {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: 72px 32px;
    text-align: center;
    box-shadow: var(--mx-shadow-lg);
}
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(11, 25, 44, 0.94) 10%, rgba(16, 42, 67, 0.88) 60%, rgba(184, 150, 40, 0.35) 100%);
}
.cta-content { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-content h2 { color: var(--mx-white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.cta-content p { color: #cbd5e1; margin-bottom: 26px; }

/* ------------------------------ Page head ------------------------------ */
.page-head {
    background: radial-gradient(900px 300px at 85% -40%, #16324f 0%, var(--mx-navy) 60%);
    color: var(--mx-white);
    padding: 48px 0 44px;
}
.page-head-sm { padding: 34px 0; }
.page-head .breadcrumb-item a { color: #94a3b8; text-decoration: none; }
.page-head .breadcrumb-item a:hover { color: var(--mx-gold); }
.page-head .breadcrumb-item.active { color: var(--mx-gold); }
.page-head-title { color: var(--mx-white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 6px 0 8px; }
.page-head-sub { color: #cbd5e1; margin: 0; font-weight: 300; }

/* --------------------------- Catalog toolbar --------------------------- */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--mx-white);
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-radius);
    padding: 16px 18px;
    box-shadow: var(--mx-shadow-sm);
    margin-bottom: 26px;
}
.catalog-tabs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.catalog-tab {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mx-muted);
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all 0.22s ease;
}
.catalog-tab:hover { color: var(--mx-navy); background: var(--mx-navy-tint); }
.catalog-tab.active { background: var(--mx-navy); color: var(--mx-gold); }

.catalog-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--mx-line);
    border-radius: 999px;
    padding: 6px 8px 6px 16px;
    background: var(--mx-page);
    min-width: 280px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.catalog-search-box:focus-within { border-color: var(--mx-gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); }
.catalog-search-box i { color: var(--mx-soft); }
.catalog-search-box input { border: none; outline: none; background: transparent; flex: 1; font-size: 0.9rem; color: var(--mx-ink); }
.catalog-count { font-size: 0.85rem; }

.empty-state {
    text-align: center;
    background: var(--mx-white);
    border: 1px dashed var(--mx-line);
    border-radius: var(--mx-radius);
    padding: 70px 24px;
}
.empty-state i { font-size: 2.4rem; color: var(--mx-gold); display: block; margin-bottom: 14px; }
.empty-state p { color: var(--mx-muted); }

/* ------------------------- Product detail page ------------------------- */
.category-badge {
    background: var(--mx-gold-light);
    color: var(--mx-gold-deep);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.72rem;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.product-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 4px 0 12px; }
.product-short { color: var(--mx-muted); font-size: 1.02rem; }
.product-description { color: var(--mx-muted); }

.spec-list { margin: 22px 0 26px; }
.spec-row {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mx-line);
}
.spec-row dt {
    flex: 0 0 170px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--mx-navy);
    font-family: var(--mx-font-body);
    font-size: 0.88rem;
}
.spec-row dt i { color: var(--mx-gold-dark); }
.spec-row dd { margin: 0; color: var(--mx-muted); font-size: 0.92rem; flex: 1; }

.market-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.market-chip {
    background: var(--mx-navy-tint);
    color: var(--mx-navy);
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 999px;
    padding: 4px 12px;
}
.product-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Gallery */
.gallery-main {
    border-radius: var(--mx-radius);
    overflow: hidden;
    box-shadow: var(--mx-shadow-md);
    aspect-ratio: 1 / 1;
    background: var(--mx-navy-tint);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
    width: 76px;
    height: 76px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: var(--mx-navy-tint);
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--mx-gold); }

/* ------------------------------- Contact ------------------------------- */
.contact-card {
    background: var(--mx-white);
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-radius);
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: var(--mx-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--mx-shadow-md); }
.contact-card-title { font-size: 1.02rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.contact-card-title i { color: var(--mx-gold-dark); }
.contact-card a { color: var(--mx-ink); text-decoration: none; font-weight: 500; }
.contact-card a:hover { color: var(--mx-gold-dark); }
.contact-map { border-radius: var(--mx-radius); overflow: hidden; box-shadow: var(--mx-shadow-sm); border: 1px solid var(--mx-line); }
.contact-map iframe { display: block; }

.form-card {
    background: var(--mx-white);
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-radius);
    padding: 30px;
    box-shadow: var(--mx-shadow-md);
}
.form-label { font-weight: 500; font-size: 0.9rem; color: var(--mx-navy); }
.req { color: var(--mx-error); }
.form-note { font-size: 0.78rem; color: var(--mx-soft); margin: 10px 0 0; }

.form-control:focus, .form-select:focus {
    border-color: var(--mx-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--mx-error); }

/* ------------------------------- Footer -------------------------------- */
.site-footer {
    background: var(--mx-navy);
    color: #94a3b8;
    padding: 64px 0 0;
    margin-top: 0;
    font-size: 0.9rem;
}
/* .footer-logo { height: 46px; width: auto; border-radius: 8px; background: #fff; padding: 4px; } */
.footer-logo { height: 90px; width: auto; }
.footer-blurb { color: #94a3b8; max-width: 320px; }
.footer-heading {
    color: var(--mx-white);
    font-family: var(--mx-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.footer-heading::after { content: ''; display: block; width: 34px; height: 2px; background: var(--mx-gold-grad); margin-top: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: color 0.2s ease, padding-left 0.2s ease; }
.footer-links a:hover { color: var(--mx-gold); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; align-items: baseline; }
.footer-contact i { color: var(--mx-gold); }
.footer-contact a { color: #cbd5e1; text-decoration: none; }
.footer-contact a:hover { color: var(--mx-gold); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 1.05rem;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.footer-social a:hover { background: var(--mx-gold); color: var(--mx-navy); transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 24px;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
}
.footer-bottom i { color: var(--mx-gold); }

/* --------------------------- WhatsApp float ---------------------------- */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--mx-whatsapp);
    color: var(--mx-white);
    font-size: 1.7rem;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease;
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.5);
    animation: wa-pulse 2.2s ease-out infinite;
}
.whatsapp-float:hover { background: var(--mx-whatsapp-dark); color: var(--mx-white); transform: scale(1.08); }

@keyframes wa-pulse {
    0% { transform: scale(0.9); opacity: 1; }
    70% { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
}

/* ------------------------------ Pagination ----------------------------- */
.pagination { gap: 6px; }
.page-link {
    border-radius: 10px !important;
    border: 1px solid var(--mx-line);
    color: var(--mx-navy);
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}
.page-link:hover { background: var(--mx-navy-tint); border-color: var(--mx-line); color: var(--mx-navy); }
.page-item.active .page-link { background: var(--mx-navy); border-color: var(--mx-navy); color: var(--mx-gold); }

/* ======================================================================== */
/*                              ADMIN PANEL                                 */
/* ======================================================================== */

body.admin-body {
    font-family: var(--mx-font-body);
    background: var(--mx-page);
    color: var(--mx-ink);
    font-size: 0.92rem;
}

.admin-shell { min-height: 100vh; }

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background: linear-gradient(180deg, var(--mx-navy) 0%, #081320 100%);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--mx-white);
    text-decoration: none;
    margin-bottom: 26px;
    padding: 0 8px;
}
.admin-brand img { width: 42px; height: 42px; border-radius: 10px; background: #fff; padding: 3px; }
.admin-brand span { font-family: var(--mx-font-heading); font-size: 1.15rem; line-height: 1.1; display: block; }
.admin-brand small { display: block; font-family: var(--mx-font-body); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mx-gold); }

.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, color 0.2s ease;
}
.admin-link i { font-size: 1.05rem; width: 20px; text-align: center; }
.admin-link:hover { background: rgba(255, 255, 255, 0.06); color: var(--mx-white); }
.admin-link.active { background: rgba(212, 175, 55, 0.12); color: var(--mx-gold); border-left-color: var(--mx-gold); }
.admin-badge-new { background: var(--mx-gold-grad); color: var(--mx-navy); margin-left: auto; font-size: 0.7rem; }
.admin-sidebar-foot { margin-top: auto; }

.admin-main { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; }

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--mx-line);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.admin-topbar-title { font-family: var(--mx-font-heading); font-size: 1.25rem; margin: 0; }

.admin-burger { display: none; border: none; background: transparent; font-size: 1.5rem; color: var(--mx-navy); }

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--mx-line);
    border-radius: 999px;
    padding: 6px 14px 6px 6px;
    color: var(--mx-ink);
    font-weight: 500;
    font-size: 0.88rem;
}
.admin-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--mx-gold-grad);
    color: var(--mx-navy);
    font-weight: 600;
}
.dropdown-menu { border-radius: 14px; border-color: var(--mx-line); box-shadow: var(--mx-shadow-md); }

.admin-content { padding: 28px; flex: 1; }
.admin-page-title { font-family: var(--mx-font-heading); font-size: 1.5rem; }

.admin-card {
    background: var(--mx-white);
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-radius-sm);
    padding: 22px;
    box-shadow: var(--mx-shadow-sm);
}
.admin-card-title { font-family: var(--mx-font-body); font-size: 1rem; font-weight: 600; color: var(--mx-navy); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.admin-card-title i { color: var(--mx-gold-dark); }

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--mx-white);
    border: 1px solid var(--mx-line);
    border-radius: var(--mx-radius-sm);
    padding: 20px;
    box-shadow: var(--mx-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--mx-shadow-md); }
.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--mx-navy);
    color: var(--mx-gold);
    font-size: 1.35rem;
    flex: 0 0 auto;
}
.stat-card-new .stat-icon { background: var(--mx-gold-grad); color: var(--mx-navy); }
.stat-value { display: block; font-family: var(--mx-font-heading); font-size: 1.7rem; font-weight: 700; color: var(--mx-navy); line-height: 1.1; }
.stat-label { display: block; font-size: 0.82rem; color: var(--mx-muted); font-weight: 500; }
.stat-sub { display: block; font-size: 0.72rem; color: var(--mx-soft); }

.admin-table { font-size: 0.88rem; }
.admin-table thead th {
    background: var(--mx-navy-tint);
    color: var(--mx-navy);
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: none;
    padding: 12px 14px;
    white-space: nowrap;
}
.admin-table tbody td { padding: 14px; vertical-align: middle; }
.admin-table tbody tr:hover td { background: rgba(212, 175, 55, 0.05); }
.row-new td { background: rgba(212, 175, 55, 0.08); }
.th-w-80 { width: 80px; }
.table-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--mx-line); }

.badge-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 999px;
    padding: 5px 12px;
    text-transform: capitalize;
}
.badge-status-new { background: var(--mx-gold-light); color: var(--mx-gold-deep); }
.badge-status-contacted { background: #e0ecff; color: #0f4c81; }
.badge-status-closed { background: #e2e8f0; color: #475569; }
.badge-status-active { background: #d1fae5; color: #047857; }
.badge-status-inactive { background: #fee2e2; color: #b91c1c; }

/* "Sample — replace before go-live" flag on placeholder licence records */
.badge-sample {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.badge-sample i { font-size: 0.65rem; }

/* Inquiry reference chip (MX-000042) */
.inquiry-ref {
    background: var(--mx-navy-tint);
    color: var(--mx-navy);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Call / WhatsApp shortcuts on a lead row */
.lead-actions { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; white-space: nowrap; }
.lead-actions a { text-decoration: none; color: var(--mx-muted); transition: color 0.2s ease; }
.lead-actions a:hover { color: var(--mx-navy); }
.lead-actions i { color: var(--mx-gold-dark); }
.lead-actions a:last-child i { color: var(--mx-whatsapp-dark); font-size: 0.95rem; }

/* ---- Lead source insight (dashboard) ---- */
.bg-navy { background: var(--mx-navy) !important; }

.insight-list { list-style: none; padding: 0; margin: 0; counter-reset: insight; }
.insight-list li { margin-bottom: 14px; }
.insight-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; font-size: 0.88rem; }
.insight-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mx-navy-tint);
    color: var(--mx-navy);
    font-size: 0.7rem;
    font-weight: 700;
    flex: 0 0 auto;
}
.insight-list li:first-child .insight-rank { background: var(--mx-gold-grad); color: var(--mx-navy); }
.insight-name { flex: 1; color: var(--mx-ink); }
.insight-count { font-weight: 600; color: var(--mx-navy); }
.insight-bar { height: 7px; border-radius: 999px; background: var(--mx-navy-tint); }

.market-rank { list-style: none; padding: 0; margin: 0; }
.market-rank li {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--mx-line);
    font-size: 0.88rem;
}
.market-rank li:last-child { border-bottom: none; }
.market-rank strong { color: var(--mx-navy); }

/* ---- Quote templates ---- */
.placeholder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.placeholder-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--mx-page);
    border: 1px solid var(--mx-line);
    border-radius: 10px;
    padding: 8px 12px;
}
.placeholder-chip code { color: var(--mx-gold-deep); font-size: 0.78rem; font-weight: 600; }
.placeholder-chip span { color: var(--mx-soft); font-size: 0.74rem; }

.template-body { font-family: 'Courier New', monospace; font-size: 0.84rem; line-height: 1.6; }

.reply-status {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #d1fae5;
    color: #047857;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.8rem;
    margin-bottom: 16px;
}
.reply-status-pending { background: var(--mx-gold-light); color: var(--mx-gold-deep); }

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-filters .form-control, .admin-filters .form-select { min-width: 160px; }

.inquiry-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.inquiry-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--mx-line);
    border-radius: 999px;
    padding: 7px 16px;
    color: var(--mx-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.inquiry-pill:hover { border-color: var(--mx-gold); color: var(--mx-navy); }
.inquiry-pill.active { background: var(--mx-navy); border-color: var(--mx-navy); color: var(--mx-gold); }
.inquiry-pill .count { background: rgba(11, 25, 44, 0.08); border-radius: 999px; padding: 1px 8px; font-size: 0.72rem; }
.inquiry-pill.active .count { background: rgba(212, 175, 55, 0.25); }

.gallery-manage { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--mx-line); }
.gallery-manage img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.gallery-main-flag { position: absolute; top: 8px; left: 8px; background: var(--mx-gold-grad); color: var(--mx-navy); }
.gallery-remove {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.92);
}

.market-checkboxes { border: 1px solid var(--mx-line); border-radius: 12px; padding: 12px 14px; background: var(--mx-page); }

.settings-logo-preview { width: 180px; height: 180px; object-fit: contain; background: #fff; border: 1px solid var(--mx-line); border-radius: 14px; padding: 10px; }

.inquiry-message { background: var(--mx-page); border-radius: 10px; padding: 12px 14px; }

/* Admin login stage */
.admin-login-body { font-family: var(--mx-font-body); background: radial-gradient(900px 600px at 80% 0%, #16324f 0%, var(--mx-navy) 55%); min-height: 100vh; }
.admin-login-stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.admin-login-card {
    background: var(--mx-white);
    border-radius: 22px;
    padding: 40px 36px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--mx-shadow-lg);
    border: 1px solid rgba(212, 175, 55, 0.35);
}
.admin-login-logo { border-radius: 20px; background: #fff; padding: 4px; margin-bottom: 12px; }
.admin-login-title { font-family: var(--mx-font-heading); color: var(--mx-navy); font-size: 1.6rem; margin-bottom: 2px; }
.admin-login-sub { color: var(--mx-soft); font-size: 0.88rem; }
.admin-login-forgot { font-size: 0.84rem; color: var(--mx-link); text-decoration: none; }
.admin-login-forgot:hover { color: var(--mx-gold-dark); }
.admin-login-foot { text-align: center; margin: 22px 0 0; font-size: 0.84rem; }
.admin-login-foot a { color: var(--mx-muted); text-decoration: none; }
.admin-login-foot a:hover { color: var(--mx-gold-dark); }
.input-group-text { background: var(--mx-page); border-color: var(--mx-line); color: var(--mx-soft); }

/* --------------------------- Responsive admin --------------------------- */
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); box-shadow: var(--mx-shadow-lg); }
    body.sidebar-open .admin-sidebar { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-burger { display: inline-flex; }
    .admin-content { padding: 18px 14px; }
    .admin-topbar { padding: 12px 16px; }
}

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

/* Bootstrap invalid feedback inside needs-validation forms only shows
   after .was-validated; server-side errors add .d-block explicitly. */
form.was-validated .form-control:invalid,
form.was-validated .form-select:invalid { border-color: var(--mx-error); }

/* ── Admin: internal notes timeline on an inquiry ───────────────────────── */
.note-item {
    border-left: 3px solid var(--mx-gold, #c8a44b);
    background: #fbfaf7;
    border-radius: 0 .6rem .6rem 0;
    padding: .85rem 1rem;
    margin-bottom: .85rem;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.note-item:last-child { margin-bottom: 0; }

.note-item:hover {
    background: #f6f3ec;
    box-shadow: 0 4px 14px rgba(16, 32, 56, .07);
}
