:root {
    --bg: #f4efe6;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #fffdf8;
    --text: #1f1d1a;
    --muted: #5f5a54;
    --accent: #0f766e;
    --accent-dark: #0b4f4a;
    --highlight: #ef8354;
    --border: rgba(31, 29, 26, 0.1);
    --shadow: 0 18px 60px rgba(31, 29, 26, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(239, 131, 84, 0.18), transparent 22%),
        linear-gradient(180deg, #f8f3ea 0%, #f2ebdf 100%);
    font-family: "Space Grotesk", sans-serif;
}

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

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

.page-shell,
.draft-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-shell {
    padding: 24px 0 40px;
}

.site-header,
.site-footer,
.hero,
.section-grid,
.split-section,
.cta-band,
.form-hero,
.success-panel,
.admin-header,
.detail-card,
.form-section,
.table-wrap {
    backdrop-filter: blur(16px);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.site-header,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-radius: 999px;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 20;
}

.brand,
.footer-brand {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-cta {
    background: var(--accent);
    color: #fff;
}

.hero,
.form-hero,
.admin-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    padding: 42px;
    margin-top: 26px;
    border-radius: 32px;
}

.hero h1,
.form-hero h1,
.success-panel h1,
.admin-header h1,
.draft-hero h1 {
    margin: 0;
    font-family: "Instrument Serif", serif;
    font-size: clamp(2.6rem, 5vw, 5.1rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-text,
.draft-lead,
.draft-copy {
    font-size: 1.06rem;
    line-height: 1.75;
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-actions,
.admin-actions,
.form-actions,
.status-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #14978d 100%);
    color: #fff;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--border);
}

.hero-panel,
.stat-card,
.floating-note,
.mini-card,
.warning-card,
.quote-card,
.offer-card,
.feature-card,
.service-card,
.quote-tile {
    border-radius: 24px;
}

.hero-panel {
    position: relative;
    min-height: 360px;
}

.stat-card {
    position: absolute;
    inset: 0 14% 14% 0;
    display: grid;
    gap: 10px;
    padding: 28px;
    background: linear-gradient(160deg, #13251f 0%, #0d433f 100%);
    color: #f7f2e9;
}

.stat-label {
    color: rgba(247, 242, 233, 0.72);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.floating-note,
.mini-card,
.warning-card,
.quote-card,
.offer-card,
.feature-card,
.service-card,
.quote-tile,
.detail-card,
.form-section,
.table-wrap,
.success-panel,
.cta-band {
    background: var(--surface-strong);
}

.floating-note {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 240px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    background: linear-gradient(135deg, rgba(239, 131, 84, 0.94), rgba(201, 87, 38, 0.94));
}

.section-grid,
.split-section,
.cta-band,
.success-panel,
.table-wrap {
    margin-top: 26px;
    padding: 34px;
    border-radius: 32px;
}

.section-heading {
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.section-heading h2,
.detail-card h2,
.form-section h2,
.draft-section h2 {
    margin: 0;
    font-family: "Instrument Serif", serif;
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
}

.section-heading.compact h2,
.detail-card h2,
.form-section h2,
.draft-section h2 {
    font-size: 1.8rem;
}

.feature-grid,
.offer-grid,
.detail-grid,
.service-grid,
.testimonial-grid {
    display: grid;
    gap: 18px;
}

.feature-grid,
.offer-grid,
.service-grid,
.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.offer-card,
.service-card,
.quote-tile {
    padding: 24px;
    border: 1px solid var(--border);
}

.feature-card h3,
.offer-card h3,
.service-card h3 {
    margin: 0 0 10px;
}

.feature-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-bottom: 14px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent-dark);
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 26px;
    align-items: center;
}

.bullet-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
}

.quote-card {
    padding: 28px;
    border: 1px solid var(--border);
    font-family: "Instrument Serif", serif;
    font-size: 1.6rem;
    line-height: 1.2;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.flash {
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.flash-error {
    background: rgba(211, 73, 73, 0.08);
}

.flash-warning {
    background: rgba(239, 131, 84, 0.1);
}

.intake-form {
    display: grid;
    gap: 22px;
    margin-top: 26px;
}

.form-section,
.detail-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 28px;
}

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

.full-width {
    grid-column: 1 / -1;
}

label,
fieldset {
    display: grid;
    gap: 8px;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(31, 29, 26, 0.16);
    border-radius: 18px;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.9);
}

textarea {
    resize: vertical;
    line-height: 1.6;
}

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

fieldset {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
}

legend {
    padding: 0 8px;
    font-weight: 700;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

.checkbox-option input {
    width: auto;
}

.form-note,
.meta-line,
.site-footer,
.file-list,
.draft-meta {
    color: var(--muted);
}

.success-panel {
    text-align: center;
}

.admin-header {
    align-items: start;
}

.warning-card,
.mini-card {
    display: grid;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--border);
    align-content: start;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.status-pill,
.draft-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}

.status-new,
.draft-pill {
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent-dark);
}

.status-reviewing {
    background: rgba(239, 131, 84, 0.14);
}

.status-drafting {
    background: rgba(9, 132, 227, 0.14);
}

.status-revision {
    background: rgba(155, 81, 224, 0.12);
}

.status-launched {
    background: rgba(46, 204, 113, 0.12);
}

.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
}

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

.preserve-breaks {
    white-space: pre-line;
    line-height: 1.7;
}

.outline-stack,
.file-list {
    display: grid;
    gap: 12px;
}

.outline-item {
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.outline-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.draft-body {
    background:
        radial-gradient(circle at 10% 10%, rgba(15, 118, 110, 0.18), transparent 24%),
        radial-gradient(circle at 90% 20%, rgba(239, 131, 84, 0.16), transparent 20%),
        linear-gradient(180deg, #14201d 0%, #0e1615 100%);
    color: #f8f4ec;
}

.draft-shell {
    padding: 32px 0 60px;
}

.draft-hero,
.draft-section {
    margin-top: 22px;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
}

.draft-meta,
.pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.gallery-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 22px;
}

.draft-contact {
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .site-header,
    .site-footer,
    .cta-band,
    .hero,
    .form-hero,
    .admin-header,
    .split-section {
        border-radius: 28px;
    }

    .hero,
    .form-hero,
    .admin-header,
    .split-section,
    .cta-band,
    .detail-grid,
    .detail-grid-wide,
    .checkbox-grid,
    .feature-grid,
    .offer-grid,
    .service-grid,
    .testimonial-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .site-header,
    .site-footer,
    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-shell,
    .draft-shell {
        width: min(100% - 20px, 1180px);
    }

    .site-header,
    .site-footer,
    .hero,
    .section-grid,
    .split-section,
    .cta-band,
    .form-hero,
    .success-panel,
    .admin-header,
    .form-section,
    .detail-card,
    .table-wrap,
    .draft-hero,
    .draft-section {
        padding: 22px;
    }

    .hero h1,
    .form-hero h1,
    .success-panel h1,
    .admin-header h1,
    .draft-hero h1 {
        font-size: 2.5rem;
    }
}
