﻿/* MicronFix: one shared visual system for every customer page. */
:root {
    --bg: #f7f6f2;
    --surface: #fffefa;
    --surface-soft: #efeee8;
    --text: #202a2b;
    --text-soft: #606a69;
    --border: #dadcd5;
    --border-dark: #a2ada8;
    --primary: #285653;
    --primary-dark: #193e3b;
    --primary-soft: #e7eeea;
    --danger: #94342c;
    --danger-soft: #faf0ed;
    --success: #28573f;
    --success-soft: #edf3ec;
    --content-width: 1180px;
    --radius: 4px;
    --radius-large: 6px;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-editorial: Georgia, "Times New Roman", serif;
    --font-detail: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* Foundation */
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
}
::selection { background: #d3e3da; color: var(--text); }
a { color: var(--primary); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid #3d7772; outline-offset: 4px; }
h1, h2, h3, h4 { color: var(--text); margin: 0 0 16px; line-height: 1.2; font-weight: 550; }
h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.04em; }
h2 { font-size: 25px; letter-spacing: -.025em; }
h3 { font-size: 19px; letter-spacing: -.015em; }
p { margin: 0 0 18px; }
em { font-weight: inherit; }
main {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 52px 32px 80px;
    flex: 1;
    overflow-wrap: anywhere;
}
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.muted, .intro, .loading, .pricing-note, .helptext { color: var(--text-soft); }
.eyebrow, .micro-label { font: 11px/1.6 var(--font-detail); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.eyebrow { margin-bottom: 20px; }
.micro-label { margin-bottom: 12px; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 12px; background: var(--surface); z-index: 10; }
.skip-link:focus { top: 12px; }
.hidden { display: none !important; }

/* Shared navigation and footer */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-nav, .footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 25px; font-weight: 650; letter-spacing: -.055em; }
.brand:hover { color: var(--text); }
.brand-mark {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    border-radius: 2px;
    color: var(--primary);
    font: 11px var(--font-detail);
    letter-spacing: -.04em;
}
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; font-size: 13px; font-weight: 550; }
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links a:hover { color: var(--primary); }
.nav-primary { order: 1; }
.logout-form { margin: 0; }
.site-footer { margin-top: auto; border-top: 1px solid var(--border); }
.footer-inner { padding-top: 32px; padding-bottom: 32px; font-size: 12px; color: var(--text-soft); }
.footer-brand { margin-right: 10px; font-weight: 650; color: var(--text); }
.footer-inner a { text-decoration: none; }
.footer-contact { margin: 0; }
.footer-contact a { text-decoration: underline; }

/* Actions */
button, .button, .nav-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font: 550 14px/1.4 var(--font-body);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
button:hover, .button:hover, .nav-primary:hover { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }
.nav-links .nav-primary { color: #fff; font-size: 12px; min-height: 40px; padding: 10px 16px; }
.button-secondary { background: transparent; border-color: var(--border-dark); color: var(--text); }
.button-secondary:hover { background: var(--surface-soft); color: var(--primary-dark); border-color: var(--primary); }
.button-danger { background: transparent; color: var(--danger); border-color: #bc8a80; }
.button-danger:hover { background: var(--danger); color: white; border-color: var(--danger); }
.logout-button { min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--text-soft); font-size: 13px; }
.logout-button:hover { background: transparent; color: var(--primary); }
.text-link { display: inline-flex; align-items: center; gap: 16px; padding: 10px 0; font-size: 13px; font-weight: 550; }
.actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 28px; }
.submit-button { width: 100%; }
button:disabled { opacity: .6; cursor: not-allowed; }

