/* ==========================================================================
   Aleole Woodworks — aleoleholdings.com
   Pure static CSS · Mobile-first · BEM naming
   ========================================================================== */

:root {
    /* Backgrounds */
    --bg-main: #faf7f3;
    --bg-alt: #f0ebe3;
    --bg-card: #fff;

    /* Text */
    --text-primary: #1c1714;
    --text-body: #4a3f35;
    --text-dim: #8c8077;

    /* Accent */
    --accent: #6b4c2a;
    --accent-hover: #8a6840;

    /* Hero */
    --ph-hero: #3d2b15;

    /* Layout */
    --max-width: 1120px;
    --nav-height: 64px;

    /* Fonts */
    --serif: Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Skip Link ---------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--sans);
    font-size: 0.875rem;
}

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

/* ---------- Reset ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--serif);
    background: var(--bg-main);
    color: var(--text-body);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

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

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

/* ---------- Focus Styles ---------- */

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hero__cta:focus-visible,
.commission__cta:focus-visible,
.page-header__cta:focus-visible {
    outline-color: #fff;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 243, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-height);
}

.nav__wordmark {
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.nav__links {
    display: flex;
    gap: 1rem;
}

.nav__link {
    font-family: var(--sans);
    font-size: 0.8125rem;
    color: var(--text-body);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

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

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    scroll-margin-top: var(--nav-height);
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Bottom gradient for text readability */
.hero__overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 3rem 1.5rem;
    background: linear-gradient(to top, rgba(30, 18, 8, 0.85) 0%, rgba(30, 18, 8, 0.4) 60%, transparent 100%);
}

.hero__label {
    font-family: var(--sans);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.hero__heading {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero__sub {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin-bottom: 1.75rem;
}

.hero__cta {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1.75rem;
    transition: background 0.25s, border-color 0.25s;
}

.hero__cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Portfolio
   ========================================================================== */

.portfolio {
    padding: 4rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    scroll-margin-top: var(--nav-height);
}

.portfolio__label {
    font-family: var(--sans);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.portfolio__heading {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ---------- Build Card ---------- */

.build-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.build-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.build-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    transition: transform 0.4s;
    object-fit: cover;
    object-position: top;
}

.build-card:hover .build-card__image {
    transform: scale(1.03);
}

/* Featured card overrides */
.build-card--featured .build-card__image {
    aspect-ratio: 16 / 10;
}

.build-card__info {
    padding: 1.25rem 1.5rem 1.5rem;
}

.build-card__title {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.build-card__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-body);
    margin-bottom: 0.75rem;
}

.build-card__link {
    font-family: var(--sans);
    font-size: 0.8125rem;
    color: var(--accent);
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.build-card:hover .build-card__link {
    color: var(--accent-hover);
}

/* ==========================================================================
   About / Philosophy
   ========================================================================== */

.about {
    padding: 4rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about__split {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about__portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.about__values {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ---------- Value Card ---------- */

.value-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2rem 1.5rem;
    position: relative;
    transition: box-shadow 0.3s;
    flex: 1;
}

.value-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.value-card__accent {
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 1.25rem;
}

.value-card__title {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
}

.value-card__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-body);
}

/* ==========================================================================
   Commission CTA
   ========================================================================== */

.commission {
    padding: 5rem 1.5rem;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    scroll-margin-top: var(--nav-height);
}

.commission__heading {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.commission__desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 2rem;
}

.commission__cta {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: 0.875rem 2.25rem;
    transition: background 0.25s;
}

.commission__cta:hover {
    background: var(--accent-hover);
}

.commission-mid-cta {
    text-align: center;
    padding: 3rem 1.5rem 0;
}

.commission-columns {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem 0;
}

.commission-col {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--accent);
    padding: 2rem 1.5rem;
    transition: box-shadow 0.3s;
}

.commission-col:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.commission-col__heading {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.commission-col__desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-body);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials {
    padding: 4rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.testimonials__label {
    font-family: var(--sans);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.testimonials__heading {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.testimonial {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 3px solid var(--accent);
    padding: 2rem 1.5rem;
}

.testimonial__text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial__cite {
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-style: normal;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 2.5rem 1.5rem;
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer__brand {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.footer__social-link {
    font-family: var(--sans);
    font-size: 0.8125rem;
    color: var(--text-body);
    transition: color 0.2s;
}

.footer__social-link:hover {
    color: var(--accent);
}

.footer__copy {
    font-family: var(--sans);
    font-size: 0.6875rem;
    color: var(--text-dim);
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 4rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.stat {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.stat__number {
    font-family: var(--sans);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.2;
}

.stat__label {
    font-family: var(--sans);
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

/* ==========================================================================
   Page Header (inner pages)
   ========================================================================== */

.page-header {
    background: var(--bg-alt);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
}

.page-header__label {
    font-family: var(--sans);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.page-header__heading {
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-primary);
}

.page-header__cta {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: 0.875rem 2.25rem;
    margin-top: 1.5rem;
    transition: background 0.25s;
}

.page-header__cta:hover {
    background: var(--accent-hover);
}

/* ==========================================================================
   Process Images
   ========================================================================== */

.process-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem 0;
}

.process-images__item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.process-images__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-images__caption {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 2rem 1.25rem 1rem;
    background: linear-gradient(to top, rgba(30, 18, 8, 0.7) 0%, transparent 100%);
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Portfolio Footer (homepage "View All" link)
   ========================================================================== */

.portfolio__footer {
    margin-top: 2rem;
    text-align: center;
}

.portfolio__view-all {
    font-family: var(--sans);
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    transition: color 0.2s;
}

.portfolio__view-all:hover {
    color: var(--accent-hover);
}

/* ==========================================================================
   Process
   ========================================================================== */

.process {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.process-step {
    flex: 0 0 200px;
    text-align: center;
    padding: 1.5rem 1rem;
}

.process-step__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--accent);
    transition: background 0.25s, color 0.25s;
}

.process-step:hover .process-step__icon {
    background: var(--accent);
    color: #fff;
}

.process-step__icon svg {
    width: 32px;
    height: 32px;
}

.process-step__title {
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.process-step__desc {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-body);
}

/* ==========================================================================
   Responsive — Mobile-first breakpoints
   ========================================================================== */

/* 480px — Large phones */
@media (min-width: 480px) {
    .nav__links {
        gap: 1.5rem;
    }

    .hero__heading {
        font-size: 2.5rem;
    }

    .hero__overlay {
        padding: 3.5rem 2rem;
    }

    .portfolio {
        padding: 4.5rem 2rem;
    }

    .about {
        padding: 4.5rem 2rem;
    }

    .stats {
        gap: 2rem;
        padding: 4.5rem 2rem;
    }

    .stat {
        width: 120px;
        height: 120px;
    }

    .process-images {
        padding: 4.5rem 2rem 0;
    }

    .page-header {
        padding: 5.5rem 2rem 4.5rem;
    }

    .process {
        padding: 4.5rem 2rem;
        gap: 1.25rem;
    }
}

/* 768px — Tablets */
@media (min-width: 768px) {
    .nav__links {
        gap: 2rem;
    }

    .hero__heading {
        font-size: 3rem;
    }

    .hero__overlay {
        padding: 4rem 3rem;
    }

    .portfolio {
        padding: 5rem 2.5rem;
    }

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

    /* Featured card spans full width */
    .build-card--featured {
        grid-column: 1 / -1;
    }

    .about {
        padding: 5rem 2.5rem;
    }

    .about__split {
        flex-direction: row;
        gap: 2rem;
    }

    .about__portrait {
        flex: 0 0 45%;
        aspect-ratio: auto;
    }

    .about__values {
        flex: 1;
        gap: 1.5rem;
    }

    .testimonials {
        padding: 5rem 2.5rem;
    }

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

    .commission {
        padding: 6rem 2.5rem;
    }

    .commission-columns {
        flex-direction: row;
        gap: 3rem;
        padding: 5rem 2.5rem 0;
    }

    .commission-col {
        flex: 1;
    }

    .stats {
        gap: 2.5rem;
        padding: 5rem 2.5rem;
        flex-wrap: nowrap;
    }

    .stat {
        width: 140px;
        height: 140px;
    }

    .stat__number {
        font-size: 1.75rem;
    }

    .process-images {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 5rem 2.5rem 0;
    }

    .page-header {
        padding: 6rem 2.5rem 5rem;
    }

    .page-header__heading {
        font-size: 2rem;
    }

    .process {
        padding: 5rem 2.5rem;
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .process-step {
        flex: 0 0 calc(33.333% - 1rem);
    }
}

/* 1024px — Desktop */
@media (min-width: 1024px) {
    .nav__inner {
        padding: 0 2.5rem;
    }

    .hero__heading {
        font-size: 3.5rem;
        max-width: 700px;
    }

    .hero__overlay {
        padding: 4.5rem 4rem;
    }

    .hero__sub {
        font-size: 1.0625rem;
    }

    .portfolio {
        padding: 6rem 2.5rem;
    }

    .portfolio__heading {
        font-size: 2rem;
    }

    .portfolio__grid {
        gap: 2rem;
    }

    .build-card__info {
        padding: 1.5rem 1.75rem 1.75rem;
    }

    .about {
        padding: 6rem 2.5rem;
    }

    .about__split {
        gap: 2.5rem;
    }

    .about__portrait {
        flex: 0 0 42%;
    }

    .value-card {
        padding: 2.25rem 1.75rem;
    }

    .testimonials {
        padding: 6rem 2.5rem;
    }

    .testimonials__heading {
        font-size: 2rem;
    }

    .testimonials__grid {
        gap: 2rem;
    }

    .commission {
        padding: 7rem 2rem;
    }

    .commission__heading {
        font-size: 2rem;
    }

    .process-images {
        gap: 2rem;
        padding: 6rem 2.5rem 0;
    }

    .page-header {
        padding: 7rem 2.5rem 5.5rem;
    }

    .page-header__heading {
        font-size: 2.25rem;
    }

    .process {
        padding: 6rem 2.5rem;
        flex-wrap: nowrap;
        overflow-x: visible;
    }

    .process-step {
        flex: 1 1 0;
        min-width: 0;
    }

    .process-step__title {
        font-size: 1.25rem;
    }
}
