/* Force contact page grid and inner content to be left-aligned and fill viewport */
main.contact-page .contact-inner,
main.contact-page .contact-grid,
.contact-inner,
.contact-grid {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
    justify-items: start !important;
    align-items: start !important;
}

.hero-section {
    position: relative;
    min-height: 80vh;
    /* increased for a taller hero */
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section .container {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 1rem;
    max-width: 700px;
}

/* Owl carousel hero styles */
.hero-carousel .item {
    min-height: 80vh;
    /* taller slides for a more dramatic hero */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.hero-carousel .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
}

.owl-nav .owl-prev,
.owl-nav .owl-next {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.owl-nav .owl-prev {
    left: 10px;
}

.owl-nav .owl-next {
    right: 10px;
}

/* Site color tokens */
:root {
    --bg: #f7f7f7;
    --beige: #f5efe6;
    --brown: #5a3f2b;
    --muted: #6b6b6b;
}

/* Sections */
section {
    padding: 60px 0
}

/* Make the hero sit flush under the header (no extra top gap) */
.hero-carousel-section {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

/* Remove the left (previous) arrow on hero carousel for all screen sizes */
.hero-carousel .owl-prev {
    display: none !important;
}

/* Also remove the right (next) arrow so the hero shows only dots */
.hero-carousel .owl-next {
    display: none !important;
}

.bg-beige {
    background: var(--beige)
}

.service-card {
    transition: transform .25s ease, box-shadow .25s ease
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08)
}

.portfolio-item img {
    width: 100%;
    height: 260px;
    object-fit: cover
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(90, 63, 43, 0.55);
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1
}

.testimonials-carousel .testimonial img {
    object-fit: cover
}

/* Testimonials three-card layout (screenshot style) */
.testimonials-section {
    background: linear-gradient(90deg, rgba(250, 250, 250, 1) 0%, rgba(255, 255, 255, 1) 40%);
}

.testimonials-section h2 {
    font-size: 2.25rem
}

.testimonial-card {
    border-radius: 4px;
    overflow: hidden;
    position: relative
}

.testimonial-card .quote-badge {
    position: absolute;
    top: -18px;
    left: 40px;
    width: 44px;
    height: 44px;
    background: var(--beige, #e7c98a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.testimonial-card .testimonial-text {
    color: #9a9a9a;
    line-height: 1.8
}

.testimonial-card img {
    object-fit: cover;
    border-radius: 4px
}

.testimonial-card .text-brown {
    color: var(--brown)
}

.testimonial-card.accent-border {
    border-bottom: 4px solid var(--beige, #e7c98a)
}

@media (max-width:991.98px) {
    .testimonial-card .quote-badge {
        left: 30px
    }
}

@media (max-width:575.98px) {
    .testimonials-section h2 {
        font-size: 1.6rem
    }

    /* Hide left (previous) nav arrow on the hero carousel (keep right arrow and dots) */
    .hero-carousel .owl-prev {
        display: none !important;
    }

    .testimonial-card .quote-badge {
        left: 16px;
        top: -14px
    }
}

/* Process / How We Works section */
.process-step {
    padding-top: 10px
}

.process-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 10px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
}

.process-circle i {
    color: var(--brown);
}

.process-number {
    position: absolute;
    top: -14px;
    right: -14px;
    background: var(--beige, #e7c98a);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.process-step h5 {
    font-weight: 600;
    margin-top: 0.5rem
}

.process-step p {
    color: #8a8a8a;
    margin-top: 0.5rem
}

/* Process grid - responsive step layout */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.process-grid .process-step {
    text-align: left;
}

/* place the step number as a small badge relative to the circle */
.process-circle .process-number {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--beige);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(15, 15, 15, 0.08);
    font-size: 0.95rem;
}

@media (max-width:991.98px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:575.98px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* Process stepper style: horizontal on desktop, stacked on mobile */
.process-steps {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 1rem 0 0.5rem;
}

.process-steps::before {
    /* connecting line */
    content: "";
    position: absolute;
    top: 28px;
    /* aligns with marker center */
    left: 5%;
    right: 5%;
    height: 2px;
    background: rgba(90, 63, 43, 0.06);
    z-index: 0;
}

.process-item {
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    text-align: center;
    padding: 0.5rem;
}

/* Make each process item look like a box card for clarity */
.process-item {
    background: #fff;
    padding: 1rem 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(15, 15, 15, 0.06);
    transition: transform .28s cubic-bezier(.2, .9, .2, 1), box-shadow .28s ease;
}

.process-item:hover,
.process-item:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 26px 64px rgba(15, 15, 15, 0.12);
}

.process-item:focus-visible {
    outline: 3px solid rgba(90, 63, 43, 0.08);
    outline-offset: 4px;
}

.process-marker {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--beige);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(15, 15, 15, 0.06);
    font-weight: 700;
    color: var(--brown);
    font-size: 1.05rem;
}

.process-item h5 {
    margin-top: 0.8rem;
    margin-bottom: 0.25rem;
}

.process-item p {
    margin: 0;
    color: #6f6f6f;
    font-size: 0.95rem;
}

@media (max-width:991.98px) {
    .process-steps::before {
        left: 8%;
        right: 8%;
    }
}

@media (max-width:575.98px) {
    .process-steps {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .process-steps::before {
        display: none;
    }

    .process-marker {
        margin-left: 0;
    }
}

@media (max-width:991.98px) {
    .process-circle {
        width: 120px;
        height: 120px;
        border-width: 8px
    }

    .process-number {
        top: -12px;
        right: -12px;
        width: 36px;
        height: 36px
    }
}

@media (max-width:575.98px) {
    .process-circle {
        width: 96px;
        height: 96px;
        border-width: 6px
    }

    .process-number {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px
    }

    .process-step p {
        font-size: 0.95rem
    }
}

.site-footer {
    background: #222;
    color: #ddd
}

.site-footer a {
    color: inherit
}

/* Small helpers */
.text-brown {
    color: var(--brown)
}

@media (max-width:768px) {

    /* Make hero shorter on small screens to avoid excessive scroll */
    .hero-section,
    .hero-carousel .item {
        min-height: 56vh;
    }

    .hero-carousel .container h1 {
        font-size: 2rem
    }
}

/* Overlapping feature cards under hero */
.hero-features {
    margin-top: -60px;
    z-index: 20;
    position: relative
}

.hero-features .feature-card {
    background: #fff
}

.hero-features .feature-card i {
    color: var(--brown)
}

/* Services image grid (screenshot-inspired) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.service-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(22, 22, 22, 0.06);
}

.service-card-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .6s ease, filter .4s ease;
}

.service-card-image:hover img {
    transform: scale(1.04);
}

.service-ribbon {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    background: #fff;
    padding: 14px 20px;
    box-shadow: 0 14px 30px rgba(22, 22, 22, 0.08);
    border-left: 6px solid var(--brown, #c79a5b);
    border-radius: 3px;
}

.service-ribbon span {
    font-weight: 600;
    color: #222;
    font-size: 1rem;
}

@media (max-width: 991.98px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card-image img {
        height: 220px;
    }
}

@media (max-width: 575.98px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-image img {
        height: 180px;
    }

    .service-ribbon {
        left: 1rem;
        right: 1rem;
    }
}

/* Counters */
.counters {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center
}

.counter {
    text-align: center
}

.counter h4 {
    font-size: 2.25rem;
    margin: 0;
    color: var(--brown);
    font-weight: 700
}

.counter p {
    margin: 0
}

/* Sticky header shadow */
.navbar.sticky-shadow {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px)
}

body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    color: #222;
}

/* Headings use a serif for a refined interior design look */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

header {
    background: #fff;
    color: #222;
    /* reduced vertical padding to tighten header height */
    padding: 0.6rem 0;
    text-align: center;
}

header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.2rem;
    letter-spacing: 2px;
}

