/* ===== Space Crafted Homes - Main Stylesheet ===== */

:root {
    --primary: #6b7280;
    /* Main Grey */
    --primary-dark: #4b5563;
    /* Dark Grey */
    --secondary: #e5e7eb;
    /* Light Grey */
    --dark: #111827;
    /* Almost Black */
    --light: #f9fafb;
    /* Off White */
    --muted: #6b7280;
    /* Medium Grey */
    --card: rgba(255, 255, 255, 0.85);
    --border: rgba(107, 114, 128, 0.18);
    --shadow: 0 25px 70px rgba(17, 24, 39, 0.12);
    --radius: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background:
        radial-gradient(circle at top left, rgba(180, 107, 74, .18), transparent 35%),
        linear-gradient(180deg, #f4feff 0%, #d3f2f5 55%, #f4feff 100%);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: 'Syne', sans-serif;
}

a {
    text-decoration: none;
}

.section-padding {
    padding: 100px 0;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(180, 107, 74, .12);
    color: var(--primary-dark);
    padding: 9px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 18px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 18px;
}

.section-title span {
    color: var(--primary);
}

.section-desc {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    transition: .3s;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 250, 244, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #1f1f1f);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(180, 107, 74, .35);
}

.nav-link {
    color: var(--dark);
    font-weight: 700;
    margin: 0 8px;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.btn-main {
    background: var(--dark);
    color: #fff;
    padding: 5px 24px;
    border-radius: 50px;
    font-weight: 800;
    border: none;
    transition: .3s;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.btn-main:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(180, 107, 74, .3);
}

.btn-outline-custom {
    border: 1px solid rgba(0, 0, 0, .18);
    color: var(--dark);
    padding: 13px 24px;
    border-radius: 50px;
    font-weight: 800;
    background: rgba(255, 255, 255, .45);
    backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: .3s;
}

.btn-outline-custom:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Hero */
.hero {
    min-height: 100vh;
    padding: 140px 0 80px;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: .87;
    letter-spacing: -5px;
    margin-bottom: 25px;
}

.hero-title span {
    color: var(--primary);
    display: block;
}

.hero-desc {
    max-width: 600px;
    color: #595959;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-mini {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.avatar-stack {
    display: flex;
}

.avatar-stack span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: -10px;
    border: 3px solid #fff;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
}

.avatar-stack span:first-child {
    margin-left: 0;
    background: #b46b4a;
}

.avatar-stack span:nth-child(2) {
    background: #222;
}

.avatar-stack span:nth-child(3) {
    background: #d99b76;
}

.avatar-stack span:nth-child(4) {
    background: #6d7f65;
}

.hero-card-wrap {
    background: rgba(255, 255, 255, .42);
    backdrop-filter: blur(20px);
    border-radius: 42px;
    padding: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, .55);
    position: relative;
}

.hero-image-card {
    min-height: 560px;
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .35)),
        url('../hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    border-radius: 22px;
    padding: 5px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .15);
    border: 1px solid rgba(255, 255, 255, .8);
}

.floating-card.one {
    left: 5px;
    top: 70px;
    width: 190px;
}

.floating-card.two {
    right: -15px;
    bottom: 70px;
    width: 210px;
}

.floating-card h4 {
    font-weight: 800;
    margin: 0;
    font-size: 15px;
}

.floating-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    background: rgba(255, 250, 244, .92);
    backdrop-filter: blur(16px);
    width: 82%;
    border-radius: 25px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
}

.hero-search input {
    border: 0;
    background: #f1e1d0;
    border-radius: 50px;
    padding: 13px 18px;
    outline: none;
    font-size: 14px;
}

/* About */
.about-visual {
    position: relative;
    min-height: 520px;
}

.about-main-img {
    width: 78%;
    height: 470px;
    border-radius: 38px;
    background:
        linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .22)),
        url('../about.png');
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.about-small-card {
    position: absolute;
    right: 15px;
    bottom: 0;
    width: 290px;
    background: var(--dark);
    color: #fff;
    border-radius: 30px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.about-small-card i {
    width: 54px;
    height: 54px;
    background: var(--primary);
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 24px;
    margin-bottom: 18px;
}

.feature-list {
    margin-top: 28px;
}

.feature-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.feature-item i {
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(180, 107, 74, .15);
    color: var(--primary);
    display: grid;
    place-items: center;
}

/* Services */
.services {
    background:
        radial-gradient(circle at top right, rgba(180, 107, 74, .15), transparent 30%),
        #171717;
    color: #fff;
    border-radius: 50px;
    margin: 40px 20px;
}

.services .section-desc {
    color: #bbb;
}

.service-card {
    height: 100%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    padding: 28px;
    transition: .35s;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    background: rgba(180, 107, 74, .24);
    border-radius: 50%;
    transition: .35s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, .13);
    border-color: rgba(180, 107, 74, .6);
}

.service-card:hover::after {
    transform: scale(1.4);
}

.service-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 25px;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
}

.service-card h5 {
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: #cfcfcf;
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Subscribe */
.subscribe-box {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .5));
    background-size: cover;
    background-position: center;
    border-radius: 42px;
    padding: 55px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.subscribe-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 250, 244, .82);
    backdrop-filter: blur(4px);
}

.subscribe-content {
    position: relative;
    z-index: 2;
}

