/* =========================================================
   KASWA Tech — Public Site Stylesheet (minimized navbar)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
    --forest: #14532d;
    --forest-dark: #0d3b20;
    --leaf: #4d9e35;
    --lime: #8bc53f;
    --graphite: #1b211c;
    --paper: #f6f8f3;
    --paper-alt: #eef2e9;
    --steel: #52605a;
    --steel-light: #dde5dc;
    --white: #ffffff;
    --shadow: 0 12px 32px rgba(20, 83, 45, 0.12);
    --radius: 14px;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--graphite);
    background: var(--paper);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    color: var(--leaf);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--lime);
    display: inline-block;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
}
.btn-primary {
    background: var(--forest);
    color: var(--white);
}
.btn-primary:hover { background: var(--forest-dark); transform: translateY(-2px); }
.btn-outline {
    border-color: var(--forest);
    color: var(--forest);
    background: transparent;
}
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-light {
    background: var(--white);
    color: var(--forest);
}
.btn-light:hover { background: var(--lime); color: var(--forest-dark); }

.hex-frame {
    -webkit-clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}
.hex-badge {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--lime), var(--forest));
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: 600;
}

/* ---------- Top bar ---------- */
.topbar {
    background: var(--forest-dark);
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    font-family: var(--font-mono);
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-links span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header / Nav – MINIMIZED HEIGHT ---------- */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 var(--steel-light);
    overflow: visible;
}
.nav-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 6px 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* ---- ENLARGED LOGO IMAGE ---- */
.brand img {
    height: 44px;   /* was 32px */
    width: auto;
}
.brand-text {
    font-family: var(--font-display);
    line-height: 1.1;
}

.brand-text strong {
    display: block;
    font-size: 1.15rem;  /* was 0.95rem */
    font-weight: 800;
    letter-spacing: 0.4px;

    /* Deep Green Gradient */
    background: linear-gradient(
        135deg,
        #A8FF60 0%,
        #5CB85C 30%,
        #1E7D32 65%,
        #0B3D0B 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    /* Premium Shadow */
    text-shadow:
        1px 1px 2px rgba(0,0,0,0.15),
        0 3px 8px rgba(11,61,11,0.20);

    transition: all .35s ease;
}

.brand-text strong:hover {
    background: linear-gradient(
        135deg,
        #C8FF8C 0%,
        #7CFC00 30%,
        #228B22 65%,
        #14532D 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    transform: translateY(-1px);

    text-shadow:
        2px 2px 4px rgba(0,0,0,0.18),
        0 5px 12px rgba(20,83,45,0.30);
}

.brand-text span {
    display: block;
    font-size: 0.6rem;
    color: var(--steel);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    justify-self: center;
}
.main-nav ul {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav a {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--graphite);
    position: relative;
    padding: 4px 0;
}
.main-nav a.active,
.main-nav a:hover { color: var(--forest); }
.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--lime);
}

/* ---------- Nav actions (search + mobile toggle), corner of the navbar ---------- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}
.search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--paper-alt);
    border: 1px solid var(--steel-light);
    border-radius: 30px;
    padding: 6px 8px 6px 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.search-form:focus-within {
    background: var(--white);
    border-color: var(--lime);
    box-shadow: 0 0 0 3px rgba(139, 197, 63, 0.18);
}
.search-form-icon { color: var(--steel); flex-shrink: 0; }
.search-form input {
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--graphite);
    width: 168px;
}
.search-form input::placeholder { color: var(--steel); }
.search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--forest);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s ease;
}
.search-form button:hover { background: var(--forest-dark); }

/* Compact bar shown only on small screens (desktop search hides in .nav-actions)
   Tightened padding to remove the dead-space band that used to sit
   between the search bar and the hero slider on mobile. */
.mobile-search {
    display: none;
    padding: 4px 16px 4px;
    border-top: 1px solid var(--steel-light);
}
.mobile-search .search-form { width: 100%; margin: 0; }
.mobile-search .search-form input { width: 100%; flex: 1; }