nav {
    margin-bottom: 0.5rem;
}

nav a {
    color: #222;
    text-decoration: none;
    margin: 0 0.6rem;
    /* reduced gap between nav links */
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--brown);
}

main {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* Portfolio page: make main unconstrained so the gallery can be full-bleed-like
   (matches the treatment for service/about pages). Also style captions and
   active filter buttons for better visual feedback. */
.portfolio-page main {
    max-width: 100%;
    margin: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.portfolio-caption {
    padding: 0.5rem 0.75rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.45) 100%);
    color: #fff;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: var(--brown);
    color: #fff;
    border-color: var(--brown);
}

/* Homepage: make main full width and rely on .container inside sections for centered content */
body.home main {
    max-width: 100%;
    margin: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.features {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
}

.features div {
    flex: 1;
    background: #f0f0f0;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

/* New features grid styles (4-column) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.features-grid .feature-card {
    background: #fff;
    position: relative;
    padding: 2.25rem 1.25rem;
    border-radius: 14px;
    transition: transform .32s cubic-bezier(.2, .9, .2, 1), box-shadow .32s ease;
    box-shadow: 0 8px 22px rgba(15, 15, 15, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.features-grid .feature-card .icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1rem;
    background: linear-gradient(180deg, rgba(231, 214, 179, 0.14), rgba(231, 214, 179, 0.04));
    border: 2px solid rgba(199, 154, 91, 0.10);
    box-shadow: 0 8px 16px rgba(199, 154, 91, 0.04) inset;
}

.features-grid .feature-card .icon i {
    color: var(--brown);
    font-size: 1.5rem;
}

.features-grid .feature-card h4,
.features-grid .feature-card h5 {
    margin: 0.25rem 0 0.5rem;
    font-weight: 700;
}

.features-grid .feature-card p {
    color: #7f7f7f;
    margin: 0;
    line-height: 1.6;
    font-size: 0.98rem;
}

.features-grid .feature-card::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    width: 56px;
    height: 4px;
    background: transparent;
    border-radius: 2px;
}

/* Tall pill style used in the features section (matches screenshot) */
.feature-pill {
    width: 120px;
    min-height: 360px;
    border-radius: 36px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(15, 15, 15, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 18px 12px;
}

.feature-pill .pill-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(15, 15, 15, 0.06);
    color: var(--brown);
    font-size: 1.25rem;
}

.feature-pill .pill-content h3,
.feature-pill .pill-content h5 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.35rem;
}

.feature-pill .pill-content p {
    color: #6b6b6b;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.feature-pill .pill-underline {
    width: 56px;
    height: 6px;
    background: var(--beige);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(231, 214, 179, 0.12) inset;
    margin-bottom: 6px;
}

/* Make pills smaller on small screens */
@media (max-width:991.98px) {
    .feature-pill {
        width: 140px;
        min-height: 300px;
    }
}

@media (max-width:575.98px) {
    .feature-pill {
        width: 100%;
        min-height: 180px;
        border-radius: 12px;
        padding: 12px;
    }

    .feature-pill .pill-underline {
        margin-bottom: 0;
    }
}

.features-grid .feature-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 22px 52px rgba(15, 15, 15, 0.12);
}

