/* =========================================================
   Base / Global
   ========================================================= */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

:root {
    /* Warm dark theme */
    --bg: #2c2622; /* main background (warm charcoal) */
    --surface: #342e2a; /* cards/sections */
    --surface-2: #3b342f; /* slightly lighter surface */
    --border: rgba(255,255,255,0.10);
    --text: #f2ede7; /* main text */
    --muted: rgba(242,237,231,0.75);
    --muted-2: rgba(242,237,231,0.60);
    --nav: #1d2537; /* your existing nav color (works well) */
    --navText: #f2ede7;
    --primary: #c98a3a; /* warm amber */
    --primaryHover: #b97a2c;
    --accent: #5ec2a0; /* muted teal accent */
    --danger: #C0392B;
    --dangerHover: #A93226;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    background-color: var(--bg);
    color: var(--text);
    margin-top: 50px;
    margin-bottom: 60px;
}

    /* If you specifically use body#MainBody, keep it consistent */
    body#MainBody {
        background-color: var(--bg);
    }

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text);
}

/* Links */
a {
    color: var(--text);
}

    a:hover {
        color: var(--primary);
    }

.text-color {
    color: var(--text);
    text-decoration: none;
}

/* Focus ring (Bootstrap-friendly) */
.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(255,255,255,0.25), 0 0 0 0.25rem rgba(201,138,58,0.35);
}

/* =========================================================
   Navigation
   ========================================================= */
nav {
    background-color: var(--nav);
    text-align: center;
}

a.nav-link,
.nav-brand {
    color: var(--navText);
}

    a.nav-link:hover,
    .nav-brand:hover {
        color: var(--primary);
    }

.sticky {
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 1000;
}

/* =========================================================
   Buttons (avoid overriding Bootstrap globally)
   ========================================================= */
.btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
}

.btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem;
    border-radius: 6px;
}


/* Primary CTA = warm amber */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #1b140f;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: var(--primaryHover);
        border-color: var(--primaryHover);
        color: #1b140f;
    }

/* Secondary outline (works on dark background) */
.btn-outline-light {
    border-width: 2px;
    border-color: rgba(242,237,231,0.85);
    color: rgba(242,237,231,0.95);
}

    .btn-outline-light:hover,
    .btn-outline-light:focus {
        background-color: rgba(242,237,231,0.10);
        color: var(--text);
        border-color: rgba(242,237,231,0.95);
    }

/* Danger button */
.btn-danger {
    background-color: var(--danger);
    border-color: var(--dangerHover);
    color: white;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

    .btn-danger:hover,
    .btn-danger:focus {
        background-color: var(--dangerHover);
        border-color: #922B21;
        box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.25);
        color: white;
    }

/* Success (optional) */
.btn-success {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #102018;
}

    .btn-success:hover {
        filter: brightness(0.95);
    }

:root {
    --bs-secondary-color: rgba(255, 255, 255, 0.20);
}

/* =========================================================
   Layout containers / pages
   ========================================================= */
.services,
.blog,
.pages,
.contact,
.about-page,
.port-width {
    margin: 0 auto;
    padding: 2rem;
    margin-top: 70px;
}

.services {
    max-width: 900px;
}

.blog, .pages {
    max-width: 900px;
}

.contact, .about-page, .port-width {
    max-width: 700px;
}

.portfolio {
    margin-top: 70px;
}

.blog-details img {
    max-width: 100%;
}

#Content {
    position: absolute;
    left: -9999px;
}

/* =========================================================
   Legacy Home classes (keep minimal / compatible)
   ========================================================= */
.homediv {
    background-image: url('../content/static/Professional-drafting-service.jpg');
    background-size: cover;
    width: 100vw;
    height: 800px;
    padding-left: 0px;
}

.headingdiv1 {
    margin-top: 40px;
}

.headingdiv2 {
    margin-top: 150px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding-top: 35px;
    background-color: rgba(0,0,0,0.20);
}

.headingimage {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    opacity: 0.95;
}

.homeheading1, .homeheading2, .introduction {
    color: var(--text);
}

.introduction {
    font-size: 2em;
    margin-top: 10px;
}

/* =========================================================
   Hero (new landing)
   ========================================================= */
.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: url('../content/static/hero-blueprint.jpg') center/cover no-repeat;
    border-radius: 18px;
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid var(--border);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* darker overlay for readability */
    background: linear-gradient( rgba(10, 9, 8, 0.75), rgba(10, 9, 8, 0.75) );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text);
    padding: 56px 20px;
    max-width: 900px;
}

.hero-title {
    color: var(--text);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.hero-sub {
    color: rgba(242,237,231,0.90);
    font-size: 18px;
    margin-bottom: 22px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hero-proof {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: rgba(242,237,231,0.90);
    font-size: 14px;
}

    .hero-proof span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

/* =========================================================
   Sections / Tiles / Cards
   ========================================================= */
.section-title {
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text);
}

.section-sub {
    color: var(--muted);
    margin-bottom: 18px;
}

/* Service Grid (if used anywhere) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

    .service-card h3 {
        font-size: 18px;
        margin-bottom: 6px;
        font-weight: 800;
        color: var(--text);
    }

    .service-card p {
        margin: 0;
        color: var(--muted);
    }

/* Tile Grid (recommended for landing) */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 992px) {
    .tile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tile-grid {
        grid-template-columns: 1fr;
    }
}

.tile {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

    .tile:hover {
        transform: translateY(-1px);
        transition: 150ms ease;
        border-color: rgba(201,138,58,0.35);
    }

.tile-icon {
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(242,237,231,0.10);
    border: 1px solid var(--border);
    flex: 0 0 auto;
}

.tile-text strong {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
}

.tile-text span {
    display: block;
    color: var(--muted);
    margin-top: 4px;
    font-size: 14px;
}

/* How it works */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 768px) {
    .how-grid {
        grid-template-columns: 1fr;
    }
}

.how-step {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

    .how-step strong {
        color: var(--text);
    }

    .how-step p {
        margin: 6px 0 0;
        color: var(--muted);
    }

/* CTA block */
.cta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

    .cta h2 {
        margin: 0 0 6px;
        font-weight: 900;
        color: var(--text);
    }

    .cta p {
        margin: 0;
        color: var(--muted);
    }

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cta {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-actions {
        justify-content: flex-start;
    }
}

/* =========================================================
   Public Page Refresh
   ========================================================= */
.public-page .panel p,
.public-page .panel li {
    color: var(--muted);
}

.public-page .panel ul {
    padding-left: 1.15rem;
}

.public-hero-panel {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(29,37,55,0.95), rgba(52,46,42,0.96)),
        url('../content/static/hero-blueprint.jpg') center/cover no-repeat;
    border-color: rgba(255,255,255,0.12);
}

.public-hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(201,138,58,0.24), transparent 40%);
    pointer-events: none;
}

.public-hero-panel > * {
    position: relative;
    z-index: 1;
}

.public-home-hero {
    background:
        linear-gradient(135deg, rgba(23,31,47,0.90), rgba(52,46,42,0.94)),
        url('../content/static/Professional-drafting-service.jpg') center/cover no-repeat;
}

.home-page {
    position: relative;
}

.home-wrap {
    width: min(100%, 1840px);
    margin: 0 auto;
    padding: 0 10px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.6rem;
    border-radius: 22px;
    border: 1px solid rgba(201,138,58,0.18);
    background:
        linear-gradient(120deg, rgba(13,20,31,0.96) 0%, rgba(23,31,47,0.94) 42%, rgba(40,35,31,0.92) 100%),
        url('../content/static/hero-blueprint.jpg') center/cover no-repeat;
    box-shadow: 0 24px 48px rgba(0,0,0,0.30);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(201,138,58,0.12), transparent 28%),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: auto, 120px 120px, 120px 120px;
    opacity: 0.36;
    pointer-events: none;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -28% auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,138,58,0.20) 0%, rgba(201,138,58,0) 70%);
    pointer-events: none;
}

