/* ============================================
   B.Beaumont Carpentry & Joinery
   ============================================ */

:root {
    --dark: #1a1a1a;
    --charcoal: #2d2520;
    --warm: #3d2e24;
    --oak: #8B6914;
    --gold: #C4953A;
    --cream: #F5F0E8;
    --text-light: #E8E0D4;
    --text-muted: #9a9189;
    --white: #ffffff;
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Base */
.section {
    padding: 100px 0;
}

.section--dark {
    background-color: var(--charcoal);
}

.section__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 16px;
    line-height: 1.15;
}

.section__subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
}

.section__header {
    text-align: center;
    margin-bottom: 60px;
}

.section__header .section__subtitle {
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn--primary:hover {
    background-color: #d4a344;
    border-color: #d4a344;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 149, 58, 0.3);
}

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

.btn--outline:hover {
    background-color: var(--cream);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn--sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.btn--full {
    width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 4px 0;
    background-color: rgba(245, 240, 232, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: all var(--transition);
}

.header--scrolled {
    background-color: rgba(245, 240, 232, 1);
    padding: 4px 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    transition: transform var(--transition);
}

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

.nav__logo-img {
    height: 120px;
    width: auto;
    display: block;
    transition: height var(--transition);
}

.header--scrolled .nav__logo-img {
    height: 80px;
}

@media (max-width: 768px) {
    .nav__logo-img {
        height: 80px;
    }

    .header--scrolled .nav__logo-img {
        height: 64px;
    }
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
    transition: color var(--transition);
    position: relative;
}

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

.nav__link:hover {
    color: var(--oak);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    padding: 10px 24px;
    background-color: var(--charcoal);
    border: 1px solid var(--charcoal);
    border-radius: 4px;
    color: var(--cream);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav__toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--charcoal);
    transition: all var(--transition);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    height: 300vh;
}

.hero__sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0.7;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.hero__canvas,
.hero__poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
    pointer-events: none;
    display: block;
    background-color: var(--dark);
    filter: brightness(1.18) contrast(1.04) saturate(1.05);
}

.hero__poster {
    z-index: 1;
    transition: opacity 0.3s ease;
}

.hero__canvas {
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero__bg.frames-ready .hero__canvas {
    opacity: 1;
}

.hero__bg.frames-ready .hero__poster {
    opacity: 0;
}

/* Match poster fit to canvas contain on mobile so handoff has no jump */
@media (max-width: 768px) {
    .hero__poster {
        object-fit: contain;
        transform: scale(1.85);
    }

    .hero__scroll-hint {
        display: none;
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.3) 0%,
        rgba(26, 26, 26, 0.5) 40%,
        rgba(26, 26, 26, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    will-change: opacity, transform;
}

.hero__established {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   About
   ============================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about__services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
}

.service-card {
    padding: 24px;
    background: rgba(45, 37, 32, 0.5);
    border: 1px solid rgba(139, 105, 20, 0.15);
    border-radius: 8px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: rgba(139, 105, 20, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.service-card__icon {
    color: var(--gold);
    margin-bottom: 12px;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--cream);
    margin-bottom: 6px;
}

.service-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.about__image {
    position: relative;
}

.about__image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.about__image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gold);
    color: var(--dark);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.badge__years {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.badge__text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.3;
}

/* ============================================
   Gallery / Portfolio
   ============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

.gallery__item:hover img {
    transform: scale(1.08);
}

.gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.85) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--cream);
    transform: translateY(8px);
    transition: transform var(--transition);
}

.gallery__item:hover .gallery__overlay span {
    transform: translateY(0);
}

.gallery__item.hidden {
    display: none;
}

/* Gallery Filters */
.gallery__filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(154, 145, 137, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--dark);
    background-color: var(--gold);
    border-color: var(--gold);
}

/* Before & After */
.before-after {
    margin-bottom: 48px;
}

.before-after__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--cream);
    text-align: center;
    margin-bottom: 24px;
}

.before-after__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.before-after__image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.before-after__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.before-after__image:hover img {
    transform: scale(1.05);
}

.before-after__label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
}

.before-after__image--before .before-after__label {
    background: rgba(26, 26, 26, 0.8);
    color: var(--text-light);
}

.before-after__image--after .before-after__label {
    background: var(--gold);
    color: var(--dark);
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial__icon {
    color: var(--gold);
    opacity: 0.4;
    margin-bottom: 24px;
}

.testimonial__text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--cream);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial__stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    color: var(--gold);
    margin-bottom: 20px;
}

.testimonial__name {
    font-weight: 600;
    color: var(--cream);
    font-size: 1rem;
    margin-bottom: 4px;
}

