/* ============================================================
   MAHER HOMES — UNIFIED DESIGN SYSTEM
   A minimalist luxury aesthetic for a Sydney home builder.
   Single source of truth for the entire Django + Wagtail site.
   ============================================================ */

/* Fonts loaded via <link> tags in base.html for reliability */

/* ---- CSS Custom Properties (Design Tokens) ---- */
:root {
    /* Primary Palette — client logo orange + green */
    --color-primary: #f27611;
    --color-primary-light: #ffad5f;
    --color-primary-dark: #bf5207;
    --color-primary-subtle: rgba(242, 118, 17, 0.08);
    --color-primary-muted: rgba(242, 118, 17, 0.16);
    --color-secondary: #008f45;
    --color-secondary-light: #22b85f;
    --color-secondary-subtle: rgba(0, 143, 69, 0.1);

    /* Neutrals — warm charcoal */
    --color-white: #ffffff;
    --color-off-white: #faf9f7;
    --color-surface: #f5f3ef;
    --color-bg-main: #ffffff;
    --color-bg-section: #faf9f7;
    --color-bg-section-alt: #f5f3ef;
    --color-border: #e8e4de;
    --color-border-subtle: #f0ece6;
    --color-muted: #9a9590;
    --color-text-secondary: #6b6560;
    --color-text: #2c2825;
    --color-dark: #1a1714;
    --color-black: #0d0b09;
    --gradient-warm-dark: linear-gradient(135deg, #0d0b09 0%, #1a1714 40%, #2c2825 100%);

    /* Functional */
    --color-success: #4a9e6d;
    --color-error: #c45c4a;
    --color-info: #5b8fb9;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Spline Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Type Scale — modular (1.25 ratio) */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */
    --text-6xl: 3.75rem;
    /* 60px */
    --text-7xl: 4.5rem;
    /* 72px */
    --text-8xl: 6rem;
    /* 96px */

    /* Spacing Scale */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */
    --space-32: 8rem;
    /* 128px */

    /* Layout */
    --max-width: 1280px;
    --max-width-narrow: 800px;
    --max-width-wide: 1440px;
    --gutter: var(--space-6);
    --gutter-lg: var(--space-10);

    /* Borders */
    --radius-none: 0;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(13, 11, 9, 0.05);
    --shadow-md: 0 4px 12px rgba(13, 11, 9, 0.08);
    --shadow-lg: 0 8px 30px rgba(13, 11, 9, 0.12);
    --shadow-xl: 0 20px 50px rgba(13, 11, 9, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-slower: 700ms ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-main);
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font-family: var(--font-body);
    font-size: inherit;
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

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

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

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-dark);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text);
    line-height: 1.75;
}

.text-serif {
    font-family: var(--font-display);
}

.text-sans {
    font-family: var(--font-body);
}

.label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
}

.lead {
    font-size: var(--text-lg);
    font-weight: 300;
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 42em;
}

/* ---- Layout Utilities ---- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

.container--wide {
    max-width: var(--max-width-wide);
}

.section {
    padding: var(--space-24) 0;
}

.section--sm {
    padding: var(--space-16) 0;
}

.section--lg {
    padding: var(--space-32) 0;
}

.grid {
    display: grid;
    gap: var(--space-8);
}

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

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

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

@media (max-width: 1024px) {

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

@media (max-width: 640px) {

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    :root {
        --gutter: var(--space-4);
    }

    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }
}

/* ---- Components: Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header--transparent {
    background: transparent;
}

.site-header--solid {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--gutter-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo__image {
    width: auto;
    height: 68px;
    object-fit: contain;
    transition: transform var(--transition-base), filter var(--transition-base);
}

.logo:hover .logo__image {
    transform: translateY(-1px);
}

.logo__image--footer {
    height: 96px;
}

.logo__mark {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

.logo__text {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
}

/* Header on hero: white text */
.site-header--transparent .logo__text,
.site-header--transparent .nav__link {
    color: var(--color-white);
}

.site-header--transparent .logo__mark {
    color: var(--color-white);
}

.site-header--transparent .logo__image {
    filter: drop-shadow(0 2px 10px rgba(13, 11, 9, 0.28));
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav__link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.03em;
    position: relative;
    padding: var(--space-1) 0;
    transition: color var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 24px;
}