.home-hero > * {
    position: relative;
    z-index: 1;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(620px, 0.84fr);
    gap: 34px;
    padding: 2.85rem 2.95rem 1.6rem;
    align-items: center;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-eyebrow::before {
    content: "";
    width: 38px;
    height: 1px;
    background: currentColor;
    opacity: 0.9;
}

.home-hero-title {
    margin: 1rem 0 1rem;
    color: #f7f2ec;
    font-size: clamp(2.8rem, 5vw, 5.15rem);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-wrap: balance;
}

.home-hero-title span {
    display: block;
    color: #d89844;
    text-shadow: 0 8px 20px rgba(0,0,0,0.28);
}

.home-hero-lead {
    max-width: 38rem;
    margin-bottom: 1.7rem;
    color: rgba(242,237,231,0.90);
    font-size: 1.16rem;
    line-height: 1.65;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.home-hero-actions .btn-outline-light {
    background: rgba(255,255,255,0.02);
}

.home-hero-stage {
    position: relative;
}

.home-projects-card {
    position: relative;
    padding: 0.85rem;
    border-radius: 24px;
    border: 1px solid rgba(201,138,58,0.28);
    background: rgba(18,24,35,0.52);
    box-shadow: 0 20px 42px rgba(0,0,0,0.24);
}

.home-projects-shell {
    display: grid;
    grid-template-columns: minmax(250px, 0.84fr) minmax(0, 1.16fr);
    min-height: 520px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
}

.home-projects-list {
    padding: 1.7rem 1.5rem;
    background: linear-gradient(180deg, rgba(34,40,50,0.92), rgba(26,31,39,0.95));
}

.home-projects-heading {
    margin-bottom: 0.85rem;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-projects-list h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-project-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 0.95rem;
    color: rgba(242,237,231,0.86);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.home-project-item i {
    font-size: 1.2rem;
    color: rgba(242,237,231,0.74);
}

.home-project-item span {
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.home-project-item.is-active {
    margin: 0 -0.95rem;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    background: linear-gradient(90deg, rgba(201,138,58,0.20), rgba(255,255,255,0.02));
    border-left: 3px solid var(--primary);
}

.home-project-item.is-active i,
.home-project-item.is-active span {
    color: #fff6ec;
}

.home-feature-image,
.home-projects-thumb,
.home-projects-plan,
.home-floating-card {
    overflow: hidden;
}

.home-feature-image img,
.home-projects-thumb img,
.home-projects-plan img,
.home-floating-card img,
.home-process-art img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-feature-image {
    min-height: 520px;
}

.home-feature-image--exterior {
    position: relative;
    background:
        linear-gradient(180deg, rgba(11,17,26,0.92), rgba(18,24,35,0.86));
}

.home-feature-image--exterior::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.home-feature-image--exterior img {
    object-fit: cover;
    object-position: center 36%;
    padding: 0;
    filter: contrast(1.03) brightness(0.98);
}

.home-projects-bottom {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 0;
    overflow: hidden;
    margin-top: 0.75rem;
    border-radius: 0 0 18px 18px;
    background: rgba(255,255,255,0.03);
}

.home-projects-thumb {
    min-height: 176px;
}

.home-feature-image--drawing,
.home-projects-thumb--drawing,
.home-projects-plan--drawing,
.home-floating-card--drawing {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255,252,247,0.98), rgba(242,232,215,0.98));
}

.home-feature-image--drawing::before,
.home-projects-thumb--drawing::before,
.home-projects-plan--drawing::before,
.home-floating-card--drawing::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(75, 55, 31, 0.12);
    border-radius: 10px;
    pointer-events: none;
}

.home-feature-image--drawing img,
.home-projects-thumb--drawing img,
.home-projects-plan--drawing img,
.home-floating-card--drawing img {
    object-fit: contain;
    padding: 0.9rem;
    filter: contrast(1.04) saturate(0.92);
}

.home-projects-plan {
    min-height: 176px;
    background: rgba(247,242,236,0.96);
}

.home-projects-plan img {
    object-fit: contain;
    padding: 0.5rem;
}

.home-floating-card {
    position: absolute;
    right: -18px;
    bottom: 162px;
    width: 238px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(18,24,35,0.96);
    box-shadow: 0 16px 32px rgba(0,0,0,0.34);
}

.home-floating-card--drawing {
    transform: rotate(-2deg);
    background:
        linear-gradient(180deg, rgba(255,250,242,0.99), rgba(241,228,206,0.98));
}

.home-floating-card img {
    aspect-ratio: 1.2 / 1;
    object-fit: contain;
    padding: 1rem;
}

.home-floating-label {
    padding: 0 1rem 1rem;
    color: rgba(242,237,231,0.86);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.home-permit-seal {
    position: absolute;
    right: 18px;
    bottom: 14px;
    width: 112px;
    height: 112px;
    display: grid;
    place-content: center;
    gap: 0.1rem;
    border-radius: 50%;
    border: 2px solid rgba(201,138,58,0.72);
    background: rgba(17,24,34,0.90);
    box-shadow: 0 10px 22px rgba(0,0,0,0.28);
    text-align: center;
    text-transform: uppercase;
}

.home-permit-seal span {
    color: #f0c78a;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

.home-permit-seal small {
    color: rgba(242,237,231,0.70);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.home-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.home-proof-item {
    display: flex;
    gap: 1rem;
    padding: 1.45rem 2.65rem 1.6rem;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.home-proof-item:last-child {
    border-right: 0;
}

.home-proof-item strong {
    display: block;
    margin-bottom: 0.32rem;
    color: #f6f1eb;
    font-size: 0.96rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-proof-item span {
    display: block;
    color: rgba(242,237,231,0.70);
    line-height: 1.5;
}

.home-proof-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    border: 1px solid rgba(201,138,58,0.28);
    background: rgba(255,255,255,0.04);
    color: var(--primary);
    font-size: 1.3rem;
}

.home-process-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(460px, 0.84fr);
    gap: 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.10);
    background:
        linear-gradient(120deg, rgba(18,24,35,0.96), rgba(23,31,47,0.94)),
        url('../content/static/hero-blueprint.jpg') center/cover no-repeat;
    box-shadow: 0 18px 38px rgba(0,0,0,0.22);
}

.home-process-art {
    min-height: 420px;
}

.home-process-copy {
    padding: 2.5rem 2.7rem;
}

.home-process-copy h2 {
    margin: 0.8rem 0 0.85rem;
    font-size: clamp(2rem, 3.2vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-process-copy p {
    max-width: 34rem;
    margin-bottom: 1.6rem;
    color: rgba(242,237,231,0.82);
    line-height: 1.7;
}

.home-process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-process-step {
    position: relative;
    padding-top: 0.85rem;
}

.home-process-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 10px);
    height: 1px;
    background: rgba(201,138,58,0.35);
}

.home-step-number {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: rgba(242,237,231,0.62);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.10em;
}

.home-process-step strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #f7f2ec;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-process-step small {
    display: block;
    color: rgba(242,237,231,0.68);
    line-height: 1.55;
}

.home-capability-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 16px;
}

.home-story-panel {
    padding: 1.6rem;
    border-radius: 20px;
    background:
        linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03)),
        linear-gradient(120deg, rgba(19,27,38,0.94), rgba(51,44,38,0.90));
}

.home-story-panel h2 {
    font-size: 2rem;
    line-height: 1.15;
}

.home-story-panel p {
    line-height: 1.75;
}

.home-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-capability-tile {
    min-height: 100%;
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
}

.home-cta {
    margin-top: 0.35rem;
    border: 1px solid rgba(201,138,58,0.16);
    background:
        linear-gradient(120deg, rgba(51,44,38,0.94), rgba(18,24,35,0.92)),
        url('../content/static/hero-blueprint.jpg') center/cover no-repeat;
}

@media (max-width: 1199.98px) {
    .home-hero-grid,
    .home-process-panel,
    .home-capability-layout {
        grid-template-columns: 1fr;
    }

    .home-wrap {
        padding: 0 18px;
    }

    .home-process-art {
        max-height: 340px;
    }
}

