/* ============================================================
   TRADENET INVESTMENT — FRONTEND STYLESHEET
   Palette: Deep Navy #0a1628, Gold #c9a84c, White, Light Grey
   Fonts: Playfair Display (headings) + DM Sans (body)
   ============================================================ */

:root {
    --navy: #0a1628;
    --navy-mid: #132240;
    --navy-light: #1e3a5f;
    --gold: #c9a84c;
    --gold-light: #e2c97e;
    --gold-dark: #a07c2d;
    --white: #ffffff;
    --off-white: #f8f7f4;
    --grey-light: #eef0f4;
    --grey: #8a95a3;
    --text-dark: #1a202c;
    --text-body: #4a5568;
    --radius: 6px;
    --shadow: 0 4px 24px rgba(10,22,40,0.10);
    --shadow-lg: 0 8px 40px rgba(10,22,40,0.16);
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.7;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    line-height: 1.25;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-dark); }

img { max-width: 100%; }

/* ── UTILITIES ── */
.text-gold { color: var(--gold) !important; }
.bg-navy { background: var(--navy) !important; }
.bg-navy-mid { background: var(--navy-mid) !important; }
.bg-gold { background: var(--gold) !important; }
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 0.5rem;
}
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; }

/* ── BUTTONS ── */
.btn-gold {
    background: var(--gold);
    color: var(--navy) !important;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    padding: 0.55rem 1.4rem;
    transition: var(--transition);
}
.btn-gold:hover { background: var(--gold-dark); color: #fff !important; }
.btn-navy {
    background: var(--navy);
    color: #fff !important;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    padding: 0.55rem 1.4rem;
    transition: var(--transition);
}
.btn-navy:hover { background: var(--navy-light); }
.btn-outline-gold {
    border: 2px solid var(--gold);
    color: var(--gold) !important;
    font-weight: 600;
    background: transparent;
    border-radius: var(--radius);
    padding: 0.5rem 1.4rem;
    transition: var(--transition);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy) !important; }

/* ── TOP BAR ── */
.topbar {
    background: var(--navy);
    padding: 0.4rem 0;
    font-size: 0.8rem;
}
.topbar a { color: rgba(255,255,255,0.7); }
.topbar a:hover { color: var(--gold); }

/* ── NAVBAR ── */
#mainNav {
    padding: 0.75rem 0;
    transition: box-shadow 0.3s;
    background: #fff !important;
}
#mainNav.scrolled { box-shadow: 0 2px 20px rgba(10,22,40,0.12) !important; }
.navbar-brand .logo-text { font-family: 'Playfair Display', serif; font-size: 1.3rem; }
.navbar-nav .nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 0.9rem !important;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--gold) !important; }
.dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: var(--radius); }
.dropdown-item { font-size: 0.87rem; padding: 0.5rem 1.2rem; }
.dropdown-item:hover { background: var(--off-white); color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION — Split screen: text LEFT | media RIGHT
   On ALL screen sizes ≥992px: side-by-side
   On <992px: stacked, media on top, text below
   ═══════════════════════════════════════════════════════════ */

.hero-section {
    background: var(--navy);
    color: #fff;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: stretch;
}

/* Outer wrapper fills the section */
.hero-inner {
    display: flex;
    width: 100%;
    min-height: 90vh;
}

/* ─── LEFT: text panel ─── */
.hero-left {
    width: 50%;
    flex-shrink: 0;
    background: var(--navy);
    display: flex;
    align-items: center;
    padding: 80px 56px 80px 0;
    position: relative;
    z-index: 2;
}

/* Subtle dot texture */
.hero-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(201,168,76,0.07) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    z-index: 0;
}
.hero-left-inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin-left: auto;
    padding-left: 32px;
}

/* Diagonal separator */
.hero-left::after {
    content: '';
    position: absolute;
    top: 0; right: -40px;
    width: 80px; height: 100%;
    background: var(--navy);
    clip-path: polygon(0 0, 40% 0, 100% 100%, 0 100%);
    z-index: 3;
}

/* ─── RIGHT: media panel ─── */
.hero-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
}
.hero-right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 9s ease;
}
.hero-section:hover .hero-right img {
    transform: scale(1.05);
}
.hero-right video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-right iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 177.78vh;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    border: none;
}
/* Left edge soft fade so media blends into text panel */
.hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10,22,40,0.22) 0%, transparent 35%);
    z-index: 1;
    pointer-events: none;
}

