:root {
    --ink: #12212b;
    --muted: #5c6b75;
    --line: #dce6ee;
    --paper: #ffffff;
    --soft: #f5f8fa;
    --navy: #153e52;
    --green: #1e8a6a;
    --gold: #f2b84b;
    --coral: #ef6262;
    --shadow: 0 18px 60px rgba(18, 33, 43, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

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

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

.site-header,
.admin-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(20px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #fff;
    background: var(--navy);
    font-size: 14px;
    letter-spacing: 0;
}

.site-nav,
.admin-header nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}

.site-nav a:hover,
.admin-header a:hover,
.text-link:hover {
    color: var(--green);
}

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

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
    min-height: calc(100vh - 74px);
    padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 72px) 46px;
    background:
        linear-gradient(125deg, rgba(30, 138, 106, 0.11), transparent 34%),
        linear-gradient(310deg, rgba(242, 184, 75, 0.18), transparent 30%),
        var(--soft);
}

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

.eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(46px, 8vw, 96px);
    line-height: 0.95;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(30px, 4.2vw, 54px);
    line-height: 1.05;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.22;
}

.hero-lead {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 22px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

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

.btn.secondary {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
}

.btn.tertiary {
    width: 100%;
    color: var(--ink);
    background: var(--gold);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 42px 0 0;
}

.hero-stats div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-stats dt {
    font-size: 24px;
    font-weight: 900;
}

.hero-stats dd {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.hero-visual img {
    width: 100%;
    filter: drop-shadow(0 24px 42px rgba(18, 33, 43, 0.16));
}

.section,
.page-heading,
.article-page,
.subpage {
    padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.74fr);
    gap: clamp(24px, 5vw, 72px);
}

.section-copy p,
.page-heading p {
    margin-top: 0;
    color: var(--muted);
    font-size: 18px;
}

.section-head {
    max-width: 820px;
    margin-bottom: 30px;
}

.section-head.row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    max-width: none;
}

.service-grid,
.pricing-grid,
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card,
.article-card,
.price-card,
.login-panel,
.admin-table-wrap,
.admin-stats div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 12px 32px rgba(18, 33, 43, 0.06);
}

.service-card,
.article-card,
.price-card {
    padding: 24px;
}

.service-card p,
.article-card p,
.price-card li {
    color: var(--muted);
}

.service-card a,
.text-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--green);
    font-weight: 800;
}

.dark-band {
    color: #fff;
    background: var(--navy);
}

.dark-band .eyebrow,
.dark-band .price-card p:first-child {
    color: var(--gold);
}

.price-card {
    color: var(--ink);
}

.price-card ul {
    min-height: 112px;
    padding-left: 20px;
}

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

.timeline div {
    padding: 28px 0;
    border-top: 2px solid var(--line);
}

.timeline span {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--coral);
    font-weight: 900;
}

.faq {
    background: var(--soft);
}

details {
    max-width: 940px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

summary {
    cursor: pointer;
    font-size: 20px;
    font-weight: 850;
}

details p {
    color: var(--muted);
}

.final-cta {
    margin: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 72px);
    padding: clamp(36px, 6vw, 72px);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), var(--navy));
}

.final-cta h2 {
    max-width: 920px;
    margin-bottom: 24px;
}

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

.article-card span,
.status {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--green);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.article-detail {
    max-width: 860px;
    margin: 0 auto;
}

.article-detail h1 {
    margin-top: 18px;
    font-size: clamp(38px, 5vw, 72px);
}

.article-excerpt {
    color: var(--muted);
    font-size: 21px;
}

.article-content {
    margin-top: 34px;
    font-size: 18px;
}

.article-content p,
.article-content li {
    color: #2e3b44;
}

.article-cta {
    margin-top: 42px;
    padding: 28px;
    border-radius: 8px;
    background: var(--soft);
}

.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    color: #fff;
    background: #25d366;
    box-shadow: var(--shadow);
    font-weight: 900;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 28px clamp(20px, 5vw, 72px);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer div {
    display: flex;
    gap: 16px;
}

.admin-body {
    min-height: 100vh;
    background: var(--soft);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(100%, 430px);
    padding: 30px;
}

.login-panel h1 {
    margin-top: 24px;
    font-size: 36px;
}

.alert {
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 8px;
    color: #8a2020;
    background: #ffe8e8;
}

.admin-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.admin-main.narrow {
    max-width: 900px;
}

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

.admin-heading h1 {
    font-size: 40px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-stats div {
    padding: 22px;
}

.admin-stats span {
    font-size: 34px;
    font-weight: 900;
}

.admin-stats p {
    margin: 0;
    color: var(--muted);
}

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

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

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

.admin-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.status {
    margin: 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e7f3ef;
}

.status.draft {
    color: #8b6418;
    background: #fff3d8;
}

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

.actions button {
    padding: 0;
    border: 0;
    color: var(--coral);
    background: transparent;
    cursor: pointer;
    font: inherit;
}

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

.editor-form {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

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

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

.admin-form textarea {
    resize: vertical;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 74px;
        right: 20px;
        left: 20px;
        display: none;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow);
        flex-direction: column;
    }

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

    .site-nav.simple {
        position: static;
        display: flex;
        flex-direction: row;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .hero,
    .split,
    .service-grid,
    .pricing-grid,
    .article-grid,
    .article-grid.wide,
    .timeline {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-stats,
    .admin-stats,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-head.row,
    .site-footer,
    .admin-heading,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-header nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 12px 16px;
    }

    .site-nav.simple {
        gap: 10px;
        font-size: 13px;
    }

    .hero-stats {
        gap: 8px;
    }

    .btn {
        width: 100%;
    }

    .wa-float {
        right: 14px;
        bottom: 14px;
        width: 56px;
        height: 56px;
    }
}