.testimonial__source {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.testimonial__source svg {
    color: #1877F2;
}

/* ============================================
   Contact
   ============================================ */
.contact__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.contact__form {
    background: var(--charcoal);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(139, 105, 20, 0.15);
}

.form__group {
    margin-bottom: 20px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 8px;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--cream);
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(154, 145, 137, 0.2);
    border-radius: 6px;
    transition: border-color var(--transition);
    outline: none;
}

.form__input::placeholder {
    color: var(--text-muted);
}

.form__input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 149, 58, 0.1);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239a9189' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form__select option {
    background: var(--dark);
    color: var(--cream);
}

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

.form__status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form__status--success {
    display: block;
    background: rgba(46, 160, 67, 0.15);
    color: #2ea043;
    border: 1px solid rgba(46, 160, 67, 0.3);
}

.form__status--error {
    display: block;
    background: rgba(218, 54, 51, 0.15);
    color: #da3633;
    border: 1px solid rgba(218, 54, 51, 0.3);
}

.contact__info-card {
    background: var(--charcoal);
    padding: 36px;
    border-radius: 12px;
    border: 1px solid rgba(139, 105, 20, 0.15);
    margin-bottom: 24px;
}

.contact__info-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 12px;
}

.contact__info-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.contact__detail svg {
    color: var(--gold);
    flex-shrink: 0;
}

.contact__detail--link {
    transition: color var(--transition);
}

.contact__detail--link:hover {
    color: var(--gold);
}

.contact__badge {
    background: linear-gradient(135deg, var(--gold), #d4a344);
    color: var(--dark);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
}

.contact__badge-est {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 4px;
}

.contact__badge-year {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
}

.contact__badge-text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--cream);
    color: var(--charcoal);
    padding: 60px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(154, 145, 137, 0.15);
}

.footer__logo-img {
    height: 110px;
    width: auto;
    display: block;
    margin-bottom: 20px;
}

.footer__text {
    font-size: 0.9rem;
    color: var(--charcoal);
    line-height: 1.7;
}

.footer__nav h4,
.footer__social h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.footer__nav a {
    display: block;
    font-size: 0.9rem;
    color: var(--charcoal);
    padding: 6px 0;
    transition: color var(--transition);
}

.footer__nav a:hover {
    color: var(--gold);
}

.footer__social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--charcoal);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

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

.footer__bottom {
    padding: 24px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: var(--charcoal);
    opacity: 0.7;
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #d4a344;
    transform: translateY(-4px);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
    text-align: center;
}

.lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0;
    transform: scale(0.95);
    transition: all var(--transition);
}

.lightbox.active .lightbox__image {
    opacity: 1;
    transform: scale(1);
}

.lightbox__caption {
    margin-top: 16px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--cream);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition);
    z-index: 2001;
}

.lightbox__close:hover {
    color: var(--gold);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(154, 145, 137, 0.2);
    color: var(--cream);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
}

.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

.lightbox__prev:hover,
.lightbox__next:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in galleries */
.gallery .reveal:nth-child(2) { transition-delay: 0.1s; }
.gallery .reveal:nth-child(3) { transition-delay: 0.15s; }
.gallery .reveal:nth-child(4) { transition-delay: 0.2s; }
.gallery .reveal:nth-child(5) { transition-delay: 0.25s; }
.gallery .reveal:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 968px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about__image {
        order: -1;
    }

    .about__image img {
        height: 360px;
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--charcoal);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right var(--transition);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__link {
        font-size: 1.1rem;
    }

    .nav__link--cta {
        text-align: center;
        width: 100%;
    }

    .section {
        padding: 72px 0;
    }

    .section__header {
        margin-bottom: 40px;
    }

    .about__services {
        grid-template-columns: 1fr;
    }

    .about__image-badge {
        right: 12px;
        bottom: -16px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 12px;
    }

    .before-after__container {
        grid-template-columns: 1fr;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .contact__form {
        padding: 28px;
    }

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

    .hero__title {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }

    .hero {
        height: 200vh;
    }

    .hero__sticky {
        min-height: 100vh;
        height: 100vh;
    }

    .hero__bg {
        background: var(--dark);
    }

    .hero__overlay {
        background: linear-gradient(
            to bottom,
            rgba(26, 26, 26, 0.2) 0%,
            rgba(26, 26, 26, 0.55) 50%,
            rgba(26, 26, 26, 0.9) 100%
        );
    }

    .hero__scroll-hint {
        bottom: 24px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__ctas {
        flex-direction: column;
    }

    .hero__ctas .btn {
        width: 100%;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery__filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .lightbox__prev,
    .lightbox__next {
        width: 40px;
        height: 40px;
    }

    .lightbox__prev { left: 8px; }
    .lightbox__next { right: 8px; }
}

/* Body scroll lock when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   Subpage Layouts
   ============================================ */
body.page {
    padding-top: 0;
}

.header--solid {
    background-color: rgba(245, 240, 232, 1);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav__link--active {
    color: var(--gold);
}

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

/* Page Hero (subpage banner) */
.page-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    margin-top: 0;
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.85) 0%,
        rgba(26, 26, 26, 0.65) 100%
    );
}

