/* =========================================================
   LUTGN Botswana - Custom Theme
   Palette derived from the LUTGN logo:
   Primary brand (wine/magenta) | Accent gold (CTA) |
   Real-estate slate-blue | Farming earthy green
   ========================================================= */

:root {
    --lutgn-wine: #6e1050;
    --lutgn-wine-dark: #4a0a36;
    --lutgn-wine-light: #8f2a6e;
    --lutgn-gold: #e0a24e;
    --lutgn-gold-dark: #c9862f;
    --lutgn-slate: #2c4a63;
    --lutgn-slate-light: #3c6a8c;
    --lutgn-green: #4f7a3a;
    --lutgn-green-dark: #3a5c2b;
    --lutgn-cream: #faf6f1;
    --lutgn-ink: #1f1b1f;
    --lutgn-muted: #6b6b73;

    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--lutgn-ink);
    background: #fff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .brand-name {
    font-family: var(--font-head);
}

/* ---------- Buttons ---------- */
.btn { border-radius: 50px; font-weight: 600; padding: 0.6rem 1.5rem; transition: all .25s ease; }
.btn-wine { background: var(--lutgn-wine); color: #fff; border-color: var(--lutgn-wine); }
.btn-wine:hover { background: var(--lutgn-wine-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(110,16,80,.25); }
.btn-gold { background: var(--lutgn-gold); color: #2a160a; border-color: var(--lutgn-gold); }
.btn-gold:hover { background: var(--lutgn-gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(224,162,78,.3); }
.btn-outline-wine { color: var(--lutgn-wine); border: 2px solid var(--lutgn-wine); }
.btn-outline-wine:hover { background: var(--lutgn-wine); color: #fff; }
.btn-whatsapp { background: #25d366; color: #fff; border-radius: 50px; font-weight: 600; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--lutgn-wine-dark); color: #fff; font-size: .85rem; padding: .4rem 0; }
.topbar-contact a { color: #f3d9e8; text-decoration: none; }
.topbar-contact a:hover { color: #fff; }
.topbar-social a { color: #f3d9e8; margin-left: .8rem; font-size: 1rem; }
.topbar-social a:hover { color: var(--lutgn-gold); }

/* ---------- Navbar ---------- */
.lutgn-navbar { background: #fff; box-shadow: 0 2px 18px rgba(0,0,0,.06); padding: .5rem 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--lutgn-wine); letter-spacing: .5px; }
.brand-sub { font-size: .62rem; letter-spacing: 4px; color: var(--lutgn-gold-dark); font-weight: 700; }
.brand-logo { transition: transform .3s ease; }
.navbar-brand:hover .brand-logo { transform: scale(1.05); }
.lutgn-navbar .nav-link {
    font-weight: 600; color: var(--lutgn-ink); padding: .5rem 1rem !important; position: relative;
}
.lutgn-navbar .nav-link::after {
    content: ''; position: absolute; left: 1rem; right: 1rem; bottom: .25rem; height: 2px;
    background: var(--lutgn-gold); transform: scaleX(0); transition: transform .25s ease;
}
.lutgn-navbar .nav-link:hover::after,
.lutgn-navbar .nav-link.active::after { transform: scaleX(1); }
.lutgn-navbar .nav-link:hover { color: var(--lutgn-wine); }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler { border-color: var(--lutgn-wine); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236e1050' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, rgba(74,10,54,.92), rgba(110,16,80,.85)),
                url('../images/hero-fallback.svg') center/cover no-repeat;
    color: #fff; padding: 5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(224,162,78,.35), transparent 70%); border-radius: 50%;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; }
.hero-sub { font-size: 1.1rem; opacity: .92; max-width: 540px; }
.hero-stat { display: flex; gap: .5rem; align-items: baseline; }
.hero-stat strong { font-size: 1.8rem; color: var(--lutgn-gold); font-family: var(--font-head); }
.hero-card {
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px);
    border-radius: 18px; padding: 1.6rem; color: #fff; transition: all .3s ease; height: 100%;
}
.hero-card:hover { background: rgba(255,255,255,.18); transform: translateY(-6px); }
.hero-card .hc-icon { font-size: 2.2rem; color: var(--lutgn-gold); }
.hero-card h4 { font-weight: 700; margin: .6rem 0; }
.hero-card a { color: #fff; text-decoration: none; font-weight: 600; }
.hero-card a:hover { color: var(--lutgn-gold); }

/* ---------- Section helpers ---------- */
.section { padding: 4.5rem 0; }
.section-cream { background: var(--lutgn-cream); }
.section-title { font-weight: 800; color: var(--lutgn-wine); position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--lutgn-gold); margin: .8rem auto 0; border-radius: 4px; }
.section-lead { color: var(--lutgn-muted); max-width: 640px; margin: 0 auto; }

.pillar {
    background: #fff; border-radius: 16px; padding: 1.8rem; text-align: center; height: 100%;
    box-shadow: 0 6px 24px rgba(0,0,0,.05); border-bottom: 4px solid var(--lutgn-gold); transition: transform .25s;
}
.pillar:hover { transform: translateY(-6px); }
.pillar .p-icon { font-size: 2.4rem; color: var(--lutgn-wine); }
.pillar h5 { font-weight: 700; margin-top: .8rem; color: var(--lutgn-slate); }

/* ---------- Property cards ---------- */
.prop-card {
    border: none; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,.07);
    transition: transform .25s ease, box-shadow .25s ease; height: 100%; background: #fff;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.prop-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--lutgn-cream); }
.prop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prop-card:hover .prop-media img { transform: scale(1.07); }
.prop-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.prop-price { position: absolute; bottom: 12px; right: 12px; background: var(--lutgn-wine); color: #fff;
    padding: .35rem .9rem; border-radius: 50px; font-weight: 700; font-family: var(--font-head); z-index: 2; }
.prop-body { padding: 1.1rem 1.2rem 1.3rem; }
.prop-loc { color: var(--lutgn-muted); font-size: .9rem; }
.prop-loc i { color: var(--lutgn-gold-dark); }
.prop-stats { display: flex; flex-wrap: wrap; gap: .6rem .9rem; margin: 1rem 0; font-size: .9rem; color: var(--lutgn-slate); }
.prop-stats span { display: inline-flex; align-items: center; gap: .35rem; }
.prop-stats i { color: var(--lutgn-wine); }

/* ---------- Farm cards ---------- */
.farm-card {
    border-radius: 16px; overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,.07); background: #fff; height: 100%;
    transition: transform .25s ease;
}
.farm-card:hover { transform: translateY(-6px); }
.farm-media { aspect-ratio: 16/10; overflow: hidden; background: var(--lutgn-cream); }
.farm-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.farm-card:hover .farm-media img { transform: scale(1.06); }
.farm-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--lutgn-green); }
.farm-avail { font-size: .8rem; font-weight: 600; }
.avail-instock { color: var(--lutgn-green); }
.avail-next { color: var(--lutgn-gold-dark); }
.avail-order { color: #c0392b; }

/* ---------- About ---------- */
.about-img { border-radius: 18px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.value-list li { margin-bottom: .7rem; display: flex; gap: .6rem; align-items: flex-start; }
.value-list i { color: var(--lutgn-gold-dark); margin-top: .3rem; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 10px; padding: .7rem .9rem; border-color: #e0d6cf; }
.form-control:focus, .form-select:focus { border-color: var(--lutgn-wine); box-shadow: 0 0 0 .2rem rgba(110,16,80,.15); }
.form-label { font-weight: 600; color: var(--lutgn-slate); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--lutgn-wine), var(--lutgn-wine-dark)); color: #fff; }
.cta-band h2 { font-weight: 800; }

/* ---------- Filters ---------- */
.filter-bar { background: #fff; border-radius: 16px; padding: 1.2rem; box-shadow: 0 6px 22px rgba(0,0,0,.06); }

/* ---------- Property detail ---------- */
.prop-gallery-main { border-radius: 16px; overflow: hidden; background: var(--lutgn-cream); aspect-ratio: 16/10; }
.prop-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.prop-thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; border: 2px solid transparent; }
.prop-thumb.active { border-color: var(--lutgn-wine); }
.prop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px dashed #e7ddd6; }
.spec-list li span:first-child { color: var(--lutgn-muted); display: flex; gap: .5rem; align-items: center; }
.spec-list li span:last-child { font-weight: 600; color: var(--lutgn-ink); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none; z-index: 2000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 8px; }
.lightbox .lb-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 2rem; cursor: pointer; }

/* ---------- Breadcrumb override ---------- */
.breadcrumb-lutgn { background: transparent; padding: 0; }
.breadcrumb-lutgn a { color: var(--lutgn-gold); text-decoration: none; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: linear-gradient(135deg, var(--lutgn-wine-dark), var(--lutgn-wine)); color: #fff; padding: 3.5rem 0; }
.page-hero h1 { font-weight: 800; }
.page-hero p { opacity: .9; max-width: 640px; }

/* ---------- Footer ---------- */
.lutgn-footer { background: var(--lutgn-wine-dark); color: #e9d8e2; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.lutgn-footer .brand-name { color: #fff; }
.lutgn-footer .brand-sub { color: var(--lutgn-gold); }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1.1rem; font-size: 1.05rem; }
.footer-about { font-size: .92rem; color: #d9c4d2; }
.footer-links, .footer-contact, .footer-hours { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a, .footer-contact a { color: #e9d8e2; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--lutgn-gold); }
.footer-contact li { margin-bottom: .7rem; display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact i { color: var(--lutgn-gold); margin-top: .25rem; }
.footer-hours li { display: flex; justify-content: space-between; padding: .25rem 0; font-size: .92rem; }
.footer-social a { color: #e9d8e2; margin-right: .9rem; font-size: 1.2rem; }
.footer-social a:hover { color: var(--lutgn-gold); }
.footer-divider { border-color: rgba(255,255,255,.12); margin: 2rem 0 1rem; }
.footer-bottom { font-size: .85rem; color: #cdb4c4; }
.footer-credit { color: var(--lutgn-gold); font-weight: 600; }

/* ---------- CouchCMS messages ---------- */
.couch-message { padding: .8rem 1.1rem; border-radius: 10px; margin-bottom: 1rem; }
.couch-success { background: #e7f6ec; color: #1d6b35; border: 1px solid #bce6c8; }
.couch-error { background: #fdeaea; color: #a32424; border: 1px solid #f3c4c4; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .lutgn-navbar .btn-whatsapp { margin-top: .8rem; display: inline-block; }
}
