/* =========================================================
   Traction Outsourcing Limited — Shared Site Styles
   Used by: index.html, founder/index.html, events/index.html
   Covers: reset, header, nav, hamburger, dropdown, footer
   ========================================================= */

:root {
    --primary-color: #000000;
    --accent-color: #e35f26;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white-color: #ffffff;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- Header / Nav ---------- */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
nav { display: flex; align-items: center; }
nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}
nav a:hover { color: var(--accent-color); }

.hamburger {
    display: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    z-index: 110;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    flex-shrink: 0;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 260px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 10px 0;
    z-index: 105;
    left: 20px;
    top: 100%;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: background 0.2s ease;
    margin-left: 0;
}
.dropdown-item:hover { background-color: var(--light-bg); color: var(--accent-color); }
.dropdown-item img { height: 24px; width: auto; margin-right: 12px; object-fit: contain; }

.section { padding: 60px 10%; }

/* ---------- Footer ---------- */
footer {
    background: #111;
    color: #ccc;
    padding: 50px 6% 25px;
    font-size: 14px;
    margin-top: 60px;
}
.footer-container { max-width: 1000px; margin: 0 auto; }
.footer-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 70px;
    text-align: center;
    margin-bottom: 35px;
}
.footer-col h3 {
    color: white;
    font-size: 14px;
    margin-bottom: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.footer-col p, .footer-col a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}
.footer-col a:hover { color: var(--accent-color); }
.footer-social { display: flex; gap: 14px; justify-content: center; margin-top: 4px; }
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 0;
    transition: background 0.2s;
}
.footer-social a:hover { background: var(--accent-color); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; color: #888; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    header { padding: 15px 6%; }
    header > a { flex-shrink: 1; min-width: 0; overflow: hidden; }
    header > a img { max-width: min(45vw, 200px) !important; width: auto !important; height: auto !important; }
    .hamburger { display: flex; flex-shrink: 0; }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 40px 40px 40px;
        box-sizing: border-box;
        transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
        z-index: 105;
        overflow-y: auto;
    }
    nav.active { right: 0; }
    nav a { margin: 0 0 25px 0; font-size: 18px; width: 100%; padding: 6px 0; }
    nav > a, nav > .dropdown { border-bottom: 1px solid #eee; padding-bottom: 16px; margin-bottom: 20px; }
    nav > a:last-child, nav > .dropdown:last-child { border-bottom: none; margin-bottom: 0; }
    .dropdown { width: 100%; }
    nav > .dropdown > a { display: flex; align-items: center; justify-content: space-between; }
    .dropdown-arrow { font-size: 13px; transition: transform 0.3s ease; color: #999; }
    .dropdown.open .dropdown-arrow { transform: rotate(180deg); color: var(--accent-color); }
    .dropdown-content {
        position: static;
        display: block;
        box-shadow: none;
        padding: 0 0 0 15px;
        min-width: unset;
        background-color: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    .dropdown.open .dropdown-content { max-height: 600px; padding-top: 5px; }
    .dropdown-item { margin: 0; padding: 12px 0; font-size: 16px; border-bottom: 1px solid #f2f2f2; }
    .dropdown-item:last-child { border-bottom: none; }
    .hamburger.toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    .section { padding: 40px 6%; }
}
@media (max-width: 600px) {
    .footer-row { gap: 40px; }
}

/* ---------- Lead Capture Form (used on /services/*/ pages) ---------- */
.lead-form-wrap { max-width: 550px; margin: 0 auto; background: var(--light-bg); border-radius: 10px; padding: 35px; border-top: 4px solid var(--accent-color); }
.lead-form-wrap h3 { color: var(--primary-color); margin: 0 0 6px; font-size: 20px; text-align: center; }
.lead-form-wrap .lead-form-sub { text-align: center; color: #777; font-size: 14px; margin: 0 0 22px; }
.lead-form { display: grid; gap: 14px; }
.lead-form input { width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; font-family: inherit; box-sizing: border-box; }
.lead-form input:focus { outline: none; border-color: var(--accent-color); }
.lead-form button { background-color: var(--accent-color); color: #000; border: none; padding: 14px; font-weight: 800; font-size: 15px; border-radius: 6px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; transition: opacity 0.2s; }
.lead-form button:hover { opacity: 0.9; }
.lead-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.lead-form-status { text-align: center; font-size: 14px; margin-top: 12px; min-height: 18px; }

/* ---------- Shared header/nav/footer JS hook classes end ---------- */