/* Accent underline for the last card to match design variation */
.features-grid .feature-card:last-child::after {
    background: var(--beige);
}

@media (max-width:991.98px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:575.98px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-grid .feature-card {
        padding: 1.5rem;
    }
}

.about,
.services,
.gallery,
.contact {
    margin-bottom: 2rem;
}

.services ul {
    list-style: disc inside;
    padding-left: 1rem;
}

.gallery-grid {
    /* Modern responsive gallery grid for portfolio — fixed-size uniform thumbnails */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
    align-items: start;
}

/* If Bootstrap column classes are used as children, remove their default padding so CSS grid gap controls spacing */
.gallery-grid>[class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Gallery item wrapper (link) */
.gallery-item {
    display: block;
    width: 100%;
    /* use a square aspect ratio so thumbnails are uniform regardless of source orientation */
    aspect-ratio: 1 / 1;
    min-height: 220px;
    /* ensures reasonable size on narrow screens */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f6f6f6;
    transition: transform .36s cubic-bezier(.2, .9, .2, 1), box-shadow .36s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* ensure center-crop */
    display: block;
    transition: transform .45s cubic-bezier(.2, .85, .2, 1);
}

.gallery-item:hover img,
.gallery-item:focus img {
    transform: scale(1.06);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 0.75rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.48) 100%);
    opacity: 0;
    transition: opacity .28s ease;
}

.gallery-item:hover .portfolio-overlay,
.gallery-item:focus .portfolio-overlay {
    opacity: 1;
}

.portfolio-caption {
    width: 100%;
    color: #fff;
}

/* Make grid tighter on small screens */
@media (max-width:1199.98px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:767.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:575.98px) {
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: .85rem;
    }

    .gallery-item {
        min-height: 180px;
        border-radius: 10px;
    }
}

/* Types of Custom Furniture grid */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: start;
}

.type-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 15, 15, 0.06);
    transition: transform .28s cubic-bezier(.2, .9, .2, 1), box-shadow .28s ease;
    display: flex;
    flex-direction: column;
}

.type-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.type-card .type-body {
    padding: 0.9rem 1rem;
}

.type-card h5 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.type-card p {
    margin: 0;
    color: #6b6b6b;
    font-size: 0.95rem;
}

