/* ================================================
   TBM NAV + FOOTER - Shared Stylesheet
   Matches the new index.html premium design system
   Updated: February 22, 2026
   ================================================ */

/* --- FONT IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS VARIABLES --- */
:root {
    --primary: #00a651;
    --primary-dark: #008c44;
    --accent: #f58d30;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --text-dark: #1a1a2e;
    --text-body: #505659;
    --text-muted: #7a7f83;
    --border: #e8ecef;
    --footer-bg: #111827;
    --footer-text: #9ca3af;
    --footer-muted: #6b7280;
}

/* --- RESET & BASE (nav/footer relevant) --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ================================================
   HEADER / NAVIGATION
   ================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    transition: box-shadow 0.3s ease;
    height: 72px;
}

.site-header.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    display: block;
    padding: 8px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-body);
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links > li > a:hover {
    color: var(--text-dark);
    background: #f0f2f4;
}

.nav-links > li > a.active {
    color: var(--primary);
}

/* Dropdown */
.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 240px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-body);
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown a:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Header right */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.header-phone svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    stroke: var(--primary);
}

.btn-header-quote {
    display: inline-block;
    padding: 10px 22px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-header-quote:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mobile hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 999;
    padding: 100px 32px 40px;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-overlay.open {
    display: flex;
}

.mobile-nav-overlay a {
    display: block;
    padding: 16px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
}

.mobile-nav-overlay a:last-child {
    border-bottom: none;
}

.mobile-nav-overlay .mobile-cta {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-overlay .mobile-cta a {
    text-align: center;
    border-bottom: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
}

.mobile-nav-overlay .mobile-cta .btn-mobile-quote {
    background: var(--accent);
    color: var(--white);
}

.mobile-nav-overlay .mobile-cta .btn-mobile-call {
    background: #f0f2f4;
    color: var(--text-dark);
}


/* ================================================
   FOOTER
   ================================================ */
.site-footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--footer-text);
    line-height: 1.65;
    margin-top: 12px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
}

.footer-logo span {
    color: var(--primary);
}

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--footer-text);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--footer-text);
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: var(--footer-text);
}

.footer-contact-item a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--footer-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: var(--footer-muted);
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}


/* ================================================
   FADE-IN ANIMATION (shared)
   ================================================ */
.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .header-actions .header-phone { display: none; }
    .header-actions .btn-header-quote { display: none; }
    .mobile-toggle { display: flex; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
