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

:root {
    --ink: #262522;
    --muted: #69655d;
    --soft: #f4f0e8;
    --paper: #fffdf8;
    --stone: #d8d0c0;
    --stone-dark: #5f5a51;
    --green: #344b35;
    --green-soft: #dce5d7;
    --tan: #c7a36d;
    --charcoal: #2d302d;
    --silver: #b7b4aa;
    --border: #ded6c9;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(38, 37, 34, 0.08);
    --radius: 8px;
    --container: 1180px;
    --font-body: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-display: Georgia, "Palatino Linotype", "Book Antiqua", "Iowan Old Style", serif;
    --font-ui: "Segoe UI", Aptos, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--ink);
    background: var(--soft);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--muted);
    margin-bottom: 1rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.04;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.55rem, 4.9vw, 4.55rem);
    letter-spacing: 0;
    max-width: 840px;
}

h2 {
    font-size: clamp(2.05rem, 4vw, 3.65rem);
    letter-spacing: 0;
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
}

h4 {
    font-size: 1rem;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1rem;
    background: var(--green);
    color: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
    top: 0;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 253, 248, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.header-content {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-ui);
    font-weight: 720;
    color: var(--ink);
}

.logo-image {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text {
    color: var(--green);
    font-size: 1.15rem;
}

.logo-text-black {
    color: var(--ink);
}

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

.main-nav a {
    font-family: var(--font-ui);
    color: var(--stone-dark);
    font-weight: 620;
    font-size: 0.93rem;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green);
}

.nav-contact,
.btn {
    font-family: var(--font-ui);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
    font-weight: 680;
    border: 1px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-contact,
.btn-primary {
    background: var(--green);
    color: var(--white) !important;
}

.nav-contact:hover,
.btn-primary:hover {
    background: #263a28;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--paper);
}

.btn-text {
    display: inline-flex;
    color: var(--green);
    font-family: var(--font-ui);
    font-weight: 680;
    padding: 0;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 120;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.section {
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-tight {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

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

.section-green {
    background: var(--green);
    color: var(--white);
}

.section-green h2,
.section-green h3,
.section-green p {
    color: var(--white);
}

.page-header {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
}

.page-header p {
    max-width: 760px;
    font-size: 1.2rem;
}

.hero-studio {
    min-height: calc(100vh - 74px);
    display: grid;
    align-items: center;
    padding: clamp(4rem, 8vw, 7rem) 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(199, 163, 109, 0.22), transparent 34%),
        linear-gradient(135deg, var(--paper) 0%, var(--soft) 64%, #e5ded0 100%);
}

.hero-layout,
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.hero-copy p {
    max-width: 690px;
    font-size: clamp(1.08rem, 1.6vw, 1.24rem);
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.micro-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 2rem;
}

.micro-list span {
    font-family: var(--font-ui);
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--stone-dark);
    background: rgba(255, 253, 248, 0.7);
    font-weight: 640;
    font-size: 0.9rem;
}

.studio-frame,
.photo-frame {
    min-height: 380px;
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid rgba(94, 86, 75, 0.18);
    box-shadow: var(--shadow);
    background:
        linear-gradient(135deg, rgba(255, 253, 248, 0.25), rgba(52, 75, 53, 0.12)),
        repeating-linear-gradient(45deg, rgba(45, 48, 45, 0.08) 0 1px, transparent 1px 16px),
        linear-gradient(135deg, #d8d0c0 0%, #f0eadf 100%);
    overflow: hidden;
    position: relative;
}

.studio-frame {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 11;
    min-height: 420px;
    background:
        linear-gradient(180deg, rgba(38, 37, 34, 0) 56%, rgba(38, 37, 34, 0.22) 100%),
        url("../images/hero/renocast-home-hero.jpg") center / cover no-repeat;
}

.photo-frame {
    min-height: 260px;
    box-shadow: none;
}

.photo-image {
    background-color: var(--soft);
    background-repeat: no-repeat;
    background-size: cover;
}

.photo-image::after {
    display: none;
}

.image-hand-finishing {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.08), rgba(38, 37, 34, 0.12)),
        url("../images/story/renocast-hand-finishing-paver.jpg");
    background-position: center;
}

.image-mixer-production {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.08), rgba(38, 37, 34, 0.12)),
        url("../images/story/renocast-mixer-handmade-production.jpg");
    background-position: center;
}

.image-workshop-overview {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.08), rgba(38, 37, 34, 0.12)),
        url("../images/story/renocast-workshop-materials-overview.jpg");
    background-position: center;
}

.image-about-hero {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.08), rgba(38, 37, 34, 0.12)),
        url("../images/story/renocast-about-hero.png");
    background-position: center;
}

