/* ============================================
   MSR Building Co. — Main Stylesheet
   Aesthetic: Refined luxury / editorial
   Fonts: Cormorant Garamond + Jost
============================================ */

:root {
    --black: #0a0a0a;
    --off-black: #141414;
    --charcoal: #1e1e1e;
    --stone: #8a8275;
    --sand: #c8b89a;
    --cream: #f5f0e8;
    --off-white: #faf9f6;
    --white: #ffffff;
    --gold: #b8975a;
    --gold-light: #d4af7a;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Jost', sans-serif;

    --nav-h: 80px;
    --container: 1200px;
    --radius: 2px;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--off-white);
    color: var(--off-black);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- TYPOGRAPHY ---- */
.section-label {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--off-black);
    margin-bottom: 28px;
}

.section-header {
    margin-bottom: 60px;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 36px;
    border: 1px solid;
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.btn-dark {
    background: var(--off-black);
    color: var(--cream);
    border-color: var(--off-black);
}
.btn-dark:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-light {
    background: var(--cream);
    color: var(--off-black);
    border-color: var(--cream);
}
.btn-light:hover {
    background: var(--white);
    border-color: var(--white);
}

.btn-outline-light {
    background: transparent;
    color: var(--cream);
    border-color: rgba(245,240,232,0.5);
}
.btn-outline-light:hover {
    border-color: var(--cream);
    background: rgba(245,240,232,0.08);
}

.btn-full { width: 100%; text-align: center; }

/* ============================================
   NAVIGATION
============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.scrolled {
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.logo-msr {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.08em;
}

.logo-divider {
    display: block;
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.25);
}

.logo-text {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    transition: color 0.25s;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-cta {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(184,151,90,0.4);
    padding: 9px 22px;
    transition: all 0.25s;
}
.nav-cta:hover {
    background: var(--gold);
    color: var(--off-black);
    border-color: var(--gold);
}

/* ============================================
   HERO
============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;

    background:
        /* TOP DARK FADE (text readability) */
        linear-gradient(
            to top,
            rgba(10,10,10,0.85) 0%,
            rgba(10,10,10,0.4) 40%,
            rgba(10,10,10,0.1) 70%
        ),

        /* SUBTLE GOLD TONE (luxury feel) */
        radial-gradient(
            ellipse at 70% 50%,
            rgba(184,151,90,0.08) 0%,
            transparent 60%
        ),

        /* YOUR IMAGE */
        url("/static/images/Sov-1.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transform: scale(1.02); /* slight depth */
}

.hero-bg {
    animation: heroZoom 14s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to right,
        rgba(10,10,10,0.75) 0%,
        rgba(10,10,10,0.4) 40%,
        transparent 70%
    );
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin: 0 auto;
    padding: calc(var(--nav-h) + 60px) 40px 120px;
    max-width: 780px;
    margin-left: 10vw;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 7vw, 5.5rem);
    font-weight: 300;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 28px;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

.hero-line:nth-child(1) { animation: fadeUp 0.9s var(--ease) 0.35s forwards; }
.hero-line:nth-child(2) { animation: fadeUp 0.9s var(--ease) 0.5s forwards; }
.hero-line:nth-child(3) { animation: fadeUp 0.9s var(--ease) 0.65s forwards; }

.hero-line.italic { font-style: italic; color: var(--sand); }

.hero-body {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 0.8s forwards;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 0.95s forwards;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s var(--ease) 1.5s forwards;
}

.hero-scroll-hint span {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scrollPulse 2s ease-in-out infinite 1.5s;
}

/* ============================================
   ABOUT STRIP
============================================ */
.about-strip {
    padding: 100px 0;
    background: var(--off-white);
}

.about-strip-inner {
    max-width: 640px;   /* controls text column width */
}

.about-strip-text p {
    color: var(--stone);
    margin-bottom: 16px;
    font-size: 15px;
}

.about-strip-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: 60px;
    border-left: 1px solid rgba(0,0,0,0.08);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--off-black);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
}