.page-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-hero__breadcrumb {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.page-hero__breadcrumb a {
    color: var(--gold);
    transition: color var(--transition);
}

.page-hero__breadcrumb a:hover {
    color: var(--cream);
}

.page-hero__label {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    font-weight: 500;
}

.page-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 20px;
}

.page-hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 640px;
    line-height: 1.7;
}

/* ============================================
   Teaser Sections (Home Page)
   ============================================ */
.teaser__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.teaser--reverse .teaser__grid {
    direction: rtl;
}

.teaser--reverse .teaser__content,
.teaser--reverse .teaser__image {
    direction: ltr;
}

.teaser__content {
    max-width: 540px;
}

.teaser__text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.teaser__list {
    list-style: none;
    margin: 24px 0 32px;
    padding: 0;
}

.teaser__list li {
    position: relative;
    padding: 8px 0 8px 28px;
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(154, 145, 137, 0.12);
}

.teaser__list li:last-child {
    border-bottom: none;
}

.teaser__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background: var(--gold);
}

.teaser__image {
    position: relative;
}

.teaser__image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 8px;
}

/* Gallery Teaser (mini grid on home) */
.gallery-teaser__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 220px 220px;
    gap: 16px;
    margin-bottom: 40px;
}

.gallery-teaser__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-teaser__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-teaser__item:hover img {
    transform: scale(1.06);
}

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

/* ============================================
   Service Blocks (About page)
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-block {
    display: block;
    padding: 36px 32px;
    background: rgba(45, 37, 32, 0.5);
    border: 1px solid rgba(139, 105, 20, 0.2);
    border-radius: 10px;
    transition: all var(--transition);
    cursor: pointer;
}

.service-block:hover {
    background: rgba(45, 37, 32, 0.8);
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.service-block__icon {
    color: var(--gold);
    margin-bottom: 16px;
}

.service-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--cream);
    margin-bottom: 10px;
}

.service-block p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-block__cta {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

/* ============================================
   Values Grid (About page)
   ============================================ */
.values__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.value-card {
    padding: 32px;
    border-left: 3px solid var(--gold);
    background: rgba(45, 37, 32, 0.3);
    border-radius: 0 8px 8px 0;
}

.value-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--cream);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   Intro Block (subpages)
   ============================================ */
.intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro__text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.intro .section__title {
    margin-bottom: 24px;
}

.section--top-flush {
    padding-top: 0;
}

/* ============================================
   Oak Services (alternating layout)
   ============================================ */
.oak-services {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.oak-service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.oak-service--reverse {
    direction: rtl;
}

.oak-service--reverse .oak-service__content,
.oak-service--reverse img {
    direction: ltr;
}

.oak-service img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.oak-service__content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.oak-service__content p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   Service Page Headers + Detail Cards
   (Joinery page)
   ============================================ */
.service-page__header {
    text-align: center;
    margin-bottom: 48px;
}

.service-page__details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.detail-card {
    padding: 24px;
    background: rgba(45, 37, 32, 0.5);
    border: 1px solid rgba(139, 105, 20, 0.15);
    border-radius: 8px;
}

.detail-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.detail-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   Hub Cards (Joinery hub page)
   ============================================ */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hub-card {
    display: flex;
    flex-direction: column;
    background: rgba(45, 37, 32, 0.5);
    border: 1px solid rgba(139, 105, 20, 0.15);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
}

.hub-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.hub-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.hub-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hub-card:hover .hub-card__image img {
    transform: scale(1.06);
}

.hub-card__content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hub-card__content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--cream);
    margin-bottom: 8px;
}

.hub-card__content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.hub-card__cta {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

/* Empty state for sub-pages with no images yet */
.empty-state {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px 32px;
    text-align: center;
    background: rgba(45, 37, 32, 0.4);
    border: 1px dashed rgba(196, 149, 58, 0.3);
    border-radius: 10px;
}

.empty-state p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 968px) {
    .hub-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CTA Banner (subpage footer CTA)
   ============================================ */
.cta-banner {
    padding: 80px 0;
    background: var(--charcoal);
}

.cta-banner__content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.cta-banner__content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--cream);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-banner__content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ============================================
   Subpage Responsive
   ============================================ */
