/* Mokwatisi Holdings - shared stylesheet for all pages */
:root { --teal: rgb(12, 95, 91); --accent: turquoise; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 110px; }

body {
    font-family: 'Lucida Sans', 'Lucida Grande', Verdana, sans-serif;
    color: #fff;
    line-height: 1.6;
    background: var(--teal);
    min-height: 100vh;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }

h2 {
    text-align: center;
    color: var(--accent);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 20px;
}

/* ===== HEADER ===== */
.sticky-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(12, 95, 91, 0.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.sticky-header.scrolled {
    background: rgba(12, 95, 91, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo-area { display: flex; align-items: center; gap: 15px; min-width: 0; }
.logo {
    width: 100px; height: 100px;
    border-radius: 30px;
    border: 2px solid var(--accent);
    object-fit: cover;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.brand-name {
    font-size: clamp(1.1rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.1;
}
.header-icons { display: flex; gap: 15px; align-items: center; }
.header-icons a, .footer-icons a { color: #fff; font-size: 22px; transition: 0.3s ease; }
.header-icons a:hover, .footer-icons a:hover { color: var(--accent); transform: translateY(-2px); }

/* ===== NAV ===== */
.main-nav { display: flex; gap: 10px; }
.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.main-nav a:hover { background: var(--accent); color: var(--teal); transform: translateY(-2px); }
.main-nav a.active { background: #fff; color: var(--teal); }

/* ===== HAMBURGER (hidden on desktop) ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px; height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    z-index: 1100;
}
.hamburger span {
    display: block;
    height: 3px; width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero-bg {
    background:
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
        var(--hero) center / cover no-repeat;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 150px 20px 60px; /* top space clears the fixed header */
}
.hero-bg h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.2; margin-bottom: 10px; }
.hero-bg h2 { font-size: clamp(1.2rem, 3.5vw, 2rem); color: #fff; margin-bottom: 15px; }
.hero-bg p { font-size: clamp(1rem, 2.5vw, 1.2rem); opacity: 0.9; max-width: 800px; }

.btn {
    background: #fff;
    color: var(--teal);
    font-size: 1rem;
    font-family: inherit;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    margin-top: 30px;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}
.btn:hover { background: var(--accent); color: #000; transform: translateY(-2px); }

/* ===== SECTIONS, GRID, CARDS ===== */
.section { padding: 60px 20px; max-width: 1100px; margin: 0 auto; text-align: center; }
.section .grid { padding: 0; margin-top: 20px; }
.section > p { max-width: 700px; margin: 0 auto; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}
.card {
    background: rgba(0, 0, 0, 0.28);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); border-color: #fff; }
.card i { font-size: 2.2rem; color: var(--accent); }
.card h3 { font-size: 1.25rem; }
.card p { font-size: 0.95rem; opacity: 0.9; }
.card img:not(.profile-img) { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; }

/* About block (home page) */
.about-intro { max-width: 800px; margin: 0 auto 10px; }
.about-block {
    max-width: 950px;
    margin: 20px auto;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    text-align: left;
}
.about-block h3 { margin-bottom: 6px; }
.about-block i { color: var(--accent); margin-right: 8px; }

/* Founder */
.founder-card { max-width: 1100px; margin: 0 auto; padding: 40px 30px; background: rgba(0, 0, 0, 0.4); }
.profile-img {
    width: min(400px, 100%);
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 30%;
    border: 3px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.founder-card p { font-size: 1rem; line-height: 1.7; opacity: 1; }

/* ===== FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: inherit;
    font-size: 16px; /* stops iOS zooming on focus */
    outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form ::placeholder { color: rgba(255, 255, 255, 0.6); }
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form .btn { margin-top: 0; }

/* ===== MAP ===== */
.map-container { width: 100%; max-width: 900px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 2px solid var(--accent); }
.map-container iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ===== FOOTER ===== */
.footer { background: rgba(0, 0, 0, 0.45); padding: 50px 20px 20px; margin-top: 40px; }
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
.footer-logo img {
    width: 70px; height: 70px;
    border-radius: 15px;
    border: 2px solid var(--accent);
    object-fit: cover;
}
.footer-logo h3 { margin-top: 10px; }
.footer-logo p { opacity: 0.75; font-size: 0.9rem; }
.footer-icons { display: flex; gap: 15px; margin-top: 12px; align-items: center; }
.footer-services h4, .footer-info h4 { color: var(--accent); margin-bottom: 10px; font-size: 1.1rem; }
.footer-services p, .footer-info p { font-size: 0.9rem; margin-bottom: 8px; opacity: 0.85; overflow-wrap: anywhere; }
.footer-info i { color: var(--accent); margin-right: 8px; }
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.85rem;
}

.hero-bg h1 + h2 {
    margin-top: 20px;
    margin-bottom: 25px;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
    .logo { width: 80px; height: 80px; }
    .main-nav a { padding: 8px 10px; }
}

/* ===== MOBILE + SMALL TABLET: hamburger menu ===== */
@media (max-width: 900px) {
    .sticky-header { padding: 10px 15px; }
    .logo { width: 55px; height: 55px; border-radius: 16px; }
    .brand-name { font-size: 1.1rem; }
    .header-icons { gap: 14px; }
    .header-icons a { font-size: 18px; }

    .hamburger { display: flex; }

    .main-nav {
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: rgb(12, 95, 91);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    .main-nav.open { max-height: 400px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
    .main-nav a {
        padding: 16px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    .main-nav a:hover { transform: none; }
    .main-nav a.active { background: rgba(255, 255, 255, 0.15); color: #fff; }

    .hero-bg { padding-top: 110px; min-height: 80vh; }
}

@media (max-width: 768px) {
    .section { padding: 40px 15px; }
    .grid { padding: 30px 15px; }
    .founder-card { padding: 30px 18px; }
    .map-container iframe { height: 300px; }
    .footer-container { flex-direction: column; align-items: center; text-align: center; }
    .footer-icons { justify-content: center; }
}

@media (max-width: 380px) {
    .brand-name { font-size: 0.95rem; }
    .btn { padding: 12px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 900px) {
    .hero-bg {
        background:
            linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
            var(--hero) center / cover no-repeat;
        aspect-ratio: auto;
        min-height: 75vh;
        justify-content: center;
        padding: 110px 20px 70px;   /* clears the header; bottom space keeps slider dots clear */
    }
    .hero-bg h1 { font-size: 1.9rem; margin-bottom: 0; }
    .hero-bg h1 + h2 { font-size: 1.1rem; margin: 10px 0 12px; }
    .hero-bg p { font-size: 1rem; }
    .hero-bg .btn { margin-top: 18px; padding: 12px 26px; font-size: 1rem; }
}

@media (max-width: 380px) {
    .hero-bg { min-height: 400px; }
    .hero-bg h1 { font-size: 1.6rem; }
}

/* ===== HERO SLIDER ===== */
.hero-slider { position: relative; overflow: hidden; background: #000; }
.hero-slider .slide {
    position: absolute; inset: 0;
    background: var(--img) center / cover no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero-slider .slide.active { opacity: 1; }
.hero-slider::before {
    content: ""; position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.6); z-index: 1;
}
.hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
}
.dots {
    position: absolute; bottom: 20px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 10px; z-index: 3;
}
.dots button {
    width: 12px; height: 12px; padding: 0;
    border-radius: 50%; border: 2px solid #fff;
    background: transparent; cursor: pointer;
}
.dots button.active { background: turquoise; border-color: turquoise; }

/* Slider arrows */
.hero-slider { cursor: pointer; }
.arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 3;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s ease;
}
.arrow:hover { background: turquoise; color: #000; border-color: turquoise; }
.arrow.prev { left: 15px; }
.arrow.next { right: 15px; }

@media (max-width: 600px) {
    .arrow { width: 36px; height: 36px; font-size: 1rem; }
    .arrow.prev { left: 8px; }
    .arrow.next { right: 8px; }
}

/* ===== CONNECTED SIDE CIRCUIT BACKGROUND ===== */

body {
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 180px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.65;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 180px 100%;
}

/* LEFT SIDE */
body::before {
    left: 0;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='900' viewBox='0 0 180 900' fill='none'%3E%3Cg stroke='%2340E0D0' stroke-opacity='.18' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 100h55l25 25h70'/%3E%3Cpath d='M0 300h35l30-30h70l25-25h20'/%3E%3Cpath d='M0 500h65l25 25h55l25-25h10'/%3E%3Cpath d='M0 700h45l25-25h60l25 25h25'/%3E%3Cpath d='M45 0v100'/%3E%3Cpath d='M65 270V150l25-25'/%3E%3Cpath d='M90 525v100l-25 25'/%3E%3Cpath d='M70 675v-90l25-25'/%3E%3C/g%3E%3Cg fill='%2340E0D0' fill-opacity='.25'%3E%3Ccircle cx='150' cy='125' r='3'/%3E%3Ccircle cx='135' cy='245' r='3'/%3E%3Ccircle cx='145' cy='525' r='3'/%3E%3Ccircle cx='130' cy='675' r='3'/%3E%3Ccircle cx='45' cy='100' r='3'/%3E%3Ccircle cx='90' cy='525' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* RIGHT SIDE */
/* =========================================
   MOKWATISI HOLDINGS - PCB SIDE CIRCUITS
   ========================================= */

body {
    position: relative;
    overflow-x: hidden;
}

/* Left and right circuit decorations */
body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    width: 260px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.35;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

/* ================= LEFT SIDE ================= */

body::before {
    left: 0;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 1000' fill='none'%3E%3Cg stroke='%2340E0D0' stroke-width='2' stroke-opacity='.28' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M35 0V270L95 330V520L180 605V1000'/%3E%3Cpath d='M75 0V220L125 270V430L205 510V850'/%3E%3Cpath d='M115 0V170L155 210V350L225 420V720'/%3E%3Cpath d='M155 0V120L185 150V270L245 330V560'/%3E%3Cpath d='M195 0V90L220 115V190L260 230'/%3E%3Cpath d='M0 470H65L95 500'/%3E%3Cpath d='M0 760H55L85 730'/%3E%3C/g%3E%3Cg stroke='%2340E0D0' stroke-width='2' stroke-opacity='.35'%3E%3Ccircle cx='95' cy='330' r='7'/%3E%3Ccircle cx='125' cy='270' r='7'/%3E%3Ccircle cx='155' cy='210' r='7'/%3E%3Ccircle cx='185' cy='150' r='7'/%3E%3Ccircle cx='95' cy='500' r='7'/%3E%3Ccircle cx='205' cy='510' r='7'/%3E%3Ccircle cx='225' cy='420' r='7'/%3E%3C/g%3E%3Cg fill='%2340E0D0' fill-opacity='.35'%3E%3Crect x='174' y='599' width='12' height='12'/%3E%3Crect x='79' y='724' width='12' height='12'/%3E%3C/g%3E%3C/svg%3E");
}


/* ================= RIGHT SIDE ================= */

body::after {
    right: 0;
    transform: scaleX(-1);

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 1000' fill='none'%3E%3Cg stroke='%2340E0D0' stroke-width='2' stroke-opacity='.28' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M35 0V270L95 330V520L180 605V1000'/%3E%3Cpath d='M75 0V220L125 270V430L205 510V850'/%3E%3Cpath d='M115 0V170L155 210V350L225 420V720'/%3E%3Cpath d='M155 0V120L185 150V270L245 330V560'/%3E%3Cpath d='M195 0V90L220 115V190L260 230'/%3E%3Cpath d='M0 470H65L95 500'/%3E%3Cpath d='M0 760H55L85 730'/%3E%3C/g%3E%3Cg stroke='%2340E0D0' stroke-width='2' stroke-opacity='.35'%3E%3Ccircle cx='95' cy='330' r='7'/%3E%3Ccircle cx='125' cy='270' r='7'/%3E%3Ccircle cx='155' cy='210' r='7'/%3E%3Ccircle cx='185' cy='150' r='7'/%3E%3Ccircle cx='95' cy='500' r='7'/%3E%3Ccircle cx='205' cy='510' r='7'/%3E%3Ccircle cx='225' cy='420' r='7'/%3E%3C/g%3E%3Cg fill='%2340E0D0' fill-opacity='.35'%3E%3Crect x='174' y='599' width='12' height='12'/%3E%3Crect x='79' y='724' width='12' height='12'/%3E%3C/g%3E%3C/svg%3E");
}


/* ================= TABLET ================= */

@media (max-width: 1000px) {
    body::before,
    body::after {
        width: 180px;
        opacity: 0.28;
    }
}


/* ================= PHONE ================= */

@media (max-width: 600px) {
    body::before,
    body::after {
        width: 105px;
        opacity: 0.20;
    }
}