/* ============================================
   FEATURED PROJECTS
============================================ */
.featured-projects {
    padding: 100px 0;
    background: var(--cream);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card-inner {
    display: block;
    cursor: pointer;
}

.project-image-wrap {
    position: relative;
    height: 420px;
    overflow: hidden;
    background: var(--charcoal);
}

.project-image {
    transition: transform 0.6s var(--ease);
}

.project-card:hover .project-image {
    transform: scale(1.04);
}

.project-image-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--charcoal) 0%, #2a2820 100%);
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: rgba(255,255,255,0.25);
    font-style: italic;
}

.project-image-placeholder.active { display: flex; }

.project-image-wrap.no-image .project-image { display: none; }
.project-image-wrap.no-image .project-image-placeholder { display: flex; }

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay { opacity: 1; }

.project-view-link {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
}

.project-meta {
    padding: 20px 0 8px;
}

.project-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.project-type {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--stone);
}

.project-status {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}

.project-status.completed {
    background: rgba(184,151,90,0.12);
    color: var(--gold);
}

.project-status.in-progress {
    background: rgba(100,140,180,0.12);
    color: #6a9fc8;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--off-black);
    margin-bottom: 4px;
}

.project-suburb {
    font-size: 13px;
    color: var(--stone);
}

.projects-cta {
    margin-top: 48px;
    text-align: center;
}

/* ============================================
   PROCESS
============================================ */
.process {
    padding: 100px 0;
    background: var(--off-black);
}

.process .section-label { color: var(--gold); }
.process .section-heading { color: var(--white); }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-top: 60px;
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: rgba(184,151,90,0.25);
    line-height: 1;
    margin-bottom: 20px;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 12px;
}

.step-body {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    line-height: 1.75;
}

/* ============================================
   CTA BAND
============================================ */
.cta-band {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--charcoal) 0%, #1a1610 100%);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(184,151,90,0.08) 0%, transparent 70%);
}

.cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 40px;
}

.cta-body {
    color: rgba(255,255,255,0.5);
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PAGE HERO (inner pages)
============================================ */
.page-hero {
    padding: calc(var(--nav-h) + 20px) 40px 32px;
    max-width: var(--container);
    margin: 0 auto;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 40px;
}

.page-hero-content {
    max-width: 760px;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--off-black);
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--stone);
    max-width: 520px;
    line-height: 1.75;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .page-hero {
        padding: calc(var(--nav-h) + 24px) 24px 40px;
    }
}

/* ============================================
   PROJECTS FULL (listing)
============================================ */
.projects-full {
    padding-bottom: 120px;
}

.project-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 80px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}

.project-row--reverse {
    direction: rtl;
}
.project-row--reverse > * { direction: ltr; }

.project-row-image {
    position: relative;
    min-height: 480px;
    background: var(--charcoal);
    overflow: hidden;
}

.project-row-image img {
    transition: transform 0.6s var(--ease);
}
.project-row:hover .project-row-image img { transform: scale(1.04); }

.project-row-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--charcoal) 0%, #2a2820 100%);
}
.project-row-placeholder.active { display: flex; }

.placeholder-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: rgba(255,255,255,0.15);
    font-style: italic;
}

.project-row-image.no-image-fallback img { display: none; }
.project-row-image.no-image-fallback .project-row-placeholder { display: flex; }

.project-row-content {
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--off-white);
}

.project-row-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--off-black);
    margin: 8px 0 6px;
}

.project-row-suburb {
    font-size: 13px;
    color: var(--stone);
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.project-row-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--stone);
    margin-bottom: 14px;
}

.project-read-more {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    transition: opacity 0.2s ease;
}

.project-read-more:hover {
    opacity: 0.7;
}

.project-row-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
}

.project-row-features li {
    font-size: 13px;
    color: var(--off-black);
    padding-left: 16px;
    position: relative;
}

.project-row-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 12px;
}

/* ============================================
   PROJECT DETAIL
============================================ */
.detail-hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    overflow: hidden;
}

.detail-hero-image {
    position: absolute;
    inset: 0;
    background: var(--charcoal);
}

