/* Homepage layouts follow Fleet's shared --ui-* palette and public UI rules. */
.home-hero { padding: 56px 0 48px; border-bottom: 1px solid var(--ui-border); }
.home-hero-layout { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 64px; }
.home-hero-copy, .home-section-copy { min-width: 0; }
.home-hero h1 { max-width: 610px; font-size: clamp(28px, 3vw, 40px); line-height: 1.22; letter-spacing: -.8px; margin: 12px 0 20px; }
.home-lead { font-size: 16px; line-height: 1.75; max-width: 560px; color: var(--ui-muted); }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.home-hero-note { margin: 16px 0 0; color: var(--ui-muted); font-size: 13px; }
.business-overview { margin: 0; min-width: 0; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 8px; overflow: hidden; }
.business-overview figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; padding: 20px 24px; border-bottom: 1px solid var(--ui-border); }
.business-overview figcaption strong { font-weight: 600; }
.business-overview figcaption > span { font-size: 12px; color: var(--ui-muted); }
.business-flow { list-style: none; margin: 0; padding: 8px 24px; }
.business-flow li { display: grid; grid-template-columns: 32px minmax(0, 1fr) 24px; align-items: center; gap: 16px; position: relative; padding: 24px 0; }
.business-flow li + li { border-top: 1px solid var(--ui-border); }
.business-step { color: var(--ui-muted); font-size: 13px; align-self: start; padding-top: 3px; font-variant-numeric: tabular-nums; }
.business-label { color: var(--ui-accent); font-size: 12px; font-weight: 600; }
.business-flow h2 { font-size: 16px; line-height: 1.4; margin: 3px 0 4px; }
.business-flow p { color: var(--ui-muted); font-size: 13px; margin: 0; }
.business-flow svg { width: 24px; height: 24px; color: var(--ui-muted); }
.home-section { padding: 56px 0; }
.home-white-section, .home-services { background: var(--ui-surface); border-block: 1px solid var(--ui-border); }
.home-services { border-top: 0; padding-block: 36px 40px; }
.home-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; max-width: none; margin-bottom: 24px; }
.home-heading-row > div { min-width: 0; }
.home-heading-row h2 { margin-bottom: 0; }
.home-heading-row > p { max-width: 420px; color: var(--ui-muted); font-size: 14px; margin: 0; }
.home-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.home-service { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; border-top: 1px solid var(--ui-border); padding: 20px 0 0; color: var(--ui-text); text-decoration: none; }
.home-service-number { color: var(--ui-muted); font-size: 12px; margin-bottom: 12px; }
.home-service h3 { font-size: 18px; margin: 0 0 8px; }
.home-service p { color: var(--ui-muted); margin: 0 0 12px; }
.home-text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; color: var(--ui-accent); font-weight: 600; margin-top: auto; }
.home-service:hover .home-text-link { text-decoration: underline; text-underline-offset: 4px; }
.home-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.home-section-copy > h2 { font-size: 28px; line-height: 1.3; margin: 12px 0 16px; }
.home-section-copy > p { color: var(--ui-muted); max-width: 560px; }
.home-checklist { list-style: none; padding: 0; margin: 24px 0; }
.home-checklist li { padding-left: 24px; position: relative; margin-bottom: 12px; }
.home-checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ui-accent); font-weight: 600; }
.home-assortment, .home-fleet-overview { min-width: 0; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 8px; overflow: hidden; }
.home-panel-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 20px 24px; background: var(--ui-soft); border-bottom: 1px solid var(--ui-border); }
.home-panel-heading h3 { margin: 0; font-size: 16px; }
.home-panel-heading > span { font-size: 12px; color: var(--ui-muted); }
.home-assortment-list { margin: 0; padding: 0 24px; }
.home-assortment-list > div { padding: 16px 0; }
.home-assortment-list > div + div { border-top: 1px solid var(--ui-border); }
.home-assortment-list dt { font-weight: 600; margin-bottom: 4px; }
.home-assortment-list dd { margin: 0; color: var(--ui-muted); font-size: 13px; }
.home-panel-note { font-size: 12px; color: var(--ui-muted); border-top: 1px solid var(--ui-border); padding: 16px 24px; margin: 0; }
.home-coffee-visual { margin: 0; background: var(--ui-soft); border: 1px solid var(--ui-border); border-radius: 8px; overflow: hidden; }
.home-coffee-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; }
.home-coffee-visual figcaption { padding: 16px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.home-coffee-visual figcaption strong { font-weight: 600; }
.home-coffee-visual figcaption span { color: var(--ui-muted); font-size: 12px; }
.home-detail-list { margin: 24px 0; }
.home-detail-list > div { border-top: 1px solid var(--ui-border); padding: 12px 0; }
.home-detail-list dt { font-weight: 600; margin-bottom: 4px; }
.home-detail-list dd { color: var(--ui-muted); margin: 0; }
.home-erp-preview { margin: 0 0 24px; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 8px; overflow: hidden; }
.home-erp-flow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 24px 0; margin: 0; }
.home-erp-flow li { min-width: 0; position: relative; padding: 0 24px; }
.home-erp-flow li + li { border-left: 1px solid var(--ui-border); }
.home-erp-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -8px; top: 0; width: 16px; text-align: center; background: var(--ui-surface); color: var(--ui-muted); z-index: 1; }
.home-flow-number { display: block; font-size: 12px; font-weight: 600; color: var(--ui-accent); margin-bottom: 12px; }
.home-erp-flow h4 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.home-erp-flow p { color: var(--ui-muted); margin: 0; }
.home-module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.home-module-grid > div { min-width: 0; padding: 20px 0; border-bottom: 1px solid var(--ui-border); }
.home-module-grid dt { font-weight: 600; margin-bottom: 6px; }
.home-module-grid dd { color: var(--ui-muted); margin: 0; font-size: 13px; }
.home-product-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; }
.home-product-cta h3 { font-size: 18px; margin: 0 0 6px; }
.home-product-cta p { color: var(--ui-muted); margin: 0; }
.home-product-cta > .btn { flex-shrink: 0; }
.home-fleet-list { padding: 0 24px; margin: 0; }
.home-fleet-list > div { position: relative; padding: 24px 0 24px 44px; }
.home-fleet-list > div + div { border-top: 1px solid var(--ui-border); }
.home-fleet-list dt > span { position: absolute; left: 0; top: 26px; color: var(--ui-muted); font-size: 13px; font-weight: 400; }
.home-fleet-list dt { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.home-fleet-list dd { color: var(--ui-muted); margin: 0; }
.home-contact > .home-split { align-items: start; }
.home-contact-details { font-style: normal; display: grid; gap: 20px; margin-top: 32px; }
.home-contact-details > a, .home-contact-details > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; color: var(--ui-text); text-decoration: none; }
.home-contact-details span { color: var(--ui-muted); }
.home-contact-details strong { font-weight: 500; overflow-wrap: anywhere; }
.home-contact-details > a:hover strong { color: var(--ui-accent); text-decoration: underline; }
.home-contact-form { padding: 24px; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 8px; display: grid; min-width: 0; }
.home-form-heading h3 { font-size: 18px; margin: 0 0 8px; }
.home-form-heading p { color: var(--ui-muted); margin: 0 0 20px; }
.home-contact-form > label { margin: 0 0 6px; font-weight: 500; }
.home-contact-form > :is(input, select, textarea) { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; color: var(--ui-text); background: var(--ui-surface); border: 1px solid #8794a5; border-radius: 6px; font: inherit; margin: 0 0 16px; }
.home-contact-form > textarea { resize: vertical; }
.home-contact-form > .btn { justify-self: start; }
.home-form-note, .home-form-fallback { color: var(--ui-muted); font-size: 12px; margin: 0 0 16px; }
.home-form-fallback { margin: 12px 0 0; }
.home-contact-form :is(.home-form-note, .home-form-fallback) a { color: var(--ui-accent); text-decoration: underline; text-underline-offset: 3px; }
.home-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
    .home-hero-layout, .home-split { gap: 32px; }
    .home-hero { padding-block: 40px; }
    .home-heading-row { align-items: flex-start; }
    .home-heading-row > p { max-width: 340px; }
    .home-service-grid { gap: 20px; }
    .home-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-erp-flow li { padding-inline: 20px; }
    .home-section-copy > h2 { font-size: 26px; }
}

