:root {
    --bg: #f4efe8;
    --bg-alt: #fff8ef;
    --surface: rgba(255, 252, 248, 0.9);
    --surface-strong: #fffdf9;
    --ink: #192126;
    --muted: #5d6a70;
    --line: rgba(25, 33, 38, 0.12);
    --line-strong: rgba(25, 33, 38, 0.2);
    --accent: #ff6f3d;
    --accent-dark: #df5626;
    --accent-soft: rgba(255, 111, 61, 0.14);
    --teal: #0a8f8f;
    --teal-soft: rgba(10, 143, 143, 0.12);
    --admin-bg: #f3f5f6;
    --shadow: 0 18px 48px rgba(25, 33, 38, 0.08);
    --radius: 24px;
    --radius-sm: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Instrument Sans", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 111, 61, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(10, 143, 143, 0.15), transparent 24%),
        linear-gradient(180deg, #f8f3eb 0%, #f3efe8 100%);
}

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

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

textarea {
    resize: vertical;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(760px, 100%);
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(244, 239, 232, 0.82);
    border-bottom: 1px solid rgba(25, 33, 38, 0.08);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark strong,
.brand-mark h1,
.brand-mark h2 {
    display: block;
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
}

.brand-mark small {
    display: block;
    color: var(--muted);
}

.brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ffb36f);
    box-shadow: 0 0 0 8px rgba(255, 111, 61, 0.12);
}

.site-nav,
.admin-actions,
.action-row,
.checkbox-row,
.hero-actions,
.quick-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--ink);
    background: rgba(25, 33, 38, 0.05);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 10px 16px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ff9158);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(255, 111, 61, 0.2);
}

.button:hover {
    transform: translateY(-1px);
}

.button.secondary {
    background: linear-gradient(135deg, var(--teal), #22a9a9);
    box-shadow: 0 12px 24px rgba(10, 143, 143, 0.16);
}

.button.ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    box-shadow: none;
}

.button.small {
    padding: 9px 13px;
    font-size: 0.88rem;
}

.text-link {
    color: var(--accent-dark);
    font-weight: 700;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--teal);
    font-weight: 700;
}

.lead {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.flash,
.notice-card {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.flash.success {
    border-color: rgba(10, 143, 143, 0.25);
    background: rgba(10, 143, 143, 0.08);
}

.flash.error {
    border-color: rgba(223, 86, 38, 0.24);
    background: rgba(223, 86, 38, 0.08);
}

.hero,
.page-hero {
    padding: 72px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}

.hero-copy h1,
.page-hero h1,
.login-card h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-panel,
.hero-card,
.content-card,
.pricing-card,
.service-panel,
.panel-card,
.metric-card,
.stat-card,
.login-card,
.surface-form,
.inline-form-card,
.inline-editor {
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow);
}

.hero-card,
.panel-card,
.surface-form,
.login-card,
.service-panel,
.content-card,
.pricing-card,
.inline-form-card,
.inline-editor {
    padding: 24px;
}

.hero-card {
    min-height: 100%;
    background:
        linear-gradient(160deg, rgba(255, 111, 61, 0.12), rgba(10, 143, 143, 0.08)),
        var(--surface);
}

.badge,
.mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(25, 33, 38, 0.06);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.badge {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.check-list,
.check-list.compact {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--teal));
}

.stat-grid,
.card-grid,
.pricing-grid,
.stats-strip,
.field-grid,
.service-panel-grid,
.admin-grid,
.contact-grid,
.footer-grid {
    display: grid;
    gap: 18px;
}

.stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

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

.stat-card {
    padding: 20px;
}

.stat-card strong,
.metric-card strong,
.price {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.7rem;
    margin-bottom: 8px;
}

.stat-card span,
.metric-card span,
.content-card p,
.card-note span,
.service-panel p,
.panel-card p,
table small {
    color: var(--muted);
}

.section {
    padding: 44px 0;
}

.section.alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.14));
}

.section-head,
.panel-head,
.service-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-head h2,
.panel-head h2,
.service-panel h2 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.content-card,
.service-panel {
    position: relative;
    overflow: hidden;
}

.content-card::after,
.service-panel::after,
.pricing-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 111, 61, 0.16), transparent 65%);
}

.card-note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 6px;
}

.pricing-card.featured {
    border-color: rgba(255, 111, 61, 0.28);
    transform: translateY(-4px);
}

.price-sub {
    margin: -4px 0 0;
    font-weight: 700;
}

.price-sub span {
    font-weight: 500;
    color: var(--muted);
}

.contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
}

.surface-form,
.inline-editor,
.inline-form-card {
    display: grid;
    gap: 14px;
}

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

label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

label span {
    font-size: 0.92rem;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    padding: 13px 14px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 111, 61, 0.35);
    box-shadow: 0 0 0 4px rgba(255, 111, 61, 0.1);
}

.checkbox-row,
.checkbox-line {
    color: var(--muted);
}

.checkbox-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.checkbox-line input,
.checkbox-row input {
    width: auto;
}

.footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
}

.site-footer {
    padding: 44px 0 56px;
    color: var(--muted);
}

.login-wrap {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 40px 16px 80px;
}

.login-card {
    width: min(560px, 100%);
}

.service-stack {
    display: grid;
    gap: 22px;
}

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

.service-panel-grid .wide {
    grid-column: 1 / -1;
}

.admin-shell {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: var(--admin-bg);
}

.admin-sidebar {
    padding: 24px;
    border-right: 1px solid rgba(25, 33, 38, 0.08);
    background: linear-gradient(180deg, #f9fafb 0%, #eef1f3 100%);
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    margin-bottom: 28px;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--muted);
    transition: 0.2s ease;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(25, 33, 38, 0.07);
}

.admin-main {
    padding: 28px;
}

.admin-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-header h1 {
    margin: 4px 0 0;
    font-family: "Space Grotesk", sans-serif;
}

.admin-user {
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
}

.admin-section {
    display: grid;
    gap: 22px;
}

.stats-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric-card {
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(25, 33, 38, 0.08);
}

.admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

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

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

th,
td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(25, 33, 38, 0.08);
    vertical-align: top;
}

th {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

td strong {
    display: block;
}

td small {
    display: block;
    margin-top: 4px;
}

.stack-list {
    display: grid;
    gap: 14px;
}

@media (max-width: 1100px) {
    .hero-grid,
    .contact-grid,
    .admin-grid,
    .stats-strip,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        left: 16px;
        padding: 12px;
        border-radius: 22px;
        background: rgba(255, 251, 246, 0.98);
        border: 1px solid rgba(25, 33, 38, 0.08);
        box-shadow: var(--shadow);
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
    }

    .hero-copy h1,
    .page-hero h1,
    .login-card h1 {
        font-size: 2.2rem;
    }

    .stat-grid,
    .field-grid,
    .service-panel-grid,
    .card-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .panel-head,
    .service-panel-head,
    .admin-header {
        align-items: start;
        flex-direction: column;
    }

    .admin-main {
        padding: 18px;
    }
}