/* Gold GFZA badge on media */
.hero-media-badge {
    position: absolute;
    bottom: 36px;
    left: 0;
    z-index: 4;
    background: var(--gold);
    color: var(--navy);
    padding: 0.85rem 1.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 0 6px 28px rgba(0,0,0,0.3);
    max-width: 210px;
}

/* ─── TEXT ELEMENTS ─── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.4);
    border-radius: 100px;
    padding: 0.38rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.25rem;
}
.hero-divider {
    width: 48px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-bottom: 1.4rem;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.2vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}
.hero-title .accent { color: var(--gold); }
.hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 440px;
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    flex-wrap: wrap;
}
.hero-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-top: 0.2rem;
}

/* ─── SCROLL CUE ─── */
.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 25%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.3);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: heroScroll 2.4s infinite;
}
@keyframes heroScroll {
    0%,100% { opacity:.3; transform: translateX(-50%) translateY(0); }
    50%      { opacity:.7; transform: translateX(-50%) translateY(7px); }
}

/* ─── RESPONSIVE ─── */

/* Tablet / small desktop: reduce padding */
@media (min-width: 992px) and (max-width: 1200px) {
    .hero-left { padding: 60px 40px 60px 0; }
    .hero-left-inner { padding-left: 24px; }
}

/* Mobile: stack — media on top, text below */
@media (max-width: 991px) {
    .hero-section { min-height: auto; }
    .hero-inner {
        flex-direction: column;
        min-height: auto;
    }
    .hero-left {
        width: 100%;
        padding: 48px 0 52px;
        min-height: auto;
    }
    .hero-left::after { display: none; }
    .hero-left-inner {
        margin-left: 0;
        padding-left: 0;
        max-width: 100%;
    }
    .hero-right {
        width: 100%;
        min-height: 56vw;
        max-height: 420px;
        /* On mobile: media comes FIRST (order) */
        order: -1;
    }
    .hero-right::before { display: none; }
    .hero-media-badge { display: none; }
    .hero-scroll-indicator { display: none; }
    .hero-stats { gap: 1.5rem; padding-top: 1.5rem; }
    .hero-stat-num { font-size: 1.6rem; }
}
@media (max-width: 576px) {
    .hero-right { min-height: 52vw; max-height: 280px; }
    .hero-left { padding: 36px 0 44px; }
    .hero-title { font-size: 1.85rem; }
    .hero-subtitle { font-size: 0.93rem; }
    .hero-stats { gap: 1.2rem; }
    .hero-stat-num { font-size: 1.45rem; }
}

/* ── PROJECT CARDS ── */
.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.project-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--navy-light);
    flex-shrink: 0;
}
.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.project-card:hover .project-card-img img { transform: scale(1.06); }

.project-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
}
.project-card-num {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(201,168,76,0.35);
    line-height: 1;
    pointer-events: none;
}
.project-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.project-category {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}
.project-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}
.project-desc {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

/* ── SECTION GENERAL ── */
section { padding: 80px 0; }
.section-bg-light { background: var(--off-white); }
.section-bg-navy { background: var(--navy); color: #fff; }
.section-bg-navy h2, .section-bg-navy h3, .section-bg-navy h4 { color: #fff; }
.section-bg-navy .section-label { color: var(--gold-light); }

/* ── CARDS ── */
.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-img { height: 200px; object-fit: cover; width: 100%; }
.service-card-body { padding: 1.5rem; }
.service-card-body h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-card .read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.75rem;
}
.service-card .read-more:hover { gap: 0.6rem; }

/* ── PRODUCTS ── */
.product-card {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-card-img-wrap img { transform: scale(1.04); }
.product-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); margin-bottom: 0.25rem; }
.product-name { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.95rem; color: var(--text-dark); margin-bottom: 0.25rem; }
.product-sku { font-size: 0.75rem; color: var(--grey); }
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-top: auto; padding-top: 0.75rem; }
.product-price .compare { font-size: 0.85rem; color: var(--grey); text-decoration: line-through; margin-left: 0.5rem; font-weight: 400; }
.price-locked { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--grey); background: var(--grey-light); border-radius: 4px; padding: 0.35rem 0.6rem; margin-top: auto; margin-bottom: 0.5rem; }
.price-locked i { color: var(--gold); }
.product-filter-sidebar { position: sticky; top: 90px; }
.filter-card { background: #fff; border: 1px solid #e8ecf0; border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.filter-title { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--navy); margin-bottom: 0.75rem; }
.filter-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; font-size: 0.875rem; cursor: pointer; }
.filter-item:hover { color: var(--gold); }
.filter-item input[type=checkbox] { accent-color: var(--gold); }

