:root {
    --bg: #f5f1ec;
    --surface: #fffdfb;
    --surface-warm: #f8efe9;
    --text: #1e1b1a;
    --muted: #6c625d;
    --primary: #a63a34;
    --primary-dark: #8e2f2a;
    --accent: #c06a61;
    --border: #d8d2c7;
    --success-bg: #e6f6ef;
    --success-text: #175b43;
    --error-bg: #fdecea;
    --error-text: #8a2c20;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 18px 45px rgba(29, 42, 51, 0.08);
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top left, rgba(166, 58, 52, 0.14), transparent 28%),
        linear-gradient(180deg, #faf6f2 0%, var(--bg) 60%, #ece4dd 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    background: rgba(166, 58, 52, 0.08);
    font-family: Consolas, Monaco, monospace;
}

.container {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
    background: rgba(248, 244, 236, 0.9);
    border-bottom: 1px solid rgba(216, 210, 199, 0.75);
    transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.header-shell,
.footer-shell,
.section-heading,
.section-row,
.form-actions,
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.header-shell,
.footer-shell {
    padding: 1rem 0;
}

.header-shell {
    position: relative;
    min-height: 64px;
    transition: min-height 0.18s ease, padding 0.18s ease;
}

.brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-wrap {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    transition: gap 0.18s ease;
}

.brand-with-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    display: block;
    width: auto;
    height: 58px;
    transition: height 0.18s ease;
}

.brand-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.tagline,
.muted {
    color: var(--muted);
}

.tagline {
    margin: 0.2rem 0 0;
    font-size: 0.88rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: opacity 0.18s ease, max-height 0.18s ease, margin 0.18s ease;
}

.main-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 30;
    display: grid;
    gap: 0.35rem;
    width: min(320px, calc(100vw - 1rem));
    padding: 0.7rem;
    border: 1px solid rgba(216, 210, 199, 0.95);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 18px 40px rgba(29, 42, 51, 0.12);
    backdrop-filter: blur(14px);
}

.main-nav a,
.main-nav-button {
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    text-align: left;
    transition: background 0.18s ease;
}

.main-nav a:hover,
.main-nav-button:hover {
    background: rgba(166, 58, 52, 0.08);
}

.main-nav-form {
    margin: 0;
}

