@font-face {
    font-family: "JetBrains Sans";
    src: url("fonts/JetBrainsSans-Regular.woff2");
}

:root {
    --bg: #f2f3f5;
    --panel: #ffffff;
    --ink: #12161d;
    --muted: #5b6472;
    --accent: #d7432c;
    --accent-hover: #bb321d;
    --line: #d9dde4;
    --dark: #12161d;
    --dark-soft: #1c2230;
    --ok: #007d67;
    font-family: "JetBrains Sans", Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.45;
}

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

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.section {
    width: 100%;
}

.container {
    width: min(1120px, 100% - 2rem);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(242, 243, 245, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
}

.topbar-inner {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.brand {
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--muted);
}

.phone-cta {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    white-space: nowrap;
}

.hero {
    position: relative;
    min-height: 82vh;
    display: grid;
    align-items: end;
    isolation: isolate;
    padding: 6rem 0 4rem;
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-image {
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    z-index: -1;
    background: rgba(17, 21, 28, 0.66);
}

.hero-content {
    color: #f9fafb;
    display: grid;
    gap: 1rem;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0;
    font-weight: 700;
    color: #f1c5bd;
}

.hero h1 {
    font-size: 2.4rem;
    line-height: 1.1;
}

.hero-copy {
    max-width: 60ch;
    color: #edf0f5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-metrics {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-metrics p {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font-size: 0.86rem;
}

.button {
    border-radius: 8px;
    padding: 0.68rem 1rem;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease;
}

.button-solid {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.button-solid:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.full-width {
    width: 100%;
}

.section-light {
    padding: 4rem 0;
}

.section-dark {
    padding: 4rem 0;
    background: var(--dark);
    color: #e7ecf5;
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.service-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    display: grid;
    gap: 0.6rem;
}

.service-item h3 {
    font-size: 1.05rem;
}

.service-item p {
    color: var(--muted);
    font-size: 0.92rem;
}

.service-item .service-meta {
    color: var(--ok);
    font-weight: 700;
}

.grid-two {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 1.1rem;
}

.tool-form,
.tool-output {
    border: 1px solid #2a3343;
    border-radius: 8px;
    background: var(--dark-soft);
    padding: 1rem;
}

.section-light .tool-form,
.section-light .tool-output {
    background: var(--panel);
    border-color: var(--line);
}

.tool-form {
    display: grid;
    gap: 0.8rem;
}

.tool-form label,
.tool-form legend {
    font-size: 0.88rem;
    font-weight: 650;
}

input,
select,
button {
    font: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="date"],
input:not([type]),
select,
textarea {
    min-height: 2.45rem;
    border-radius: 8px;
    border: 1px solid #3a4457;
    background: #0f131b;
    color: #e7ecf5;
    padding: 0.45rem 0.65rem;
}

.section-light input[type="text"],
.section-light input[type="email"],
.section-light input[type="tel"],
.section-light input[type="search"],
.section-light input[type="date"],
.section-light input:not([type]),
.section-light select,
.section-light textarea {
    background: #fff;
    color: var(--ink);
    border-color: #c7cfdb;
}

textarea {
    resize: vertical;
}

code {
    font-size: 0.88em;
}

.section-copy {
    max-width: 64ch;
    color: var(--muted);
    margin: -0.5rem 0 1rem;
}

.section-dark .section-copy {
    color: #b8c4d7;
}

.form-status {
    min-height: 1.2rem;
    color: #b8c4d7;
    font-size: 0.88rem;
}

.form-status.success {
    color: #88d8c3;
}

.form-status.error {
    color: #ffb4a7;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.choices {
    border: 1px solid #3a4457;
    border-radius: 8px;
    padding: 0.7rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.65rem;
}

.section-light .choices {
    border-color: #c7cfdb;
}

.choices label,
.segmented label,
.toggle {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.88rem;
}

.segmented {
    border: 1px solid #3a4457;
    border-radius: 8px;
    padding: 0.65rem;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.section-light .segmented {
    border-color: #c7cfdb;
}

.price {
    font-size: 2rem;
    font-weight: 750;
    color: #f8c782;
    margin: 0.6rem 0 0.3rem;
}

.section-light .price {
    color: var(--accent);
}

.eta {
    color: #b8c4d7;
    margin-bottom: 0.7rem;
}

.section-light .eta {
    color: var(--muted);
}

.tool-output ul {
    margin: 0;
    padding-left: 1.05rem;
    display: grid;
    gap: 0.35rem;
}

#build-tier {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

#budget-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

.ticket-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.ticket-form label {
    font-size: 0.82rem;
    color: #b8c4d7;
}

.ticket-form > *:nth-child(2n) {
    margin-top: 0.15rem;
}

.queue-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.queue-filter {
    min-height: 2.2rem;
    border-radius: 8px;
    border: 1px solid #3a4457;
    color: #e7ecf5;
    background: #1b2130;
    padding: 0 0.8rem;
    cursor: pointer;
}

.queue-filter.active {
    border-color: #f8c782;
    color: #f8c782;
}

.section-light .queue-filter {
    background: #fff;
    border-color: #c7cfdb;
    color: var(--ink);
}

.section-light .queue-filter.active {
    border-color: var(--accent);
    color: var(--accent);
}

.section-heading-row {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 320px);
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.directory-search input {
    width: 100%;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.directory-card,
.blog-card,
.featured-post,
.chat-panel {
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.directory-card,
.blog-card {
    padding: 1rem;
    display: grid;
    gap: 0.6rem;
}

.directory-card h3,
.blog-card h3,
.featured-post h3 {
    font-size: 1.05rem;
}

.directory-card p,
.blog-card p,
.featured-post p {
    color: var(--muted);
    font-size: 0.92rem;
}

.directory-meta,
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 1.6rem;
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
    background: #edf0f5;
    color: #344054;
    font-size: 0.76rem;
    font-weight: 700;
}

.directory-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 1rem;
}

.featured-post {
    padding: 1.1rem;
    align-self: start;
    display: grid;
    gap: 0.75rem;
    background: #1c2230;
    border-color: #2a3343;
}

.featured-post h3,
.featured-post p {
    color: #e7ecf5;
}

.featured-post .post-meta .tag {
    background: #2c3548;
    color: #f8c782;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.blog-card {
    background: #1c2230;
    border-color: #2a3343;
}

.blog-card h3 {
    color: #e7ecf5;
}

.blog-card p {
    color: #b8c4d7;
}

.quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chat-panel {
    display: grid;
    grid-template-rows: minmax(280px, 360px) auto;
    overflow: hidden;
}

.chat-messages {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    padding: 0.9rem;
    overflow-y: auto;
    background: #f8fafc;
}

.chat-message {
    max-width: 86%;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
}

.chat-message.user {
    justify-self: end;
    background: var(--accent);
    color: #fff;
}

.chat-message.assistant {
    justify-self: start;
    background: #e8edf5;
    color: var(--ink);
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
    padding: 0.75rem;
    border-top: 1px solid var(--line);
    background: #fff;
}

.chat-form input {
    width: 100%;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #2a3343;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

th,
td {
    padding: 0.7rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid #2a3343;
    font-size: 0.88rem;
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.status-select {
    min-height: 2rem;
    border-radius: 8px;
    background: #0f131b;
    color: #dbe3f2;
    border: 1px solid #3a4457;
    padding: 0 0.4rem;
}

.priority-tag {
    display: inline-block;
    border-radius: 8px;
    padding: 0.22rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.priority-normal {
    background: #1f2f44;
}

.priority-priority {
    background: #5e3a14;
}

.priority-emergency {
    background: #5d1e1e;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 0 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.footer-inner h2 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.footer-inner p {
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.footer-image-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.footer-image-stack img {
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ticket-form button {
        width: 100%;
    }

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

    .blog-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .topbar-inner {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 0.65rem 0;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero {
        min-height: 74vh;
        padding: 4.8rem 0 2.8rem;
    }

    .hero h1 {
        font-size: 1.95rem;
    }

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

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

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

    .section-heading-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .directory-grid,
    .blog-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(1120px, 100% - 1.2rem);
    }

    .section-light,
    .section-dark {
        padding: 2.8rem 0;
    }

    .hero-metrics {
        flex-direction: column;
    }

    .hero-metrics p {
        width: 100%;
    }

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

    .section h2 {
        font-size: 1.5rem;
    }

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

    .chat-form button {
        width: 100%;
    }
}
