:root {
    --ink: #17211c;
    --muted: #5b665f;
    --paper: #f6f3ec;
    --surface: #ffffff;
    --soft: #ece7dc;
    --line: #ded7ca;
    --green: #2f6b4f;
    --green-dark: #173f2d;
    --gold: #c79a3b;
    --clay: #b95f3b;
    --blue: #315c72;
    --shadow: 0 22px 60px rgba(23, 33, 28, 0.13);
    --soft-shadow: 0 14px 34px rgba(23, 33, 28, 0.09);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(18px, 4vw, 56px);
    background: rgba(246, 243, 236, 0.92);
    border-bottom: 1px solid rgba(222, 215, 202, 0.85);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
}

.brand-mark,
.service-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--blue));
    font-size: 0.78rem;
    font-weight: 900;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 800;
}

.site-nav a {
    transition: color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
    color: var(--green-dark);
    transform: translateY(-1px);
}

.nav-cta {
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff !important;
    background: var(--green-dark);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 78px);
    padding: clamp(54px, 8vw, 108px) clamp(18px, 6vw, 82px);
    background:
        linear-gradient(115deg, rgba(246, 243, 236, 0.98), rgba(246, 243, 236, 0.84)),
        repeating-linear-gradient(135deg, rgba(47, 107, 79, 0.11) 0 2px, transparent 2px 30px),
        radial-gradient(circle at 88% 22%, rgba(199, 154, 59, 0.28), transparent 30%),
        linear-gradient(135deg, #ece7dc, #f6f3ec 44%, #dfe8dd);
    overflow: hidden;
}

.hero-copy-wide {
    max-width: 900px;
}

.hero h1,
.page-hero h1,
.form-intro h1,
.success-panel h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.65rem, 7.5vw, 6.4rem);
    line-height: 0.96;
}

.hero-text,
.page-hero p,
.form-intro p,
.success-panel p,
.section-heading p {
    max-width: 690px;
    color: var(--muted);
    font-size: 1.12rem;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--clay);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.button:active {
    transform: translateY(0);
}

.button.primary {
    color: #fff;
    background: var(--green);
}

.button.primary.bright {
    background: var(--gold);
    color: var(--ink);
}

.button.secondary {
    color: var(--green-dark);
    background: var(--surface);
}

.button.danger {
    color: var(--clay);
    border: 1px solid rgba(185, 95, 59, 0.28);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.project-access-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: clamp(20px, 4vw, 42px);
    align-items: center;
    padding: clamp(32px, 5vw, 64px) clamp(18px, 6vw, 82px);
    background: var(--green-dark);
    color: #fff;
}

.project-access-copy h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.project-access-copy p:not(.eyebrow) {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.76);
}

.project-access-form {
    display: grid;
    gap: 12px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.project-access-form label {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 900;
}

.project-access-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.project-access-controls input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    text-transform: uppercase;
}

.project-access-messages {
    display: grid;
    gap: 8px;
}

.contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    color: var(--green-dark);
    font-weight: 900;
}

.contact-strip span,
.form-contact-card {
    border: 1px solid rgba(47, 107, 79, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
}

.contact-strip span {
    padding: 8px 10px;
}

.promo-banner {
    padding: 12px clamp(18px, 6vw, 82px);
    color: var(--ink);
    background: rgba(199, 154, 59, 0.24);
    border-bottom: 1px solid rgba(199, 154, 59, 0.32);
    font-weight: 900;
    text-align: center;
}

.trust-row span,
.featured-chip,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(47, 107, 79, 0.18);
    border-radius: 8px;
    color: var(--green-dark);
    background: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 900;
}

.hero-showcase {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(222, 215, 202, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
}

.showcase-top {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 8px;
    background: var(--green-dark);
    color: #fff;
}

.showcase-top strong {
    font-size: 1.35rem;
    line-height: 1.15;
}

.status-pill {
    width: fit-content;
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
}

.timeline-card,
.panel-stat,
.service-card,
.gallery-card,
.portal-panel,
.request-form,
.empty-state,
.success-panel,
.quality-badge,
.before-after-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
}

.timeline-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
}

.timeline-card span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--clay);
    font-weight: 900;
}

.timeline-card strong,
.quality-badge strong {
    font-size: 1.08rem;
}

