:root {
  --navy: #071c31;
  --navy-2: #0b2d4c;
  --blue: #00339f;
  --sky: #8fdbff;
  --lime: #b7ec6e;
  --ink: #10283c;
  --muted: #5b6f81;
  --line: #d8e1e8;
  --paper: #f3f6f8;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 Arial, Helvetica, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; background: #fff; color: var(--navy); }
.skip-link:focus { transform: none; }

.concept-ribbon { display: flex; justify-content: center; gap: 24px; padding: 7px 18px; background: #bee76d; color: #173407; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 92px; padding: 18px max(28px, calc((100vw - 1200px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.site-header a { text-decoration: none; font-size: 13px; font-weight: 800; }
.back-link { justify-self: start; }
.sales-link { justify-self: end; padding: 11px 16px; border-radius: 4px; background: var(--blue); color: #fff; }
.collins-mark img { display: block; width: 176px; max-height: 54px; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); min-height: 610px; overflow: hidden; padding: 90px max(28px, calc((100vw - 1200px) / 2)); background: var(--navy) url("assets/cementex-banner.jpg") center/cover no-repeat; color: #fff; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,19,33,.97) 0%, rgba(3,19,33,.9) 50%, rgba(3,19,33,.45) 100%); }
.hero-content, .hero-boundary { position: relative; z-index: 1; }
.hero-content { align-self: center; max-width: 760px; }
.cementex-logo { display: block; width: 210px; height: 70px; margin-bottom: 35px; object-fit: contain; object-position: left center; filter: drop-shadow(0 3px 12px rgba(0,0,0,.25)); }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { max-width: 780px; margin: 0 0 22px; font-size: clamp(52px, 6.2vw, 83px); line-height: .96; letter-spacing: -.055em; }
.hero h1 em { color: var(--sky); font-style: normal; }
.hero-content > p:last-of-type { max-width: 680px; color: #cfdeea; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-actions a { padding: 13px 18px; border: 1px solid rgba(255,255,255,.36); border-radius: 4px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; font-size: 13px; font-weight: 850; }
.hero-actions a:first-child { border-color: var(--lime); background: var(--lime); color: #173407; }
.hero-boundary { align-self: end; justify-self: end; max-width: 350px; padding: 24px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(5,27,47,.78); backdrop-filter: blur(13px); }
.hero-boundary span { color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.hero-boundary strong { display: block; margin: 10px 0 7px; font-size: 20px; }
.hero-boundary p { margin: 0; color: #c1d1dd; font-size: 13px; }

.intro-band { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin: -34px auto 0; position: relative; z-index: 3; background: #fff; box-shadow: 0 18px 55px rgba(7,28,49,.14); }
.intro-band > div { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; padding: 24px 28px; border-right: 1px solid var(--line); }
.intro-band > div:last-child { border-right: 0; }
.intro-band span { grid-row: 1 / 3; color: var(--blue); font-size: 25px; font-weight: 900; }
.intro-band strong { font-size: 15px; }
.intro-band small { color: var(--muted); }

.tool-section, .review-boundary { max-width: 1200px; margin: 0 auto; padding: 105px 0 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 70px; align-items: end; margin-bottom: 35px; }
.section-heading h2, .review-boundary h2 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.045em; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.7; }

.tool-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr); overflow: hidden; border-radius: 10px; box-shadow: 0 22px 60px rgba(7,28,49,.12); }
.tool-form { padding: 36px; background: #fff; }
.form-heading { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 25px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.form-heading span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.form-heading strong { font-size: 13px; }
.tool-form label { display: block; margin: 17px 0 7px; color: #263c50; font-size: 13px; font-weight: 850; }
.tool-form input, .tool-form select { width: 100%; min-height: 50px; padding: 12px 13px; border: 1px solid #9fb1c0; border-radius: 5px; background: #fff; color: var(--ink); }
.tool-form input:focus, .tool-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,51,159,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-note { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--blue); background: #f1f6fb; color: var(--muted); font-size: 12px; }
.tool-form button { display: flex; justify-content: space-between; width: 100%; margin-top: 24px; padding: 14px 16px; border: 0; border-radius: 4px; background: var(--blue); color: #fff; cursor: pointer; font-weight: 850; }
.tool-form button:hover { background: #00287c; }

.tool-result { min-height: 540px; padding: 36px; background: radial-gradient(circle at 86% 14%, rgba(143,219,255,.23), transparent 33%), linear-gradient(145deg, var(--navy), var(--navy-2)); color: #fff; }
.result-kicker { margin: 0; color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.result-empty { display: flex; min-height: 420px; flex-direction: column; justify-content: center; }
.result-icon { display: grid; width: 48px; height: 48px; margin-bottom: 22px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: var(--sky); font-size: 22px; }
.tool-result h3 { max-width: 500px; margin: 0 0 12px; font-size: 34px; line-height: 1.1; }
.tool-result p { max-width: 540px; color: #bcd0df; }
.result-size { margin: 32px 0 4px; color: var(--sky); font-size: clamp(68px, 9vw, 118px); font-weight: 900; line-height: .85; letter-spacing: -.07em; }
.result-label { display: block; color: #d4e2ed; font-size: 13px; }
.result-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 27px; background: rgba(255,255,255,.14); }
.result-stats > div { padding: 15px; background: rgba(5,27,47,.96); }
.result-stats span { display: block; color: #8eabc0; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.result-stats strong { display: block; margin-top: 5px; color: #fff; font-size: 16px; }
.result-alert { margin-top: 18px; padding: 13px 15px; border-left: 3px solid #ffc866; background: rgba(255,200,102,.1); color: #ffe7bb; font-size: 13px; }
.result-ok { border-left-color: var(--lime); background: rgba(183,236,110,.1); color: #e7ffc6; }
.result-stale { margin-top: 18px; color: #ffc866; font-size: 12px; font-weight: 800; }

.source-details { margin-top: 22px; padding: 0 24px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.source-details summary { padding: 20px 0; cursor: pointer; color: var(--navy); font-weight: 850; }
.source-details table { width: 100%; border-collapse: collapse; }
.source-details th, .source-details td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.source-details thead th { background: #edf3f7; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.source-details p { color: var(--muted); font-size: 13px; }
.table-scroll { overflow-x: auto; }

.glove-section { padding-top: 130px; }
.measure-callout { display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: center; margin-bottom: 24px; padding: 24px 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.measure-callout > div:last-child > span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.measure-callout strong { display: block; margin: 6px 0; font-size: 20px; }
.measure-callout p { margin: 0; color: var(--muted); font-size: 13px; }
.hand-diagram { position: relative; width: 118px; height: 128px; margin: auto; }
.palm { position: absolute; left: 27px; bottom: 3px; width: 68px; height: 78px; border-radius: 35px 35px 22px 22px; background: #b9d9ef; }
.finger { position: absolute; bottom: 67px; width: 16px; border-radius: 12px 12px 4px 4px; background: #b9d9ef; }
.f1 { left: 28px; height: 49px; }.f2 { left: 48px; height: 62px; }.f3 { left: 68px; height: 57px; }.f4 { left: 88px; height: 44px; }
.thumb { position: absolute; left: 10px; bottom: 34px; width: 37px; height: 18px; transform: rotate(48deg); border-radius: 14px; background: #b9d9ef; }
.hand-diagram i { position: absolute; z-index: 2; left: 10px; right: 3px; bottom: 62px; height: 22px; border: 3px solid var(--blue); border-left-color: transparent; border-right-color: transparent; border-radius: 50%; transform: rotate(-3deg); }

.review-boundary { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; margin-top: 120px; padding: 65px; background: #fff; border-top: 5px solid var(--blue); box-shadow: 0 22px 60px rgba(7,28,49,.08); }
.boundary-grid { display: grid; gap: 13px; }
.boundary-grid p { margin: 0; color: var(--muted); }
.boundary-grid strong { display: block; color: var(--navy); }
.review-boundary > a { grid-column: 2; color: var(--blue); font-size: 13px; font-weight: 900; text-decoration: none; }

.calculator-lead-slot { margin-top: 24px; }
.product-catalog { margin-top: 30px; padding: 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.product-catalog h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.product-catalog > p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.product-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 24px; }
.product-filters label { font-size: 13px; font-weight: 700; }
.product-filters select { display: block; width: 100%; min-height: 46px; margin-top: 7px; padding: 9px; border: 1px solid #9fb1c0; border-radius: 5px; background: #fff; color: var(--ink); }
.catalog-scroll { max-height: 430px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; }
.catalog-scroll table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.catalog-scroll th, .catalog-scroll td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.catalog-scroll thead th { position: sticky; top: 0; background: #edf3f7; color: var(--navy); }
.catalog-scroll tbody th { color: var(--blue); white-space: nowrap; }
.catalog-scroll tbody tr:nth-child(even) { background: #f8fafc; }
.product-catalog [hidden] { display: none !important; }
.matched-products { margin-top: 22px; border-top: 1px solid #526f83; padding-top: 18px; }
.matched-products h4 { margin: 0 0 12px; color: #fff; font-size: 16px; }
.matched-products ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.matched-products li { padding: 14px; border: 1px solid #526f83; border-radius: 6px; background: #173950; }
.matched-products strong, .matched-products span { display: block; }
.matched-products strong { color: var(--lime); font-size: 18px; overflow-wrap: anywhere; }
.matched-products span { margin-top: 4px; color: #fff; font-size: 14px; }
.tool-result .part-review-note { color: #d4e2ed; font-size: 12px; }
.product-filters select:focus-visible, .catalog-scroll:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 560px) { .product-catalog { padding: 18px; }.catalog-scroll th, .catalog-scroll td { padding: 10px; font-size: 12px; }.product-filters { grid-template-columns: 1fr; } }
footer { display: flex; max-width: 1200px; align-items: center; gap: 25px; margin: 85px auto 0; padding: 32px 0; border-top: 1px solid #cbd7e0; color: var(--muted); font-size: 12px; }
footer img { width: 150px; } footer p { flex: 1; } footer a { color: var(--blue); font-weight: 800; }

@media (max-width: 1240px) { .tool-section, .review-boundary, footer, .intro-band { margin-left: 24px; margin-right: 24px; } }
@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; }.collins-mark { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 45px; padding-top: 70px; padding-bottom: 70px; }.hero-boundary { justify-self: start; }
  .intro-band, .section-heading, .tool-grid, .review-boundary { grid-template-columns: 1fr; }
  .intro-band > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading { gap: 20px; }.tool-section { padding-top: 75px; }.tool-result { min-height: 440px; }.result-empty { min-height: 320px; }
  .review-boundary > a { grid-column: auto; }.review-boundary { padding: 38px; gap: 30px; }
}
@media (max-width: 560px) {
  .concept-ribbon { justify-content: flex-start; overflow: hidden; white-space: nowrap; }.concept-ribbon span:last-child { display: none; }
  .site-header { padding: 16px 18px; }.hero { padding: 55px 22px; }.hero h1 { font-size: 47px; }.cementex-logo { width: 180px; }
  .tool-section, .review-boundary, footer, .intro-band { margin-left: 14px; margin-right: 14px; }.form-row { grid-template-columns: 1fr; gap: 0; }.tool-form, .tool-result { padding: 25px; }
  .measure-callout { grid-template-columns: 1fr; text-align: center; }.result-stats { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}