.image-process-grabbing {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.08), rgba(38, 37, 34, 0.12)),
        url("../images/story/renocast-grabbing-alt.png");
    background-position: center;
}

.image-product-paver {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.04), rgba(38, 37, 34, 0.08)),
        url("../images/products/renocast-square-paver.jpg");
    background-position: center 58%;
}

.image-product-cobbles {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.04), rgba(38, 37, 34, 0.08)),
        url("../images/products/renocast-cobblestones.jpg");
    background-position: center 54%;
}

.image-product-footprints {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.04), rgba(38, 37, 34, 0.08)),
        url("../images/products/renocast-footprint-pavers.jpg");
    background-position: center 54%;
}

.image-product-range {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.04), rgba(38, 37, 34, 0.08)),
        url("../images/products/renocast-range-overview.jpg");
    background-position: center;
}

.image-footprint-alt {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.04), rgba(38, 37, 34, 0.08)),
        url("../images/products/renocast-footprint-alt.png");
    background-position: center;
}

.image-product-stock-hero {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.04), rgba(38, 37, 34, 0.08)),
        url("../images/products/renocast-stock-hero.png");
    background-position: center;
}

.image-product-stock-detail {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.04), rgba(38, 37, 34, 0.08)),
        url("../images/products/renocast-stock-detail.png");
    background-position: center;
}

.image-product-stock-3 {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.04), rgba(38, 37, 34, 0.08)),
        url("../images/products/renocast-stock-3.png");
    background-position: center;
}

.image-product-stock-4 {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.04), rgba(38, 37, 34, 0.08)),
        url("../images/products/renocast-stock-4.png");
    background-position: center;
}

.image-product-stock-5 {
    background-image:
        linear-gradient(180deg, rgba(255, 253, 248, 0.04), rgba(38, 37, 34, 0.08)),
        url("../images/products/renocast-stock-5.png");
    background-position: center;
}

.photo-frame::after {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    right: 1rem;
    font-family: var(--font-ui);
    font-weight: 680;
    color: rgba(38, 37, 34, 0.72);
}

.section-heading {
    max-width: 780px;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.story-copy {
    max-width: 560px;
}

.story-copy p:last-child {
    margin-bottom: 0;
}

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

.story-photo {
    min-height: 220px;
    border-radius: var(--radius);
    border: 1px solid rgba(94, 86, 75, 0.18);
    box-shadow: var(--shadow);
    overflow: hidden;
    background-color: var(--stone);
}

.story-photo-large {
    grid-row: span 2;
    min-height: 460px;
}

.process-photo-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
}

.process-photo-feature {
    min-height: 560px;
}

.kicker {
    font-family: var(--font-ui);
    display: block;
    margin-bottom: 0.9rem;
    color: var(--green);
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

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

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.info-card,
.product-card,
.contact-action,
.process-note {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 1.8rem);
}