/* ---------- Mobile toggle – hidden on desktop ---------- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    justify-self: end;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--forest-dark);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: var(--white);
    overflow: hidden;
    padding: 90px 0 110px;
}
.hero .container {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(2.1rem, 3.6vw, 3.1rem);
    margin-bottom: 20px;
}
.hero p.lead {
    font-size: 1.08rem;
    color: rgba(255,255,255,0.85);
    max-width: 46ch;
    margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-mono); font-size: 1.5rem; color: var(--lime); }
.hero-stats div span { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-visual .hex-frame {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.hero-visual img { width: 62%; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35)); }

/* ---------- Hero slider ----------
   Responsive strategy (optimized for every platform):
   - Desktop (1025px+):        full viewport height, image fills the frame (cover)
   - Tablet / mobile-desktop-mode (721px-1024px): reduced viewport height, whole image visible (contain)
   - Phone (≤720px):           reduced viewport height, whole image visible (contain)
   The height and background-size are controlled together below and in the
   two responsive breakpoints further down this file. */
.hero-slider { padding: 0; }
.hero-slides {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    transition: height .2s ease;
}
.hero-slide {
    position: absolute; inset: 0;
    padding: 40px 0;
    opacity: 0; visibility: hidden;
    transform: translateX(24px);
    transition: opacity .6s ease, transform .6s ease, visibility .6s;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transform: translateX(0); pointer-events: auto; }
.hero-slide-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border: none;
    z-index: 0;
}
.hero-slide-overlay { display: none; }
.hero-slider .container { position: relative; z-index: 2; width: 100%; }
.hero-slider .container.hero-no-visual { grid-template-columns: 1fr; max-width: 760px; }
.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
    color: #fff; font-size: 1rem; cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow.prev { left: 22px; }