.timeline-card p,
.panel-stat p,
.service-card p,
.gallery-card p,
.portal-panel p,
.note p,
.quality-badge p,
.form-notes p,
.form-heading p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section,
.before-after-feature,
.gallery-grid,
.portal-layout,
.badge-section {
    padding: clamp(42px, 7vw, 82px) clamp(18px, 6vw, 82px);
}

.section-heading {
    margin-bottom: 26px;
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.section-heading h2,
.split-section h2,
.portal-header h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.55rem);
    line-height: 1.05;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 250px;
    padding: 22px;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -42px;
    width: 110px;
    height: 110px;
    border-radius: 8px;
    background: rgba(199, 154, 59, 0.14);
    transform: rotate(18deg);
}

.service-card h2,
.service-card h3,
.gallery-card h2,
.portal-panel h2,
.form-heading h2 {
    margin: 18px 0 8px;
    line-height: 1.15;
}

.service-card a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 14px;
    color: var(--green-dark);
    font-weight: 900;
}

.lift-card {
    transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.lift-card:hover {
    transform: translateY(-7px);
    border-color: rgba(199, 154, 59, 0.78);
    box-shadow: var(--shadow);
}

.before-after-feature {
    background: #ede8dd;
}

.featured-gallery,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.before-after-card {
    overflow: hidden;
}

.before-after-image {
    position: relative;
    overflow: hidden;
    background: var(--soft);
}

.before-after-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: saturate(0.96) contrast(1.03);
    transition: transform 220ms ease, filter 220ms ease;
}

.before-after-card:hover img {
    transform: scale(1.035);
    filter: saturate(1.08) contrast(1.06);
}

.before-label,
.after-label {
    position: absolute;
    top: 12px;
    padding: 6px 9px;
    border-radius: 8px;
    color: #fff;
    background: rgba(23, 33, 28, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.before-label {
    left: 12px;
}

.after-label {
    right: 12px;
    background: rgba(47, 107, 79, 0.86);
}

.divider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0 0 1px rgba(23, 33, 28, 0.12);
}

.before-after-placeholder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 240px;
    background:
        linear-gradient(90deg, rgba(23, 33, 28, 0.08) 0 50%, rgba(47, 107, 79, 0.16) 50% 100%),
        repeating-linear-gradient(135deg, rgba(23, 33, 28, 0.08) 0 2px, transparent 2px 20px);
}

.before-after-placeholder span {
    display: grid;
    place-items: center;
    color: var(--green-dark);
    font-weight: 900;
    text-transform: uppercase;
}

.gallery-content {
    padding: 18px;
}

.featured-chip {
    min-height: 28px;
    color: var(--ink);
    background: rgba(199, 154, 59, 0.22);
    border-color: rgba(199, 154, 59, 0.32);
}

.badge-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    background: var(--paper);
}

.quality-badge {
    padding: 20px;
}

.split-section {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    padding: clamp(42px, 7vw, 82px) clamp(18px, 6vw, 82px);
    background: var(--green-dark);
    color: #fff;
}

.split-section p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.76);
}

.page-hero,
.form-shell,
.portal-header {
    padding: clamp(44px, 7vw, 86px) clamp(18px, 6vw, 82px);
}

.page-hero.compact {
    min-height: 320px;
    background:
        linear-gradient(115deg, rgba(236, 231, 220, 0.95), rgba(246, 243, 236, 0.9)),
        repeating-linear-gradient(135deg, rgba(49, 92, 114, 0.1) 0 2px, transparent 2px 28px);
}

.gallery-grid {
    align-items: stretch;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
}

