/* ========================================
   Pannonia Painting Service Pty Ltd
   styles.css
   ======================================== */

/* — Colour palette — */
:root {
    --primary: #2c3e50;      /* deep slate blue — authority, trust */
    --primary-dark: #1a252f;
    --accent: #d4a72c;       /* warm amber — paint, craftsmanship */
    --accent-light: #e8c77e;
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --text-dark: #1a252f;
    --text-light: #4a5568;
    --border: #e2e8f0;
    --border-dark: #cbd5e0;
}

/* — Reset & base — */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

img,
svg {
    display: block;
}

/* — Layout — */
.container {
    width: min(90%, 1200px);
    margin-inline: auto;
    padding: 1.5rem 0;
}

.section {
    padding: 4rem 0;
}

/* — Navbar — */
.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    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;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

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

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

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

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

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: background-color 0.2s ease;
}

/* — Hero — */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--bg-card);
    padding: 5rem 0;
    text-align: center;
}

.hero-inner h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-sublead {
    font-size: 1.125rem;
    max-width: 42rem;
    margin-inline: auto;
    margin-bottom: 2rem;
    color: var(--accent-light);
}

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

/* — Buttons — */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--bg-card);
    border-color: var(--border-dark);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--border-dark);
}

/* — Sections — */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 40rem;
    margin-inline: auto;
}

/* — Services Grid — */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

.service-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* — Credentials Strip — */
.credentials {
    background-color: var(--primary);
    color: var(--bg-card);
    padding: 2rem 0;
}

.credentials-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.credential-label {
    font-weight: 600;
    color: var(--accent-light);
}

.credential-value {
    color: var(--bg-card);
}

/* — Footer — */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
    font-size: 0.9rem;
}

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

.footer h4 {
    color: var(--bg-card);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--bg-card);
}

.footer-blurb {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-copy {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.7;
}

/* — Mobile — */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-card);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links .nav-link,
    .nav-links .nav-cta {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid var(--border);
        text-align: left;
    }

    .nav-links .nav-cta {
        border-bottom: none;
    }

    .hero {
        padding: 3rem 0;
    }

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

    .hero-ctas {
        flex-direction: column;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
