/* =========================================================
   Agrisense · Public Welcome / Landing Page
   ========================================================= */
:root {
    --wl-nav-h: 74px;
}

.wl-body {
    background: var(--ag-light-green);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--ag-text-dark);
}

h1, h2, h3, .wl-brand { font-family: 'Poppins', 'Segoe UI', sans-serif; }

html { scroll-behavior: smooth; }
section[id], header[id] { scroll-margin-top: 70px; }

/* ---------- Navbar ---------- */
.wl-nav {
    height: var(--wl-nav-h);
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease;
    z-index: 1040;
}
.wl-nav.scrolled,
.wl-nav .collapse.show ~ *,
.wl-nav:not(.transparent-locked) {
    /* fallback handled below via .scrolled */
}
.wl-nav.scrolled {
    background: rgba(18, 53, 40, .96);
    box-shadow: 0 4px 24px rgba(0,0,0,.25);
    backdrop-filter: blur(8px);
}
@media (max-width: 991.98px) {
    .wl-nav { background: rgba(18,53,40,.96); backdrop-filter: blur(8px); }
}

.wl-brand {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: 1.45rem; font-weight: 300; color: #fff; letter-spacing: .5px;
}
.wl-brand i { color: var(--ag-gold-light); font-size: 1.6rem; }
.wl-brand b { font-weight: 700; color: var(--ag-gold-light); }

.wl-toggler { color: var(--ag-gold-light); font-size: 1.9rem; border: 1px solid rgba(244,196,48,.4); border-radius: .5rem; padding: .15rem .6rem; }

.wl-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500; font-size: .95rem;
    position: relative; padding-bottom: 3px;
}
.wl-link::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 2px; background: var(--ag-gold);
    transition: width .25s ease;
}
.wl-link:hover { color: var(--ag-gold-light) !important; }
.wl-link:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.wl-hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(100deg,
            rgba(16,46,35,.96) 0%,
            rgba(20,58,44,.90) 38%,
            rgba(27,67,50,.55) 68%,
            rgba(27,67,50,.18) 100%),
        url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=1900&q=80')
            center right / cover no-repeat,
        var(--ag-dark-green);
}
.wl-hero::after {
    content: '';
    position: absolute; inset: auto 0 0 0; height: 120px;
    background: linear-gradient(to top, var(--ag-light-green), transparent);
    pointer-events: none;
}

.wl-hero-inner { padding-top: calc(var(--wl-nav-h) + 40px); padding-bottom: 70px; max-width: 1080px; }

.wl-eyebrow {
    display: inline-flex; align-items: center;
    background: rgba(212,160,23,.16); color: var(--ag-gold-light);
    border: 1px solid rgba(244,196,48,.35);
    padding: .45rem 1.1rem; border-radius: 2rem;
    font-size: .78rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
}

.wl-hero-title {
    color: #fff;
    font-size: clamp(3.2rem, 8vw, 5.6rem);
    font-weight: 800; line-height: 1.02;
    margin: 1.2rem 0 .2rem;
    letter-spacing: -1px;
}
.wl-hero-title span { color: var(--ag-gold-light); }

.wl-hero-tag {
    color: var(--ag-gold-light);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 2.4vw, 1.35rem);
    font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
    margin-bottom: 1.4rem;
}

.wl-hero-sub {
    color: rgba(255,255,255,.88);
    font-size: 1.06rem; line-height: 1.75;
    max-width: 560px;
}

.wl-btn-ghost {
    color: #fff; border: 1.5px solid rgba(255,255,255,.65);
    background: rgba(255,255,255,.06); backdrop-filter: blur(3px);
}
.wl-btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }

/* ---------- Stats strip ---------- */
.wl-stats {
    background: rgba(16,46,35,.72);
    border: 1px solid rgba(244,196,48,.22);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    padding: 1.4rem 1.6rem;
}
.wl-stat { display: flex; align-items: center; gap: .9rem; justify-content: center; }
.wl-stat .n {
    font-family: 'Poppins', sans-serif;
    font-size: 2.3rem; font-weight: 800; color: var(--ag-gold-light);
    line-height: 1;
}
.wl-stat .l { color: rgba(255,255,255,.82); font-size: .76rem; text-transform: uppercase; letter-spacing: .8px; line-height: 1.45; }

/* ---------- Sections (shared) ---------- */
.wl-section { padding: 96px 0; }

