/* ============================================================================
   MCT CHEMICALS — WEBSITE 2.0
   FILE: homepage.css  —  all homepage section styling (Version 1.0)
   ----------------------------------------------------------------------------
   Built on design-system.css tokens. Section-scoped, responsive, accessible.
   Placeholder media is marked .v11-asset (labelled "Version 1.1 Asset").
   ========================================================================== */

/* ---------- shared section furniture ---------- */
.sec-head { max-width: 60ch; margin-bottom: var(--space-7); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head .t-overline { color: var(--accent); }
.sec-head h2 { margin-top: var(--space-3); }
.sec-head p { margin-top: var(--space-3); color: var(--text-secondary); }
.section--tint { background: var(--bg-elevated); }
.section--ink { background: var(--c-ink-900, #0A1622); color: var(--text-on-dark); }
.section--ink .t-overline { color: var(--accent); }
.section--ink h2, .section--ink h3 { color: var(--text-on-dark); }
.section--ink p { color: var(--c-slate-300, #C3CEDA); }
.link-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: var(--fw-semibold); }
.link-more::after { content: "\2192"; transition: transform var(--dur-fast,.15s) ease; }
.link-more:hover::after { transform: translateX(4px); }

/* placeholder media */
.v11-asset { position: relative; background: linear-gradient(135deg, var(--bg-sunken,#0A1019), var(--bg-elevated,#111E2E)); overflow: hidden; }
.v11-asset::after {
  content: "Version 1.1 Asset"; position: absolute; right: 8px; bottom: 8px;
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-muted,#6E8093); background: rgba(0,0,0,.35);
  padding: 2px 8px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.12);
}
.v11-asset svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }

/* ---------- featured solutions (existing) enhancement ---------- */
.solution-card { display: flex; flex-direction: column; min-height: 190px; }
.solution-card .sol-icon { width: 40px; height: 40px; margin-bottom: var(--space-3); color: var(--accent); }
.solution-card .sol-explore { margin-top: auto; padding-top: var(--space-3); color: var(--accent); font-weight: var(--fw-semibold); font-size: var(--type-small); opacity: 0; transform: translateY(4px); transition: all var(--dur-fast,.15s) ease; }
.solution-card:hover .sol-explore, .solution-card:focus-visible .sol-explore { opacity: 1; transform: none; }

/* ---------- featured products carousel ---------- */
.product-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-3); scrollbar-width: thin; }
@media (min-width: 1000px) { .product-scroll { grid-template-columns: repeat(4, 1fr); grid-auto-flow: row; overflow: visible; } }
.product-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--bg-elevated); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); overflow: hidden; transition: transform var(--dur-base,.25s) var(--ease-standard,ease), box-shadow var(--dur-base,.25s) ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg, 0 20px 40px rgba(0,0,0,.18)); }
.product-card__img { aspect-ratio: 4/3; }
.product-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__brand { font-size: var(--type-overline); text-transform: uppercase; letter-spacing: var(--tracking-overline); color: var(--accent); }
.product-card__name { font-weight: var(--fw-semibold); color: var(--text-primary); }
.product-card__cat { font-size: var(--type-small); color: var(--text-muted); margin-top: auto; }

/* ---------- split feature (manufacturer / distribution) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--space-5); } }
.split__media { aspect-ratio: 4/3; border-radius: var(--radius-lg); border: 1px solid var(--border-hairline); }
.split--rev .split__media { order: 2; }
@media (max-width: 860px) { .split--rev .split__media { order: 0; } }
.split ul { margin-top: var(--space-4); display: grid; gap: var(--space-2); }
.split li { display: flex; gap: var(--space-2); align-items: flex-start; color: var(--text-secondary); }
.split li::before { content: "\2713"; color: var(--accent); font-weight: 700; flex: none; }

/* ---------- why MCT (feature grid) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: var(--space-5); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); background: var(--bg-base); }
.feature__icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--accent-weak, #2A1B10); color: var(--accent); margin-bottom: var(--space-3); }
.feature h3 { font-size: var(--type-h3); }
.feature p { margin-top: var(--space-2); color: var(--text-secondary); font-size: var(--type-small); }

/* ---------- industries (chips grid) ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industry-grid { grid-template-columns: 1fr; } }
.industry { position: relative; aspect-ratio: 3/2; border-radius: var(--radius-md); overflow: hidden; display: flex; align-items: flex-end; padding: var(--space-4); color: #fff; border: 1px solid var(--border-hairline); }
.industry::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,12,20,.85), rgba(6,12,20,.15)); z-index: 1; }
.industry span { position: relative; z-index: 2; font-weight: var(--fw-semibold); }

/* ---------- technical support band ---------- */
.support { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-6); align-items: center; }
@media (max-width: 860px) { .support { grid-template-columns: 1fr; } }
.support__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-4); }