@media (max-width: 991.98px) {
    .home-hero-grid {
        padding: 1.6rem 1.4rem 1rem;
    }

    .home-wrap {
        padding: 0 14px;
    }

    .home-proof-grid,
    .home-process-steps,
    .home-capability-grid {
        grid-template-columns: 1fr;
    }

    .home-proof-item {
        padding: 1.15rem 1.4rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .home-proof-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .home-hero-title {
        font-size: 2.6rem;
    }

    .home-hero-lead {
        font-size: 1.02rem;
    }

    .home-projects-shell,
    .home-projects-bottom {
        grid-template-columns: 1fr;
    }

    .home-feature-image,
    .home-projects-thumb,
    .home-projects-plan {
        min-height: 220px;
    }

    .home-projects-plan img {
        padding: 0.75rem;
    }

    .home-floating-card {
        position: static;
        width: 100%;
        margin-top: 0.75rem;
    }

    .home-permit-seal {
        right: 14px;
        width: 90px;
        height: 90px;
    }

    .home-process-copy {
        padding: 1.5rem 1.25rem;
    }
}

.public-copy {
    max-width: 720px;
}

.public-copy .lead,
.public-hero-panel .lead {
    color: rgba(242,237,231,0.92);
}

.public-section-head {
    margin-bottom: 18px;
}

.public-section-head p {
    max-width: 760px;
}

.public-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.public-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.public-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(242,237,231,0.92);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.16s ease;
}

.public-pill:hover {
    color: var(--primary);
    border-color: rgba(201,138,58,0.28);
    background: rgba(201,138,58,0.08);
}

.public-pill.is-active {
    background: rgba(201,138,58,0.16);
    border-color: rgba(201,138,58,0.30);
    color: #f0c78a;
}

.public-pill.static {
    cursor: default;
}

.public-inline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.public-image-frame {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
}

.portfolio-card,
.post-card {
    height: 100%;
}

.portfolio-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-thumb,
.post-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.portfolio-thumb {
    aspect-ratio: 16 / 10;
}

.post-image {
    aspect-ratio: 16 / 9;
}

.post-excerpt {
    color: var(--muted);
    line-height: 1.65;
}

.public-rich-text p,
.public-rich-text li {
    line-height: 1.75;
}

.public-rich-text h2,
.public-rich-text h3,
.public-rich-text h4 {
    margin-top: 1.6rem;
    margin-bottom: 0.7rem;
}

.public-rich-text > :first-child {
    margin-top: 0;
}

.comment-panel,
.comment-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 16px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 16px;
    align-items: start;
}

.public-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.public-sidebar-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.public-sidebar-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.public-empty {
    text-align: center;
    padding: 1.6rem;
    border-style: dashed;
}

.public-page .alert {
    border: 0;
    border-radius: 14px;
}

.public-page .alert-success {
    background: rgba(94,194,160,0.16);
    color: #b7f0dd;
}

.public-page .alert-danger {
    background: rgba(192,57,43,0.18);
    color: #ffd0cb;
}

.public-pricing-group + .public-pricing-group {
    margin-top: 2rem;
}

@media (max-width: 991.98px) {
    .public-card-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Public Pricing Page Layout
   ========================================================= */
.pricing-page {
    padding: 18px 0 60px;
}

.pricing-wrap {
    max-width: 1100px; /* wider than "skinny", still readable */
    margin: 0 auto;
    padding: 0 18px;
}

    /* Improve readability of long text blocks */
    .pricing-wrap p,
    .pricing-wrap li {
        color: var(--muted);
        line-height: 1.6;
    }

/* Give each service block a “card” look */
.pricing-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    margin: 18px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Headings spacing */
.pricing-wrap h1 {
    margin: 0 0 8px;
}

.pricing-wrap h2 {
    margin: 28px 0 10px;
}

.pricing-wrap h3 {
    margin: 18px 0 6px;
}

/* =========================================================
   Admin Layout (wide, mobile friendly)
   ========================================================= */
.admin-page {
    padding: 18px 0 60px;
}

.admin-wrap {
    max-width: 1100px; /* makes it NOT skinny */
    margin: 0 auto;
    padding: 0 18px;
}

    /* Make admin headings look consistent */
    .admin-wrap h1,
    .admin-wrap h2 {
        margin-top: 0;
    }

    /* Make forms look better in dark theme */
    .admin-wrap .form-control,
    .admin-wrap input[type="text"],
    .admin-wrap input[type="email"],
    .admin-wrap textarea,
    .admin-wrap select {
        background: rgba(0,0,0,0.18);
        color: var(--text);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 10px;
    }

    /* Give form groups breathing room */
    .admin-wrap .form-group,
    .admin-wrap .mb-3 {
        margin-bottom: 14px;
    }

    /* Labels readable */
    .admin-wrap label {
        color: var(--muted);
        font-weight: 800;
    }


/* =========================================================
   Forms (Admin + Contact)
   ========================================================= */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: var(--text);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(0,0,0,0.18);
    color: var(--text);
}

    input[type="text"]::placeholder,
    input[type="email"]::placeholder,
    textarea::placeholder {
        color: rgba(242,237,231,0.55);
    }

/* Contact sections */
.contact {
    padding-bottom: 50px;
    background-color: transparent;
}

/* Icons (keep your sizes) */
.icon-50 {
    font-size: 50px;
    color: #66e0ff;
}

.icon-100 {
    font-size: 100px;
}

.icon-200 {
    font-size: 200px;
}

.icon-300 {
    font-size: 300px;
}

/* NOTES PAGES */
.notes-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.notes-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 992px) {
    .notes-grid {
        grid-template-columns: 1fr;
    }
}

.panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 16px;
}

.panel-head {
    margin-bottom: 12px;
}

.panel-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.panel-title {
    margin: 0;
    color: #f3e9dc;
    font-weight: 800;
    border: none;
    padding: 0;
}

.panel-sub {
    margin: 6px 0 0;
    opacity: 0.75;
    font-size: 14px;
}

.panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.form-block {
    margin-bottom: 14px;
}

/* =========================================================
   NOTES (scoped to notes pages only)
   Everything here only applies inside .notes-wrap
   ========================================================= */
.notes-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

    .notes-wrap .notes-grid {
        display: grid;
        grid-template-columns: 420px 1fr;
        gap: 20px;
        align-items: start;
    }

@media (max-width: 992px) {
    .notes-wrap .notes-grid {
        grid-template-columns: 1fr;
    }
}

.notes-wrap .panel {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 16px;
}

.notes-wrap .panel-head {
    margin-bottom: 12px;
}

.notes-wrap .panel-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.notes-wrap .panel-title {
    margin: 0;
    color: #f3e9dc;
    font-weight: 800;
    border: none;
    padding: 0;
}

.notes-wrap .panel-sub {
    margin: 6px 0 0;
    opacity: 0.75;
    font-size: 14px;
}

.notes-wrap .panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notes-wrap .form-block {
    margin-bottom: 14px;
}

/* Scrollable notes log */
.notes-wrap .notes-log {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
}

    /* Optional scrollbar styling */
    .notes-wrap .notes-log::-webkit-scrollbar {
        width: 10px;
    }

    .notes-wrap .notes-log::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.18);
        border-radius: 10px;
    }

        .notes-wrap .notes-log::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,.28);
        }

/* Log entry line (double-line spacing + preserve textarea line breaks) */
.notes-wrap .note-line {
    white-space: pre-wrap;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    /* "double line" separation between entries */
    margin-bottom: 24px;
}

.notes-wrap .muted,
.notes-wrap .notes-empty {
    opacity: 0.8;
}

/* Shared Admin List Table Styling */
.admin-list .table {
    color: var(--text);
}

    .admin-list .table td,
    .admin-list .table th {
        color: var(--text);
    }

    /* Fix links inside tables */
    .admin-list .table a {
        color: var(--text) !important;
        font-weight: 700;
        text-decoration: none;
    }

        .admin-list .table a:hover {
            color: var(--primary) !important;
            text-decoration: underline;
        }

/* Table background tuning */
.admin-list .table {
    --bs-table-bg: rgba(255,255,255,0.04);
    --bs-table-striped-bg: rgba(255,255,255,0.06);
    --bs-table-hover-bg: rgba(255,255,255,0.07);
}