.detail-hero-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a17 0%, #2a2820 100%);
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
    font-style: italic;
}
.detail-hero-placeholder.active { display: flex; }

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
}

.detail-hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 48px;
    z-index: 2;
}

.back-link {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
    transition: color 0.25s;
}
.back-link:hover { color: var(--white); }

.detail-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--white);
    margin: 8px 0 6px;
}

.detail-suburb {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.05em;
}

.detail-body {
    padding: 80px 0 120px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
    align-items: start;
}

.detail-description {
    font-size: 16px;
    line-height: 2;
    color: #3a3530;
    font-family: var(--font-body);
    font-weight: 300;
}

.sidebar-block {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 28px 0;
}

.sidebar-title {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.sidebar-dl dt {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 4px;
}

.sidebar-dl dd {
    font-size: 15px;
    color: var(--off-black);
    margin-bottom: 16px;
}

.sidebar-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-features li {
    font-size: 14px;
    color: var(--off-black);
    padding-left: 16px;
    position: relative;
}

.sidebar-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 11px;
}

.sidebar-cta p {
    font-size: 14px;
    color: var(--stone);
    margin-bottom: 16px;
}

/* ============================================
   CONTACT
============================================ */
.contact-section {
    padding-bottom: 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 80px;
}

.contact-block {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 24px 0;
}

.contact-block h3 {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.contact-block p {
    font-size: 15px;
    color: var(--off-black);
    line-height: 1.6;
}

.contact-block a {
    color: var(--off-black);
    transition: color 0.2s;
}
.contact-block a:hover { color: var(--gold); }

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
}

input, select, textarea {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: var(--off-black);
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 13px 16px;
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.25s;
    width: 100%;
    appearance: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--gold);
}

input::placeholder, textarea::placeholder {
    color: rgba(0,0,0,0.25);
}

textarea { resize: vertical; min-height: 140px; }

.form-note {
    font-size: 12px;
    color: var(--stone);
}
.form-alert {
    padding: 16px;
    border-radius: var(--radius);
    font-size: 14px;
    text-align: center;
    margin-bottom: 4px;
}

.form-alert.success {
    background: rgba(184,151,90,0.1);
    border: 1px solid rgba(184,151,90,0.3);
    color: var(--gold);
}

.form-alert.error {
    background: rgba(140,60,60,0.08);
    border: 1px solid rgba(140,60,60,0.2);
    color: #8c3c3c;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--black);
    padding: 72px 0 0;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.05em;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-contact p {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
}
.footer-contact a {
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
}
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px 40px;
}

.footer-bottom p {
    font-size: 11px;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.05em;
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .about-strip-inner { gap: 48px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-grid aside { max-width: 480px; }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .nav-inner { padding: 0 24px; }
    .nav-links, .nav-cta { display: none; }

    .hero-content { margin-left: 0; padding: calc(var(--nav-h) + 40px) 24px 80px; }
    .about-strip-inner { grid-template-columns: 1fr; }
    .about-strip-stats { padding-left: 0; border-left: none; border-top: 1px solid rgba(0,0,0,0.08); padding-top: 40px; grid-template-columns: repeat(3, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .project-row { grid-template-columns: 1fr; }
    .project-row--reverse { direction: ltr; }
    .project-row-content { padding: 40px 24px; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; gap: 32px; }
    .footer-inner { grid-template-columns: 1fr; }
    .page-hero { padding: calc(var(--nav-h) + 24px) 24px 40px; }
}


/* ============================================================
   CAROUSEL
============================================================ */
.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10,10,10,0.55);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.25);
    width: 48px;
    height: 48px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.25s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover { background: rgba(10,10,10,0.85); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
    padding: 0;
}

.carousel-dot.active {
    background: var(--white);
    transform: scale(1.3);
}


/* ============================================================
   DETAIL HERO — full-bleed carousel with overlay text
============================================================ */
.detail-hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
}

.detail-hero-placeholder {
    width: 100%;
    height: 100%;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stone);
    font-size: 14px;
    letter-spacing: 0.1em;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,10,10,0.75) 0%,
        rgba(10,10,10,0.15) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 5;
}

