:root {
    --ink: #12312c;
    --muted: #607069;
    --paper: #fffdf7;
    --soft: #edf4ef;
    --sand: #f6f5ed;
    --teal: #0b6b65;
    --green: #517b46;
    --gold: #e1a730;
    --coral: #bc563e;
    --line: rgba(18, 49, 44, 0.14);
    --shadow: 0 18px 42px rgba(18, 49, 44, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    color: var(--ink);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0;
    margin: 0;
}

body {
    background: var(--sand);
    overflow-x: hidden;
}

body,
button,
input,
textarea {
    font-size: 16px;
}

a {
    color: var(--teal);
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.05;
}

h1 {
    font-size: 4.1rem;
    max-width: 780px;
    overflow-wrap: break-word;
}

h2 {
    font-size: 2.35rem;
    max-width: 800px;
}

h3 {
    font-size: 1.15rem;
}

p {
    color: #40524c;
    line-height: 1.68;
}

address {
    color: #40524c;
    font-style: normal;
    line-height: 1.65;
}

::selection {
    background: #f3c14d;
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid rgba(225, 167, 48, 0.7);
    outline-offset: 3px;
}

.shell {
    margin: 0 auto;
    max-width: 1180px;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}

.section {
    padding: 5.5rem 0;
}

.section--soft {
    background: var(--soft);
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading p {
    max-width: 680px;
}

.kicker {
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 850;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.1rem;
    text-align: center;
    text-decoration: none;
}

.button--primary {
    background: var(--gold);
    color: var(--ink);
}

.button--primary:hover,
.button--primary:focus-visible {
    background: #f3c14d;
    color: var(--ink);
}

.button--light {
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

.button--outline {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}

.button--outline:hover,
.button--outline:focus-visible {
    background: var(--soft);
    color: var(--teal);
}

.hero {
    isolation: isolate;
    min-height: 650px;
    overflow: hidden;
    padding: 5.5rem 0 4rem;
    position: relative;
}

.hero__image,
.hero__shade {
    inset: 0;
    position: absolute;
}

.hero__image {
    background-image: url("https://peprimary.co.za/assets/images/image02.jpg?v=3d8e17a8");
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    z-index: -3;
}

.hero__shade {
    background:
        linear-gradient(90deg, rgba(18, 49, 44, 0.94), rgba(18, 49, 44, 0.72) 48%, rgba(18, 49, 44, 0.12)),
        linear-gradient(0deg, rgba(18, 49, 44, 0.44), rgba(18, 49, 44, 0.1));
    z-index: -2;
}

.hero__content {
    color: #ffffff;
    padding-top: 0.5rem;
}

.hero__content h1,
.hero__content p {
    color: #ffffff;
}

.hero__content p {
    font-size: 1.25rem;
    max-width: 680px;
}

.hero__eyebrow {
    align-items: center;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.hero__eyebrow span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hero__eyebrow img {
    background: #ffffff;
    border-radius: 8px;
    height: 62px;
    object-fit: contain;
    padding: 0.28rem;
    width: 54px;
}

.hero__actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__actions {
    margin: 2rem 0;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    max-width: 760px;
}

.hero__facts span {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.65rem 0.8rem;
}

.hero__facts strong {
    color: #f3c14d;
    margin-right: 0.3rem;
}

.quick-strip {
    background: var(--ink);
    color: #ffffff;
}

.quick-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
}

.quick-strip a {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: grid;
    gap: 0.2rem;
    min-height: 74px;
    padding: 0.65rem 1rem;
    text-decoration: none;
}

.quick-strip a:last-child {
    border-right: 0;
}

.quick-strip a:hover,
.quick-strip a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.quick-strip span {
    color: #f3c14d;
    font-size: 0.78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.quick-strip strong {
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.split,
.media-band__grid,
.contact-grid,
.faq-grid {
    align-items: start;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
}

.intro-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.intro-panel dl {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.intro-panel div {
    border-bottom: 1px solid var(--line);
    padding-bottom: 1rem;
}

.intro-panel div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.intro-panel dt {
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 850;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.intro-panel dd {
    color: var(--ink);
    font-weight: 750;
    margin: 0;
}

.notice-grid,
.feature-grid,
.steps,
.gallery {
    display: grid;
    gap: 1rem;
}

.notice-grid {
    grid-template-columns: 1.1fr repeat(2, 1fr);
}

.notice-card,
.feature-card,
.steps article,
.contact-details,
.faq-list details,
.gallery figure {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.notice-card,
.feature-card,
.steps article,
.contact-details {
    padding: 1.25rem;
}

.notice-card {
    min-height: 210px;
}

.notice-card--accent {
    background: var(--teal);
}

.notice-card--accent h3,
.notice-card--accent p,
.notice-card--accent span {
    color: #ffffff;
}

.notice-card span {
    color: var(--green);
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

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

.feature-card {
    min-height: 260px;
}

.feature-icon {
    align-items: center;
    background: #e8f1e8;
    border-radius: 8px;
    color: var(--teal);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 850;
    height: 48px;
    justify-content: center;
    margin-bottom: 1rem;
    min-width: 48px;
    padding: 0 0.45rem;
}

.media-band {
    background: var(--paper);
}

.media-band__copy {
    padding-top: 1rem;
}

.check-list {
    display: grid;
    gap: 0.75rem;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.check-list li {
    align-items: start;
    color: #40524c;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 22px 1fr;
    line-height: 1.55;
}

.check-list li::before {
    background: var(--gold);
    border-radius: 50%;
    content: "";
    height: 10px;
    margin-top: 0.45rem;
    width: 10px;
}

.media-band__photo {
    margin: 0;
}

.media-band__photo img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.media-band__photo figcaption,
.gallery figcaption {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
    margin-top: 0.55rem;
}

.steps {
    counter-reset: step;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps article {
    min-height: 225px;
}

.steps span {
    color: var(--coral);
    display: block;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.gallery {
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
}

.gallery figure {
    margin: 0;
    overflow: hidden;
    padding: 0.65rem;
}

.gallery img {
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
    width: 100%;
}

.faq-grid {
    grid-template-columns: 0.7fr 1.3fr;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-list details {
    padding: 1rem 1.1rem;
}

.faq-list summary {
    color: var(--ink);
    cursor: pointer;
    font-weight: 850;
}

.faq-list p {
    margin: 0.75rem 0 0;
}

.contact-section {
    background: var(--paper);
}

.contact-copy p {
    max-width: 620px;
}

.contact-actions {
    margin: 1.5rem 0 1rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-links a {
    background: var(--soft);
    border-radius: 8px;
    color: var(--teal);
    font-weight: 800;
    padding: 0.55rem 0.75rem;
    text-decoration: none;
}

.social-links a:hover,
.social-links a:focus-visible {
    background: #dfeee5;
}

.contact-details h3 {
    margin-bottom: 1rem;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.map-shell {
    margin-top: 2rem;
}

.map-shell iframe {
    aspect-ratio: 16 / 7;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-height: 330px;
    width: 100%;
}

.site-footer {
    background: var(--ink);
    color: #ffffff;
    padding: 1.2rem 0;
}

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

.site-footer p {
    color: #ffffff;
    margin: 0;
}

.site-footer a {
    color: #f3c14d;
    font-weight: 800;
    text-decoration: none;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

@media (max-width: 980px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .quick-strip__grid,
    .feature-grid,
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-strip a:nth-child(2) {
        border-right: 0;
    }

    .quick-strip a:nth-child(3),
    .quick-strip a:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .split,
    .media-band__grid,
    .contact-grid,
    .faq-grid,
    .notice-grid,
    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 4rem 0;
    }

    .hero {
        min-height: 590px;
        padding: 4rem 0 3rem;
    }

    .hero__content {
        margin-left: 0;
        margin-right: auto;
        max-width: 390px;
    }

    .hero__shade {
        background:
            linear-gradient(0deg, rgba(18, 49, 44, 0.9), rgba(18, 49, 44, 0.68)),
            linear-gradient(90deg, rgba(18, 49, 44, 0.88), rgba(18, 49, 44, 0.48));
    }

    .hero__eyebrow {
        align-items: flex-start;
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .hero__content p {
        font-size: 1.05rem;
    }

    h1 {
        font-size: 2.2rem;
        max-width: 11em;
    }

    h2 {
        font-size: 1.65rem;
    }

    .quick-strip__grid,
    .feature-grid,
    .gallery {
        grid-template-columns: 1fr;
    }

    .quick-strip a {
        border-right: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }

    .quick-strip a:first-child {
        border-top: 0;
    }

    .hero__actions .button,
    .contact-actions .button {
        width: 100%;
    }

    .map-shell iframe {
        aspect-ratio: 1 / 1;
        min-height: 300px;
    }

    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