/* Cards and forms: shared across accounts and repairs */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-large); padding: 36px; }
.card + .card { margin-top: 24px; }
.page-header { margin-bottom: 32px; }
.page-header p { color: var(--text-soft); }
.account-layout { max-width: 540px; margin: 16px auto 0; padding: 44px; border-top: 3px solid var(--primary); }
.account-layout h1 { font-family: var(--font-editorial); font-weight: 400; letter-spacing: -.045em; }
.account-layout > p { font-size: 14px; color: var(--text-soft); }
.account-layout form { margin: 30px 0 0; }
.account-layout form > button { width: 100%; }
.account-layout form + p { margin-top: 24px; }
.repair-form-layout { max-width: 760px; margin: 0 auto; border-top: 3px solid var(--primary); }
.repair-form-layout > h1 { font-family: var(--font-editorial); font-weight: 400; }
form { margin: 0; }
.field { margin-bottom: 24px; }
label { display: block; margin-bottom: 8px; color: var(--text); font-size: 13px; font-weight: 600; }
input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select, textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-dark);
    border-radius: 3px;
    background: var(--surface);
    color: var(--text);
    font: 16px/1.5 var(--font-body);
}
input::placeholder, textarea::placeholder { color: #6c7572; opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); vertical-align: middle; }
input[type=checkbox] + label { display: inline; margin-left: 8px; }
[aria-invalid=true] { border-color: var(--danger) !important; }
.helptext { display: block; margin-top: 8px; font-size: 12px; line-height: 1.55; }
.helptext ul { padding-left: 18px; }
.errorlist { margin: 8px 0 18px; padding-left: 20px; color: var(--danger); font-size: 13px; }
.inset, .price-box { margin: 26px 0; padding: 26px; background: var(--surface-soft); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 3px; }
.attention { background: #f7f2e7; border-color: #dcd1b9; border-left-color: #887043; }
.price, .price-value { font-size: 32px; letter-spacing: -.035em; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-heading { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.pricing-note, .loading { font-size: 13px; }
.decision { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.decision button { margin-top: 12px; }
.status-badge { display: inline-block; padding: 5px 9px; border: 1px solid #c4d6cc; border-radius: 3px; background: var(--primary-soft); color: var(--primary-dark); font: 500 12px/1.5 var(--font-body); vertical-align: middle; }
.message { margin: 0 0 12px; padding: 15px 18px; border: 1px solid var(--border); border-left-width: 3px; border-radius: 3px; background: var(--surface); font-size: 14px; }
.messages { margin-bottom: 28px; }
.message.success { background: var(--success-soft); border-color: #afc7b4; color: var(--success); }
.message.error { background: var(--danger-soft); border-color: #d2aaa3; color: var(--danger); }
.message.warning { background: #f7f2e7; border-color: #dcd1b9; color: #685522; }
.message.info { background: var(--primary-soft); border-color: #c4d6cc; color: var(--primary-dark); }
.history-row { padding: 22px 0; border-bottom: 1px solid var(--border); }
.history-row p { margin-bottom: 8px; }
.timeline { margin-top: 26px; padding-left: 6px; }
.timeline-item { position: relative; border-left: 1px solid var(--border-dark); padding: 0 0 30px 26px; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.timeline-item time { color: var(--text-soft); font: 11px/1.65 var(--font-detail); }
.timeline-item p { margin-top: 8px; font-size: 14px; }
.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 28px 0; }
.details dt { color: var(--text-soft); font-size: 12px; }
.details dd { margin: 5px 0 0; font-weight: 550; }
.postal-address { font-style: normal; margin-bottom: 18px; }

/* Homepage: an editorial composition using the same palette and components */
.home-page main { padding-top: 0; padding-bottom: 0; }
.home-page .messages { margin-top: 24px; }
.home-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 64px 0 58px; }
.hero-copy { min-width: 0; }
.hero-copy h1 { font: 400 clamp(38px, 4.4vw, 56px)/1.14 var(--font-editorial); letter-spacing: -.04em; margin-bottom: 24px; text-wrap: balance; }
.hero-copy h1 em { color: var(--primary); }
.hero-description { max-width: 380px; color: var(--text-soft); font-size: 15px; }
.home-contact { margin: 0 0 40px; color: var(--text-soft); font-size: 15px; }
.hero-note { margin-top: 30px; margin-bottom: 0; color: var(--text-soft); font: 10px/1.65 var(--font-detail); letter-spacing: .025em; }
.hero-equipment { margin: 0; min-width: 0; }
.hero-photo { position: relative; background: #e6e9eb; border-radius: 3px; overflow: hidden; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.image-index { position: absolute; z-index: 1; top: 20px; left: 20px; font: 10px var(--font-detail); letter-spacing: .09em; color: #43504e; }
.hero-equipment figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: var(--text-soft); font: 10px/1.6 var(--font-detail); }
.service-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px 0; }
.service-principles p { margin: 0; padding: 0 24px; border-left: 1px solid var(--border); font-size: 13px; }
.service-principles p:first-child { border-left: 0; padding-left: 0; }
.service-principles .micro-label { display: block; color: var(--text-soft); margin-bottom: 5px; font-size: 10px; }
.home-section { padding: 70px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 32px; }
.section-heading h2, .process-intro h2, .home-closing h2 { font-family: var(--font-editorial); font-size: clamp(30px, 3.2vw, 40px); font-weight: 400; letter-spacing: -.045em; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin: 0; color: var(--text-soft); font-size: 13px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card { min-width: 0; border-bottom: 1px solid var(--border); }
.service-image { border-radius: 3px; overflow: hidden; background: #e6e9eb; }
.equipment-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.service-card-content { padding: 22px 0 24px; }
.service-card-content h3 { font-size: 22px; font-weight: 500; margin-bottom: 12px; }
.service-card-content > p:last-child { color: var(--text-soft); font-size: 13px; margin-bottom: 0; max-width: 270px; }
.service-card-content .micro-label { color: var(--text-soft); font-size: 10px; }
.home-about {
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 48px;
    padding: 40px 0 56px;
    border-top: 1px solid var(--border);
}
.home-about h2, .feedback-section h2 {
    font-family: var(--font-editorial);
    font-size: clamp(30px, 3.2vw, 40px);
    font-weight: 400;
    letter-spacing: -.045em;
}
.about-copy p { max-width: 650px; color: var(--text-soft); font-size: 15px; }
.about-copy .about-ebay { font-size: 13px; margin-bottom: 0; }
.feedback-section { padding: 0 0 56px; }
.feedback-intro { color: var(--text-soft); font-size: 14px; }
.feedback-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feedback-card { min-width: 0; margin: 0; padding: 20px 0; border-top: 1px solid var(--border); }
.feedback-card blockquote { margin: 0 0 16px; font: 400 15px/1.7 var(--font-body); }
.feedback-card blockquote p { margin: 0; }
.feedback-card figcaption { color: var(--text-soft); font: 12px/1.6 var(--font-body); }
.process-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; padding: 52px 44px; background: #ecefe8; border-radius: 3px; margin-bottom: 60px; }
.process-intro .eyebrow { margin-bottom: 16px; }
.process-intro h2 em { color: var(--primary); }
.process-intro > p:not(.eyebrow) { color: var(--text-soft); font-size: 14px; max-width: 280px; }
.process-list { margin: 0; padding: 0; list-style: none; counter-reset: repair-step; }
.process-list li { counter-increment: repair-step; position: relative; border-top: 1px solid #ccd3c9; padding: 20px 0 20px 40px; }
.process-list li:first-child { border-top: 0; padding-top: 0; }
.process-list li:last-child { padding-bottom: 0; }
.process-list li::before { content: "0" counter(repair-step); position: absolute; left: 0; top: 22px; font: 10px var(--font-detail); color: var(--primary); }
.process-list li:first-child::before { top: 3px; }
.process-list h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.process-list p { color: var(--text-soft); font-size: 13px; margin-bottom: 0; }
.home-closing { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 62px; }
.home-closing h2 { margin-bottom: 0; }
.home-closing .eyebrow { margin-bottom: 14px; }

/* Responsive layouts retain readable widths and touch targets. */
@media (max-width: 960px) {
    .home-hero { gap: 30px; }
    .hero-copy .actions { gap: 14px; }
    .hero-copy h1 { font-size: 45px; }
    .process-section { gap: 40px; padding: 36px; }
    .hero-equipment figcaption span:last-child { display: none; }
}
@media (max-width: 720px) {
    .site-nav { align-items: flex-start; flex-direction: column; gap: 14px; padding: 18px 24px; }
    .nav-links { gap: 10px 20px; width: 100%; }
    .nav-primary { margin-left: auto; }
    main { padding: 32px 24px 52px; }
    .card { padding: 26px; }
    .home-hero { grid-template-columns: 1fr; padding: 38px 0; gap: 30px; }
    .hero-copy h1 { font-size: clamp(38px, 8vw, 54px); }
    .hero-photo img { aspect-ratio: 3 / 2; }
    .hero-description { max-width: 480px; }
    .hero-note { margin-top: 20px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .home-section { padding: 44px 0; }
    .service-grid { gap: 16px; }
    .home-about { grid-template-columns: 1fr; gap: 20px; padding-bottom: 44px; }
    .feedback-grid { grid-template-columns: 1fr; gap: 16px; }
    .feedback-section { padding-bottom: 44px; }
    .service-principles p { padding: 0 12px; font-size: 12px; }
    .service-principles .micro-label { font-size: 9px; }
    .process-section { grid-template-columns: 1fr; gap: 30px; padding: 28px; margin-bottom: 40px; }
    .process-intro > p:not(.eyebrow) { max-width: 480px; }
    .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding: 24px; }
}
@media (max-width: 520px) {
    main { padding-left: 18px; padding-right: 18px; }
    .site-nav { padding-left: 18px; padding-right: 18px; }
    .nav-links { gap: 8px 16px; }
    .nav-primary { margin-left: 0; }
    .card, .account-layout { padding: 24px; }
    .account-layout { margin-top: 0; }
    .inset, .price-box { padding: 20px; }
    .details, .service-grid { grid-template-columns: 1fr; }
    .service-image { max-height: 250px; }
    .service-card-content > p:last-child { max-width: none; }
    .service-principles { grid-template-columns: 1fr; padding: 0; }
    .service-principles p, .service-principles p:first-child { border-left: 0; padding: 14px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
    .service-principles p + p { border-top: 1px solid var(--border); }
    .service-principles .micro-label { min-width: 108px; margin: 0; font-size: 10px; }
    .actions { gap: 16px; }
    .actions .button { width: 100%; }
    .hero-copy .actions { align-items: flex-start; flex-direction: column; }
    .hero-copy .actions .button { width: auto; min-width: 170px; }
    .hero-photo img { aspect-ratio: 3 / 2; }
    .process-section { padding: 24px; }
    .home-closing { align-items: flex-start; flex-direction: column; padding-bottom: 40px; }
    .footer-brand { display: block; margin: 0 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
