/*
Theme Name: How To Home Loan
Theme URI: https://www.howtohomeloan.com.au
Author: Ross McFarlane
Description: Custom minimal theme for How To Home Loan. Full-width content area. No wrappers.
Version: 1.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #0A2540;
    line-height: 1.5;
}

/* Full-width content — no constraints */
.hthl-page-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hthl-page-content > * {
    width: 100%;
}

/* ── NAV ── */
.hthl-nav-wrapper {
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}

.hthl-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hthl-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.hthl-logo {
    font-size: 20px;
    font-weight: 800;
    color: #0A2540;
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.hthl-logo:hover { color: #0A2540; }

.hthl-nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hthl-nav-item {
    position: relative;
}

.hthl-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.hthl-nav-link:hover {
    background: #f1f5f9;
    color: #0A2540;
}

.hthl-dropdown-arrow {
    font-size: 9px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.hthl-nav-item:hover .hthl-dropdown-arrow {
    transform: rotate(180deg);
}

.hthl-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    min-width: 260px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    padding: 8px 0;
}

.hthl-nav-item:hover .hthl-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hthl-dropdown-section {
    padding: 10px 16px 4px 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.hthl-dropdown-link {
    display: block;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s ease;
}

.hthl-dropdown-link:hover {
    background: #f8fafc;
    color: #0A2540;
    padding-left: 20px;
}

.hthl-featured {
    font-weight: 600;
    color: #0A2540;
}

.hthl-cta-button {
    background: #0A2540 !important;
    color: #F6C44F !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    margin-left: 8px;
}

.hthl-cta-button:hover {
    background: #F6C44F !important;
    color: #0A2540 !important;
}

.hthl-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.hthl-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #0A2540;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hthl-mobile-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hthl-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.hthl-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .hthl-mobile-toggle { display: flex; }

    .hthl-nav-menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 16px 20px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        border-top: 2px solid #F6C44F;
    }

    .hthl-nav-menu.hthl-menu-open { display: flex; }

    .hthl-nav-item { width: 100%; }

    .hthl-nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 13px 8px;
        border-bottom: 1px solid #f1f5f9;
        border-radius: 0;
    }

    .hthl-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        border-radius: 6px;
        margin: 4px 0 8px 0;
        display: none;
    }

    .hthl-nav-item.hthl-dropdown-open .hthl-dropdown { display: block; }
    .hthl-nav-item.hthl-dropdown-open .hthl-dropdown-arrow { transform: rotate(180deg); }

    .hthl-cta-button {
        margin-left: 0 !important;
        margin-top: 8px;
        text-align: center;
        display: block;
        border-radius: 8px !important;
    }
}

/* ── FOOTER ── */
.hthl-footer {
    background: #0A2540;
    color: #ffffff;
    padding: 48px 24px 32px;
    width: 100%;
}

.hthl-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hthl-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .hthl-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.hthl-footer-brand {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.hthl-footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    max-width: 300px;
}

.hthl-footer-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #F6C44F;
    margin-bottom: 14px;
}

.hthl-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hthl-footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.hthl-footer-links a:hover { color: #ffffff; }

.hthl-footer-disclaimer {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    line-height: 1.7;
}

.hthl-footer-disclaimer p { margin-bottom: 8px; }
.hthl-footer-disclaimer p:last-child { margin-bottom: 0; }
