:root {
    --primary: #2c5f2d;
    --primary-light: #3f7840;
    --soft-bg: #f9f7f0;
    --maori-red: #b13e3e;
    --maori-black: #2d2d2d;
    --text-dark: #1e2b1e;
    --text-soft: #2e3b2e;
    --gray-mid: #6b6b6b;
    --gray-light: #cbd5e1;
    --shadow: 0 8px 16px rgba(0, 20, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --border-radius: 2rem;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: #ede7d7;
    background-image:
    repeating-linear-gradient(45deg, rgba(140, 70, 30, 0.02) 0px, rgba(140, 70, 30, 0.02) 12px, transparent 12px, transparent 24px),
    repeating-linear-gradient(135deg, rgba(100, 60, 20, 0.02) 0px, rgba(100, 60, 20, 0.02) 12px, transparent 12px, transparent 24px);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 2rem auto;
    overflow-x: hidden;
}

h1, h2 {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.4rem;
    border-left: 12px solid var(--maori-red);
    padding-left: 1.5rem;
}

h2 {
    font-size: 1.9rem;
    margin-top: 2rem;
    border-bottom: 2px solid rgba(177, 62, 62, 0.2);
    padding-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--maori-red);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    position: relative;
}

.header-top::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 0;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(90deg,
    var(--maori-red) 0px,
    var(--maori-red) 10px,
    transparent 10px,
    transparent 20px,
    var(--primary) 20px,
    var(--primary) 30px,
    transparent 30px,
    transparent 40px);
    opacity: 0.5;
    pointer-events: none;
}

.header-top h1 {
    margin: 0;
    font-weight: 700;
    color: var(--primary);
    border-left: none;
    padding-left: 0;
    font-size: 3rem;
}

.header-logo {
    width: 180px;
    height: auto;
    display: block;
    filter: drop-shadow(var(--shadow));
    background: transparent;
}

.main-nav {
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 60px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
    border: 1px solid rgba(44,95,45,0.15);
    border-top: 3px solid var(--maori-red);
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.2rem;
}

.main-nav a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    color: var(--text-soft);
    font-weight: 550;
    font-size: 1.1rem;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background-color 0.2s, border-color 0.2s;
}

.main-nav a.active {
    background-color: var(--maori-red);
    color: white;
    border-color: var(--maori-red);
}

.main-nav a:hover {
    transform: scale(1.05);
    background-color: rgba(177, 62, 62, 0.08);
    border-color: var(--maori-red);
    box-shadow: 0 6px 12px rgba(177, 62, 62, 0.15);
}

.main-nav a.active:hover {
    background-color: #c04545;
    transform: scale(1.05);
}

main {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    border-radius: 48px;
    padding: 2.8rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    border: 1px solid rgba(177, 62, 62, 0.2);
}

.avatar {
    width: 240px;
    height: 240px;
    border-radius: 0;
    object-fit: cover;
    margin: 0 auto 1.2rem;
    border: none;
    box-shadow: var(--shadow);
}

footer {
    text-align: center;
    color: var(--gray-mid);
    font-size: 0.95rem;
    margin-top: 1.2rem;
    padding: 2rem 0;
    border-top: 2px solid var(--maori-red);
    background: rgba(237, 231, 215, 0.5);
    backdrop-filter: blur(2px);
    border-radius: 40px 40px 0 0;
}

.footer-copyright::before {
    content: "© 2026 Treaty Education - Sharon Annett";
    display: block;
    text-align: center;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--maori-red), var(--primary));
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #c04545, #2c5f2d);
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--maori-red);
    transform: translateY(-3px);
}

.nav-toggle {
    display: none;
}

.small-banner {
    display: block;
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.email a,
.phone a {
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    word-break: break-word;
    max-width: 100%;
}

.email a:hover,
.phone a:hover {
    color: var(--maori-red);
    text-decoration: underline;
}

.contact-sidebar .email a,
.contact-sidebar .phone a,
.contact-details .email a,
.contact-details .phone a {
    font-size: 0.8rem;
    word-break: break-all;
    display: block;
}

.contact-sidebar .email,
.contact-sidebar .phone,
.contact-details .email,
.contact-details .phone {
    margin: 1rem 0;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        margin-left: auto;
    }
    .nav-toggle button {
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--primary);
        cursor: pointer;
        padding: 0.5rem;
    }

    .main-nav {
        width: 100%;
        padding: 0;
        border-radius: 0;
        background: white;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    .main-nav.show ul {
        display: flex;
    }
    .main-nav ul li {
        width: 100%;
        text-align: center;
    }
    .main-nav a {
        display: block;
        padding: 1rem;
        border-radius: 0;
        border-bottom: 1px solid #eee;
    }
    .main-nav a.active {
        background-color: var(--maori-red);
        color: white;
    }

    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .header-logo {
        width: 120px;
    }
    .header-top h1 {
        font-size: 1.8rem;
    }

    .home-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    main {
        padding: 1.5rem;
        border-radius: 24px;
    }
    h1 {
        font-size: 1.8rem;
        border-left-width: 8px;
        padding-left: 1rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .contact-sidebar {
        padding: 1.5rem;
    }
    .avatar {
        width: 180px;
        height: 180px;
    }
    .social-share {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 0.8rem;
    }
    .header-top h1 {
        font-size: 1.5rem;
    }
    .header-logo {
        width: 100px;
    }
    .main-nav a {
        font-size: 1rem;
    }
    .footer-copyright::before {
        font-size: 0.8rem;
    }

    .contact-sidebar .email a,
    .contact-sidebar .phone a,
    .contact-details .email a,
    .contact-details .phone a {
        font-size: 0.7rem;
    }
}