.form-control,
.form-select {
    border: 1px solid rgba(0, 0, 0, .08);
    padding: 15px 18px;
    border-radius: 16px;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: var(--primary);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.text-link {
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
}

/* Newsletter CTA banner (replaces subscribe form on index) */
.newsletter-cta {
    background:
        radial-gradient(circle at top right, rgba(180, 107, 74, .15), transparent 30%),
        #171717;
    color: #fff;
    border-radius: 50px;
    margin: 40px 20px;
    padding: 70px 40px;
    text-align: center;
}

.newsletter-cta .section-badge {
    background: rgba(180, 107, 74, .2);
    color: #d99b76;
}

.newsletter-cta h2 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 18px;
}

.newsletter-cta p {
    color: #bbb;
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.8;
}

/* Why */
.why-card {
    background: #fff;
    border-radius: 30px;
    padding: 32px;
    height: 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .07);
    border: 1px solid var(--border);
    transition: .3s;
}

.why-card:hover {
    transform: translateY(-8px);
}

.why-card i {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(180, 107, 74, .14);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.why-card h5 {
    font-weight: 800;
}

.why-card p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* FAQ */
.accordion-item {
    border: 0;
    margin-bottom: 16px;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .06);
}

.accordion-button {
    font-weight: 700;
    padding: 22px;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--dark);
    color: #fff;
}

.accordion-body {
    color: var(--muted);
    line-height: 1.8;
    padding: 22px;
}

/* Contact */
.contact-wrap {
    background: #fff;
    border-radius: 42px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-info {
    background:
        linear-gradient(rgba(34, 34, 34, 1), rgba(14, 14, 14, 0.88));
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 50px;
    height: 100%;
}

.contact-info h3 {
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info p {
    color: #ddd;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-top: 24px;
}

.contact-item i {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.contact-form {
    padding: 50px;
}

/* Footer */
footer {
    background: var(--dark);
    color: #fff;
    padding: 55px 0 25px;
}

.footer-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.footer-link {
    display: inline-block;
    color: #cfcfcf;
    margin: 0 10px 10px;
    font-weight: 600;
    cursor: pointer;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 30px;
    padding-top: 22px;
    color: #aaa;
    font-size: 14px;
}

/* Toast */
.toast-wrap {
    position: fixed;
    top: 90px;
    right: 22px;
    z-index: 99999;
}

.custom-toast {
    min-width: 310px;
    background: #fff;
    color: var(--dark);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 16px 18px;
    display: flex;
    gap: 12px;
    align-items: center;
    transform: translateX(130%);
    transition: .4s;
    border-left: 5px solid var(--primary);
}

.custom-toast.show {
    transform: translateX(0);
}

.custom-toast i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(180, 107, 74, .15);
    color: var(--primary);
    display: grid;
    place-items: center;
}

/* ===== Page Header (for dedicated pages) ===== */
.page-header {
    min-height: 52vh;
    padding: 160px 0 80px;
    position: relative;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(180, 107, 74, .22), transparent 40%),
        linear-gradient(180deg, #f4feff 0%, #d3f2f5 60%, #f4feff 100%);
}

.page-header .section-badge {
    background: rgba(180, 107, 74, .14);
}

.page-header h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.page-header h1 span {
    color: var(--primary);
    display: block;
}

.page-header p {
    max-width: 620px;
    color: #595959;
    font-size: 1rem;
    line-height: 1.8;
}

.breadcrumb-mini {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 22px;
}

.breadcrumb-mini a {
    color: var(--primary);
    font-weight: 700;
}

.breadcrumb-mini a:hover {
    text-decoration: underline;
}

/* ===== Legal / content page body ===== */
.legal-content {
    background: #fff;
    border-radius: 38px;
    box-shadow: var(--shadow);
    padding: 55px;
}

.legal-content h2 {
    font-weight: 800;
    font-size: 1.5rem;
    margin: 34px 0 12px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--muted);
    line-height: 1.9;
    margin-bottom: 18px;
}

.legal-content p strong {
    color: var(--dark);
}

.legal-content ul {
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.9;
}

.legal-content li {
    margin-bottom: 8px;
}

/* Unsubscribe / newsletter standalone box */
.standalone-form-box {
    background: #fff;
    border-radius: 38px;
    box-shadow: var(--shadow);
    padding: 55px;
    max-width: 720px;
    margin: 0 auto;
}

.standalone-form-box h3 {
    font-weight: 800;
    margin-bottom: 12px;
}

.standalone-form-box p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* Responsive */
@media(max-width: 991px) {
    .hero-title {
        letter-spacing: -2px;
    }

    .hero-image-card {
        min-height: 460px;
        margin-top: 45px;
    }

    .floating-card.one {
        left: 15px;
    }

    .floating-card.two {
        right: 15px;
    }

    .hero-search {
        grid-template-columns: 1fr;
    }

    .about-main-img {
        width: 100%;
    }

    .about-small-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 20px;
        width: 100%;
    }

    .subscribe-box {
        padding: 35px 24px;
    }

    .contact-info,
    .contact-form {
        padding: 35px 24px;
    }

    .legal-content,
    .standalone-form-box {
        padding: 35px 24px;
    }
}

@media(max-width: 576px) {
    .section-padding {
        padding: 70px 0;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 3.4rem;
    }

    .hero-card-wrap {
        padding: 10px;
        border-radius: 28px;
    }

    .hero-image-card {
        border-radius: 22px;
    }

    .floating-card {
        position: static;
        width: 100% !important;
        margin-top: 12px;
    }

    .hero-search {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 14px;
    }

    .services {
        margin: 20px 10px;
        border-radius: 30px;
    }

    .newsletter-cta {
        margin: 20px 10px;
        border-radius: 30px;
        padding: 50px 22px;
    }

    .page-header {
        padding: 130px 0 60px;
        min-height: auto;
    }
}