@media (max-width: 768px) {
    .header-inner {
        padding: var(--space-3) var(--gutter);
    }

    .logo__image {
        height: 56px;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav--mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg-main);
        justify-content: center;
        align-items: center;
        gap: var(--space-8);
        z-index: 200;
    }

    .nav--mobile-open .nav__link {
        font-size: var(--text-2xl);
        color: var(--color-text);
    }
}

/* ---- Components: Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: var(--space-4) var(--space-8);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
}

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

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

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}

.btn--link {
    background: none;
    border: none;
    padding: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    color: var(--color-text);
}

.btn--link:hover {
    color: var(--color-primary);
}

/* ---- Components: Cards ---- */
.card {
    position: relative;
    overflow: hidden;
    background: var(--color-white);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card__image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition-slower);
}

.card:hover .card__image {
    transform: scale(1.05);
}

.card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 11, 9, 0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-8);
    transition: opacity var(--transition-base);
}

.card__label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.card__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-white);
    line-height: 1.2;
}

/* ---- Components: Project Gallery ---- */
.project-grid {
    display: grid;
    gap: var(--space-4);
}

.project-grid--masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 400px;
}

.project-grid__item--wide {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .project-grid--masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 350px;
    }

    .project-grid__item--wide {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .project-grid--masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .project-grid__item--wide {
        grid-column: span 1;
    }
}

/* ---- Components: Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero__video,
.hero__picture,
.hero__picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__video {
    object-fit: cover;
    z-index: 0;
}

.hero__picture {
    z-index: 0;
}

.hero__picture img {
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(13, 11, 9, 0.42) 0%, rgba(13, 11, 9, 0.24) 45%, rgba(13, 11, 9, 0.5) 100%),
        rgba(13, 11, 9, 0.12);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-20) var(--gutter);
    max-width: 56rem;
}

.hero__title {
    font-size: var(--text-7xl);
    color: var(--color-white);
    margin-bottom: var(--space-6);
    line-height: 1.05;
    text-shadow: 0 2px 18px rgba(13, 11, 9, 0.45);
}

.hero .label {
    text-shadow: 0 1px 10px rgba(13, 11, 9, 0.6);
}

.hero__title em {
    font-style: italic;
    font-weight: 400;
}

.hero__subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    max-width: 36em;
    margin: 0 auto var(--space-10);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero__title {
        font-size: var(--text-4xl);
    }

    .hero__subtitle {
        font-size: var(--text-base);
    }
}

/* ---- Page: Blog Post ---- */
.page-blog-post .blog-hero {
    min-height: 60vh;
}

.page-blog-post .hero__content {
    max-width: 72rem;
    padding-top: var(--space-24);
    padding-bottom: var(--space-16);
}

.page-blog-post .hero__title {
    font-size: var(--text-6xl);
    letter-spacing: 0;
    max-width: 15em;
    margin-left: auto;
    margin-right: auto;
}

.page-blog-post .richtext-content img {
    max-width: 100%;
}

.blog-image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.blog-image-row__item,
.blog-single-image__frame {
    max-width: 100%;
}

.blog-single-image {
    margin-bottom: var(--space-8);
}

@media (max-width: 1024px) {
    .page-blog-post .hero__content {
        max-width: 58rem;
    }

    .page-blog-post .hero__title {
        font-size: var(--text-5xl);
    }
}

@media (max-width: 768px) {
    .page-blog-post .blog-hero {
        min-height: 56vh;
    }

    .page-blog-post .hero__content {
        padding-top: var(--space-20);
        padding-bottom: var(--space-12);
    }

    .page-blog-post .hero__title {
        font-size: var(--text-4xl);
        max-width: 11em;
    }

    .page-blog-post .hero__subtitle {
        font-size: var(--text-base);
    }

    .blog-image-row__item,
    .blog-single-image__frame {
        width: 100% !important;
        height: auto !important;
    }

    .blog-image-row__item img,
    .blog-single-image__frame img {
        height: auto !important;
    }
}