/* ---------- knowledge preview ---------- */
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 860px) { .knowledge-grid { grid-template-columns: 1fr; } }
.article { display: flex; flex-direction: column; border: 1px solid var(--border-hairline); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-base); transition: transform var(--dur-base,.25s) ease; }
.article:hover { transform: translateY(-4px); }
.article__img { aspect-ratio: 16/9; }
.article__body { padding: var(--space-4); }
.article__tag { font-size: var(--type-overline); text-transform: uppercase; letter-spacing: var(--tracking-overline); color: var(--accent); }
.article h3 { font-size: var(--type-h4, 1.1rem); margin-top: var(--space-2); }

/* ---------- projects (feature + grid) ---------- */
.project-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--space-4); }
.project { position: relative; border-radius: var(--radius-md); overflow: hidden; min-height: 180px; display: flex; align-items: flex-end; padding: var(--space-4); color: #fff; border: 1px solid var(--border-hairline); }
.project::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,12,20,.9), rgba(6,12,20,.1)); z-index: 1; }
.project > * { position: relative; z-index: 2; }
.project--hero { grid-row: span 2; }
.project__meta b { display: block; font-size: var(--type-h4,1.1rem); }
.project__meta span { font-size: var(--type-small); opacity: .85; }
@media (max-width: 860px) { .project-grid { grid-template-columns: 1fr 1fr; } .project--hero { grid-column: span 2; grid-row: auto; } }
@media (max-width: 520px) { .project-grid { grid-template-columns: 1fr; } .project--hero { grid-column: auto; } }

/* ---------- certifications strip ---------- */
.cert-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: center; }
.cert { width: 130px; height: 72px; border-radius: var(--radius-md); display: grid; place-items: center; text-align: center; font-size: var(--type-small); color: var(--text-muted); border: 1px solid var(--border-hairline); background: var(--bg-base); padding: var(--space-2); }

/* ---------- statistics band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 720px) { .stats-band { grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-4); } }
.stat-b { text-align: center; }
.stat-b b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--accent); }
.stat-b span { display: block; margin-top: var(--space-2); font-size: var(--type-small); color: var(--text-secondary); }

/* ---------- downloads ---------- */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 860px) { .download-grid { grid-template-columns: 1fr; } }
.download { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); background: var(--bg-base); transition: border-color var(--dur-fast,.15s) ease, transform var(--dur-fast,.15s) ease; }
.download:hover { border-color: var(--accent); transform: translateY(-2px); }
.download__icon { width: 40px; height: 40px; flex: none; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--accent-weak,#2A1B10); color: var(--accent); }
.download b { display: block; font-size: var(--type-small); color: var(--text-primary); }
.download span { font-size: 12px; color: var(--text-muted); }

/* ---------- big CTA ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: var(--space-9) var(--space-6); text-align: center; background: linear-gradient(135deg, var(--c-ink-800,#0F2A47), var(--c-ink-900,#0A1622)); border: 1px solid var(--border-strong,#2A3E56); }
.cta-band h2 { color: var(--text-on-dark); max-width: 24ch; margin-inline: auto; }
.cta-band p { color: var(--c-slate-300,#C3CEDA); max-width: 50ch; margin: var(--space-3) auto 0; }
.cta-band .cluster { justify-content: center; margin-top: var(--space-5); gap: var(--space-3); }
.cta-band__glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(233,114,28,.25), transparent 60%); top: -160px; right: -120px; pointer-events: none; }

/* ---------- contact preview ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact__methods { display: grid; gap: var(--space-3); }
.contact__method { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) 0; border-bottom: 1px solid var(--border-hairline); }
.contact__method b { display: block; color: var(--text-primary); }
.contact__method span { color: var(--text-secondary); font-size: var(--type-small); }
.contact__form { display: grid; gap: var(--space-3); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--type-small); color: var(--text-secondary); }
.field input, .field textarea { padding: var(--space-3); border-radius: var(--radius-sm); border: 1px solid var(--border-hairline); background: var(--bg-base); color: var(--text-primary); font: inherit; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { background: var(--c-ink-900, #0A1622); color: var(--c-slate-300,#C3CEDA); padding-block: var(--space-8) var(--space-5); border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { display: block; height: 44px; width: auto; aspect-ratio: 1451 / 915; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--text-on-dark); }
.footer-col h4 { color: var(--text-on-dark); font-size: var(--type-small); text-transform: uppercase; letter-spacing: var(--tracking-overline); margin-bottom: var(--space-3); }
.footer-col a { display: block; padding: 5px 0; color: var(--c-slate-300,#C3CEDA); font-size: var(--type-small); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-7); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.06); font-size: var(--type-small); color: var(--text-muted,#6E8093); }

/* reveal-on-scroll base (JS adds .is-visible) */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-standard,ease), transform .6s var(--ease-standard,ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ============================================================================
   MISSING UTILITIES used by homepage sections (added in v1.0 build)
   ========================================================================== */
/* typography scale fills */
.t-h1 { font-family: var(--font-display); font-weight: var(--fw-display, 800);
  font-size: var(--type-h1, clamp(1.9rem, 3.4vw, 2.9rem)); line-height: var(--lh-tight, 1.1); letter-spacing: -0.02em; }
.t-h4 { font-size: var(--type-h4, 1.15rem); font-weight: var(--fw-semibold, 600); line-height: var(--lh-snug, 1.25); }

/* large buttons for the primary CTA band */
.btn--lg { padding: var(--space-3) var(--space-5); font-size: var(--type-body-l, 1.05rem); }

/* screen-reader-only (visually hidden but accessible) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* make placeholder media in dark project/industry tiles a touch more legible */
.industry .v11-asset, .project .v11-asset { background: linear-gradient(135deg, #13273A, #0C1A28); }
.industry .v11-asset::after, .project .v11-asset::after { color: rgba(255,255,255,.35); background: rgba(0,0,0,.3); }

/* ============================================================================
   ASSET SPRINT 1 — production illustration assets (v1.1)
   ========================================================================== */
.asset-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__img { overflow: hidden; }
.product-card__img .asset-img { transition: transform var(--dur-base,.25s) var(--ease-standard,ease); }
.product-card:hover .product-card__img .asset-img { transform: scale(1.05); }
.article__img { overflow: hidden; }
.split-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
/* tile images fill the absolute industry/project tiles, behind the gradient+label */
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* when the tile-img is wrapped in a <picture>, the picture must be the fill layer */
.industry > .pic, .project > .pic { position: absolute; inset: 0; z-index: 0; }
.industry > .pic .tile-img, .project > .pic .tile-img { position: absolute; inset: 0; }
.industry span, .project__meta { position: relative; z-index: 2; }
.industry::before, .project::before { z-index: 1; }
.industry .tile-img, .project .tile-img { transition: transform 3s var(--ease-standard,ease); }
.industry:hover .tile-img, .project:hover .tile-img { transform: scale(1.06); }

/* contact illustration */
.contact__illus { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-hairline); aspect-ratio: 4/3; }
.contact__illus img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .contact__illus { display: none; } }

/* ============================================================================
   CHAKORE VENTURE — project detail section (Batch 05). Additive only.
   Uses existing tokens; image slots are CLS-safe .pic placeholders so real
   photos drop in 1:1 later. Demo slots are clearly marked, not fabricated.
   ========================================================================== */
.proj-detail__top { display:grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-7); align-items:start; }
.proj-detail__main { border-radius: var(--radius-lg); overflow:hidden; border:1px solid var(--border-hairline); aspect-ratio:16/9; position:relative; }
.proj-detail__loc { color: var(--accent); font-weight:600; }
.proj-scope { list-style:none; padding:0; margin:var(--space-5) 0 0; display:grid; gap:var(--space-3); }
.proj-scope li { display:flex; gap:var(--space-3); align-items:flex-start; }
.proj-scope li::before { content:""; flex:0 0 auto; width:8px; height:8px; margin-top:.5em; border-radius:2px; background:var(--accent); }
.proj-scope b { color:var(--text-strong,inherit); }
.proj-scope .brand-sika { color: var(--accent); font-weight:600; }