.wl-sec-eyebrow {
    display: inline-block;
    color: var(--ag-gold); font-weight: 700;
    font-size: .78rem; letter-spacing: 2.5px; text-transform: uppercase;
    margin-bottom: .6rem;
}
.wl-sec-title {
    color: var(--ag-dark-green);
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    font-weight: 700; line-height: 1.2;
    margin-bottom: 1.1rem;
}
.wl-lead-sm { color: #33463d; font-size: 1.02rem; line-height: 1.75; }

/* ---------- About ---------- */
.wl-about { background: var(--ag-text-light); }

.wl-photo-frame { position: relative; padding-bottom: 46px; }
.wl-photo-frame > img {
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(27,67,50,.22);
    width: 100%; height: 460px; object-fit: cover;
}
.wl-photo-inset {
    position: absolute; right: -6px; bottom: 0;
    width: 46%;
    border: 6px solid var(--ag-text-light);
    border-radius: .9rem; overflow: hidden;
    box-shadow: 0 16px 40px rgba(27,67,50,.28);
}
.wl-photo-inset img { width: 100%; height: 150px; object-fit: cover; display: block; }
.wl-photo-badge {
    position: absolute; left: 18px; top: 18px;
    background: rgba(16,46,35,.85); color: var(--ag-gold-light);
    padding: .45rem 1rem; border-radius: 2rem;
    font-size: .74rem; font-weight: 600; letter-spacing: .6px;
    backdrop-filter: blur(4px);
}

.wl-checklist { list-style: none; padding: 0; margin: 0; }
.wl-checklist li {
    display: flex; align-items: flex-start; gap: .7rem;
    padding: .5rem 0; color: #2e4038; font-weight: 500; font-size: .97rem;
}
.wl-checklist i { color: var(--ag-gold); font-size: 1.15rem; margin-top: .1rem; }

/* ---------- Services ---------- */
.wl-services { background: var(--ag-light-green); }

.wl-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 28px rgba(27,67,50,.08);
    transition: transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
}
.wl-card:hover { transform: translateY(-8px); box-shadow: 0 22px 48px rgba(27,67,50,.16); }

.wl-card-photo { position: relative; height: 170px; overflow: hidden; }
.wl-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wl-card:hover .wl-card-photo img { transform: scale(1.07); }

.wl-icon-chip {
    position: absolute; left: 18px; bottom: -22px;
    width: 48px; height: 48px; border-radius: .8rem;
    background: linear-gradient(135deg, var(--ag-gold), var(--ag-gold-light));
    color: var(--ag-dark-green);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(212,160,23,.45);
    border: 3px solid #fff;
}

.wl-card .card-body { padding-top: 2.4rem !important; }
.wl-card h3 { color: var(--ag-dark-green); }

.wl-more {
    color: var(--ag-mid-green); font-weight: 600; font-size: .85rem;
    text-decoration: none;
}
.wl-more i { transition: transform .2s ease; }
.wl-more:hover { color: var(--ag-gold); }
.wl-more:hover i { transform: translateX(4px); }

/* ---------- Crops quote divider ---------- */
.wl-divider {
    background: center / cover no-repeat;
    position: relative;
    color: #fff;
}
.wl-divider::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(rgba(16,46,35,.82), rgba(16,46,35,.82));
}
.wl-divider .container { position: relative; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.wl-div-quote { font-size: 3.2rem; color: var(--ag-gold-light); line-height: 1; }
.wl-div-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 600; line-height: 1.5;
    max-width: 820px;
    margin-top: .6rem;
}
.wl-div-sub { color: rgba(255,255,255,.7); font-size: .9rem; letter-spacing: .5px; }

/* ---------- Contact ---------- */
.wl-contact { background: var(--ag-text-light); }
.wl-c-icon {
    width: 44px; height: 44px; border-radius: .7rem; flex-shrink: 0;
    background: var(--ag-light-green); color: var(--ag-mid-green);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.wl-form-card { border-radius: 1rem; }
.wl-form-card .form-control, .wl-form-card .form-select { border-radius: .6rem; padding: .65rem .9rem; }
.wl-form-card .form-control:focus, .wl-form-card .form-select:focus {
    border-color: var(--ag-gold);
    box-shadow: 0 0 0 .2rem rgba(212,160,23,.18);
}

/* ---------- Footer ---------- */
.wl-footer {
    background: linear-gradient(180deg, var(--ag-dark-green), #123528);
    color: rgba(255,255,255,.85);
}
.wl-flink {
    color: rgba(255,255,255,.62) !important;
    font-size: .9rem; padding: .18rem 0;
    transition: color .2s ease, transform .2s ease;
}
.wl-flink:hover { color: var(--ag-gold-light) !important; transform: translateX(3px); }

.wl-social {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); color: rgba(255,255,255,.75);
    transition: all .2s ease;
}
.wl-social:hover { background: var(--ag-gold); color: var(--ag-dark-green); transform: translateY(-3px); }

.wl-footer-bar { border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Contact person card ---------- */
.wl-person-card {
    background: linear-gradient(135deg, var(--ag-dark-green) 0%, #123528 100%);
    border: 1px solid rgba(244,196,48,.28);
    border-radius: 1rem;
    padding: 1.3rem 1.4rem;
    box-shadow: 0 18px 44px rgba(27,67,50,.28);
}
.wl-p-avatar {
    width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--ag-gold), var(--ag-gold-light));
    color: var(--ag-dark-green);
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(212,160,23,.45);
}
.wl-person-card .small { line-height: 1.5; }
.wl-person-card .btn { font-size: .78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .wl-section { padding: 72px 0; }
    .wl-hero { min-height: auto; }
    .wl-photo-frame > img { height: 340px; }
    .wl-photo-inset img { height: 110px; }
    .wl-stats { padding: 1.1rem; }
    .wl-stat { justify-content: flex-start; }
}