@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* ============================================================
   Craftsmanship — woodworking carpenter template
   Class prefix: .cw-*
   Palette:
     wood brown   #8b5a3c
     dark walnut  #3d2418
     cream beige  #f5ead8
     soft white   #fffaf3
     accent gold  #d4a574
     dark text    #2a1f15
   ============================================================ */

[x-cloak] { display: none !important; }

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #2a1f15;
    background: #fffaf3;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #8b5a3c;
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: #3d2418; }

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #2a1f15;
    margin: 0 0 .5rem;
    line-height: 1.2;
    font-weight: 600;
}

p { margin: 0 0 1rem; }

/* preview banner */
.preview-banner {
    background: #8b5a3c;
    color: #fffaf3;
    padding: .6rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    text-align: center;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ===========================
   Buttons
   =========================== */
.cw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .02em;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
}
.cw-btn--dark {
    background: #2a1f15;
    color: #fffaf3;
}
.cw-btn--dark:hover {
    background: #3d2418;
    color: #fffaf3;
    transform: translateY(-1px);
}
.cw-btn--cream {
    background: #f5ead8;
    color: #2a1f15;
}
.cw-btn--cream:hover {
    background: #fffaf3;
    color: #2a1f15;
}
.cw-btn--wide { width: 100%; }

.cw-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .7rem;
    color: #8b5a3c;
    font-weight: 500;
    margin-bottom: .9rem;
}
.cw-eyebrow--light { color: #d4a574; }

.cw-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    color: #2a1f15;
    margin: 0 0 1rem;
    font-weight: 600;
    line-height: 1.15;
}
.cw-section-title--light { color: #fffaf3; }

/* ===========================
   Header
   =========================== */
.cw-header {
    background: #fffaf3;
    border-bottom: 1px solid rgba(139, 90, 60, .12);
    position: sticky;
    top: 0;
    z-index: 50;
}
.cw-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.cw-logo {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #2a1f15;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.35rem;
    font-weight: 600;
}
.cw-logo__icon {
    color: #8b5a3c;
    display: inline-flex;
}
.cw-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}
.cw-nav a {
    color: #3d2418;
    font-size: .95rem;
    font-weight: 500;
    padding: .25rem 0;
    position: relative;
}
.cw-nav a.is-active,
.cw-nav a:hover {
    color: #8b5a3c;
}
.cw-nav a.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: #d4a574;
}

/* ===========================
   Hero
   =========================== */
.cw-hero {
    position: relative;
    padding: 6rem 1.5rem 9rem;
    color: #fffaf3;
    overflow: hidden;
    isolation: isolate;
}
.cw-hero__media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -2;
}
.cw-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 31, 21, .55) 0%, rgba(61, 36, 24, .75) 100%);
    z-index: -1;
}
.cw-hero__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0 4rem;
}
.cw-hero__eyebrow {
    display: inline-block;
    color: #d4a574;
    text-transform: uppercase;
    letter-spacing: .3em;
    font-size: .75rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}
.cw-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 600;
    line-height: 1.05;
    color: #fffaf3;
    margin: 0 0 1.4rem;
}
.cw-hero__title em {
    font-style: italic;
    font-weight: 500;
}
.cw-hero__lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 250, 243, .9);
    max-width: 620px;
    margin: 0 auto 2.2rem;
}

/* hero feature cards (4 icons overlapping next section) */
.cw-hero__features {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -60px;
    width: calc(100% - 3rem);
    padding: 0 1rem;
    z-index: 5;
}
.cw-hero-card {
    background: #fffaf3;
    border-radius: 12px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 12px 30px rgba(42, 31, 21, .15);
    text-align: center;
    border: 1px solid rgba(212, 165, 116, .25);
    transition: transform .25s ease, box-shadow .25s ease;
}
.cw-hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(42, 31, 21, .2);
}
.cw-hero-card__icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5ead8;
    color: #8b5a3c;
    margin-bottom: .9rem;
}
.cw-hero-card__icon svg { width: 24px; height: 24px; }
.cw-hero-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2a1f15;
    margin: 0 0 .3rem;
}
.cw-hero-card__desc {
    font-size: .82rem;
    color: #5a4632;
    margin: 0;
    line-height: 1.5;
}

/* ===========================
   Services
   =========================== */