.main-nav-button {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.main-nav[hidden] {
    display: none;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    flex-shrink: 0;
    min-width: 120px;
    padding: 0.65rem 0.95rem;
    border: 1px solid rgba(166, 58, 52, 0.16);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(246, 239, 227, 0.98) 100%);
    color: #2a2321;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 22px rgba(29, 42, 51, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.menu-toggle:hover {
    border-color: rgba(166, 58, 52, 0.28);
    background: linear-gradient(180deg, rgba(255, 253, 248, 1) 0%, rgba(249, 239, 236, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(29, 42, 51, 0.12);
}

.menu-toggle:focus-visible {
    outline: 2px solid rgba(166, 58, 52, 0.36);
    outline-offset: 2px;
}

.menu-toggle-icon {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    width: 1.2rem;
    height: 1rem;
}

.menu-toggle-line {
    position: absolute;
    left: 0;
    display: block;
    width: 1.2rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease;
}

.menu-toggle-line:nth-child(1) {
    top: 0.08rem;
}

.menu-toggle-line:nth-child(2) {
    top: 0.44rem;
}

.menu-toggle-line:nth-child(3) {
    top: 0.8rem;
}

.menu-toggle-text {
    line-height: 1;
    font-size: 0.95rem;
}

.menu-toggle[aria-expanded="true"] {
    color: #ffffff;
    border-color: rgba(166, 58, 52, 0.96);
    background: linear-gradient(180deg, #a63a34 0%, #8e2f2a 100%);
    box-shadow: 0 16px 30px rgba(166, 58, 52, 0.26);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
    top: 0.44rem;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
    top: 0.44rem;
    transform: rotate(-45deg);
}

.site-header.is-compact {
    background: rgba(248, 244, 236, 0.96);
    box-shadow: 0 10px 24px rgba(29, 42, 51, 0.08);
}

.site-header.is-compact .header-shell {
    min-height: 50px;
    padding: 0.45rem 0;
}

.site-header.is-compact .brand-logo {
    height: 42px;
}

.site-header.is-compact .brand-wrap {
    gap: 0;
}

.site-header.is-compact .tagline {
    opacity: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
}

.page-shell {
    padding: 2rem 0 4rem;
}

.hero,
.info-grid,
.stats-grid,
.split-section {
    display: grid;
    gap: 1.25rem;
}

.hero {
    grid-template-columns: 1.3fr 0.9fr;
    margin-bottom: 1.5rem;
}

.hero-copy,
.hero-card,
.card,
.auth-card {
    background: var(--surface);
    border: 1px solid rgba(216, 210, 199, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 2.5rem;
}

.hero-card {
    padding: 2rem;
    background: linear-gradient(180deg, var(--surface-warm) 0%, var(--surface) 100%);
}

.hero-copy h1 {
    margin: 0.4rem 0 1rem;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 0.98;
}

.hero-copy p,
.hero-card p,
.card p {
    line-height: 1.6;
}

.eyebrow {
    display: inline-flex;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(201, 111, 45, 0.12);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
}

.feature-list {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    line-height: 1.8;
}

.info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.2rem 0;
}

.split-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-split {
    align-items: start;
}

.card,
.auth-card {
    padding: 1.4rem;
}

.auth-shell {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.auth-card {
    width: min(100%, 460px);
}

.stat-card strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 2.2rem;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.action-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-preview,
.quote-summary-breakdown {
    display: grid;
    gap: 0.8rem;
}

.pricing-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-preview-item {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(166, 58, 52, 0.12);
    border-radius: var(--radius-sm);
    background: rgba(166, 58, 52, 0.05);
}

.pricing-preview-item span,
.table-note,
.vat-note {
    color: var(--muted);
}

.pricing-preview-item span {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.pricing-preview-item strong {
    font-size: 1.08rem;
}

.table-note {
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

.vat-note {
    margin: 0;
    line-height: 1.55;
}

.stack-form,
.quote-form {
    display: grid;
    gap: 1rem;
}

.filter-form {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.filter-grid,
.summary-list,
.signature-grid {
    display: grid;
    gap: 1rem;
}

.filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.filter-grid-quotes {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(180px, 0.8fr)) minmax(180px, auto);
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
}

textarea {
    resize: vertical;
}

.checkbox-row {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.7rem;
}

.checkbox-row input {
    width: auto;
}

.button,
.link-button,
.text-link {
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    transition: background 0.18s ease;
}

.button:hover {
    background: var(--primary-dark);
}

.button-secondary {
    border: 1px solid rgba(166, 58, 52, 0.28);
    background: transparent;
    color: var(--primary-dark);
}

.button-secondary:hover {
    background: rgba(166, 58, 52, 0.06);
}

.text-link,
.link-button {
    border: 0;
    padding: 0;
    background: none;
    color: var(--primary);
    font-weight: 700;
}

.text-link:hover,
.link-button:hover {
    text-decoration: underline;
}

.flash {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.flash-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: rgba(23, 91, 67, 0.15);
}

.flash-error {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: rgba(138, 44, 32, 0.12);
}

.session-chip {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin: 0 0 1rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(166, 58, 52, 0.12);
    border-radius: 999px;
    background: rgba(166, 58, 52, 0.05);
    color: var(--muted);
    font-size: 0.9rem;
}

.session-chip strong {
    color: var(--text);
}

.session-chip span {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(166, 58, 52, 0.12);
    color: var(--primary-dark);
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid rgba(216, 210, 199, 0.75);
    text-align: left;
    vertical-align: top;
}

thead th {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.actions-cell form {
    margin: 0;
}

.status-badge {
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.status-active {
    background: rgba(166, 58, 52, 0.12);
    color: var(--primary-dark);
}

.status-inactive {
    background: rgba(102, 119, 132, 0.15);
    color: var(--muted);
}

.quote-summary,
.quote-total-box {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.quote-summary-breakdown {
    justify-items: end;
    text-align: right;
}

.quote-summary-breakdown span {
    display: block;
}

.print-breakdown {
    width: 100%;
}

.quote-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(216, 210, 199, 0.8);
}

.quote-meta p {
    margin: 0.25rem 0;
}

.quote-meta {
    min-width: 0;
}

.quote-header > * {
    flex: 1 1 0;
    min-width: 0;
}

.section-heading > div,
.section-row > h2 {
    min-width: 0;
}

.quote-notes {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(216, 210, 199, 0.8);
}

.quote-signature {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(216, 210, 199, 0.8);
}

.quote-signature h3 {
    margin-bottom: 0.6rem;
}

.signature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.25rem;
}

.signature-grid span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.signature-line {
    min-height: 3rem;
    margin-top: 1.25rem;
    border-bottom: 1px solid rgba(29, 42, 51, 0.28);
}

.summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-list li {
    display: grid;
    gap: 0.18rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(166, 58, 52, 0.08);
    border-radius: 14px;
    background: rgba(166, 58, 52, 0.04);
}

.summary-list span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-footer {
    border-top: 1px solid rgba(216, 210, 199, 0.85);
    background: rgba(255, 253, 248, 0.85);
}

.home-page {
    display: grid;
    gap: 1.5rem;
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    padding: clamp(1.8rem, 4vw, 3rem);
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(215, 161, 155, 0.2), transparent 34%),
        radial-gradient(circle at bottom left, rgba(166, 58, 52, 0.14), transparent 32%),
        linear-gradient(135deg, #1f1918 0%, #322120 46%, #4b2a27 100%);
    box-shadow: 0 28px 60px rgba(31, 24, 23, 0.24);
    color: #f7f1ef;
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -24% auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 65%);
    pointer-events: none;
}

.home-hero-copy,
.home-hero-panel,
.home-panel {
    position: relative;
    z-index: 1;
}

.home-eyebrow,
.home-section-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.42rem 0.82rem;
    border-radius: 999px;
    border: 1px solid rgba(166, 58, 52, 0.12);
    background: rgba(255, 249, 248, 0.86);
    color: #7e312c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-eyebrow {
    border-color: rgba(243, 220, 217, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #f2dad7;
}

.home-hero h1 {
    margin: 0.7rem 0 1rem;
    max-width: 12ch;
    color: #fff8f6;
    font-size: clamp(2.5rem, 5.2vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.home-hero p {
    margin: 0;
    max-width: 58ch;
    color: rgba(248, 238, 236, 0.84);
    font-size: 1.08rem;
    line-height: 1.75;
}

.home-hero-actions {
    justify-content: flex-start;
    margin-top: 1.75rem;
}

.home-page .button {
    min-height: 52px;
}

.home-button-primary {
    background: #a63a34;
    color: #fff8f6;
    box-shadow: 0 16px 28px rgba(166, 58, 52, 0.24);
}

.home-button-primary:hover {
    background: #8e2f2a;
}

.home-button-secondary,
.home-button-ghost {
    border-color: rgba(247, 232, 230, 0.24);
    background: rgba(255, 255, 255, 0.06);
    color: #f7f1ef;
}

.home-button-secondary:hover,
.home-button-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(247, 232, 230, 0.36);
}

.home-inline-points,
.home-feature-list,
.home-contact-list {
    list-style: none;
    padding: 0;
}

.home-inline-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0 0;
}

.home-inline-points li {
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #f6ebe8;
    font-size: 0.95rem;
}

.home-hero-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
    padding: 1.75rem;
    border: 1px solid rgba(248, 231, 228, 0.14);
    border-radius: 22px;
    background: rgba(35, 26, 25, 0.4);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-panel-kicker {
    margin: 0;
    color: #dbaba5;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero-panel h2,
.home-panel h2 {
    margin: 0;
    line-height: 1.12;
}

.home-hero-panel h2 {
    color: #fff8f6;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.home-feature-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.home-feature-list li {
    position: relative;
    padding-left: 1.35rem;
    color: rgba(248, 238, 236, 0.84);
    line-height: 1.7;
}

.home-feature-list li::before {
    content: "";
    position: absolute;
    top: 0.72rem;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #c7776d;
    box-shadow: 0 0 0 0.22rem rgba(199, 119, 109, 0.16);
}

.home-proof-strip,
.home-service-grid,
.home-story {
    display: grid;
    gap: 1.25rem;
}

.home-operator-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #f0b8b2;
    font-weight: 700;
}

.home-operator-link:hover {
    color: #fff8f6;
}

.home-proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-proof-item,
.home-service-card,
.home-panel.is-light {
    border: 1px solid rgba(166, 58, 52, 0.08);
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 20px 40px rgba(29, 42, 51, 0.08);
}

.home-proof-item {
    padding: 1.4rem;
    border-radius: 22px;
}

.home-proof-item h3 {
    margin: 0 0 0.55rem;
    color: #2b2321;
    font-size: 1.08rem;
}

.home-proof-item p,
.home-service-card p,
.home-panel.is-light p {
    margin: 0;
    color: #5f5752;
    line-height: 1.7;
}

.home-section {
    display: grid;
    gap: 1.3rem;
}

.home-section-head {
    display: grid;
    gap: 0.8rem;
    max-width: 56rem;
}

.home-section-head h2 {
    margin: 0;
    max-width: 16ch;
    color: #241f1d;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    line-height: 1.06;
}

.home-section-head p {
    margin: 0;
    max-width: 62ch;
    color: #6c625d;
    line-height: 1.75;
}

.home-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-service-card {
    padding: 1.65rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 240, 236, 0.97) 100%);
}

.home-card-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #2b201f 0%, #8e2f2a 100%);
    color: #f7ece9;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.home-service-card h3 {
    margin: 0 0 0.75rem;
    color: #2b2321;
    font-size: 1.36rem;
}

.home-story {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.home-panel {
    display: grid;
    gap: 1rem;
    padding: clamp(1.6rem, 3vw, 2.3rem);
    border-radius: 24px;
}

.home-panel.is-light h2 {
    color: #241f1d;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.home-panel.is-dark {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, #231b1a 0%, #402523 100%);
    box-shadow: 0 24px 50px rgba(35, 27, 26, 0.18);
    color: #f7f1ef;
}

.home-panel.is-dark h2 {
    color: #fff8f6;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.home-section-tag-dark {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #f1d8d4;
}

.home-contact-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.home-contact-list li {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.home-contact-list span {
    color: #d6aca7;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-contact-list strong,
.home-contact-list a {
    color: #fff8f6;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.home-contact-list em {
    color: rgba(248, 238, 236, 0.78);
    font-style: normal;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.home-contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.home-contact-actions .button {
    width: 100%;
}

.home-contact-email {
    grid-column: 1 / -1;
}

.home-contact-note {
    margin: 0;
    color: rgba(248, 238, 236, 0.8);
    line-height: 1.65;
}

.stack-mobile td,
.stack-mobile th {
    min-width: 0;
}

.footer-shell {
    flex-wrap: wrap;
    justify-content: center;
}

.footer-shell p {
    margin: 0;
    text-align: center;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .hero,
    .info-grid,
    .stats-grid,
    .split-section,
    .form-grid,
    .filter-grid,
    .filter-grid-quotes,
    .signature-grid {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .section-row,
    .form-actions,
    .hero-actions,
    .quote-header {
        align-items: stretch;
        flex-direction: column;
    }

    .header-shell {
        flex-direction: row;
        align-items: center;
        min-height: 52px;
        padding: 0.6rem 0;
    }

    .main-nav {
        justify-content: center;
    }

    .main-nav a {
        text-align: center;
    }

    .main-nav-button {
        text-align: center;
    }

    .home-hero,
    .home-proof-strip,
    .home-service-grid,
    .home-story {
        grid-template-columns: 1fr;
    }

    .home-hero h1,
    .home-section-head h2 {
        max-width: none;
    }

    .home-hero-actions {
        align-items: stretch;
    }

    .filter-actions {
        justify-content: stretch;
    }

    .home-page .button {
        width: 100%;
    }

    .brand-with-logo {
        justify-content: flex-start;
    }

    .brand-logo {
        height: 44px;
    }

    .tagline {
        display: none;
    }

    .quote-summary,
    .quote-total-box {
        justify-content: flex-start;
    }

    .pricing-preview {
        grid-template-columns: 1fr;
    }

    .quote-summary-breakdown {
        justify-items: start;
        text-align: left;
    }

    .table-wrap {
        overflow: visible;
    }

    .session-chip {
        width: 100%;
        border-radius: 14px;
    }

    .stack-mobile {
        border-collapse: separate;
        border-spacing: 0;
    }

    .stack-mobile thead {
        display: none;
    }

    .stack-mobile,
    .stack-mobile tbody,
    .stack-mobile tr,
    .stack-mobile td {
        display: block;
        width: 100%;
    }

    .stack-mobile tr {
        padding: 1rem;
        margin-bottom: 0.9rem;
        border: 1px solid rgba(216, 210, 199, 0.8);
        border-radius: 16px;
        background: rgba(255, 253, 248, 0.95);
        box-shadow: 0 10px 24px rgba(29, 42, 51, 0.06);
    }

    .stack-mobile td {
        display: grid;
        grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
        gap: 0.8rem;
        align-items: center;
        padding: 0.55rem 0;
        border-bottom: 1px solid rgba(216, 210, 199, 0.55);
        text-align: left;
    }

    .stack-mobile td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .stack-mobile td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .quote-builder-table tr {
        padding: 1rem;
    }

    .quote-builder-table td {
        grid-template-columns: 1fr;
        gap: 0.45rem;
        align-items: stretch;
    }

    .quote-builder-table td::before {
        margin-bottom: 0.1rem;
    }

    .quote-builder-table .remove-row,
    .quote-builder-table .row-total {
        justify-self: flex-start;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 1rem), var(--max-width));
    }

    .page-shell {
        padding: 1rem 0 2.4rem;
    }

    .home-hero {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .home-hero-panel,
    .home-proof-item,
    .home-service-card,
    .home-panel {
        padding: 1.25rem;
    }

    .home-inline-points {
        gap: 0.6rem;
    }

    .home-inline-points li {
        width: 100%;
        text-align: center;
    }

    .home-contact-actions {
        grid-template-columns: 1fr;
    }

    .home-contact-email {
        grid-column: auto;
    }

    .header-shell,
    .footer-shell {
        padding: 0.85rem 0;
    }

    .header-shell {
        flex-direction: row;
        align-items: center;
        min-height: 46px;
    }

    .menu-toggle {
        min-width: 108px;
        padding: 0.5rem 0.8rem;
        gap: 0.5rem;
    }

    .menu-toggle-text {
        font-size: 0.88rem;
    }

    .main-nav {
        gap: 0.45rem;
    }

    .main-nav a {
        width: 100%;
    }

    .stack-mobile td {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .form-actions .button,
    .form-actions button,
    .section-heading .button,
    .filter-actions .button {
        width: 100%;
    }
}

@media print {
    body {
        background: #fff;
    }

    .site-header,
    .site-footer,
    .print-hidden {
        display: none !important;
    }

    .page-shell {
        padding: 0;
    }

    .card,
    .printable-quote {
        border: 0;
        padding: 0;
        box-shadow: none;
    }

    .signature-line {
        border-color: #000;
    }
}