.detail-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 60px 48px;
    z-index: 10;
    color: var(--white);
}

.back-link {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
    margin-right: 20px;
    transition: color 0.2s var(--ease);
}

.back-link:hover { color: var(--white); }

.back-link--parent::before { content: ''; }

.detail-hero-content .project-type {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 12px;
}

.detail-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--white);
}

.detail-suburb {
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    margin-top: 8px;
    letter-spacing: 0.05em;
}


/* ============================================================
   DETAIL BODY
============================================================ */
.detail-body {
    padding: 80px 0 100px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 80px;
    align-items: start;
}

.detail-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--charcoal);
    max-width: 660px;
}


/* Structured sections */
.detail-sections {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
}

.detail-section-heading {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--off-black);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sand);
}

.detail-section-list {
    list-style: none;
    padding: 0;
}

.detail-section-list li {
    font-size: 14px;
    font-weight: 300;
    color: var(--charcoal);
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
    border-bottom: 1px solid rgba(200,184,154,0.25);
}

.detail-section-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 12px;
}


/* Coming soon banner */
.coming-soon-banner {
    background: var(--cream);
    border-left: 3px solid var(--gold);
    padding: 28px 32px;
    margin-bottom: 40px;
}

.coming-soon-banner p {
    font-size: 15px;
    color: var(--charcoal);
    margin: 8px 0 20px;
    line-height: 1.6;
}


/* Child properties (subdivision) */
.detail-children {
    margin-top: 64px;
}

.detail-children-heading {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--off-black);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sand);
}

.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.child-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(200,184,154,0.35);
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.child-card:hover {
    box-shadow: 0 8px 32px rgba(10,10,10,0.12);
    transform: translateY(-3px);
}

.child-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.child-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.child-card:hover .child-card-image img { transform: scale(1.04); }

.child-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stone);
    font-size: 13px;
    letter-spacing: 0.1em;
}

.child-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.child-card:hover .child-card-overlay { opacity: 1; }

.child-card-meta {
    padding: 20px 22px 24px;
}

.child-card-meta .project-type {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

.child-card-meta h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    margin: 6px 0 4px;
    color: var(--off-black);
}

.child-card-meta p {
    font-size: 13px;
    color: var(--stone);
    font-weight: 300;
}

.child-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.child-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s ease;
}

.child-carousel-slide {
    flex: 0 0 100%;
    height: 100%;
}

.child-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.child-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(10,10,10,0.55);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 3;
}

.child-carousel-btn:hover {
    background: rgba(10,10,10,0.8);
}

.child-carousel-prev {
    left: 12px;
}

.child-carousel-next {
    right: 12px;
}

.child-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.child-carousel-dot {
    width: 18px;
    height: 2px;
    border: none;
    background: rgba(255,255,255,0.3);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.child-carousel-dot.active {
    background: var(--white);
    transform: scaleX(1.2);
}

.child-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

/* Sidebar */
.detail-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-block {
    border-top: 1px solid var(--sand);
    border-bottom: 1px solid var(--sand);
    padding: 28px 0;
}

.sidebar-title {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.sidebar-dl dt {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--stone);
    margin-top: 24px;
}

.sidebar-dl dt:first-child {
    margin-top: 0;
}

.sidebar-dl dd {
    font-size: 14px;
    color: var(--charcoal);
    margin: 6px 0 0;
}

.sidebar-dl dd:last-child {
    margin-bottom: 8px;
}

.sidebar-features {
    list-style: none;
    padding: 0;
}

.sidebar-features li {
    font-size: 13.5px;
    font-weight: 300;
    color: var(--charcoal);
    padding: 7px 0 7px 16px;
    border-bottom: 1px solid rgba(200,184,154,0.3);
    position: relative;
    line-height: 1.45;
}

.sidebar-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 11px;
}