.cw-services {
    background: #f5ead8;
    padding: 9rem 1.5rem 5rem;
}
.cw-services__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.cw-services__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}
.cw-services__lead {
    color: #5a4632;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}
.cw-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.cw-service-card {
    background: #fffaf3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(42, 31, 21, .08);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.cw-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(42, 31, 21, .15);
}
.cw-service-card__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.cw-service-card__body {
    padding: 1.6rem 1.7rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex: 1;
}
.cw-service-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2a1f15;
    margin: 0;
    font-weight: 600;
}
.cw-service-card__desc {
    font-size: .92rem;
    color: #5a4632;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}
.cw-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #8b5a3c;
    font-weight: 500;
    font-size: .9rem;
    margin-top: .4rem;
    transition: gap .2s ease;
}
.cw-service-card__link:hover {
    gap: .7rem;
    color: #3d2418;
}

/* ===========================
   Bespoke (dark wood section)
   =========================== */
.cw-bespoke {
    position: relative;
    padding: 6rem 1.5rem;
    color: #fffaf3;
    background: #3d2418;
    isolation: isolate;
    overflow: hidden;
}
.cw-bespoke__bg {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            90deg,
            rgba(255, 250, 243, 0) 0px,
            rgba(255, 250, 243, 0) 18px,
            rgba(212, 165, 116, .04) 18px,
            rgba(212, 165, 116, .04) 19px
        ),
        radial-gradient(ellipse at top right, rgba(139, 90, 60, .35) 0%, transparent 60%),
        #3d2418;
    z-index: -1;
}
.cw-bespoke__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.cw-bespoke__text {
    max-width: 540px;
}
.cw-bespoke__lead {
    color: rgba(255, 250, 243, .85);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 1.6rem;
}
.cw-bespoke__features {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.cw-bespoke__features li {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: rgba(255, 250, 243, .9);
    font-size: .95rem;
}
.cw-bespoke__bullet {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d4a574;
    color: #2a1f15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.cw-bespoke__visual {
    position: relative;
    padding: 0;
}
.cw-bespoke__visual img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
    position: relative;
    z-index: 2;
}
.cw-bespoke__frame {
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 2px solid #d4a574;
    border-radius: 12px;
    z-index: 1;
}

/* ===========================
   Project / Contact form
   =========================== */
.cw-project {
    background: #f5ead8;
    padding: 6rem 1.5rem;
}
.cw-project__inner {
    max-width: 1100px;
    margin: 0 auto;
}
.cw-project__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.cw-project__lead {
    color: #5a4632;
    margin: 0;
}
.cw-project__grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: stretch;
    background: #fffaf3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(42, 31, 21, .1);
}
.cw-project__aside {
    background: #2a1f15;
    color: #f5ead8;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.cw-project__aside-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #d4a574;
    font-size: 1.4rem;
    margin: 0 0 .8rem;
    font-weight: 500;
}
.cw-project__aside p {
    margin: 0 0 .6rem;
    font-size: .92rem;
    line-height: 1.65;
}
.cw-project__aside a {
    color: #fffaf3;
    border-bottom: 1px solid rgba(255, 250, 243, .3);
}
.cw-project__aside a:hover { color: #d4a574; }
.cw-project__aside-note {
    margin-top: 1.2rem;
    font-size: .82rem;
    color: rgba(245, 234, 216, .7);
    font-style: italic;
}
.cw-project__form {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.cw-project__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.cw-project__label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .82rem;
    color: #5a4632;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.cw-project__label input,
.cw-project__label textarea {
    border: 1px solid rgba(139, 90, 60, .25);
    background: #fffaf3;
    border-radius: 8px;
    padding: .8rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    color: #2a1f15;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    transition: border-color .2s ease, box-shadow .2s ease;
    resize: vertical;
}
.cw-project__label input:focus,
.cw-project__label textarea:focus {
    outline: none;
    border-color: #8b5a3c;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, .25);
}
.cw-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ===========================
   Gallery
   =========================== */
.cw-gallery {
    background: #fffaf3;
    padding: 6rem 1.5rem;
}
.cw-gallery__inner {
    max-width: 1300px;
    margin: 0 auto;
}
.cw-gallery__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}
.cw-gallery__lead {
    color: #5a4632;
    margin: 0;
}
.cw-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.cw-gallery__item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(42, 31, 21, .08);
    aspect-ratio: 3 / 4;
}
.cw-gallery__img {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform .6s ease;
}
.cw-gallery__item:hover .cw-gallery__img {
    transform: scale(1.06);
}

