/* ============================================================
   Cleggett Investments Pty Ltd — Stylesheet
   ============================================================ */

:root {
    --primary: #1a365d;
    --primary-dark: #1e3a8a;
    --accent: #0d9488;
    --accent-light: #99f6e4;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --border-dark: #cbd5e1;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.2s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   Container
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ============================================================
   Navbar
   ============================================================ */

.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--accent);
}

.nav-menu {
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-cta {
    margin-left: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--bg);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--surface);
    padding: clamp(4rem, 8vw, 7rem) 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    max-width: 720px;
    margin: 0 auto 1.5rem;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   Trust Strip
   ============================================================ */

.trust-strip {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 0.5rem;
}

.trust-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.trust-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ============================================================
   Services
   ============================================================ */

.services {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.services h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-sub {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    transition: var(--transition);
    letter-spacing: -0.005em;
}

.btn-primary {
    background: var(--accent);
    color: var(--surface);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--surface);
    border: 2px solid var(--surface);
}

.btn-outline:hover {
    background: var(--surface);
    color: var(--primary);
    transform: translateY(-1px);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    background: var(--primary);
    color: var(--surface);
    margin-top: 4rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding: 3rem 0;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--surface);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--surface);
    margin-bottom: 1rem;
    display: block;
}

.footer-blurb {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-creds {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.5rem 0;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-menu.open {
        max-height: 500px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-inner {
        justify-content: space-between;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 0.75rem;
    }

    .trust-item {
        padding: 1rem 0.25rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }

    .services {
        padding: 3rem 0;
    }

    .services-grid {
        gap: 1.25rem;
    }

    .service-card {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .trust-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .trust-value {
        font-size: 0.85rem;
    }
}
