/*
Theme Name: Sleep Life Balance
Theme URI: https://www.sleeplifebalance.com.au
Author: Sleep Life Balance
Description: Custom theme for Sleep Life Balance – simple responsive brochure site.
Version: 1.0
*/

:root {
    --primary: #005B96;
    --primary-light: #E3F4FF;
    --accent: #2EA8E6;
    --text: #1F2933;
    --muted: #64748B;
    --bg: #F8FAFC;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* HEADER & NAV */

header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar {
    background-color: var(--primary);
    color: white;
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
}

.top-bar-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-inner span {
    white-space: nowrap;
}

.nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: var(--muted);
}

.logo-text strong {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    color: var(--primary);
}

/* nav links desktop */

.nav-links {
    display: flex;
    gap: 1.25rem;
    font-size: 0.95rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--muted);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* hamburger button */

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 0.4rem;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 999px;
    margin: 3px 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* HERO */

.hero {
    background: linear-gradient(135deg, var(--primary), #0b6cb8);
    color: white;
    padding: 3rem 1rem 2.75rem;
}

.hero-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.breadcrumbs {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.breadcrumbs a {
    color: #e0f2ff;
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-size: 2.2rem;
}

.hero p {
    max-width: 640px;
    margin: 0;
    font-size: 1rem;
    opacity: 0.97;
}

/* LAYOUT */

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1.3fr);
    gap: 2.5rem;
}

/* TYPOGRAPHY */

h2 {
    font-size: 1.45rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.15rem;
    margin-top: 1.8rem;
    margin-bottom: 0.4rem;
}

p {
    margin-top: 0;
    margin-bottom: 0.9rem;
}

ul, ol {
    padding-left: 1.15rem;
    margin-top: 0.3rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.25rem;
}

/* CONTENT ELEMENTS */

.info-box {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e2e8f0;
    margin: 1.25rem 0;
}

.info-box.highlight {
    background-color: var(--primary-light);
    border-color: #bfdbfe;
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.info-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e2e8f0;
}

.card h3 {
    margin-top: 0;
}

.badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

/* BUTTONS */

.btn-row {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #0f172a;
}

.btn-outline {
    background-color: #ffffff;
    color: var(--primary);
    border-color: #cbd5f5;
}

/* SIDEBAR */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e2e8f0;
}

.sidebar-section h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

.sidebar-section small {
    color: var(--muted);
    font-size: 0.85rem;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.sidebar-section ul li {
    margin-bottom: 0.25rem;
}

.sidebar-section label {
    font-size: 0.85rem;
    display: block;
    margin-top: 0.7rem;
    margin-bottom: 0.1rem;
}

.sidebar-section input,
.sidebar-section textarea {
    width: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: 0.4rem;
    border: 1px solid #cbd5e1;
    font-size: 0.9rem;
}

.sidebar-section textarea {
    min-height: 90px;
    resize: vertical;
}

/* FORMS */

.form {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border: 1px solid #e2e8f0;
    max-width: 640px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 0.4rem;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
}

.form textarea {
    min-height: 120px;
    resize: vertical;
}

/* FOOTER */

footer {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 1rem;
    margin-top: 1rem;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-inner a {
    color: var(--muted);
}

/* MOBILE CALL BUTTON */

.mobile-cta-phone {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    display: none;
    justify-content: center;
    z-index: 60;
}

/* RESPONSIVE BREAKPOINTS */

/* large tablets and down */
@media (max-width: 900px) {
    .page-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 2.4rem 1rem 2.3rem;
    }

    .page {
        padding: 2rem 1rem 2.5rem;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* phones and small tablets */
@media (max-width: 720px) {
    .top-bar-inner {
        justify-content: center;
    }

    .nav {
        flex-wrap: wrap;
        align-items: center;
    }

    .logo-img {
        height: 42px;
    }

    .nav-links {
        width: 100%;
        border-top: 1px solid #e2e8f0;
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
        display: none;           /* hidden by default on mobile */
    }

    .nav-links.open {
        display: flex;           /* shown when JS toggles .open */
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .card-grid,
    .card-grid.two {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.96rem;
    }

    .mobile-cta-phone {
        display: flex;
    }
}

/* tiny phones */
@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .page {
        padding: 1.75rem 0.9rem 2.25rem;
    }
}