.proj-apps { display:grid; grid-template-columns: repeat(4,1fr); gap:var(--space-4); margin-top:var(--space-7); }
.proj-app { border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--border-hairline); background:var(--bg-sunken,#0A1019); }
.proj-app .pic { aspect-ratio:4/3; }
.proj-app__cap { padding: var(--space-3) var(--space-4); }
.proj-app__cap b { display:block; font-size:.95rem; }
.proj-app__cap span { display:block; color:var(--text-muted,#8FA6B8); font-size:.8rem; margin-top:2px; }

.proj-gallery { display:grid; grid-template-columns: repeat(3,1fr); gap:var(--space-4); margin-top:var(--space-6); }
.proj-gallery .pic { aspect-ratio:4/3; border-radius: var(--radius-md); overflow:hidden; border:1px solid var(--border-hairline); }

/* DEMO placeholder styling — unmistakable, never looks like real evidence */
.pic[data-demo] { background:
   repeating-linear-gradient(45deg, rgba(197,90,17,.06) 0 12px, transparent 12px 24px),
   var(--bg-elevated,#111E2E); display:flex; align-items:center; justify-content:center; }
.pic[data-demo]::after { content:"DEMO — REPLACE WITH REAL PHOTO"; content: attr(data-demo);
   position:absolute; inset:auto; max-width:80%; text-align:center;
   font-size:10px; letter-spacing:.05em; text-transform:uppercase; line-height:1.4;
   color:rgba(255,255,255,.7); background:rgba(0,0,0,.45); padding:6px 10px; border-radius:8px;
   border:1px solid rgba(197,90,17,.4); }
.pic[data-demo] .demo-icon { width:34px; height:34px; opacity:.5; position:absolute; top:14px; left:50%; transform:translateX(-50%); }

@media (max-width: 900px){
  .proj-detail__top { grid-template-columns:1fr; gap:var(--space-6); }
  .proj-apps { grid-template-columns:repeat(2,1fr); }
  .proj-gallery { grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 520px){
  .proj-apps { grid-template-columns:1fr; }
  .proj-gallery { grid-template-columns:1fr; }
}

/* Sika distribution slot — full product range (wide image, show complete arrangement, no crop) */
.split__media[data-sika-range] { background: #FEB003; }
.split__media[data-sika-range] .split-img { object-fit: contain; }