/* ── TEAM ── */
.team-card {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--gold);
    display: block;
}
.team-avatar-placeholder {
    width: 110px; height: 110px; border-radius: 50%;
    background: var(--navy-light);
    color: var(--gold); font-size: 2.5rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; border: 4px solid var(--gold);
}
.team-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.team-title { font-size: 0.8rem; color: var(--gold); font-weight: 600; }

/* ── TESTIMONIALS ── */
.testimonial-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 2rem;
}
.testimonial-text { font-size: 1rem; font-style: italic; color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }
.testimonial-text::before { content: '\201C'; font-size: 2rem; color: var(--gold); line-height: 0; vertical-align: -0.5rem; margin-right: 0.2rem; }
.testimonial-author-name { font-weight: 700; color: #fff; font-size: 0.95rem; }
.testimonial-author-title { font-size: 0.78rem; color: var(--gold-light); }

/* ── BLOG ── */
.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 200px; object-fit: cover; width: 100%; }
.blog-card-body { padding: 1.5rem; }
.blog-category { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.blog-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin: 0.5rem 0; line-height: 1.35; }
.blog-meta { font-size: 0.78rem; color: var(--grey); }

/* ── QUOTE FORM ── */
.quote-section { background: var(--navy); padding: 80px 0; }
.quote-form-wrap {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 2.5rem;
}
.quote-form-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 0.75rem; display: block; }
.quote-form-wrap .form-control,
.quote-form-wrap .form-select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: var(--radius);
}
.quote-form-wrap .form-control::placeholder { color: rgba(255,255,255,0.35); }
.quote-form-wrap .form-control:focus,
.quote-form-wrap .form-select:focus {
    background: rgba(255,255,255,0.12);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(201,168,76,0.2);
}
.quote-form-wrap .form-select option { background: var(--navy); color: #fff; }

/* ── PAGE HERO / BREADCRUMB ── */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 60px 0 50px;
    color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.breadcrumb { background: transparent; padding: 0; margin: 0; }
.breadcrumb-item { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.breadcrumb-item a { color: var(--gold-light); }
.breadcrumb-item.active { color: rgba(255,255,255,0.5); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* ── CONTACT ── */
.contact-card { background: var(--off-white); border-radius: 10px; padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { width: 44px; height: 44px; background: var(--navy); color: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ── FOOTER ── */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); }
.footer-top { padding: 70px 0 50px; }
.footer-bottom { background: rgba(0,0,0,0.25); padding: 1rem 0; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-heading { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-desc { font-size: 0.87rem; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.65); font-size: 0.87rem; }
.footer-links a:hover { color: var(--gold); }
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li { display: flex; gap: 0.75rem; margin-bottom: 0.9rem; font-size: 0.87rem; align-items: flex-start; }
.footer-contact-list i { color: var(--gold); margin-top: 4px; flex-shrink: 0; }
.footer-contact-list a { color: rgba(255,255,255,0.65); }
.footer-contact-list a:hover { color: var(--gold); }
.social-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
}
.social-btn:hover { background: var(--gold); color: var(--navy); }

/* ── AUTH PAGES ── */
.auth-page { min-height: 100vh; background: var(--off-white); display: flex; align-items: center; }
.auth-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 2.5rem; max-width: 460px; width: 100%; margin: auto; }
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 0.25rem; }
.auth-sub { font-size: 0.87rem; color: var(--grey); text-align: center; margin-bottom: 1.5rem; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); }
.form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 0.2rem rgba(201,168,76,0.2); }

/* ── FREEZONE BADGE ── */
.freezone-badge {
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    display: inline-block;
    text-align: center;
}
.freezone-badge .badge-top { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; display: block; }
.freezone-badge .badge-main { font-size: 0.95rem; font-weight: 700; color: var(--white); display: block; margin: 0.2rem 0; }
.freezone-badge .badge-sub { font-size: 0.68rem; color: rgba(255,255,255,0.5); }