/* ===========================
   Footer
   =========================== */
.cw-footer {
    background: #3d2418;
    color: #f5ead8;
    padding: 4rem 1.5rem 1.5rem;
}
.cw-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
}
.cw-footer__brand {
    max-width: 360px;
}
.cw-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #fffaf3;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.cw-footer__logo-icon {
    color: #d4a574;
    display: inline-flex;
}
.cw-footer__tagline {
    color: rgba(245, 234, 216, .75);
    font-size: .92rem;
    line-height: 1.7;
    margin: 0;
}
.cw-footer__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: #d4a574;
    margin: 0 0 1rem;
    font-weight: 500;
    letter-spacing: .04em;
}
.cw-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.cw-footer__list a,
.cw-footer__list li {
    color: rgba(245, 234, 216, .8);
    font-size: .9rem;
    line-height: 1.5;
}
.cw-footer__list a:hover { color: #d4a574; }
.cw-footer__divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent 0%, #d4a574 50%, transparent 100%);
    margin: 0 auto;
    max-width: 1200px;
}
.cw-footer__bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(245, 234, 216, .7);
    font-size: .82rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.cw-footer__socials {
    color: #d4a574;
    letter-spacing: .15em;
}

/* ===========================
   Generic helpers (contact page)
   =========================== */
.contact-page {
    padding: 4rem 1.5rem;
    background: #fffaf3;
}
.contact-page .container {
    max-width: 1100px;
    margin: 0 auto;
}
.contact-page .two-col {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f5ead8;
    padding: 2rem;
    border-radius: 14px;
}
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-size: .85rem;
    color: #3d2418;
    font-weight: 500;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    border: 1px solid rgba(139, 90, 60, .25);
    background: #fffaf3;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    color: #2a1f15;
    font-weight: 400;
}
.contact-form .hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
}
.contact-form .btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .25s ease;
}
.btn-primary {
    background: #2a1f15;
    color: #fffaf3;
}
.btn-primary:hover {
    background: #3d2418;
    color: #fffaf3;
}
.flash {
    padding: .9rem 1.1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: .92rem;
}
.flash-success {
    background: #e8f4ea;
    color: #2d5a3d;
    border: 1px solid #b8d8c1;
}
.flash-error {
    background: #f8e0d8;
    color: #7a3220;
    border: 1px solid #e2b8a8;
}
.not-found {
    padding: 6rem 1.5rem;
    text-align: center;
}

/* ===========================
   Responsive — 800px
   =========================== */
@media (max-width: 800px) {
    .cw-header__inner {
        flex-wrap: wrap;
        padding: 1rem 1.2rem;
        gap: 1rem;
    }
    .cw-nav {
        order: 3;
        width: 100%;
    }
    .cw-nav ul {
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .cw-nav a { font-size: .88rem; }

    .cw-hero {
        padding: 4rem 1.2rem 6rem;
    }
    .cw-hero__inner {
        padding: 1rem 0 3rem;
    }
    .cw-hero__features {
        position: static;
        transform: none;
        left: auto;
        bottom: auto;
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        margin-top: 2rem;
        padding: 0;
    }

    .cw-services {
        padding: 4rem 1.2rem;
    }
    .cw-services__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cw-bespoke {
        padding: 4rem 1.2rem;
    }
    .cw-bespoke__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .cw-bespoke__visual img {
        max-height: 360px;
    }
    .cw-bespoke__frame { display: none; }

    .cw-project {
        padding: 4rem 1.2rem;
    }
    .cw-project__grid {
        grid-template-columns: 1fr;
    }
    .cw-project__row {
        grid-template-columns: 1fr;
    }
    .cw-project__aside {
        padding: 2rem 1.5rem;
    }
    .cw-project__form {
        padding: 2rem 1.5rem;
    }

    .cw-gallery {
        padding: 4rem 1.2rem;
    }
    .cw-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .8rem;
    }

    .cw-footer__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .cw-footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .contact-page .two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cw-section-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .cw-hero__features {
        grid-template-columns: 1fr;
    }
    .cw-gallery__grid {
        grid-template-columns: 1fr;
    }
}