.info-card p,
.product-card p {
    margin-bottom: 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card > div:last-child {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.product-card .photo-frame {
    aspect-ratio: 4 / 3;
    min-height: 0;
}

.product-media-frame {
    min-height: 420px;
}

.product-hero-frame {
    aspect-ratio: 16 / 9;
    min-height: 0;
}

.product-detail-frame {
    aspect-ratio: 1 / 1;
    justify-self: center;
    max-width: 440px;
    min-height: 0;
    width: 100%;
}

.product-detail-cards {
    grid-template-columns: 1fr;
}

.product-meta {
    color: var(--green);
    font-family: var(--font-ui);
    font-weight: 700;
    margin-bottom: 0.35rem !important;
}

.product-card h3 {
    margin-bottom: 0.85rem;
}

.product-collage {
    display: grid;
    grid-template-columns: minmax(150px, 0.82fr) minmax(180px, 1fr);
    gap: 1rem;
    align-items: stretch;
    justify-self: end;
    max-width: 500px;
    width: 100%;
}

.product-collage-feature {
    aspect-ratio: 2 / 5;
    min-height: 0;
    width: 100%;
}

.product-collage-stack {
    display: grid;
    gap: 1rem;
    grid-template-rows: repeat(2, auto);
}

.product-collage-stack .photo-frame {
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.product-table th,
.product-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.product-table th {
    font-family: var(--font-ui);
    color: var(--ink);
    background: #ebe4d8;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-table tr:last-child td {
    border-bottom: 0;
}

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

.swatch {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(38, 37, 34, 0.14);
}

.swatch strong,
.swatch span {
    color: var(--white);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.swatch.silver strong,
.swatch.silver span,
.swatch.dakriet strong,
.swatch.dakriet span,
.swatch.custom-colours strong,
.swatch.custom-colours span {
    color: var(--ink);
    text-shadow: none;
}

.renosterbos {
    background: var(--charcoal);
}

.silver {
    background: var(--silver);
}

.dakriet {
    background: var(--tan);
}

.custom-colours {
    background:
        linear-gradient(135deg, rgba(176, 181, 169, 0.45), rgba(247, 243, 235, 0.92) 58%, rgba(255, 255, 255, 0.96)),
        var(--warm-white);
}

.process-band {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.process-list {
    display: grid;
    gap: 1rem;
}

.process-note {
    background: rgba(255, 253, 248, 0.78);
}

.process-visual {
    display: grid;
    gap: 1.5rem;
}

.process-visual .section-heading {
    margin-bottom: 0;
}

.process-visual .photo-frame {
    min-height: 360px;
}

.check-list,
.plain-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.check-list li,
.plain-list li {
    color: var(--muted);
    padding-left: 1.6rem;
    position: relative;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--green);
}

.plain-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72rem;
    width: 0.75rem;
    height: 1px;
    background: var(--green);
}

.project-cta {
    padding: clamp(2rem, 6vw, 4rem);
    border-radius: calc(var(--radius) + 10px);
    background:
        linear-gradient(135deg, rgba(52, 75, 53, 0.96), rgba(38, 37, 34, 0.96)),
        var(--green);
    color: var(--white);
}

.project-cta h2,
.project-cta p {
    color: var(--white);
}

.project-cta .btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.54);
}

.project-cta .btn-secondary:hover {
    color: var(--white);
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

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

.contact-action {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 190px;
}

.contact-action strong {
    font-size: 1.2rem;
}

.contact-action span {
    color: var(--muted);
}

.contact-action-muted {
    border-style: dashed;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: clamp(2rem, 5vw, 4rem);
}

.contact-form {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.form-group {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 760;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    font: inherit;
    background: var(--white);
    color: var(--ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 3px solid rgba(52, 75, 53, 0.18);
    border-color: var(--green);
}

.form-note {
    font-size: 0.94rem;
}

.honeypot {
    display: none;
}

.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.78);
    padding: 3.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.8fr));
    gap: 2rem;
}

.footer-logo {
    width: 58px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-brand p,
.footer-contact p {
    color: rgba(255, 255, 255, 0.72);
}

.footer-nav ul {
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.footer-nav a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.86);
}

.footer-legal {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 1rem;
    margin-top: 1rem;
}

@media (max-width: 980px) {
    .hero-layout,
    .split-layout,
    .story-layout,
    .process-band,
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .studio-frame {
        min-height: 340px;
    }

    .story-copy {
        max-width: 780px;
    }

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

    .product-collage {
        grid-template-columns: 1fr;
        justify-self: stretch;
        max-width: 100%;
    }

    .product-collage-feature {
        aspect-ratio: 4 / 5;
    }

    .process-photo-feature {
        min-height: 460px;
    }
}

@media (max-width: 760px) {
    h1 {
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .header-content {
        min-height: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(82vw, 340px);
        height: 100vh;
        height: 100dvh;
        max-width: 100vw;
        padding: 5.25rem 2rem 2rem;
        background: var(--paper);
        border-left: 1px solid var(--border);
        box-shadow: -20px 0 60px rgba(38, 37, 34, 0.18);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, visibility 0.18s ease;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav ul {
        display: grid;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid var(--border);
    }

    .main-nav a {
        display: block;
        padding: 1rem 0;
    }

    .nav-contact {
        margin-top: 1rem;
    }

    .hero-studio {
        min-height: auto;
    }

    .hero-actions,
    .action-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .product-table,
    .product-table thead,
    .product-table tbody,
    .product-table tr,
    .product-table th,
    .product-table td {
        display: block;
    }

    .product-table thead {
        display: none;
    }

    .product-table tr {
        border-bottom: 1px solid var(--border);
        padding: 0.45rem 0;
    }

    .product-table tr:last-child {
        border-bottom: 0;
    }

    .product-table td {
        border-bottom: 0;
        display: grid;
        gap: 0.75rem;
        grid-template-columns: minmax(6.5rem, 0.45fr) 1fr;
        padding: 0.7rem 1rem;
    }

    .product-table td::before {
        color: var(--green);
        content: attr(data-label);
        font-family: var(--font-ui);
        font-size: 0.74rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .card-grid,
    .product-grid,
    .contact-grid,
    .swatch-grid,
    .story-photo-grid {
        grid-template-columns: 1fr;
    }

    .story-photo,
    .story-photo-large {
        grid-row: auto;
        min-height: 260px;
    }

    .process-photo-feature,
    .process-visual .photo-frame,
    .product-media-frame {
        min-height: 300px;
    }

    .product-table {
        display: block;
        overflow-x: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