@media (max-width: 800px) {
    .home-hero-layout { grid-template-columns: 1fr; gap: 32px; }
    .home-hero h1 { font-size: 36px; max-width: 620px; }
    .home-lead { max-width: 640px; }
    .business-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
    .business-flow li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 20px; align-items: start; }
    .business-flow li + li { border-top: 0; border-left: 1px solid var(--ui-border); }
    .business-flow svg { display: none; }
    .business-flow h2 { font-size: 15px; }
    .business-flow p { margin-top: 8px; }
    .home-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .home-heading-row { display: block; }
    .home-heading-row > p { max-width: 600px; margin-top: 12px; }
    .home-split { grid-template-columns: 1fr; gap: 32px; }
    .home-section-copy > p { max-width: none; }
    .home-coffee-visual { order: 2; }
    .home-coffee-visual img { aspect-ratio: 1.6; }
    .home-erp-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
    .home-erp-flow li:nth-child(3) { border-left: 0; }
    .home-erp-flow li:nth-child(2)::after { display: none; }
    .home-product-cta { align-items: flex-start; }
    .home-contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-contact-details > a, .home-contact-details > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 540px) {
    .home-hero { padding-block: 32px; }
    .home-hero h1 { font-size: 30px; letter-spacing: -.5px; }
    .home-hero h1 br { display: none; }
    .home-lead { font-size: 15px; line-height: 1.65; }
    .home-actions { gap: 12px; margin-top: 20px; }
    .home-actions > .btn { width: 100%; }
    .business-overview figcaption { padding: 16px; }
    .business-flow { display: block; padding: 0 16px; }
    .business-flow li { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 20px 0; }
    .business-flow li + li { border-left: 0; border-top: 1px solid var(--ui-border); }
    .business-flow p { margin-top: 4px; }
    .home-section { padding-block: 32px; }
    .home-service-grid { grid-template-columns: 1fr; gap: 16px; }
    .home-service { padding-top: 16px; }
    .home-service-number { margin-bottom: 8px; }
    .home-service p { margin-bottom: 4px; }
    .home-text-link { min-height: 44px; }
    .home-split { gap: 24px; }
    .home-section-copy > h2 { font-size: 24px; }
    .home-panel-heading { padding: 16px; }
    .home-assortment-list, .home-fleet-list { padding-inline: 16px; }
    .home-panel-note { padding: 16px; }
    .home-coffee-visual img { aspect-ratio: 1.15; }
    .home-coffee-visual figcaption { padding: 16px; }
    .home-erp-flow { grid-template-columns: 1fr; padding: 0 16px; gap: 0; }
    .home-erp-flow li { padding: 16px 0 16px 36px; }
    .home-erp-flow li + li { border-left: 0; border-top: 1px solid var(--ui-border); }
    .home-erp-flow li:not(:last-child)::after { display: none; }
    .home-flow-number { position: absolute; top: 19px; left: 0; margin: 0; }
    .home-module-grid { grid-template-columns: 1fr; }
    .home-module-grid > div { padding-block: 16px; }
    .home-product-cta { flex-direction: column; gap: 16px; margin-top: 24px; }
    .home-product-cta > .btn { width: 100%; }
    .home-fleet-list > div { padding: 20px 0 20px 36px; }
    .home-fleet-list dt > span { top: 22px; }
    .home-contact-details { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
    .home-contact-details > a { min-height: 44px; }
    .home-contact-form { padding: 20px 16px; }
    .home-contact-form > :is(input, select, textarea) { font-size: 16px; }
    .home-contact-form > .btn { width: 100%; }
}