.type-card:hover,
.type-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 26px 64px rgba(15, 15, 15, 0.12);
}

@media (max-width:575.98px) {
    .type-card img {
        height: 140px;
    }
}

.note {
    font-size: 0.95rem;
    color: #888;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

form label {
    font-weight: 500;
}

form input,
form textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

form button {
    background: #222;
    color: #fff;
    border: none;
    padding: 0.7rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

form button:hover {
    background: #ffb347;
    color: #222;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #222;
    color: #fff;
    margin-top: 2rem;
    border-radius: 0 0 10px 10px;
}

/* About page specific styles */
.about-hero {
    background-image: url('images/about.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    position: relative;
}

.about-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.25);
}

.about-hero .hero-content {
    position: relative;
    z-index: 2;
    color: #222;
}

.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.story-section .story-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.mission-cards .card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(15, 15, 15, 0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.mission-cards .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(15, 15, 15, 0.12);
}

.team-grid .team-member {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.team-grid .team-member img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.team-grid .team-member:hover img {
    transform: scale(1.03);
}

.team-grid .overlay-social {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%);
    opacity: 0;
    transition: opacity .25s ease;
}

.team-grid .team-member:hover .overlay-social {
    opacity: 1;
}

.team-grid .member-info {
    padding: 1rem;
}

.values-list {
    display: flex;
    gap: 1rem;
}

.values-list .value {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Why Choose Us - card box styling */
.why-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
}

.why-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 15, 15, 0.06);
    transition: transform .28s cubic-bezier(.2, .9, .2, 1), box-shadow .28s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.why-card:hover,
.why-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(15, 15, 15, 0.12);
}