.form-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.form-notes {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.form-contact-card {
    display: grid;
    gap: 4px;
    margin-top: 20px;
    padding: 16px;
}

.form-contact-card p {
    margin: 0;
}

.form-notes div {
    padding: 18px;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.request-form {
    display: grid;
    gap: 16px;
    padding: clamp(20px, 4vw, 34px);
}

.form-heading {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.form-help {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.form-heading h2 {
    margin-top: 0;
}

.request-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.request-form input,
.request-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.request-form textarea {
    resize: vertical;
}

.request-form input:focus,
.request-form textarea:focus {
    outline: 0;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(47, 107, 79, 0.16);
}

.request-form small {
    color: var(--clay);
}

.success-panel {
    max-width: 760px;
    margin: clamp(48px, 8vw, 96px) auto;
    padding: clamp(24px, 5vw, 46px);
}

.portal-header {
    background: var(--soft);
}

.portal-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 22px;
}

.portal-panel {
    padding: 24px;
}

.note {
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.note time,
figcaption {
    color: var(--clay);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.photo-strip img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px clamp(18px, 6vw, 82px);
    color: #fff;
    background: var(--ink);
}

.site-footer p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.68);
}

.fade-in {
    animation: fadeIn 700ms ease both;
}

.float-in {
    animation: floatIn 800ms 120ms ease both;
}

.reveal {
    animation: slideUp 680ms ease both;
}

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

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@media (max-width: 1040px) {
    .hero,
    .form-shell,
    .portal-layout {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .featured-gallery,
    .gallery-grid,
    .badge-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-header,
    .site-footer,
    .split-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .brand span:last-child {
        max-width: 210px;
        line-height: 1.15;
    }

    .hero {
        min-height: auto;
    }

    .project-access-section,
    .project-access-controls {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .featured-gallery,
    .gallery-grid,
    .badge-section,
    .photo-strip {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-hero h1,
    .form-intro h1,
    .success-panel h1 {
        font-size: clamp(2.35rem, 14vw, 4.45rem);
    }
}

.auth-shell,
.dashboard-hero,
.dashboard-grid,
.dashboard-layout,
.quick-links,
.detail-grid,
.dashboard-messages {
    padding: clamp(28px, 5vw, 70px) clamp(18px, 6vw, 82px);
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: 70vh;
}

.auth-card {
    width: min(100%, 520px);
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.auth-card h1,
.dashboard-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1;
}

.compact-form {
    margin-top: 22px;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        linear-gradient(115deg, rgba(236, 231, 220, 0.96), rgba(246, 243, 236, 0.9)),
        repeating-linear-gradient(135deg, rgba(47, 107, 79, 0.09) 0 2px, transparent 2px 28px);
}

.compact-dashboard {
    padding-bottom: clamp(30px, 5vw, 54px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding-top: clamp(28px, 4vw, 46px);
    padding-bottom: 0;
}

.metric-card,
.dashboard-panel,
.quick-link,
.message {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
}

.metric-card {
    display: grid;
    gap: 6px;
    padding: 20px;
}

.metric-card span {
    color: var(--green-dark);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
}

.metric-card strong {
    color: var(--muted);
}

.dashboard-layout,
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.dashboard-panel {
    padding: clamp(20px, 3vw, 30px);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-heading h2,
.dashboard-panel h2 {
    margin: 0;
    line-height: 1.15;
}

.panel-heading a {
    color: var(--green-dark);
    font-weight: 900;
}

.owner-list {
    display: grid;
    gap: 12px;
}

.owner-list.stacked {
    margin-top: 22px;
}

.owner-list-item,
.owner-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    transition: transform 180ms ease, border-color 180ms ease;
}

.owner-list-item:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.owner-list-item span,
.owner-note {
    min-width: 0;
}

.owner-list-item small,
.owner-list-item em,
.owner-note span,
.owner-note em {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    font-style: normal;
}

.owner-list-item em,
.owner-note em {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 8px;
    color: var(--green-dark);
    background: rgba(47, 107, 79, 0.1);
    font-weight: 900;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding-top: 0;
}

.quick-link {
    padding: 18px;
    color: var(--green-dark);
    font-weight: 900;
}

.dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px clamp(18px, 6vw, 82px);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid var(--line);
}

.dashboard-nav a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-dark);
    background: #fff;
    font-weight: 900;
    transition: transform 180ms ease, border-color 180ms ease;
}

.dashboard-nav a:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.dashboard-table-section {
    padding: clamp(28px, 5vw, 70px) clamp(18px, 6vw, 82px);
}

.manage-card-grid,
.manage-gallery-grid {
    display: grid;
    gap: 16px;
}

.manage-card,
.manage-gallery-card {
    display: grid;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.manage-card {
    grid-template-columns: 56px minmax(0, 1fr) auto;
}

.manage-card h3,
.manage-gallery-card h3 {
    margin: 0 0 6px;
    line-height: 1.15;
}

.manage-card p,
.manage-gallery-card p {
    margin: 0;
    color: var(--muted);
}

.manage-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manage-gallery-card {
    overflow: hidden;
    padding: 0;
}

.manage-gallery-card > img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.manage-gallery-card > div {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.dashboard-form-shell {
    align-items: start;
}

.dashboard-current-image {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

.dashboard-current-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.dashboard-current-image span {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 9px;
    border-radius: 8px;
    color: #fff;
    background: rgba(23, 33, 28, 0.72);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.estimate-panel {
    display: grid;
    gap: 22px;
}

.estimate-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.estimate-form-grid .full-span,
.estimate-form-grid .checkbox-row,
.estimate-form-grid button {
    grid-column: 1 / -1;
}

.estimate-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--green-dark);
    background: rgba(47, 107, 79, 0.1);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.estimate-status.sent {
    color: var(--blue);
    background: rgba(49, 92, 114, 0.12);
}

.estimate-status.approved {
    color: var(--green-dark);
    background: rgba(47, 107, 79, 0.16);
}

.estimate-status.declined {
    color: var(--clay);
    background: rgba(185, 95, 59, 0.12);
}

.estimate-status.new,
.estimate-status.in_progress,
.estimate-status.completed {
    color: var(--green-dark);
    background: rgba(47, 107, 79, 0.12);
}

.estimate-status.in_progress {
    color: var(--blue);
    background: rgba(49, 92, 114, 0.12);
}

.estimate-status.completed {
    color: var(--ink);
    background: rgba(199, 154, 59, 0.2);
}

.estimate-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.estimate-summary-grid div {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.estimate-summary-grid span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.estimate-summary-grid strong {
    font-size: 1.15rem;
}

.estimate-line-items {
    display: grid;
    gap: 16px;
}

.estimate-line-list {
    display: grid;
    gap: 10px;
}

.estimate-line-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.estimate-line-row small {
    display: block;
    color: var(--muted);
}

.estimate-line-row a {
    color: var(--green-dark);
    font-weight: 900;
}

.estimate-line-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.estimate-line-form button {
    grid-column: 1 / -1;
}

.portal-estimate-lines {
    margin: 18px 0;
}

.estimate-response-form,
.estimate-response-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.estimate-response-card h3,
.estimate-response-form h3 {
    margin: 0;
}

.estimate-response-card p {
    margin: 0;
    color: var(--muted);
}

.estimate-response-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.estimate-response-fields .full-span {
    grid-column: 1 / -1;
}

.estimate-response-fields label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 900;
}

.estimate-response-fields input,
.estimate-response-fields textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.detail-list {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px 16px;
    margin: 18px 0 0;
}

.detail-list dt {
    color: var(--muted);
    font-weight: 900;
}

.detail-list dd {
    margin: 0;
}

.history-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.history-summary div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.history-summary span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.history-summary strong {
    font-size: 1.4rem;
    line-height: 1;
}

.description-block {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    white-space: pre-wrap;
}

.owner-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.owner-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 900;
}

.owner-form input,
.owner-form select,
.owner-form textarea,
.portal-copy-box input,
.auth-card input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.owner-form textarea {
    resize: vertical;
}

.checkbox-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px;
}

.checkbox-row input {
    width: auto;
}

.portal-copy-box {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.dashboard-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.dashboard-photo-grid img {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    object-fit: cover;
}

.comparison-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: clamp(42px, 7vw, 82px) clamp(18px, 6vw, 82px);
}

.comparison-project-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
}

.comparison-header {
    padding: 18px;
}

.comparison-header h2 {
    margin: 12px 0 6px;
    line-height: 1.15;
}

.comparison-header p {
    margin: 0;
    color: var(--muted);
}

.comparison-slider {
    --position: 50%;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    aspect-ratio: 4 / 3;
    background: var(--soft);
    user-select: none;
}

.comparison-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-before {
    filter: saturate(0.88) contrast(1.02);
}

.comparison-after-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
    transition: clip-path 120ms ease-out;
}

.comparison-after {
    width: 100%;
    filter: saturate(1.08) contrast(1.04);
}

.comparison-label {
    position: absolute;
    top: 12px;
    z-index: 3;
    padding: 6px 9px;
    border-radius: 8px;
    color: #fff;
    background: rgba(23, 33, 28, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.comparison-label.before {
    left: 12px;
}

.comparison-label.after {
    right: 12px;
    background: rgba(47, 107, 79, 0.88);
}

.comparison-range {
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: ew-resize;
    opacity: 0;
}

.comparison-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    z-index: 4;
    width: 3px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(23, 33, 28, 0.18), 0 0 24px rgba(23, 33, 28, 0.22);
    transform: translateX(-50%);
    transition: left 120ms ease-out;
}

.comparison-handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent 0 40%, rgba(255, 255, 255, 0.96) 40% 45%, transparent 45% 55%, rgba(255, 255, 255, 0.96) 55% 60%, transparent 60%),
        rgba(23, 33, 28, 0.64);
    transform: translate(-50%, -50%);
}

.comparison-slider:hover .comparison-after-wrap,
.comparison-slider:hover .comparison-handle {
    transition-duration: 70ms;
}

.single-stage-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--soft);
}