@media (max-width: 968px) {
    .teaser__grid,
    .oak-service {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .teaser--reverse .teaser__grid,
    .oak-service--reverse {
        direction: ltr;
    }

    .teaser__image img,
    .oak-service img {
        height: 360px;
    }

    .services-grid,
    .values__grid {
        grid-template-columns: 1fr;
    }

    .service-page__details {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .gallery-teaser__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 160px 160px 160px;
    }

    .service-page__details {
        grid-template-columns: 1fr;
    }

    .page-hero {
        min-height: 380px;
        padding: 120px 0 60px;
    }
}

/* ============================================
   Featured Work
   ============================================ */
.featured__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr;
    gap: 20px;
    min-height: 640px;
}

.featured__column {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    min-height: 100%;
}

.featured__item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    min-height: 310px;
    isolation: isolate;
}

.featured__item--large {
    min-height: 640px;
}

.featured__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured__item:hover img {
    transform: scale(1.06);
}

.featured__overlay {
    position: absolute;
    inset: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.4) 50%, transparent 100%);
    color: var(--cream);
}

.featured__tag {
    display: inline-block;
    width: fit-content;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(196, 149, 58, 0.15);
    border: 1px solid rgba(196, 149, 58, 0.4);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.featured__overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--cream);
}

.featured__overlay p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
    max-width: 420px;
    line-height: 1.6;
}

.featured__cta {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    transition: gap var(--transition);
}

.featured__item:hover .featured__cta {
    color: #d4a344;
}

.featured__item--large .featured__overlay h3 {
    font-size: 2.2rem;
}

@media (max-width: 968px) {
    .featured__grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .featured__item--large {
        height: 360px;
    }

    .featured__column {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 280px;
    }

    .featured__item--large .featured__overlay h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .featured__column {
        grid-template-columns: 1fr;
        grid-template-rows: 240px 240px;
    }

    .featured__overlay {
        padding: 20px;
    }

    .featured__overlay h3 {
        font-size: 1.3rem;
    }

    .featured__item--large .featured__overlay h3 {
        font-size: 1.6rem;
    }
}

/* Featured service card */
.service-card--featured {
    background: linear-gradient(135deg, rgba(196, 149, 58, 0.12), rgba(139, 105, 20, 0.05));
    border-color: rgba(196, 149, 58, 0.4);
}

.service-card--featured h3 {
    color: var(--gold);
}

/* ============================================
   Showcase / Joinery in Motion
   ============================================ */
.showcase {
    position: relative;
    overflow: hidden;
    padding: 140px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.showcase__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.showcase__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: showcaseSlide 25s infinite;
}

.showcase__slide--1 {
    background-image: url('../images/Oak/oak-french-doors.jpg');
    animation-delay: 0s;
}

.showcase__slide--2 {
    background-image: url('../images/joinery/windows-joinery.jpg');
    animation-delay: 5s;
}

.showcase__slide--3 {
    background-image: url('../images/Oak/oak-stable-door.jpg');
    animation-delay: 10s;
}

.showcase__slide--4 {
    background-image: url('../images/joinery/cupboard-1.jpg');
    animation-delay: 15s;
}

.showcase__slide--5 {
    background-image: url('../images/Oak/oak-doors.jpg');
    animation-delay: 20s;
}

@keyframes showcaseSlide {
    0%, 16% {
        opacity: 1;
        transform: scale(1.05);
    }
    20%, 100% {
        opacity: 0;
        transform: scale(1.15);
    }
}

.showcase__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.92) 0%,
        rgba(45, 37, 32, 0.78) 50%,
        rgba(26, 26, 26, 0.65) 100%
    );
}

.showcase__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.showcase__text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 24px 0 40px;
    max-width: 600px;
}

.showcase__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
    max-width: 580px;
}

.showcase__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 20px;
    border-left: 2px solid var(--gold);
}

.showcase__stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.showcase__stat-label {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .showcase {
        padding: 80px 0;
    }

    .showcase__stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .showcase__stat:nth-child(3) {
        grid-column: 1 / -1;
    }

    .showcase__stat-number {
        font-size: 2rem;
    }
}

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

    .showcase__stat:nth-child(3) {
        grid-column: auto;
    }

    .nav__logo {
        padding: 4px 10px;
    }

    .nav__logo-img {
        height: 36px;
    }
}