@media (max-width: 520px) {
    .page-blog-post .blog-hero {
        min-height: 52vh;
    }

    .page-blog-post .hero__title {
        font-size: var(--text-3xl);
    }

    .page-blog-post .hero .label {
        font-size: 0.6875rem;
    }

    .page-blog-post .section {
        padding: var(--space-16) 0;
    }
}

/* ---- Page: Project Detail Gallery ---- */
#project-gallery {
    padding: var(--space-16) 0;
}

#project-gallery .section-header {
    margin-bottom: var(--space-8);
}

#project-gallery .grid {
    gap: var(--space-6);
}

.project-gallery__button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    overflow: hidden;
    background: var(--color-dark);
    cursor: zoom-in;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='14' cy='14' r='7' fill='none' stroke='%23ffffff' stroke-width='2.25'/%3E%3Cpath d='M19.5 19.5 27 27' stroke='%23ffffff' stroke-width='2.25' stroke-linecap='round'/%3E%3Ccircle cx='14' cy='14' r='10' fill='none' stroke='%230d0b09' stroke-opacity='.55' stroke-width='2'/%3E%3C/svg%3E") 16 16, zoom-in;
}

.project-gallery__button img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.55s ease, opacity 0.55s ease, filter 0.55s ease;
}

.project-gallery__button:hover img,
.project-gallery__button:focus-visible img {
    transform: scale(1.045);
    opacity: 0.82;
    filter: saturate(0.92);
}

.project-gallery__button::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(242, 118, 17, 0);
    transition: border-color var(--transition-base);
}

.project-gallery__button:hover::after,
.project-gallery__button:focus-visible::after {
    border-color: rgba(242, 118, 17, 0.68);
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: var(--space-8);
    background: rgba(13, 11, 9, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.image-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.image-lightbox__image {
    max-width: min(1200px, 92vw);
    max-height: 86vh;
    object-fit: contain;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 360ms ease, transform 360ms ease;
}

.image-lightbox.is-open .image-lightbox__image {
    opacity: 1;
    transform: scale(1);
}

.image-lightbox__close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(13, 11, 9, 0.35);
    color: var(--color-white);
    font-size: var(--text-2xl);
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 640px) {
    #project-gallery {
        padding: var(--space-12) 0;
    }

    .image-lightbox {
        padding: var(--space-4);
    }
}

/* ---- Components: Section Headers ---- */
.section-header {
    margin-bottom: var(--space-16);
}

.section-header--center {
    text-align: center;
}

.section-header__accent {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--color-primary);
    margin-bottom: var(--space-6);
}

.section-header--center .section-header__accent {
    margin-left: auto;
    margin-right: auto;
}

.section-header__title {
    margin-bottom: var(--space-4);
}

.section-header__subtitle {
    font-size: var(--text-lg);
    color: var(--color-muted);
    font-weight: 300;
    max-width: 32em;
}

.section-header--center .section-header__subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Components: Values / Features Grid ---- */
.feature {
    padding: var(--space-8);
    border: 1px solid var(--color-border-subtle);
    background: var(--color-white);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.feature:hover {
    border-color: var(--color-primary-muted);
    box-shadow: var(--shadow-md);
}

.feature__icon {
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.feature__title {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.feature__desc {
    font-size: var(--text-sm);
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0;
}

/* ---- Page: Home Intent Cards ---- */
.home-intent {
    position: relative;
    overflow: hidden;
    padding: var(--space-24) 0 var(--space-20);
    background: var(--color-bg-main);
}

.home-intent__wash {
    position: absolute;
    top: 0;
    right: 0;
    width: min(34vw, 520px);
    height: 100%;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0) 0 36%, rgba(242, 118, 17, 0.11) 36% 100%),
        linear-gradient(180deg, rgba(0, 143, 69, 0.13), rgba(242, 118, 17, 0.03));
    pointer-events: none;
}

.home-intent__header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: var(--space-12);
}

.home-intent__header .section-header__accent {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-6);
}

.home-intent__header h2 {
    font-family: var(--font-body);
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--color-dark);
}

.home-intent__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
}

.home-intent-card {
    position: relative;
    min-height: 310px;
    background: var(--color-white);
    box-shadow: 0 12px 34px rgba(13, 11, 9, 0.08);
    overflow: hidden;
    isolation: isolate;
}