.why-card:focus-visible {
    outline: 3px solid rgba(90, 63, 43, 0.10);
    outline-offset: 4px;
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(231, 214, 179, 0.14), rgba(231, 214, 179, 0.04));
    border: 2px solid rgba(199, 154, 91, 0.08);
    color: var(--brown);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.why-card h5 {
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.why-card p {
    margin: 0;
    color: #6b6b6b;
    line-height: 1.5;
}

@media (max-width:575.98px) {
    .why-card {
        padding: 1rem;
    }

    .why-icon {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

@media (max-width:991.98px) {
    .about-hero {
        padding: 80px 0;
    }

    .team-grid .team-member img {
        height: 260px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-list {
        flex-direction: column;
    }
}

@media (max-width:575.98px) {
    .about-hero {
        padding: 60px 0;
    }

    .team-grid .team-member img {
        height: 200px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility: full-bleed sections that span the entire viewport width while keeping inner .container centered */
.full-bleed {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    overflow: hidden;
}

/* Small tweak to ensure overlay and bg cover the full-bleed area */
.full-bleed .overlay {
    position: absolute;
    inset: 0;
}

@media (max-width:575.98px) {
    .full-bleed {
        margin-left: calc(-50vw + 8px);
        margin-right: calc(-50vw + 8px);
    }
}

/* Prevent horizontal overflow on full-bleed and service pages */
.about-page,
.services-page,
.service-page {
    overflow-x: hidden;
    background-color: #ffffff;
    /* page background full-width in white */
}

/* Force root background to white to ensure plain canvas behind all pages */
html,
body {
    background-color: #ffffff;
}

/* Keep full-bleed inner content from creating accidental horizontal scroll */
.full-bleed>.container {
    max-width: 1200px;
    /* respects your existing container width */
}

/* Ensure the main area stays visually white across the full viewport for service pages */
.service-page main,
.services-page main,
.about-page main {
    background-color: transparent;
    /* keep section backgrounds as defined (images/bg colors) */
}

/* Remove white rounded panel on service/about pages: make the page visually continuous */
.service-page .bg-light,
.services-page .bg-light,
.about-page .bg-light {
    background: transparent !important;
}

.service-page .rounded,
.services-page .rounded,
.about-page .rounded {
    border-radius: 0 !important;
}

.service-page .shadow-sm,
.services-page .shadow-sm,
.about-page .shadow-sm {
    box-shadow: none !important;
}

/* Ensure containers do not add their own background on service/about pages */
.service-page .container,
.services-page .container,
.about-page .container {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Remove the centered white rounded panel to make page visually continuous white */
.service-page .container,
.services-page .container,
.about-page .container {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Service card layout stability: equal heights and footer-aligned actions */
.services-page .card,
.service-page .card {
    height: 100%;
}

.services-page .card .card-body,
.service-page .card .card-body {
    display: flex;
    flex-direction: column;
}

/* Ensure any link with mt-auto stays pinned to the bottom of the card body */
.services-page .card .card-body .mt-auto,
.service-page .card .card-body .mt-auto {
    margin-top: auto;
}

/* Prevent wide images inside full-bleed from causing overflow */
.full-bleed img {
    max-width: 100%;
    height: auto;
}

/* About page: make main unconstrained and let sections be full-bleed while content sits inside .container */
.about-page main {
    max-width: 100%;
    margin: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Services page: make main unconstrained so sections can be full-bleed */
.services-page main {
    max-width: 100%;
    margin: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Service pages: make main unconstrained so sections can be full-bleed (applies to single service pages like furniture.html) */
.service-page main {
    max-width: 100%;
    margin: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Services page styles */
.service-hero {
    background-image: url('images/hero2.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    position: relative;
}

.service-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.40);
}

/* Ensure hero text is white and buttons/readables contrast */
.service-hero .container,
.service-hero .container h1,
.service-hero .container p,
.service-hero .container small {
    color: #fff !important;
}

.service-hero a {
    color: inherit;
}

.service-hero .btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}

.service-hero .btn-outline-light:hover {
    color: #222;
    background: #fff;
}

/* Portfolio hero: polished full-bleed hero with overlay and centered content */
.portfolio-hero {
    /* Prefer a project-specific hero placed at images/portfolio/portfolio-hero.jpg */
    /* fallback to an existing hero image in images/ */
    background-image: url('images/hero1.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    display: flex;
    align-items: center;
    /* vertically center hero-inner */
    min-height: 56vh;
}

.portfolio-hero .overlay {
    position: absolute;
    inset: 0;
    /* subtle dark gradient to ensure text contrast across images */
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.20) 0%, rgba(15, 15, 15, 0.56) 100%);
    pointer-events: none;
}

.portfolio-hero .hero-inner {
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

/* Fallback: if the hero image is missing, use a warm neutral gradient so the hero still reads nicely */
.portfolio-hero {
    background-color: var(--beige);
}

/* keep CSS-only fallback handling; if the image is missing the background-color remains
   (removed the empty .portfolio-hero:not([style]) ruleset to avoid empty rulesets) */

/* Improve text readability on tight images */
.portfolio-hero h1,
.portfolio-hero p,
.portfolio-hero .breadcrumb a {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

@media (min-width:1200px) {
    .portfolio-hero {
        min-height: 66vh;
    }
}

@media (max-width:575.98px) {
    .portfolio-hero {
        min-height: 44vh;
        padding: 56px 0 36px;
    }

    .portfolio-hero .display-4 {
        font-size: 1.5rem;
    }
}

.portfolio-hero .display-4,
.portfolio-hero h1 {
    color: #fff;
}

.portfolio-hero p {
    color: rgba(255, 255, 255, 0.9);
}

.filter-bar .btn {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-bar .btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.filter-bar .btn.active {
    background: #fff;
    color: var(--brown);
    border-color: #fff;
}

@media (max-width:991.98px) {
    .portfolio-hero {
        padding: 80px 0 60px;
    }
}

@media (max-width:575.98px) {
    .portfolio-hero {
        padding: 56px 0 40px;
    }

    .portfolio-hero .display-4 {
        font-size: 1.6rem;
    }

    .filter-bar {
        flex-wrap: wrap;
        gap: .5rem;
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    height: 100%;
}

.service-card-media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.service-card h5 {
    margin-bottom: 0.5rem;
}

.service-card p {
    color: #6b6b6b;
    font-size: 0.95rem;
}

/* Make card content stretch so learn-more link sits at bottom */
.service-card>.p-4 {
    display: flex;
    flex-direction: column;
}

.service-card>.p-4 a {
    margin-top: auto;
}

/* Prevent horizontal scroll on pages using full-bleed */
.services-page,
.about-page {
    overflow-x: hidden;
}

@media (max-width:991.98px) {
    .service-card-media img {
        height: 180px;
    }
}

@media (max-width:575.98px) {
    .service-card-media img {
        height: 140px;
    }

    .service-hero {
        padding: 60px 0;
    }
}

/* Grid item wrapper used by the JS generator */
.gallery-grid .grid-item {
    width: 100%;
}

/* Remove any Bootstrap column padding if present (defensive) */
.gallery-grid>[class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

/* Make contact page main area full-width while keeping inner container constrained */
.contact-page main {
    max-width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Make the visual section full-bleed while keeping gutters via container-fluid */
.contact-section .container,
.contact-section .container-fluid {
    max-width: 100%;
    padding: 0;
}

/* If a .full-bleed hero is present, ensure next section doesn't overlap visually */
.contact-page .contact-section {
    margin-top: 0;
}

@media (max-width:767.98px) {
    .contact-section .container {
        padding: 36px 0.75rem;
    }
}

/* Contact page styles */
.contact-hero {
    background-size: cover;
    background-position: center center;
    color: #fff;
    position: relative;
    padding: 80px 0 60px;
    min-height: 36vh;
    display: flex;
    align-items: center;
}

.contact-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.18), rgba(15, 15, 15, 0.62));
}

/* Ensure hero-inner spans full width and keeps comfortable padding */
.contact-hero .hero-inner {
    width: 100%;
    box-sizing: border-box;
    padding-left: 1rem;
    padding-right: 1rem;
}

.contact-hero .hero-inner .container,
.contact-hero .hero-inner .container-fluid {
    max-width: none;
}

/* Full-width contact redesign styles */
.contact-full {
    /* use the existing full-bleed utility but ensure background spans */
}

.contact-inner {
    width: 100%;
    box-sizing: border-box;
    padding: 48px 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: start;
}

.contact-form-col {
    width: 100%;
}

.contact-details-col {
    width: 100%;
}

.contact-details.card {
    height: 100%;
}

.contact-map .map-embed-inner {
    max-width: 100vw;
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.map-placeholder.large {
    width: 100%;
    max-width: 1400px;
    height: 360px;
    border-radius: 8px;
    background: linear-gradient(180deg, #f4f2ee, #e9e3d7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
    font-weight: 600;
}

@media (max-width:991.98px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-inner {
        padding: 36px 1rem;
    }

    .map-placeholder.large {
        height: 220px;
    }
}

.contact-section .card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 32px rgba(15, 15, 15, 0.06);
}

.contact-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-details .map-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(180deg, #f4f2ee, #e9e3d7);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
    font-weight: 600;
}

.contact-details .map-inner {
    width: 100%;
    text-align: center;
}

.btn-brown {
    background: var(--brown);
    color: #fff;
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn-brown:hover,
.btn-brown:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(90, 63, 43, 0.12);
    color: #fff;
}

/* Improve form inputs on contact page */
.contact-section .form-control {
    border: 1px solid #e0dcd6;
    box-shadow: none;
}

.contact-section .form-label {
    font-weight: 600;
}

@media (max-width:991.98px) {
    .contact-hero {
        padding: 56px 0 40px;
    }
}

@media (max-width:575.98px) {
    .contact-hero {
        min-height: 28vh;
    }

    .contact-details .map-placeholder {
        height: 140px;
    }

    main {
        padding: 1rem;
    }
}

/* Toast UI for contact feedback */
.site-toast {
    position: fixed;
    right: 20px;
    bottom: 24px;
    min-width: 260px;
    max-width: 88vw;
    background: rgba(34, 34, 34, 0.94);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(15, 15, 15, 0.35);
    transform: translateY(12px) scale(.99);
    opacity: 0;
    transition: opacity .28s ease, transform .28s cubic-bezier(.2, .9, .2, 1);
    z-index: 1200;
    pointer-events: none;
}

.site-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.site-toast.error {
    background: rgba(120, 20, 20, 0.96);
}

.site-toast .site-toast-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.site-toast .site-toast-message {
    flex: 1;
    font-weight: 600;
}

.site-toast .site-toast-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.9
}

@media (max-width:575.98px) {
    .site-toast {
        right: 10px;
        bottom: 12px;
    }
}

/* ------------------------------------------------------------
   Fix: page classes placed on the <main> element
   Some pages (including contact) put the page-class directly on
   the <main> element, for example: <main class="contact-page">.
   Many existing selectors use ".contact-page main" which looks
   for a child <main> inside a wrapper and therefore doesn't
   match. Add explicit selectors targeting main.<page-class> to
   ensure the per-page main overrides take effect.
-------------------------------------------------------------*/
main.contact-page,
main.service-page,
main.services-page,
main.about-page,
main.portfolio-page,
main.home {
    max-width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Ensure contact page content (contact-inner) can span fully */
.contact-inner {
    width: 100% !important;
    margin: 0 auto !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    box-sizing: border-box !important;
}