/* Project & Client admin tables */
.admin-wrap .table {
    color: var(--text);
}

    .admin-wrap .table thead th {
        color: var(--text);
        border-color: rgba(255,255,255,.15);
    }

    .admin-wrap .table tbody tr {
        background: rgba(255,255,255,.05);
    }

        .admin-wrap .table tbody tr:hover {
            background: rgba(255,255,255,.10);
        }

    .admin-wrap .table td a {
        color: var(--primary);
        font-weight: 600;
        text-decoration: none;
    }

        .admin-wrap .table td a:hover {
            text-decoration: underline;
        }

.text .table a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

    .text .table a:hover {
        color: var(--primary);
        text-decoration: underline;
    }

/* =========================
   Project Files Layout
   ========================= */

.pf-page {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.pf-container {
    width: 100%;
    max-width: 1100px;
}

.pf-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
}

.pf-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.pf-toolbar-left {
    flex: 1;
    min-width: 300px;
}

.pf-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.pf-muted {
    opacity: 0.85;
    margin-top: 15px;
}

.pf-table {
    margin-top: 20px;
}

    .pf-table table {
        width: 100%;
    }

    /* Dark theme table styling */
    .pf-table table {
        background: rgba(255,255,255,0.03);
        border-radius: 10px;
        overflow: hidden;
    }

    .pf-table thead {
        background: rgba(255,255,255,0.06);
    }

    .pf-table th {
        color: rgba(255,255,255,0.75);
        font-weight: 600;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .pf-table td {
        background: transparent;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    .pf-table tr:hover td {
        background: rgba(255,255,255,0.05);
    }

    .pf-table .table {
        background-color: transparent;
        color: inherit;
    }

        .pf-table .table > :not(caption) > * > * {
            background-color: transparent;
        }

    .pf-table tbody tr:nth-child(even) td {
        background: rgba(255,255,255,0.02);
    }

    /* Force dark table theme */
    .pf-table table,
    .pf-table .table {
        background: rgba(255,255,255,0.03) !important;
        color: rgba(255,255,255,0.85);
    }
/* Override Bootstrap tables inside Project Files UI */
.pf-card table,
.pf-card .table {
    background: transparent !important;
    color: rgba(255,255,255,0.88) !important;
    border-collapse: collapse;
}

    /* Remove bootstrap white cell backgrounds */
    .pf-card table > :not(caption) > * > *,
    .pf-card .table > :not(caption) > * > * {
        background-color: transparent !important;
        color: rgba(255,255,255,0.88) !important;
    }

        /* Remove bootstrap row backgrounds */
        .pf-table .table > :not(caption) > * > * {
            background-color: transparent !important;
        }
    .pf-table th,
    .pf-table td {
        color: rgba(255,255,255,0.85);
    }

    .pf-table thead th {
        background: rgba(255,255,255,0.07);
        color: rgba(255,255,255,0.9);
    }

    .pf-table tbody tr:hover td {
        background: rgba(255,255,255,0.05);
    }
.pf-card thead th {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}


.pf-filename {
    font-weight: 600;
}

/* Project Files - Thumbnail Grid */
.pf-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

.pf-thumb {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
}

    .pf-thumb a {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    .pf-thumb img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        display: block;
    }

.pf-thumb-meta {
    padding: 10px;
    font-size: 0.9rem;
    opacity: 0.95;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.pf-thumb-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    font-weight: 600;
}

.pf-thumb-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

    .pf-thumb-actions .btn,
    .pf-thumb-actions .btn.btn-sm {
        padding: 0.12rem 0.35rem;
        font-size: 0.68rem;
        line-height: 1.05;
        border-radius: 5px;
        min-width: 0;
    }

.btn.disabled,
.btn:disabled {
    opacity: 1;
    pointer-events: none;
}

.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

    .project-actions .btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
.pf-card tbody tr td {
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* alternating rows */
.pf-card tbody tr:nth-child(even) td {
    background: rgba(255,255,255,0.02);
}

/* hover */
.pf-card tbody tr:hover td {
    background: rgba(255,255,255,0.05);
}
.pf-grid {
    margin-bottom: 28px;
}

.pf-table {
    margin-top: 10px;
}
.pf-card td,
.pf-card th {
    padding: 8px 10px;
}

/* Project workspace panel tables */
.panel table,
.panel .table {
    background: transparent !important;
    color: rgba(255,255,255,0.88) !important;
    border-collapse: collapse;
}

    .panel table > :not(caption) > * > *,
    .panel .table > :not(caption) > * > * {
        background-color: transparent !important;
        color: rgba(255,255,255,0.88) !important;
    }

.panel thead th {
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.92) !important;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-weight: 600;
}

.panel tbody tr td {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.panel tbody tr:nth-child(even) td {
    background: rgba(255,255,255,0.02) !important;
}

.panel tbody tr:hover td {
    background: rgba(255,255,255,0.05) !important;
}

.panel td,
.panel th {
    padding: 8px 10px;
}

.clickable-row {
    cursor: pointer;
}

    .clickable-row:hover td {
        background: rgba(255,255,255,0.07) !important;
    }

.row-link {
    color: rgba(255,255,255,0.92) !important;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

    .row-link:hover {
        color: var(--primary) !important;
        text-decoration: underline;
    }

.co-status-badge {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

    .co-status-badge.status-draft {
        background: rgba(255,255,255,0.10);
        color: rgba(255,255,255,0.85);
    }

    .co-status-badge.status-pendingapproval {
        background: rgba(201,138,58,0.18);
        color: #f0c78a;
    }

    .co-status-badge.status-approved {
        background: rgba(94,194,160,0.18);
        color: #86e1c4;
    }

    .co-status-badge.status-rejected,
    .co-status-badge.status-cancelled {
        background: rgba(192,57,43,0.18);
        color: #f29a90;
    }

.co-status {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.co-number {
    font-weight: 600;
}

.status-draft {
    background: rgba(255,255,255,0.1);
}

.status-pendingapproval {
    background: rgba(255,200,0,0.15);
}

.status-approved {
    background: rgba(0,200,120,0.2);
}

.status-rejected {
    background: rgba(200,50,50,0.2);
}

.table-clickable tbody tr {
    cursor: pointer;
}

    .table-clickable tbody tr:hover {
        background: rgba(255,255,255,0.06);
    }

.invoice-total-row td {
    font-size: 1.05rem;
    border-top: 2px solid rgba(255,255,255,0.12);
}

.pf-category-contract {
    color: #5ec2a0;
    font-weight: 700;
}

.pf-category-invoice {
    color: #c98a3a;
    font-weight: 700;
}

.pf-category-permit {
    color: #86b7fe;
}

.pf-filename {
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-thumb:hover {
    transform: translateY(-2px);
    transition: 150ms ease;
}

.pf-row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

    .pf-row-actions form {
        margin: 0;
    }

    .pf-row-actions .btn {
        white-space: nowrap;
    }

.recent-file-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.recent-file-icon {
    flex: 0 0 auto;
}

.recent-file-name {
    min-width: 0;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* clickable dashboard rows */
.clickable-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

    .clickable-row:hover {
        background: rgba(255,255,255,0.05);
    }

/* recent files layout */

.recent-file-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.recent-file-icon {
    flex: 0 0 auto;
    opacity: .8;
}

.recent-file-name {
    min-width: 0;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pf-file-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pf-thumb {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.15);
}

.pf-file-icon {
    font-size: 18px;
    opacity: .9;
}

.pf-filename {
    max-width: 420px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-header .fw-bold {
    font-size: 1.1rem;
}

.dashboard-header .small {
    text-transform: uppercase;
    letter-spacing: .05em;
}

.dashboard-header {
    background: rgba(40,40,40,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 22px;
}

.workspace-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workspace-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.badge-good {
    background: rgba(94, 194, 160, 0.16);
    color: #9ae5cd;
    border-color: rgba(94, 194, 160, 0.28);
}

.badge-info {
    background: rgba(134, 183, 254, 0.14);
    color: #b9d3ff;
    border-color: rgba(134, 183, 254, 0.28);
}

.badge-warn {
    background: rgba(201, 138, 58, 0.16);
    color: #f0c78a;
    border-color: rgba(201, 138, 58, 0.30);
}

.badge-accent {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.14);
}

.badge-muted {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.72);
    border-color: rgba(255,255,255,0.10);
}

.admin-page {
    --bs-secondary-color: rgba(255, 255, 255, 0.72);
}

    .admin-page .table {
        --bs-table-bg: transparent;
        --bs-table-color: rgba(255, 255, 255, 0.92);
        --bs-table-border-color: rgba(255, 255, 255, 0.12);
        --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
        --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
        --bs-table-hover-color: rgba(255, 255, 255, 0.96);
        margin-bottom: 0;
    }

        .admin-page .table thead th {
            color: rgba(255, 255, 255, 0.85);
            font-weight: 700;
            border-bottom: 1px solid rgba(255, 255, 255, 0.14);
            padding-top: 0.9rem;
            padding-bottom: 0.9rem;
        }

        .admin-page .table tbody td {
            vertical-align: middle;
            padding-top: 0.85rem;
            padding-bottom: 0.85rem;
        }

        .admin-page .table tbody tr {
            transition: background-color 0.18s ease, transform 0.18s ease;
        }

            .admin-page .table tbody tr:hover {
                background-color: rgba(255, 255, 255, 0.05);
            }

    .admin-page .panel .table {
        border-radius: 14px;
        overflow: hidden;
    }

    .admin-page .table-sm th,
    .admin-page .table-sm td {
        padding: 0.8rem 0.75rem;
    }

    .admin-page .table a {
        text-decoration: none;
    }

    .admin-page .table .btn {
        white-space: nowrap;
    }

    .admin-page .clickable-row {
        cursor: pointer;
        transition: background-color 0.18s ease;
    }

        .admin-page .clickable-row:hover {
            background-color: rgba(255, 255, 255, 0.06);
        }

.panel .btn:disabled,
.panel .btn.disabled {
    opacity: .45;
    pointer-events: none;
    filter: grayscale(.08);
}

.action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.18s ease;
}

    .action-row:hover {
        background: rgba(255,255,255,0.05);
    }

.invoice-details-page .dashboard-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.invoice-details-page .invoice-hero-card {
    min-height: 100%;
}

.invoice-details-page .panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.invoice-details-page .eyebrow-label {
    color: var(--muted-2);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .2rem;
}

.invoice-details-page .panel-title {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.invoice-details-page .project-subtitle {
    color: var(--muted);
    font-size: .95rem;
}

.invoice-details-page .hero-dates {
    color: var(--muted);
    font-size: .9rem;
}

.invoice-details-page .hero-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.invoice-details-page .hero-stat {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: .9rem 1rem;
}

.invoice-details-page .hero-stat-label {
    color: var(--muted-2);
    font-size: .8rem;
    margin-bottom: .25rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.invoice-details-page .hero-stat-value {
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 700;
}

.invoice-details-page .balance-due {
    color: #f0c78a;
}

.invoice-details-page .panel-section-title,
.invoice-details-page .section-title {
    color: var(--text);
    font-weight: 700;
}

.invoice-details-page .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .35rem;
}

.invoice-details-page .stat-card {
    min-height: 100%;
}

.invoice-details-page .stat-label {
    color: var(--muted-2);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .4rem;
}

.invoice-details-page .stat-value {
    color: var(--text);
    font-weight: 700;
    font-size: 1.08rem;
}

.invoice-details-page .status-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid transparent;
}

.invoice-details-page .status-draft {
    background: rgba(255,255,255,0.08);
    color: var(--text);
    border-color: rgba(255,255,255,0.14);
}

.invoice-details-page .status-finalized {
    background: rgba(201,138,58,0.16);
    color: #f0c78a;
    border-color: rgba(201,138,58,0.30);
}

.invoice-details-page .status-paid {
    background: rgba(94,194,160,0.16);
    color: #9ae5cd;
    border-color: rgba(94,194,160,0.28);
}

.invoice-details-page .invoice-lines-table {
    margin-bottom: 0;
}

    .invoice-details-page .invoice-lines-table thead th {
        color: var(--muted);
        font-size: .82rem;
        border-bottom-color: rgba(255,255,255,.10);
        white-space: nowrap;
    }

    .invoice-details-page .invoice-lines-table tbody tr {
        border-color: rgba(255,255,255,.05);
    }

    .invoice-details-page .invoice-lines-table tbody td {
        vertical-align: middle;
    }

    .invoice-details-page .invoice-lines-table tfoot td {
        border-top: 1px solid rgba(255,255,255,.10);
        color: var(--text);
        font-weight: 700;
    }

.invoice-details-page .line-type-chip {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    white-space: nowrap;
}

.invoice-details-page .detail-list {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.invoice-details-page .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

    .invoice-details-page .detail-row:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

.invoice-details-page .detail-label {
    color: var(--muted);
    font-size: .9rem;
}

.invoice-details-page .detail-value {
    color: var(--text);
    text-align: right;
    font-weight: 600;
}

.invoice-details-page .notes-box {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: .85rem 1rem;
}

.invoice-details-page .notes-label {
    color: var(--muted-2);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .35rem;
}

.invoice-details-page .notes-text {
    color: var(--text);
    white-space: pre-line;
}

.invoice-details-page .empty-state {
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    background: rgba(255,255,255,.03);
}

.invoice-details-page .empty-state-title {
    color: var(--text);
    font-weight: 700;
    margin-bottom: .35rem;
}

.invoice-details-page .co-ready-row {
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

    .invoice-details-page .co-ready-row:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

/* alignment / table cleanup */
.invoice-details-page .table-responsive {
    overflow-x: auto;
}

.invoice-details-page .invoice-lines-table td,
.invoice-details-page .invoice-lines-table th {
    padding-left: .45rem;
    padding-right: .45rem;
}

.invoice-details-page .invoice-lines-table .btn-group {
    flex-wrap: nowrap;
}

.invoice-details-page .invoice-lines-table .btn {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .invoice-details-page .hero-summary-grid {
        grid-template-columns: 1fr;
    }
}

.invoice-details-page .invoice-lines-table th:last-child,
.invoice-details-page .invoice-lines-table td:last-child {
    width: 1%;
    white-space: nowrap;
}

.invoice-details-page .invoice-lines-table td:nth-child(7),
.invoice-details-page .invoice-lines-table th:nth-child(7) {
    min-width: 110px;
}

.invoice-details-page .invoice-lines-table td:first-child,
.invoice-details-page .invoice-lines-table th:first-child {
    min-width: 180px;
}

.invoice-details-page .invoice-lines-table td:first-child {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Invoice details layout tuning */
.invoice-details-page .invoice-details-lower {
    align-items: start;
}

    .invoice-details-page .invoice-details-lower > [class*="col-"] {
        display: flex;
        flex-direction: column;
    }

    .invoice-details-page .invoice-details-lower .dashboard-panel {
        width: 100%;
    }

    /* Make lower cards feel more balanced */
    .invoice-details-page .invoice-details-lower .col-xl-5 .dashboard-panel {
        min-height: 0;
    }

/* Tighten section header spacing */
.invoice-details-page .section-header {
    align-items: center;
    margin-bottom: .7rem;
}

    .invoice-details-page .section-header .section-title {
        margin-bottom: .15rem;
    }

/* Table should not feel wider than needed */
.invoice-details-page .table-responsive {
    overflow-x: visible;
}

.invoice-details-page .invoice-lines-table {
    width: 100%;
    table-layout: auto;
}

    .invoice-details-page .invoice-lines-table th,
    .invoice-details-page .invoice-lines-table td {
        white-space: normal;
        vertical-align: middle;
    }

        /* Column tuning */
        .invoice-details-page .invoice-lines-table th:first-child,
        .invoice-details-page .invoice-lines-table td:first-child {
            width: 28%;
        }

        .invoice-details-page .invoice-lines-table th:nth-child(2),
        .invoice-details-page .invoice-lines-table td:nth-child(2) {
            width: 14%;
        }

        .invoice-details-page .invoice-lines-table th:nth-child(3),
        .invoice-details-page .invoice-lines-table td:nth-child(3) {
            width: 12%;
        }

        .invoice-details-page .invoice-lines-table th:nth-child(4),
        .invoice-details-page .invoice-lines-table td:nth-child(4),
        .invoice-details-page .invoice-lines-table th:nth-child(5),
        .invoice-details-page .invoice-lines-table td:nth-child(5),
        .invoice-details-page .invoice-lines-table th:nth-child(6),
        .invoice-details-page .invoice-lines-table td:nth-child(6) {
            white-space: nowrap;
        }

        .invoice-details-page .invoice-lines-table th:nth-child(7),
        .invoice-details-page .invoice-lines-table td:nth-child(7) {
            width: 16%;
        }

        .invoice-details-page .invoice-lines-table th:last-child,
        .invoice-details-page .invoice-lines-table td:last-child {
            width: 1%;
            white-space: nowrap;
            text-align: right;
        }

    /* Better row height and footer anchoring */
    .invoice-details-page .invoice-lines-table tbody td {
        padding-top: .95rem;
        padding-bottom: .95rem;
    }

    .invoice-details-page .invoice-lines-table tfoot td {
        padding-top: .85rem;
        padding-bottom: .35rem;
    }

    .invoice-details-page .invoice-lines-table tfoot tr td {
        background: transparent;
    }

/* Keep chip compact */
.invoice-details-page .line-type-chip {
    font-size: .72rem;
    padding: .18rem .5rem;
}

/* Right column cards need slightly stronger inner rhythm */
.invoice-details-page .detail-row {
    padding-top: .1rem;
    padding-bottom: .75rem;
}

.invoice-details-page .co-ready-row {
    padding-top: .95rem;
    padding-bottom: .95rem;
}

/* Invoice info boxes should not feel jammed together */
.invoice-details-page .notes-box + .notes-box {
    margin-top: 1rem;
}

/* At narrower sizes, bring scrollbar back if needed */
@media (max-width: 1199.98px) {
    .invoice-details-page .table-responsive {
        overflow-x: auto;
    }

    .invoice-details-page .invoice-lines-table th,
    .invoice-details-page .invoice-lines-table td {
        white-space: nowrap;
    }
}

.invoice-details-lower {
    align-items: stretch;
}

    .invoice-details-lower > div {
        display: flex;
        flex-direction: column;
    }

    .invoice-details-lower .dashboard-panel {
        flex: 1;
    }

.invoice-total-row td {
    white-space: nowrap;
    font-size: 1rem;
    padding-top: 1rem;
}

.invoice-details-page .table-responsive {
    overflow-x: hidden;
}

.invoice-lines-table td:first-child {
    white-space: nowrap;
}

/* Make invoice line table fit the card better */
.invoice-details-page .invoice-lines-table {
    width: 100%;
    table-layout: fixed;
}

    .invoice-details-page .invoice-lines-table th:first-child,
    .invoice-details-page .invoice-lines-table td:first-child {
        width: 34%;
    }

    .invoice-details-page .invoice-lines-table th:nth-child(2),
    .invoice-details-page .invoice-lines-table td:nth-child(2) {
        width: 16%;
    }

    .invoice-details-page .invoice-lines-table th:nth-child(3),
    .invoice-details-page .invoice-lines-table td:nth-child(3) {
        width: 8%;
    }

    .invoice-details-page .invoice-lines-table th:nth-child(4),
    .invoice-details-page .invoice-lines-table td:nth-child(4) {
        width: 14%;
    }

    .invoice-details-page .invoice-lines-table th:nth-child(5),
    .invoice-details-page .invoice-lines-table td:nth-child(5) {
        width: 14%;
    }

    .invoice-details-page .invoice-lines-table th:nth-child(6),
    .invoice-details-page .invoice-lines-table td:nth-child(6) {
        width: 14%;
    }

    .invoice-details-page .invoice-lines-table td,
    .invoice-details-page .invoice-lines-table th {
        overflow-wrap: anywhere;
    }

        .invoice-details-page .invoice-lines-table th:nth-child(3),
        .invoice-details-page .invoice-lines-table td:nth-child(3),
        .invoice-details-page .invoice-lines-table th:nth-child(4),
        .invoice-details-page .invoice-lines-table td:nth-child(4),
        .invoice-details-page .invoice-lines-table th:nth-child(5),
        .invoice-details-page .invoice-lines-table td:nth-child(5) {
            white-space: nowrap;
        }

.invoice-details-page .line-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.invoice-details-page .line-action-link {
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

    .invoice-details-page .line-action-link:hover {
        text-decoration: underline;
        color: var(--primaryHover);
    }

    .invoice-details-page .line-action-link.delete {
        color: #f29a90;
    }

        .invoice-details-page .line-action-link.delete:hover {
            color: #ffb0a7;
        }

.invoice-details-page .line-meta-text {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.2;
}

.invoice-details-page .invoice-total-row td {
    white-space: nowrap;
    padding-top: .95rem;
}

.invoice-details-page .table-responsive {
    overflow-x: hidden;
}

.invoice-details-page .invoice-lines-table {
    width: 100%;
    table-layout: fixed;
}

    .invoice-details-page .invoice-lines-table th:first-child,
    .invoice-details-page .invoice-lines-table td:first-child {
        width: 38%;
    }

    .invoice-details-page .invoice-lines-table th:nth-child(2),
    .invoice-details-page .invoice-lines-table td:nth-child(2) {
        width: 18%;
    }

    .invoice-details-page .invoice-lines-table th:nth-child(3),
    .invoice-details-page .invoice-lines-table td:nth-child(3) {
        width: 8%;
        white-space: nowrap;
    }

    .invoice-details-page .invoice-lines-table th:nth-child(4),
    .invoice-details-page .invoice-lines-table td:nth-child(4) {
        width: 16%;
        white-space: nowrap;
    }

    .invoice-details-page .invoice-lines-table th:nth-child(5),
    .invoice-details-page .invoice-lines-table td:nth-child(5) {
        width: 20%;
        white-space: nowrap;
    }

.invoice-details-page .line-subtext {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .25rem;
    line-height: 1.2;
}

.invoice-details-page .invoice-total-row td {
    white-space: nowrap;
    padding-top: 1rem;
}

.invoice-details-page .panel-title {
    color: #fff7ef;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: .4rem;
}

.invoice-details-page .project-subtitle {
    color: rgba(242,237,231,0.9);
    font-size: .96rem;
    line-height: 1.5;
}

    .invoice-details-page .project-subtitle strong {
        color: #f0c78a;
        font-weight: 700;
    }

.invoice-details-page .hero-dates {
    color: rgba(242,237,231,0.82);
    font-size: .92rem;
    line-height: 1.5;
}

.start-package-panel .workspace-badges {
    margin-top: 4px;
    margin-bottom: 12px;
}

.start-package-panel .panel-sub strong {
    color: var(--text);
}

.start-package-panel .btn:disabled,
.start-package-panel .btn.disabled {
    opacity: .45;
    pointer-events: none;
    filter: grayscale(.08);
}

.project-list-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.project-list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.project-list-panel .panel-title {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    font-size: 1.15rem;
}

.project-list-panel .panel-sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.95rem;
}

.project-list-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: rgba(255,255,255,0.10);
    margin-bottom: 0;
}

    .project-list-table thead th {
        color: var(--muted);
        font-weight: 700;
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-bottom: 1px solid rgba(255,255,255,0.12);
        padding-top: 0.95rem;
        padding-bottom: 0.95rem;
    }

    .project-list-table tbody td {
        padding-top: 1rem;
        padding-bottom: 1rem;
        vertical-align: middle;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .project-list-table tbody tr {
        transition: background-color 0.18s ease;
    }

        .project-list-table tbody tr:hover {
            background: rgba(255,255,255,0.04);
        }

.project-link {
    text-decoration: none;
}

.project-name {
    font-weight: 800;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.3;
}

.project-link:hover .project-name {
    color: var(--primary);
}

.project-meta {
    color: rgba(242,237,231,0.88);
    font-size: 0.96rem;
    line-height: 1.35;
}

.project-row-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.project-list-table td:last-child,
.project-list-table th:last-child {
    width: 1%;
    white-space: nowrap;
}

.project-list-panel .btn-sm {
    min-width: 72px;
}

@media (max-width: 768px) {
    .project-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .project-row-actions {
        justify-content: flex-start;
    }
}

.project-list-table .clickable-row {
    cursor: pointer;
}

.project-list-table .row-main-link {
    display: inline-block;
    text-decoration: none;
}

.project-list-table .project-row-actions {
    position: relative;
    z-index: 2;
}

.workspace-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.workspace-badge-link {
    color: inherit;
    opacity: 0.92;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: underline;
}

    .workspace-badge-link:hover {
        opacity: 1;
    }

.workspace-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workspace-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.workspace-badge-link {
    color: inherit;
    opacity: 0.92;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: underline;
}

    .workspace-badge-link:hover {
        opacity: 1;
    }

.badge-danger {
    background: rgba(192,57,43,0.18);
    color: #f29a90;
    border-color: rgba(192,57,43,0.28);
}

.workspace-badge.clickable {
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.workspace-badge.clickable:hover {
        transform: translateY(-1px);
        filter: brightness(1.05);
    }

/* =========================================================
   Home Page Refresh
   ========================================================= */
body.home-index-shell {
    background:
        radial-gradient(circle at 14% 10%, rgba(201,138,58,0.12), transparent 18%),
        radial-gradient(circle at 86% 22%, rgba(255,255,255,0.04), transparent 26%),
        linear-gradient(180deg, #07111b 0%, #0a1622 32%, #09131e 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 0;
}

body.home-index-shell#MainBody {
    background:
        radial-gradient(circle at 14% 10%, rgba(201,138,58,0.12), transparent 18%),
        radial-gradient(circle at 86% 22%, rgba(255,255,255,0.04), transparent 26%),
        linear-gradient(180deg, #07111b 0%, #0a1622 32%, #09131e 100%);
}

.site-main-shell {
    width: 100vw;
    margin-top: 50px;
    margin-left: -10px;
}

.site-main {
    width: 100%;
}

.site-main-shell--home {
    flex: 1 0 auto;
    width: 100%;
    margin-top: 0;
    margin-left: 0;
}

.site-main--home {
    padding-bottom: 0;
}

.site-header {
    position: relative;
    z-index: 1001;
}

.navbar-home-shell {
    background: linear-gradient(180deg, rgba(6,13,23,0.88), rgba(6,13,23,0.72));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201,138,58,0.16);
    box-shadow: none !important;
}

.navbar-home-shell .container-fluid {
    padding: 0.9rem 2.5rem;
    gap: 1rem;
}

.navbar-home-shell .navbar-brand {
    color: #f4eee7 !important;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.navbar-home-shell .nav-link {
    color: rgba(244,238,231,0.86);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar-home-shell .nav-link i {
    color: rgba(201,138,58,0.88);
}

.navbar-home-shell .dropdown-menu {
    background: rgba(10,18,30,0.96);
    border: 1px solid rgba(201,138,58,0.18);
    backdrop-filter: blur(12px);
}

.navbar-home-shell .dropdown-item {
    color: rgba(244,238,231,0.9);
}

.navbar-home-shell .dropdown-item:hover,
.navbar-home-shell .dropdown-item:focus {
    background: rgba(201,138,58,0.12);
    color: #fffaf4;
}

.navbar-home-shell .btn-outline-success,
.navbar-home-shell .btn-outline-primary,
.navbar-home-shell .btn-outline-danger {
    border-width: 1px;
    border-color: rgba(201,138,58,0.42);
    color: rgba(244,238,231,0.92);
    background: rgba(255,255,255,0.02);
}

.navbar-home-shell .btn-outline-success:hover,
.navbar-home-shell .btn-outline-primary:hover,
.navbar-home-shell .btn-outline-danger:hover {
    border-color: rgba(201,138,58,0.72);
    background: rgba(201,138,58,0.14);
    color: #fffaf4;
}

.footer-home-shell {
    flex-shrink: 0;
    position: static !important;
    inset: auto !important;
    bottom: auto !important;
    width: 100% !important;
    min-height: 0;
    margin-top: 0;
    padding: 1rem 0 1.2rem;
    border-top-color: rgba(201,138,58,0.12) !important;
    background: #09131e;
    line-height: 1.45 !important;
    white-space: normal !important;
}

.footer-home-shell .container {
    max-width: 1720px;
    padding-inline: 1.25rem;
}

.home-landing {
    position: relative;
    overflow: hidden;
    color: #f4eee7;
}

.home-landing::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        url('../content/static/hero-blueprint.jpg') center top / cover no-repeat;
    background-size: 140px 140px, 140px 140px, cover;
    opacity: 0.14;
    pointer-events: none;
}

.home-wrap--wide {
    width: min(100%, 1760px);
    margin: 0 auto;
    padding: 0 3.5rem;
}

.home-hero-band,
.home-process-band,
.home-expertise-band {
    position: relative;
    border-bottom: 1px solid rgba(201,138,58,0.16);
}

.home-hero-band {
    padding-top: 1.4rem;
}

.home-landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(700px, 0.98fr);
    gap: 3.4rem;
    padding: 2.8rem 0 2rem;
    align-items: start;
}

.home-landing-copy {
    padding-top: 3.6rem;
}

.home-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-section-kicker::before {
    content: "";
    width: 42px;
    height: 1px;
    background: currentColor;
}

.home-landing-title {
    margin: 1.25rem 0 1.15rem;
    color: #f6f1ea;
    font-size: clamp(3.4rem, 6.15vw, 6.8rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    text-wrap: balance;
}

.home-landing-title span {
    display: block;
    color: #d89844;
    text-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.home-landing-lead {
    max-width: 39rem;
    margin-bottom: 1.8rem;
    color: rgba(242,237,231,0.88);
    font-size: 1.14rem;
    line-height: 1.7;
}

.home-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.home-landing-actions .btn {
    min-width: 208px;
    border-radius: 0;
    padding: 0.95rem 1.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-showcase-board {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    border: 1px solid rgba(201,138,58,0.18);
    border-radius: 28px;
    background:
        linear-gradient(140deg, rgba(10,18,30,0.96), rgba(9,20,32,0.88)),
        url('../content/static/hero-blueprint.jpg') center / cover no-repeat;
    box-shadow: 0 24px 48px rgba(0,0,0,0.28);
}

.home-showcase-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 20% 20%, rgba(201,138,58,0.10), transparent 24%);
    background-size: 118px 118px, 118px 118px, auto;
    opacity: 0.34;
    pointer-events: none;
}

.home-showcase-types,
.home-showcase-elevation,
.home-showcase-paper,
.home-showcase-seal {
    position: absolute;
    z-index: 1;
}

.home-showcase-types {
    top: 0;
    left: 0;
    bottom: 168px;
    width: 290px;
    padding: 2rem 1.55rem 1.8rem;
    border-right: 1px solid rgba(201,138,58,0.16);
    background: linear-gradient(180deg, rgba(18,26,39,0.86), rgba(14,21,32,0.72));
}

.home-showcase-kicker {
    margin-bottom: 0.9rem;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-showcase-types h2 {
    margin: 0 0 1rem;
    font-size: 2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-showcase-type {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 0.35rem;
    color: rgba(242,237,231,0.9);
    border-top: 1px solid rgba(255,255,255,0.08);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-showcase-type i {
    color: rgba(201,138,58,0.88);
    font-size: 1.15rem;
}

.home-showcase-type span {
    font-size: 0.9rem;
}

.home-showcase-type.is-active {
    color: #fff7ed;
}

.home-showcase-elevation {
    top: 1.35rem;
    left: 315px;
    right: 1.35rem;
    height: 345px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1rem 3rem;
    border: 1px solid rgba(201,138,58,0.14);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(20,72,116,0.96), rgba(10,37,66,0.94)),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.home-showcase-elevation img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
    filter: grayscale(1) invert(1) brightness(1.35) contrast(1.22);
    mix-blend-mode: screen;
    opacity: 0.98;
}

.home-showcase-elevation figcaption {
    position: absolute;
    left: 1.3rem;
    bottom: 0.95rem;
    color: rgba(244,238,231,0.86);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-showcase-paper {
    padding: 0.75rem;
    border-radius: 18px;
    border: 1px solid rgba(113,82,40,0.18);
    background: linear-gradient(180deg, rgba(229,215,191,0.98), rgba(211,193,164,0.96));
    box-shadow: 0 18px 32px rgba(0,0,0,0.28);
}

.home-showcase-paper img {
    display: block;
    width: 100%;
    border-radius: 10px;
    filter: sepia(0.18) saturate(0.76) contrast(1.03);
}

.home-showcase-paper--plan {
    left: 360px;
    bottom: 42px;
    width: 360px;
    transform: rotate(-4deg);
}

.home-showcase-paper--portfolio {
    right: 74px;
    bottom: 24px;
    width: 265px;
    transform: rotate(3deg);
}

.home-showcase-paper--detail {
    right: 22px;
    top: 300px;
    width: 245px;
    padding: 0.55rem;
    background:
        linear-gradient(180deg, rgba(18,68,110,0.98), rgba(10,35,62,0.96)),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: auto, 26px 26px, 26px 26px;
    border-color: rgba(201,138,58,0.24);
    box-shadow: 0 18px 32px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.home-showcase-paper--detail img {
    border-radius: 12px;
    filter: grayscale(1) invert(1) brightness(1.38) contrast(1.24);
    mix-blend-mode: screen;
}

.home-showcase-seal {
    right: 108px;
    bottom: 18px;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 2px solid rgba(201,138,58,0.9);
    background: rgba(9,18,29,0.88);
    color: var(--primary);
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.home-showcase-seal span {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
}

.home-showcase-seal small {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
}

.home-proof-strip {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(201,138,58,0.16);
}

.home-proof-chip {
    display: flex;
    gap: 1rem;
    padding: 1.55rem 1.2rem 1.75rem;
    border-right: 1px solid rgba(201,138,58,0.14);
}

.home-proof-chip:last-child {
    border-right: 0;
}

.home-proof-chip-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(201,138,58,0.48);
    color: var(--primary);
    font-size: 1.35rem;
}

.home-proof-chip strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #f5efe8;
    font-size: 0.97rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home-proof-chip span {
    color: rgba(242,237,231,0.7);
    line-height: 1.6;
}

.home-process-band {
    padding: 0;
}

.home-process-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(540px, 0.98fr);
    align-items: stretch;
}

.home-process-art-panel {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-right: 1px solid rgba(201,138,58,0.14);
}

.home-process-art-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(7,13,22,0.10), rgba(7,13,22,0.46));
    background-size: 120px 120px, 120px 120px, auto;
    pointer-events: none;
}

.home-process-art-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.04);
}

.home-process-copy {
    padding: 2.9rem 2.9rem 2.4rem;
}

.home-process-copy h2,
.home-expertise-copy h2,
.home-closing-shell h2 {
    margin: 1rem 0 0.9rem;
    color: #f5efe8;
    font-size: clamp(2rem, 3vw, 3.15rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.home-process-copy p,
.home-expertise-copy p,
.home-closing-shell p {
    max-width: 44rem;
    color: rgba(242,237,231,0.78);
    font-size: 1.05rem;
    line-height: 1.75;
}

.home-process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.home-process-step {
    position: relative;
    padding-top: 0.25rem;
}

.home-process-step::after {
    content: "";
    position: absolute;
    top: 1.1rem;
    right: -0.6rem;
    width: calc(100% - 2.8rem);
    height: 1px;
    background: linear-gradient(90deg, rgba(201,138,58,0.28), rgba(201,138,58,0));
}

.home-process-step:last-child::after {
    display: none;
}

.home-process-step-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 0.7rem;
    color: var(--primary);
    font-size: 1.55rem;
}

.home-process-step-number {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(242,237,231,0.58);
    font-size: 0.84rem;
    letter-spacing: 0.1em;
}

.home-process-step strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #f6f1ea;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-process-step small {
    display: block;
    color: rgba(242,237,231,0.72);
    font-size: 0.96rem;
    line-height: 1.6;
}

.home-expertise-band {
    padding: 2.6rem 0;
}

.home-expertise-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(540px, 1.1fr);
    gap: 3rem;
    align-items: start;
}

.home-expertise-copy {
    padding-right: 1rem;
}

.home-expertise-links {
    border-top: 1px solid rgba(201,138,58,0.16);
}

.home-expertise-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(201,138,58,0.16);
    text-decoration: none;
}

.home-expertise-link strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #f5efe8;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-expertise-link span {
    color: rgba(242,237,231,0.72);
    line-height: 1.6;
}

.home-expertise-link i {
    color: var(--primary);
    font-size: 1.1rem;
    transition: transform 0.18s ease;
}

.home-expertise-link:hover i {
    transform: translateX(4px);
}

.home-closing-band {
    padding: 0 0 3rem;
}

.home-closing-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 0 0;
}

.home-closing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-end;
}

.home-closing-actions .btn {
    min-width: 180px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 1399.98px) {
    .home-wrap--wide {
        padding: 0 2.2rem;
    }

    .home-landing-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-landing-copy {
        padding-top: 1rem;
        max-width: 52rem;
    }

    .home-showcase-board {
        min-height: 660px;
    }
}

@media (max-width: 1199.98px) {
    .navbar-home-shell .container-fluid {
        padding: 0.85rem 1.25rem;
    }

    .home-wrap--wide {
        padding: 0 1.4rem;
    }

    .home-showcase-board {
        min-height: auto;
        padding: 1.2rem;
        display: grid;
        gap: 1rem;
    }

    .home-showcase-types,
    .home-showcase-elevation,
    .home-showcase-paper,
    .home-showcase-seal {
        position: relative;
        inset: auto;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        transform: none;
    }

    .home-showcase-types {
        width: 100%;
        padding: 1.4rem 1.2rem;
        border-right: 0;
        border-bottom: 1px solid rgba(201,138,58,0.14);
    }

    .home-showcase-elevation {
        height: 320px;
        padding-bottom: 3.2rem;
    }

    .home-showcase-paper--detail {
        background:
            linear-gradient(180deg, rgba(18,68,110,0.98), rgba(10,35,62,0.96)),
            linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
            linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
        background-size: auto, 26px 26px, 26px 26px;
    }

    .home-showcase-seal {
        margin-left: auto;
        width: 120px;
        height: 120px;
    }

    .home-process-shell,
    .home-expertise-shell {
        grid-template-columns: 1fr;
    }

    .home-process-art-panel {
        min-height: 320px;
        border-right: 0;
        border-bottom: 1px solid rgba(201,138,58,0.14);
    }

    .home-process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .site-main-shell {
        margin-left: 0;
        width: 100%;
    }

    .home-hero-band {
        padding-top: 0.5rem;
    }

    .home-landing-title {
        font-size: 3rem;
    }

    .home-proof-strip,
    .home-process-steps {
        grid-template-columns: 1fr;
    }

    .home-proof-chip {
        border-right: 0;
        border-bottom: 1px solid rgba(201,138,58,0.14);
    }

    .home-proof-chip:last-child {
        border-bottom: 0;
    }

    .home-process-copy,
    .home-expertise-copy {
        padding-right: 0;
    }

    .home-closing-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-closing-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .navbar-home-shell .navbar-brand {
        font-size: 1.1rem;
        letter-spacing: 0.12em;
    }

    .home-wrap--wide {
        padding: 0 1rem;
    }

    .home-landing-hero {
        gap: 1.6rem;
        padding: 1.7rem 0 1.4rem;
    }

    .home-landing-title {
        font-size: 2.45rem;
    }

    .home-landing-lead {
        font-size: 1rem;
    }

    .home-landing-actions .btn,
    .home-closing-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .home-showcase-board {
        padding: 0.8rem;
        border-radius: 22px;
    }

    .home-showcase-types h2 {
        font-size: 1.55rem;
    }

    .home-showcase-type span {
        font-size: 0.82rem;
    }

    .home-showcase-elevation {
        height: 240px;
    }

    .home-process-copy {
        padding: 1.8rem 1rem 1.8rem;
    }
}







