:root {
    --ink: #162033;
    --muted: #667085;
    --soft: #f5f7fb;
    --line: #d9e1ee;
    --brand: #123c69;
    --brand-2: #0b253f;
    --accent: #f7a51d;
    --accent-dark: #d98200;
    --success: #ecfdf3;
    --success-ink: #027a48;
    --error: #fff1f3;
    --error-ink: #b42318;
    --card: #ffffff;
    --shadow: 0 20px 45px rgba(16, 24, 40, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #ffffff;
    line-height: 1.55;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark strong,
.brand-mark small {
    display: block;
}

.brand-mark strong {
    font-size: 20px;
    letter-spacing: -0.03em;
}

.brand-mark small {
    color: var(--muted);
    font-size: 12px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-weight: 800;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.top-nav a:hover {
    color: var(--brand);
}

.phone-link {
    color: white !important;
    background: var(--brand);
    padding: 10px 14px;
    border-radius: 999px;
}

.hero {
    background:
        radial-gradient(circle at 80% 10%, rgba(247, 165, 29, 0.28), transparent 30%),
        linear-gradient(135deg, #eef4fb 0%, #ffffff 50%, #fff7e8 100%);
    padding: 72px 0 54px;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
    gap: 32px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 800;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    max-width: 720px;
    color: #475467;
    font-size: 20px;
}

.search-box {
    max-width: 820px;
    margin: 28px 0 20px;
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.search-box label {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.search-row {
    display: flex;
    gap: 10px;
}

.search-row input {
    flex: 1;
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 16px;
    font-size: 16px;
}

.search-row button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    min-height: 52px;
    padding: 0 20px;
    font-weight: 800;
    cursor: pointer;
}

.search-row button,
.btn.primary {
    color: white;
    background: var(--accent);
}

.search-row button:hover,
.btn.primary:hover {
    background: var(--accent-dark);
}

.btn.secondary {
    color: white;
    background: var(--brand);
}

.btn.small {
    min-height: 42px;
    padding: 0 14px;
    color: white;
    background: var(--brand);
    border-radius: 12px;
    font-size: 14px;
}

.btn.full {
    width: 100%;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-card {
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.hero-card h2 {
    font-size: 26px;
}

.hero-card ul {
    margin: 0 0 18px;
    padding-left: 20px;
}

.hero-card li {
    margin-bottom: 8px;
    font-weight: 700;
}

.alert {
    margin-top: 22px;
    padding: 16px;
    border-radius: 16px;
    color: var(--error-ink);
    background: var(--error);
}

.proof-strip {
    transform: translateY(-24px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.proof-strip div {
    padding: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.08);
}

.proof-strip strong,
.proof-strip span {
    display: block;
}

.proof-strip span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.section-block {
    padding: 52px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 26px;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 17px;
}

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

.text-link {
    color: var(--brand);
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    min-height: 165px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: white;
    background:
        linear-gradient(180deg, rgba(18, 60, 105, 0.4), rgba(11, 37, 63, 0.92)),
        linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 24px;
    overflow: hidden;
}

.category-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 21px;
    line-height: 1.1;
    font-weight: 900;
}

.category-card small {
    color: rgba(255, 255, 255, 0.82);
}

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

.part-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.part-image {
    height: 145px;
    display: grid;
    place-items: center;
    color: white;
    background:
        radial-gradient(circle at 25% 20%, rgba(247, 165, 29, 0.55), transparent 30%),
        linear-gradient(135deg, var(--brand), var(--brand-2));
}

.part-image span {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    font-size: 24px;
    font-weight: 900;
}

.part-body {
    padding: 20px;
}

.part-meta {
    margin-bottom: 8px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.part-card h3 {
    margin-bottom: 4px;
    font-size: 25px;
    letter-spacing: -0.03em;
}

.part-card h4 {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 16px;
}

.part-card p {
    color: var(--muted);
}

.part-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.part-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.empty-state {
    padding: 36px;
    background: var(--soft);
    border: 1px dashed var(--line);
    border-radius: 24px;
}

.brand-section {
    padding: 60px 0;
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.brand-grid a {
    padding: 18px;
    text-align: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    font-weight: 900;
}

.brand-grid a:hover {
    color: white;
    background: var(--brand);
}

.quote-section {
    padding: 70px 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(247, 165, 29, 0.20), transparent 30%),
        linear-gradient(135deg, #ffffff, #eef4fb);
}

.quote-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 34px;
    align-items: start;
}

.quote-callout {
    margin-top: 24px;
    padding: 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.quote-callout strong,
.quote-callout a {
    display: block;
}

.quote-callout a {
    margin-top: 6px;
    color: var(--brand);
    font-size: 24px;
    font-weight: 900;
}

.quote-form {
    padding: 28px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    gap: 14px;
}

.form-row.two {
    grid-template-columns: repeat(2, 1fr);
}

.quote-form label {
    display: block;
    margin-bottom: 14px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
}

.quote-form textarea {
    resize: vertical;
}

.success-box,
.error-box {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
}

.success-box {
    color: var(--success-ink);
    background: var(--success);
}

.error-box {
    color: var(--error-ink);
    background: var(--error);
}

.error-box p {
    margin: 0;
}

.site-footer {
    padding: 28px 0;
    color: rgba(255, 255, 255, 0.78);
    background: var(--brand-2);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-grid strong,
.footer-grid a,
.footer-grid span,
.footer-grid p {
    display: block;
}

.footer-grid strong,
.footer-grid a {
    color: white;
    font-weight: 900;
}

.footer-grid p {
    margin: 4px 0 0;
}

.footer-grid span {
    margin-top: 4px;
}

@media (max-width: 980px) {
    .hero-grid,
    .quote-grid {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .parts-grid,
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-strip {
        grid-template-columns: 1fr;
        transform: none;
        padding-top: 20px;
    }
}

@media (max-width: 720px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .top-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero {
        padding: 42px 0;
    }

    .search-row {
        flex-direction: column;
    }

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

    .btn,
    .search-row button {
        width: 100%;
    }

    .category-grid,
    .parts-grid,
    .brand-grid,
    .form-row.two {
        grid-template-columns: 1fr;
    }

    .inline-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Phase 1B - Price Check */
.part-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn.alt {
    color: var(--brand);
    background: #fff7e8;
    border: 1px solid rgba(247, 165, 29, 0.45);
}

.btn.alt:hover {
    color: white;
    background: var(--accent-dark);
}

.price-check-section {
    padding: 70px 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(18, 60, 105, 0.14), transparent 28%),
        linear-gradient(135deg, #fffaf0, #ffffff);
    border-top: 1px solid var(--line);
}

.price-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: start;
}

.price-panel {
    padding: 32px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.price-panel p {
    color: var(--muted);
    font-size: 17px;
}

.price-example {
    margin-top: 24px;
    padding: 20px;
    background: var(--brand-2);
    color: white;
    border-radius: 22px;
}

.price-example span,
.price-example strong,
.price-example small {
    display: block;
}

.price-example span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.price-example strong {
    margin-top: 8px;
    font-size: 18px;
}

.price-example small {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
}

.admin-page {
    background: var(--soft);
}

.admin-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 60px;
}

.admin-header {
    margin-bottom: 22px;
    padding: 24px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    border-radius: 24px;
}

.admin-header h1 {
    margin-bottom: 6px;
    font-size: clamp(30px, 4vw, 46px);
}

.admin-card {
    margin-bottom: 22px;
    padding: 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

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

.admin-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 14px;
}

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

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--brand);
    background: var(--soft);
    font-size: 12px;
    font-weight: 900;
}

.login-box {
    width: min(460px, calc(100% - 32px));
    margin: 10vh auto;
    padding: 28px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

@media (max-width: 980px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .part-actions {
        flex-direction: column;
    }
}


/* Phase 1C - Admin Response Workflow */
.admin-response-form,
.admin-status-form {
    display: grid;
    gap: 10px;
    min-width: 260px;
}

.admin-response-form label,
.admin-status-form label {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.admin-response-form input,
.admin-response-form textarea,
.admin-response-form select,
.admin-status-form select {
    width: 100%;
    margin-top: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 11px;
    font: inherit;
    background: white;
}

.admin-response-form textarea {
    resize: vertical;
}

.savings-note {
    padding: 10px 12px;
    color: var(--success-ink);
    background: var(--success);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
}