.hero-arrow.next { right: 22px; }
.hero-dots {
    position: absolute; bottom: 26px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 10px; z-index: 5;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6); background: transparent; cursor: pointer;
    padding: 0; transition: background .2s ease, width .2s ease;
}
.hero-dot.is-active { background: var(--lime, #8bc53f); border-color: var(--lime, #8bc53f); width: 24px; border-radius: 6px; }
.hero-scroll-cue {
    position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; z-index: 5;
    animation: heroScrollBounce 2s ease-in-out infinite;
}
@keyframes heroScrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Clients logo marquee ---------- */
.clients-section { overflow: hidden; padding-bottom: 70px; }
.clients-marquee {
    width: 100%; overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
    display: flex; align-items: center; gap: 56px; width: max-content;
    animation: clientsScroll 28s linear infinite;
}
.clients-marquee:hover .clients-track { animation-play-state: paused; }
.client-logo {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 10px; width: 150px; padding: 4px 6px 0; flex-shrink: 0; text-align: center;
}
.client-logo-mark {
    display: flex; align-items: center; justify-content: center;
    width: 100px; height: 64px;
}
/* ---- CLIENT LOGOS — FULL COLOUR (no grayscale, no opacity) ---- */
.client-logo-mark img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all .2s ease;
}
.client-logo:hover .client-logo-mark img {
    filter: none;
    opacity: 1;
}
.client-logo-initial {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--light, #eef5e9); border: 1.5px solid var(--steel-light, #dbe5dd);
    font-family: var(--font-display, inherit); font-weight: 700; font-size: 1.2rem;
    color: var(--primary2, #256d34); opacity: 0.75; transition: opacity .2s ease;
}
.client-logo:hover .client-logo-initial { opacity: 1; }
.client-logo-name {
    font-family: var(--font-display, inherit); font-weight: 600; font-size: 0.86rem;
    color: var(--steel, #5b6a63); letter-spacing: 0.01em; line-height: 1.25;
    opacity: 0.75; transition: opacity .2s ease, color .2s ease;
}
.client-logo:hover .client-logo-name { opacity: 1; color: var(--forest-dark, #0d3b20); }
@keyframes clientsScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Floating action buttons ---------- */
.floating-actions {
    position: fixed; right: 22px; bottom: 24px; z-index: 999;
    display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.floating-btn {
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem; box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    transition: transform .18s ease, box-shadow .18s ease;
}
.floating-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px rgba(0,0,0,0.3); }
.floating-btn.whatsapp { background: #25D366; }
.floating-btn.linkedin { background: #0A66C2; font-size: 1.3rem; }
.floating-btn svg { width: 26px; height: 26px; fill: #fff; }
.floating-btn.back-to-top {
    background: var(--forest-dark, #0d3b20); border: none; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px) scale(.9);
    transition: transform .18s ease, box-shadow .18s ease, opacity .2s ease, visibility .2s ease;
}
.floating-btn.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.floating-btn.back-to-top:hover { transform: translateY(-3px) scale(1.05); }
.floating-btn.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; }

/* ---------- Section shell ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--paper-alt); }
.section-head {
    max-width: 640px;
    margin: 0 auto 48px;
    text-align: center;
}
.section-head.left { margin: 0 0 44px; text-align: left; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--forest-dark); }
.section-head p { color: var(--steel); }

/* ---------- Category slider ---------- */
.category-slider-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 12px;
}
.category-slider-wrapper::-webkit-scrollbar { display: none; }
.category-slider {
    display: flex;
    gap: 22px;
    width: max-content;
    padding: 4px 2px 8px 2px;
}
.category-slider .product-card {
    flex: 0 0 260px;
    max-width: 280px;
    scroll-snap-align: start;
    transition: transform 0.2s ease;
}
.category-slider .product-card:hover { transform: translateY(-4px); }
@media (max-width: 600px) {
    .category-slider .product-card { flex: 0 0 200px; max-width: 220px; }
}
@media (max-width: 400px) {
    .category-slider .product-card { flex: 0 0 170px; max-width: 190px; }
}

/* ---------- Product thumbnails – full bleed ---------- */
.product-thumb {
    aspect-ratio: 4/3;
    background: radial-gradient(circle at 50% 40%, #ffffff 0%, var(--paper-alt) 70%, var(--steel-light) 140%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
    filter: drop-shadow(0 10px 18px rgba(20,83,45,0.12));
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-thumb.is-placeholder img {
    width: 44%;
    height: 44%;
    object-fit: contain;
    opacity: 0.55;
    filter: none;
}
.product-card:hover .product-thumb.is-placeholder img { transform: none; }
.product-thumb .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--lime);
    color: var(--forest-dark);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

/* ---------- Product grid (featured) ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--steel-light);
    transition: box-shadow .2s ease, transform .2s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-body .model { font-family: var(--font-mono); font-size: 0.72rem; color: var(--leaf); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.product-body h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--graphite); }
.product-body p { font-size: 0.87rem; color: var(--steel); flex: 1; margin-bottom: 14px; }
.product-body .view-link { font-size: 0.85rem; font-weight: 600; color: var(--forest); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Filters ---------- */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.filter-pill {
    padding: 9px 18px;
    border-radius: 30px;
    border: 1px solid var(--steel-light);
    background: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--steel);
}
.filter-pill.active, .filter-pill:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }

/* ---------- Why us / features ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.feature-item { text-align: left; }
.feature-item .num {
    font-family: var(--font-mono);
    color: var(--lime);
    background: var(--forest-dark);
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border-radius: 8px;
    margin-bottom: 14px;
    font-weight: 600;
}
.feature-item h4 { font-size: 1.02rem; margin-bottom: 6px; color: var(--forest-dark); }
.feature-item p { font-size: 0.88rem; color: var(--steel); }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.product-detail-photo {
    aspect-ratio: 1/1;
    background: radial-gradient(circle at 50% 38%, #ffffff 0%, var(--paper-alt) 70%, var(--steel-light) 140%);
    border: 1px solid var(--steel-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    overflow: hidden;
}
.product-detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 16px 26px rgba(20,83,45,0.16));
}
.product-detail-photo.is-placeholder img { width: 42%; height: 42%; opacity: 0.55; filter: none; }
.address-cards { display: grid; gap: 16px; margin-top: 24px; }
.address-card {
    background: var(--white);
    border: 1px solid var(--steel-light);
    border-left: 4px solid var(--leaf);
    border-radius: 10px;
    padding: 16px 20px;
}
.address-card h4 { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--leaf); margin-bottom: 6px; }
.address-card p { margin: 0; font-size: 0.92rem; color: var(--graphite); }

/* ---------- Spec sheet ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.88rem; }
.spec-table tr { border-bottom: 1px solid var(--steel-light); }
.spec-table td { padding: 12px 4px; }
.spec-table td:first-child { color: var(--steel); width: 40%; }
.spec-table td:last-child { color: var(--graphite); font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--forest-dark);
    color: var(--white);
    padding: 56px 0;
    text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
.contact-info-card {
    background: var(--forest-dark);
    color: var(--white);
    border-radius: var(--radius);
    padding: 34px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-item .hex-badge { flex-shrink: 0; width: 42px; height: 42px; font-size: 0.8rem; }
.contact-info-item strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lime); font-family: var(--font-mono); margin-bottom: 4px; }
.contact-info-item span, .contact-info-item a { font-size: 0.92rem; color: rgba(255,255,255,0.9); display: block; }

form.card-form { background: var(--white); border: 1px solid var(--steel-light); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--forest-dark); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--steel-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.94rem;
    background: var(--paper);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px rgba(139,197,63,0.2);
}
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #e6f4ea; color: #1e7b34; border: 1px solid #b8e4c4; }
.alert-error { background: #fdecea; color: #b3261e; border: 1px solid #f6c6c2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-dark); color: rgba(255,255,255,0.75); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; }
.site-footer h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; font-size: 0.9rem; }
.site-footer a:hover { color: var(--lime); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-band { background: var(--paper-alt); padding: 22px 0; border-bottom: 1px solid var(--steel-light); }
.breadcrumb-band .container { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--steel); font-family: var(--font-mono); }
.breadcrumb-band a { color: var(--forest); }

/* ---------- Responsive ---------- */

/* Tablets AND phones held/simulated in "desktop mode" (wide viewport on a
   small device) land here too. Height reduced from 50vh to 40vh to shrink
   the slider and the blank band it used to leave beneath it.
   background-size stays "contain" so the ENTIRE uploaded image is always
   visible, never cropped. True desktops (1025px+) use the full-viewport,
   full-bleed ("cover") rule defined above and are untouched by this block. */
@media (max-width: 1024px) {
    .hero-slides {
        min-height: 28vh;
        min-height: 28dvh;
        height: 28vh;
        height: 28dvh;
    }
    /* Show the whole uploaded image with nothing cropped off the edges.
       Because the box height rarely matches the image's own aspect ratio
       exactly, this can leave a small neutral band above and/or below the
       image — that trade-off is intentional here: no part of the photo is
       ever cut off on smaller screens. */
    .hero-slide-bg { background-size: contain; }
}

@media (max-width: 960px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { max-width: 320px; margin: 0 auto; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    /* Hero: height and background-size already set by the 1024px rule above;
       this block only fine-tunes spacing and type scale for narrow phones. */
    .hero-slide { padding: 0; }
    .hero-arrow { width: 38px; height: 38px; font-size: 0.8rem; }
    .hero-arrow.prev { left: 12px; }
    .hero-arrow.next { right: 12px; }
    .hero-dots { bottom: 10px; gap: 8px; }
    .hero-dot { width: 8px; height: 8px; }
    .hero-dot.is-active { width: 20px; }
    .hero-scroll-cue { display: none; }
    .hero h1 { font-size: 1.5rem; margin-bottom: 0.4em; }
    .hero p.lead { font-size: 0.9rem; margin-bottom: 1.2rem; }
    .hero-actions .btn { padding: 8px 16px; font-size: 0.8rem; }
    .hero-stats { gap: 16px; }
    .hero-stats div strong { font-size: 1.1rem; }
    .hero-stats div span { font-size: 0.7rem; }

    /* Tightened: this used to leave a large blank band beneath the hero
       slider before "WHAT WE BUILD" and the other sections started.
       Now only the photo itself takes up space — no dead air above
       or below it. */
    .hero-slider { padding: 0; margin: 0; }
    .hero-slide { padding: 0; }
    .clients-section { padding-bottom: 12px; }
    .section { padding: 20px 0; }
    .section-head { margin: 0 auto 16px; }
    .section-head.left { margin: 0 0 16px; }

    /* ---------- Navigation – mobile (minimized) ---------- */
    .nav-wrap {
        padding: 6px 10px;
        position: relative;
    }

    .nav-toggle {
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        justify-self: auto;
        padding: 4px 2px;
    }

    .nav-actions .search-form { display: none; }
    .mobile-search { display: block; }

    .main-nav {
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 24px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.08);
        transform: translateY(-130%);
        transition: transform .25s ease;
        justify-self: auto;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav ul li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--steel-light); }

    .form-row { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Keep 2 columns for featured products even on very small screens */
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .floating-actions { right: 14px; bottom: 16px; }
    .floating-btn { width: 48px; height: 48px; font-size: 1.2rem; }
    .floating-btn svg { width: 22px; height: 22px; }
}
@media (max-width: 380px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-body h3 { font-size: 0.9rem; }
    .product-body p { font-size: 0.8rem; }
}