.sidebar-cta {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-cta p {
    font-size: 14px;
    color: var(--stone);
    margin-bottom: 16px;
}

.project-status {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 10px;
    background: var(--cream);
    color: var(--charcoal);
}

.project-status.completed { background: #e8f0e8; color: #2a6b2a; }
.project-status.in-progress { background: #f0ece0; color: #7a6020; }


/* ============================================================
   PROJECTS LISTING — subdivision badge
============================================================ */
.project-row-image {
    position: relative;
}

.subdivision-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--off-black);
    color: var(--cream);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 14px;
    z-index: 5;
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .detail-sections {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .detail-sidebar {
        position: static;
    }

    .detail-hero-content {
        padding: 0 24px 36px;
    }

    .detail-hero { height: 60vh; }

    .carousel-btn { display: none; }
}

@media (max-width: 600px) {
    .children-grid { grid-template-columns: 1fr; }
    .detail-hero { height: 55vh; }
}

/* ============================================================
   NAV VARIANTS
============================================================ */

/* Home page: keep current transparent / white nav before scroll */
.home-page .logo-msr {
    color: var(--white);
}

.home-page .logo-text {
    color: rgba(255,255,255,0.88);
}

.home-page .nav-link {
    color: rgba(255,255,255,0.65);
}

.home-page .nav-link:hover,
.home-page .nav-link.active {
    color: var(--white);
}


/* Inner pages: start dark on light background */
.inner-page .logo-msr {
    color: var(--off-black);
}

.inner-page .logo-text {
    color: rgba(20,20,20,0.72);
}

.inner-page .nav-link {
    color: rgba(20,20,20,0.65);
}

.inner-page .nav-link:hover,
.inner-page .nav-link.active {
    color: var(--off-black);
}

/* Keep enquiry button visible on inner pages before scroll */
.inner-page .nav-cta {
    color: var(--gold);
    border-color: rgba(184,151,90,0.4);
}

/* Inner pages: when scrolled, switch to dark background + white text */
.inner-page .nav.scrolled {
    background: rgba(10,10,10,0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.inner-page .nav.scrolled .logo-msr {
    color: var(--white);
}

.inner-page .nav.scrolled .logo-text {
    color: rgba(255,255,255,0.6);
}

.inner-page .nav.scrolled .nav-link {
    color: rgba(255,255,255,0.65);
}

.inner-page .nav.scrolled .nav-link:hover,
.inner-page .nav.scrolled .nav-link.active {
    color: var(--white);
}

.inner-page .nav.scrolled .nav-cta {
    color: var(--gold);
    border-color: rgba(184,151,90,0.4);
}

#about {
    scroll-margin-top: 100px;
}

.about-strip-image {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--charcoal);
    margin-left: 40px;
}

.about-strip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-description p {
    margin-bottom: 20px;
}

.about-award {
    margin-top: 50px;   /* pushes it further down */
}

.about-award img {
    width: 140px;       /* makes it slightly bigger */
    height: auto;
    display: block;     /* fixes alignment */
}

/* LOGO */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
}

.logo-msr {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
}

.logo-divider {
    display: block;
    width: 1px;
    height: 18px;
    background: currentColor;
    opacity: 0.28;
}

.logo-text {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: #0a0a0a;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 100px 40px 60px;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 150;
}
.nav-mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.nav-mobile-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s;
}
.nav-mobile-link:last-of-type { border-bottom: none; }
.nav-mobile-link.active,
.nav-mobile-link:hover { color: #fff; }

.nav-mobile-cta {
    margin-top: 12px;
    text-align: center;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.2s;
}
.nav-mobile-cta:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 768px) {
    .nav-hamburger { display: flex; }
    .nav { position: fixed; background: transparent; }
}

.inner-page .nav-hamburger span { background: #1a1a1a; }
.inner-page .nav.scrolled .nav-hamburger span { background: #fff; }
}

.home-page .nav-hamburger span { background: #fff; }

@media (max-width: 768px) {
    .nav { background: transparent; }
    .nav.scrolled { background: rgba(10,10,10,0.96); }
}

.grecaptcha-badge {
    transform: scale(0.9);
    opacity: 0.7;
}