.home-intent-card__front,
.home-intent-card__reveal {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-10);
    transition: opacity 360ms ease, transform 420ms ease;
}

.home-intent-card__front {
    background: rgba(255, 255, 255, 0.94);
}

.home-intent-card__reveal {
    background: linear-gradient(145deg, #f27611 0%, #008f45 100%);
    color: var(--color-white);
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
}

.home-intent-card__icon {
    color: var(--color-primary);
    font-size: 72px;
    margin-bottom: var(--space-6);
}

.home-intent-card h3 {
    font-family: var(--font-body);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.home-intent-card p {
    max-width: 24em;
    margin: 0;
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    line-height: 1.65;
}

.home-intent-card__reveal p {
    color: var(--color-white);
    font-size: var(--text-lg);
    line-height: 1.7;
}

.home-intent-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 154px;
    margin-top: var(--space-8);
    padding: 0.95rem 1.5rem;
    border-radius: var(--radius-full);
    background: rgba(138, 95, 35, 0.44);
    color: var(--color-white);
    font-weight: 600;
    transition: background var(--transition-base), transform var(--transition-base);
}

.home-intent-card:hover .home-intent-card__front,
.home-intent-card:focus-within .home-intent-card__front {
    opacity: 0;
    transform: translateY(-18px);
}

.home-intent-card:hover .home-intent-card__reveal,
.home-intent-card:focus-within .home-intent-card__reveal {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.home-intent-card__cta:hover,
.home-intent-card__cta:focus-visible {
    background: rgba(98, 64, 20, 0.54);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .home-intent__grid {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .home-intent {
        padding: var(--space-16) 0;
    }

    .home-intent__wash {
        width: 72vw;
    }

    .home-intent__header h2 {
        font-size: var(--text-3xl);
    }

    .home-intent-card {
        min-height: 330px;
    }

    .home-intent-card__front,
    .home-intent-card__reveal {
        padding: var(--space-8) var(--space-6);
    }
}

@media (hover: none) {
    .home-intent-card {
        min-height: auto;
    }

    .home-intent-card__front,
    .home-intent-card__reveal {
        position: relative;
        inset: auto;
    }

    .home-intent-card__reveal {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .home-intent-card:hover .home-intent-card__front,
    .home-intent-card:focus-within .home-intent-card__front {
        opacity: 1;
        transform: none;
    }
}

/* ---- Components: Testimonial ---- */
.testimonial {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.testimonial__quote {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    color: var(--color-text);
}

.testimonial__author {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-left: var(--space-4);
    border-left: 2px solid var(--color-primary);
}

.testimonial__name {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
}

.testimonial__role {
    font-size: var(--text-sm);
    color: var(--color-muted);
}

/* ---- Components: Process Steps ---- */
.step {
    display: flex;
    gap: var(--space-10);
    align-items: center;
}

.step--reverse {
    flex-direction: row-reverse;
}

.step__content {
    flex: 1;
}

.step__number {
    font-family: var(--font-display);
    font-size: var(--text-8xl);
    font-weight: 400;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: var(--space-4);
}

.step__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.step__image {
    flex: 1;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.step__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slower);
}

.step:hover .step__image img {
    transform: scale(1.05);
}

@media (max-width: 768px) {

    .step,
    .step--reverse {
        flex-direction: column;
    }

    .step__number {
        font-size: var(--text-5xl);
    }
}

/* ---- Components: Footer ---- */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-20) 0 var(--space-10);
}

.site-footer .logo {
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.96);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

.footer__brand-desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    max-width: 24em;
}

.footer__heading {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
}

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

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* ---- Components: Forms ---- */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: var(--space-3) var(--space-4);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---- Utilities ---- */
.text-primary {
    color: var(--color-primary) !important;
}

.text-muted {
    color: var(--color-muted) !important;
}

.text-white {
    color: var(--color-white) !important;
}

.text-center {
    text-align: center;
}

.bg-white {
    background-color: var(--color-bg-main);
}

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

.bg-surface {
    background-color: var(--color-bg-section-alt);
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Material Symbols config */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation delays */
.animate-delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.animate-delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.animate-delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}