.single-stage-photo img {
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.single-stage-photo:hover img {
    transform: scale(1.035);
}

.single-stage-photo span {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 8px;
    color: #fff;
    background: rgba(23, 33, 28, 0.78);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.legacy-gallery-section {
    padding-top: 0;
}

.dashboard-comparison-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.dashboard-comparison-block h3,
.photo-stage-grid h3 {
    margin: 0 0 12px;
}

.photo-stage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.dashboard-photo-grid.compact {
    grid-template-columns: 1fr;
    margin-top: 0;
}

.portal-stages .photo-strip {
    grid-template-columns: 1fr;
}

.dashboard-messages {
    display: grid;
    gap: 10px;
    padding-top: 18px;
    padding-bottom: 0;
}

.message {
    padding: 13px 16px;
    color: var(--green-dark);
    background: rgba(47, 107, 79, 0.1);
    font-weight: 800;
}

.message.error {
    color: var(--clay);
    background: rgba(185, 95, 59, 0.11);
}

.message.success {
    color: var(--green-dark);
}

@media (max-width: 1040px) {
    .dashboard-grid,
    .quick-links,
    .manage-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .comparison-project-grid,
    .photo-stage-grid,
    .estimate-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .dashboard-hero,
    .owner-list-item,
    .owner-note {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-grid,
    .quick-links,
    .dashboard-photo-grid,
    .comparison-project-grid,
    .photo-stage-grid,
    .manage-gallery-grid,
    .estimate-summary-grid,
    .estimate-form-grid,
    .estimate-line-form {
        grid-template-columns: 1fr;
    }

    .estimate-line-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .estimate-response-fields {
        grid-template-columns: 1fr;
    }

    .manage-card {
        grid-template-columns: 1fr;
    }

    .manage-card .service-icon {
        width: 48px;
    }

    .detail-list {
        grid-template-columns: 1fr;
    }

    .history-summary {
        grid-template-columns: 1fr;
    }
}

/* Full-site polish pass */
.site-header {
    box-shadow: 0 10px 32px rgba(23, 33, 28, 0.08);
}

.site-nav a {
    border-radius: 999px;
}

.site-nav a:hover,
.quick-link:hover,
.owner-list-item:hover {
    background: rgba(47, 107, 79, 0.08);
}

.button,
.nav-cta {
    min-height: 44px;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(47, 107, 79, 0.12);
}

.button.secondary {
    box-shadow: none;
}

.hero {
    align-items: center;
    padding-top: clamp(58px, 8vw, 92px);
}

.hero-copy h1 {
    max-width: 760px;
}

.hero-text {
    max-width: 700px;
}

.hero-showcase,
.project-access-form,
.request-form,
.dashboard-panel,
.portal-panel,
.comparison-project-card,
.gallery-card,
.service-card {
    border: 1px solid rgba(47, 107, 79, 0.12);
    box-shadow: 0 18px 48px rgba(23, 33, 28, 0.08);
}

.project-access-section {
    align-items: center;
    gap: clamp(24px, 5vw, 54px);
}

.project-access-copy p {
    max-width: 620px;
}

.project-access-controls {
    align-items: stretch;
}

.project-access-controls input {
    min-height: 48px;
    font-weight: 800;
    letter-spacing: 0;
}

.section-heading p,
.page-hero p,
.form-intro > p,
.portal-header > p,
.dashboard-hero p {
    max-width: 760px;
}

.section-cta {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.section-cta p {
    margin: 0;
    color: var(--muted);
}

.form-section-note {
    grid-column: 1 / -1;
    padding: 16px 18px;
    border: 1px solid rgba(47, 107, 79, 0.16);
    border-radius: 10px;
    background: rgba(47, 107, 79, 0.06);
}

.form-section-note strong {
    display: block;
    margin-bottom: 5px;
}

.form-section-note p {
    margin: 0;
    color: var(--muted);
}

.help-text {
    color: var(--muted);
    font-weight: 600;
}

.field-error {
    color: var(--clay);
    font-weight: 900;
}

.success-panel {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

.success-panel .hero-actions {
    justify-content: center;
}

.portal-header {
    display: grid;
    gap: 12px;
}

.portal-meta,
.panel-subtext {
    color: var(--muted);
}

.portal-meta strong {
    color: var(--ink);
}

.portal-panel h2,
.dashboard-panel h2 {
    margin-top: 0;
}

.note {
    border-left: 4px solid var(--green);
}

.estimate-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(47, 107, 79, 0.1);
    color: var(--green-dark);
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.estimate-status.new,
.estimate-status.draft,
.estimate-status.assigned {
    background: rgba(185, 95, 59, 0.12);
    color: var(--clay);
}

.estimate-status.in_progress,
.estimate-status.scheduled,
.estimate-status.sent {
    background: rgba(222, 161, 86, 0.18);
    color: #7a4b12;
}

.estimate-status.completed,
.estimate-status.approved {
    background: rgba(47, 107, 79, 0.14);
    color: var(--green-dark);
}

.estimate-status.declined {
    background: rgba(118, 46, 46, 0.12);
    color: #762e2e;
}

.quick-links {
    align-items: stretch;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    text-align: center;
}

.dashboard-nav {
    overflow-x: auto;
    scrollbar-width: thin;
}

.dashboard-nav a {
    white-space: nowrap;
}

.owner-list-item {
    gap: 16px;
}

.owner-list-item small {
    line-height: 1.45;
}

.empty-state {
    width: 100%;
    padding: 24px;
    border: 1px dashed rgba(47, 107, 79, 0.24);
    border-radius: 12px;
    background: rgba(47, 107, 79, 0.04);
    color: var(--muted);
}

.comparison-project-card,
.before-after-card {
    overflow: hidden;
}

.comparison-slider,
.single-stage-photo,
.before-after-image {
    background: linear-gradient(135deg, rgba(47, 107, 79, 0.08), rgba(222, 161, 86, 0.1));
}

.photo-strip p,
.portal-stages p {
    color: var(--muted);
    font-weight: 700;
}

.estimate-response-form {
    border: 1px solid rgba(47, 107, 79, 0.14);
    border-radius: 12px;
    background: rgba(247, 244, 237, 0.68);
}

.danger-panel {
    border-color: rgba(118, 46, 46, 0.22);
    background: rgba(118, 46, 46, 0.035);
}

.button.danger,
.button.secondary.danger {
    border-color: rgba(118, 46, 46, 0.28);
    color: #762e2e;
    background: rgba(118, 46, 46, 0.08);
}

.button.danger:hover,
.button.secondary.danger:hover {
    background: rgba(118, 46, 46, 0.14);
}

.footer-links,
.card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a:first-child {
    color: var(--muted);
    font-weight: 800;
}

.work-access-shell {
    align-items: center;
}

.request-form .full-span {
    grid-column: 1 / -1;
}

.manage-card .card-actions {
    justify-content: flex-end;
}

.manage-card .card-actions .button {
    min-height: 40px;
}

.owner-form textarea {
    min-height: 120px;
}

.owner-form .hero-actions {
    margin-top: 8px;
}

.work-form {
    display: grid;
    gap: 16px;
}

.work-form textarea {
    min-height: 120px;
}

.work-list {
    display: grid;
    gap: 12px;
}

.work-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

@media (max-width: 760px) {
    .site-header .container {
        gap: 14px;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero-actions,
    .project-access-controls,
    .success-panel .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .hero-actions .button,
    .project-access-controls .button,
    .success-panel .button {
        width: 100%;
        justify-content: center;
    }

    .project-access-form,
    .request-form,
    .portal-panel,
    .dashboard-panel {
        padding-inline: 18px;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .owner-list-item {
        align-items: flex-start;
    }

    .footer-links,
    .card-actions,
    .manage-card .card-actions {
        width: 100%;
        justify-content: flex-start;
    }
}