/* ── CEO QUOTE ── */
.ceo-quote-section { background: var(--navy-mid); padding: 70px 0; }
.ceo-quote-text { font-family: 'Playfair Display', serif; font-size: clamp(1.15rem, 2.5vw, 1.6rem); font-style: italic; color: #fff; line-height: 1.5; }
.ceo-quote-text::before { content: '\201C'; font-size: 4rem; color: var(--gold); line-height: 0; vertical-align: -1.2rem; margin-right: 0.3rem; }
.ceo-name { font-weight: 700; color: var(--gold); margin-top: 1rem; }
.ceo-title { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    section { padding: 50px 0; }
}

/* ── FOOTER MOBILE (2-column layout) ── */
@media (max-width: 575px) {
    .footer-top { padding: 48px 0 36px; }

    /* Contact column: shrink font so email wraps gracefully in col-6 */
    .footer-contact-list li { font-size: .78rem; gap: .5rem; margin-bottom: .75rem; }
    .footer-contact-list a { word-break: break-all; }

    /* Link columns: slightly smaller text to fit narrow half-width */
    .footer-links a { font-size: .82rem; }
    .footer-links li { margin-bottom: .4rem; }

    /* Footer-bottom: stack copyright + legal links, both centered */
    .footer-bottom .container { text-align: center; }
    .footer-bottom .container > p { font-size: .75rem; }
    .footer-bottom .container > div { gap: .75rem !important; font-size: .75rem !important; }
}

/* ── LEGAL PAGES (Disclaimer / Privacy / Terms) ── */
.legal-body h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: .6rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid rgba(201,168,76,.25);
}
.legal-body p,
.legal-body li {
    color: var(--text-body, #374151);
    line-height: 1.8;
    font-size: .95rem;
}
.legal-body ul {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}
.legal-body ul li { margin-bottom: .35rem; }
.legal-body address {
    background: var(--bg-light, #f8f9fb);
    border-left: 3px solid var(--gold);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius, 8px) var(--radius, 8px) 0;
    font-style: normal;
    font-size: .9rem;
    line-height: 1.8;
    margin-top: .75rem;
}
.legal-body a { color: var(--gold-dark, #a07830); }
.legal-body a:hover { text-decoration: underline; }
.legal-meta .section-label { font-size: .72rem; }
.btn-outline-navy {
    border: 1.5px solid var(--navy);
    color: var(--navy);
    background: transparent;
    border-radius: var(--radius, 6px);
    padding: .35rem .85rem;
    font-size: .82rem;
    font-weight: 600;
    transition: background .2s, color .2s;
}
.btn-outline-navy:hover {
    background: var(--navy);
    color: #fff;
}

/* ── COLLAPSIBLE FILTER SIDEBAR ── */
.filter-collapsible { padding: 0; overflow: hidden; }
.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.25rem 0.75rem;
    cursor: pointer;
    gap: .5rem;
}
.filter-toggle:hover { background: rgba(201,168,76,.04); }
.filter-chevron {
    color: var(--gold);
    font-size: .7rem;
    transition: transform .25s ease;
    flex-shrink: 0;
}
.filter-body {
    padding: 0 1.25rem 1rem;
    overflow: hidden;
}
.filter-scroll-list {
    max-height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
    padding-right: 4px;
}
.filter-scroll-list::-webkit-scrollbar { width: 4px; }
.filter-scroll-list::-webkit-scrollbar-track { background: transparent; }
.filter-scroll-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.filter-search-wrap { margin-bottom: .6rem; }
.filter-search-input {
    width: 100%;
    border: 1px solid #e0e4ea;
    border-radius: 6px;
    padding: .3rem .65rem;
    font-size: .8rem;
    outline: none;
    color: var(--navy);
}
.filter-search-input:focus { border-color: var(--gold); }
.filter-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .2rem;
    font-size: .875rem;
    border-radius: 5px;
    color: var(--text-body, #374151);
    transition: background .15s, color .15s;
}
.filter-item:hover { color: var(--gold); background: rgba(201,168,76,.06); }
.filter-item.active { color: var(--gold); font-weight: 700; }
.filter-item span:first-of-type { flex: 1; }
.filter-count {
    font-size: .72rem;
    color: var(--text-muted, #9ca3af);
    background: #f3f4f6;
    border-radius: 10px;
    padding: 1px 7px;
    flex-shrink: 0;
}
.filter-item-child { padding-left: 1.2rem; }

/* ── SERVICES HORIZONTAL SCROLL TRACK ── */

/* Wrapper — no overflow clipping on desktop so cards breathe normally */
.services-track-wrap { position: relative; }

/* Track — desktop: behaves like a normal flex row wrapping into a grid */
.services-track {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Each item — desktop: fixed to ~33% width (3 per row) */
.services-track-item {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 0;
}

/* 2-col at tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .services-track-item { flex: 0 0 calc(50% - 0.75rem); }
}

/* ── MOBILE: switch to horizontal scroll carousel ── */
@media (max-width: 767px) {
    .services-track-wrap {
        /* Bleed slightly past container edge for the peek effect */
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .services-track {
        flex-wrap: nowrap;           /* single row */
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;       /* hide scrollbar Firefox */
        padding: 0.5rem 1rem 1rem;
        gap: 1rem;
    }
    .services-track::-webkit-scrollbar { display: none; } /* hide Chrome/Safari */

    .services-track-item {
        flex: 0 0 80vw;             /* show ~1.2 cards at once (peek) */
        max-width: 320px;
        scroll-snap-align: start;
    }

    /* Keep card height consistent */
    .services-track-item .service-card { min-height: 340px; }
}

/* Swipe hint label */
.services-swipe-hint {
    font-size: .78rem;
    color: var(--text-muted, #9ca3af);
    margin-bottom: .5rem;
    padding-left: 1rem;
}

/* Dots */
.services-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1rem;
    padding-bottom: 0.25rem;
}
.services-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}
.services-dot.active {
    background: var(--gold);
    transform: scale(1.35);
}

/* ═══════════════════════════════════════════════════════════════
   UNIVERSAL SWIPE TRACK  (reused across all card-grid sections)
   ═══════════════════════════════════════════════════════════════ */

.swipe-track-wrap { position: relative; }

/* ── MOBILE BASE (default — horizontal carousel) ── */
.swipe-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.75rem 1rem 1.25rem;
    gap: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
}
.swipe-track::-webkit-scrollbar { display: none; }

.swipe-track-item {
    flex: 0 0 80vw;
    width: 80vw;
    max-width: 300px;
    min-width: 0;
    scroll-snap-align: start;
    opacity: 0.55;
    transform: scale(0.93) translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.swipe-track.cols-4 .swipe-track-item {
    flex: 0 0 70vw;
    width: 70vw;
    max-width: 240px;
}

.swipe-track-item.is-active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ── TABLET (≥ 768px): switch to 2-column CSS Grid ── */
@media (min-width: 768px) {
    .swipe-track {
        display: grid;
        flex-wrap: unset;
        overflow-x: unset;
        overflow-y: unset;
        scroll-snap-type: unset;
        scrollbar-width: unset;
        padding: 0;
        gap: 1.5rem;
        margin-left: 0;
        margin-right: 0;
        grid-template-columns: repeat(2, 1fr);
    }
    .swipe-track::-webkit-scrollbar { display: revert; }

    .swipe-track-item {
        flex: unset;
        width: unset;
        max-width: unset;
        scroll-snap-align: unset;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .swipe-track.cols-4 .swipe-track-item {
        flex: unset;
        width: unset;
        max-width: unset;
    }
}

/* ── DESKTOP (≥ 992px): 3 or 4 columns ── */
@media (min-width: 992px) {
    .swipe-track.cols-3 { grid-template-columns: repeat(3, 1fr); }
    .swipe-track.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Swipe hint — shown only on mobile via d-md-none in HTML */
.swipe-hint {
    font-size: .78rem;
    color: var(--text-muted, #9ca3af);
    margin-bottom: .5rem;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.swipe-hint i { color: var(--gold); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(5px); }
}

/* Dots */
.swipe-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: .9rem;
    padding-bottom: .25rem;
}
.swipe-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    padding: 0; cursor: pointer;
    transition: background .2s, transform .25s, width .25s;
    flex-shrink: 0;
}
.swipe-dot.active {
    background: var(--gold);
    transform: scale(1.3);
    width: 22px;
    border-radius: 4px;
}
