/* CPN website (wb.cpnnigeria.com) - asphalt, ready-mix concrete and cement first. */
:root {
  --navy: #16124f;
  --navy-2: #221b78;
  --ink: #15171c;
  --text: #2b2f38;
  --muted: #5d6472;
  --line: #e3e5ea;
  --tint: #f4f5f8;
  --accent: #f5c400;   /* CPN logo yellow */
  --accent-ink: #1a1500;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 20, 40, 0.10);
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .2px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--accent); padding: 8px 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.25em; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; transition: transform .15s ease, background .15s ease; font-family: var(--body); }
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: .95em 1.6em; font-size: 1.05rem; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ffd42a; }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-2); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.link { font-weight: 700; text-decoration: none; color: var(--navy-2); }
.link:hover { text-decoration: underline; }

/* top line + header */
.topline { background: var(--ink); color: #c9ccd4; font-size: .85rem; }
.topline__in { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.topline a { color: #fff; text-decoration: none; margin-left: 18px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(150%) blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--head); font-size: 1.6rem; color: var(--navy); }
.brand__text small { font-size: .72rem; color: var(--muted); letter-spacing: .3px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--navy-2); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 8px; transition: .2s; }

/* hero */
.hero { position: relative; color: #fff; padding: 110px 0 0; overflow: hidden; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,12,48,.92) 0%, rgba(14,12,48,.72) 45%, rgba(14,12,48,.25) 100%), url("/assets/img/hero-asphalt.jpg") center/cover no-repeat; }
.hero__in { position: relative; padding-bottom: 70px; }
.eyebrow { font-family: var(--body); font-size: .8rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.eyebrow--dark { color: var(--navy-2); }
.hero h1 { color: #fff; font-size: clamp(3.2rem, 9vw, 6.6rem); font-weight: 800; text-transform: uppercase; line-height: .92; margin-bottom: 24px; }
.hero h1 span { color: var(--accent); }
.hero__lead { max-width: 560px; font-size: 1.15rem; color: #e6e7ee; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.stats { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); }
.stats li { padding: 22px 24px; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--head); font-size: 2.2rem; color: var(--navy); line-height: 1; }
.stats span { color: var(--muted); font-size: .9rem; }

/* sections */
.section { padding: 90px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 760px; margin-bottom: 42px; }
.section__sub { color: var(--muted); font-size: 1.05rem; }
.products { padding-top: 80px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 rgba(0,0,0,.02); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__img { aspect-ratio: 16 / 10; background: center/cover no-repeat #ddd; }
.pcard__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.pcard__body p { color: var(--muted); flex: 1; }
.pcard h3 { font-size: 2rem; text-transform: uppercase; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--navy-2); background: #eceaff; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; align-self: flex-start; }

/* feature blocks */
.feature--alt { background: var(--tint); }
.feature__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.feature__in--rev .feature__media { order: 2; }
.feature__media { position: relative; padding-bottom: 60px; }
.feature__media > img:first-child { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.feature__inset { position: absolute; right: -20px; bottom: 0; width: 46%; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.feature__in--rev .feature__inset { right: auto; left: -20px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 10px; }
.ticks--2 { grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231a1500' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks--light li { color: #e8e9f2; }
.plants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 26px; }
.plant { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 12px 14px; background: #fff; }
.plant h4 { font-size: 1.15rem; margin-bottom: 4px; }
.plant p { font-size: .85rem; color: var(--muted); margin: 0; }
.grades { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.grades span { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--navy); border: 2px solid var(--navy); border-radius: 8px; padding: 2px 12px; background: #fff; }

/* cement band */
.cement { background: linear-gradient(120deg, var(--navy) 0%, #2a2194 100%); color: #e8e9f2; }
.cement h2 { color: #fff; }
.cement__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.cement__in img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.35); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.svc h3 { font-size: 1.35rem; text-transform: uppercase; color: var(--navy); }
.svc p { color: var(--muted); margin: 0; font-size: .95rem; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; }
.proj { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: #ccc; }
.proj--wide { grid-column: span 2; grid-row: span 2; }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.proj:hover img { transform: scale(1.04); }
.proj figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(10,10,30,.85)); color: #fff; }
.proj figcaption strong { display: block; font-family: var(--head); font-size: 1.35rem; text-transform: uppercase; line-height: 1.05; }
.proj figcaption span { font-size: .82rem; color: #d7d9e2; }
.more-projects { margin-top: 22px; color: var(--muted); font-size: .95rem; }

/* about */
.about__in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.about__facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 26px; }
.about__facts strong { display: block; font-family: var(--head); font-size: 2.2rem; color: var(--navy); line-height: 1; }
.clients { background: var(--tint); border-radius: var(--radius); padding: 26px; }
.clients h3 { text-transform: uppercase; font-size: 1.3rem; }
.clients__logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 16px 0; }
.clients__logos img { background: #fff; border-radius: 10px; padding: 10px; aspect-ratio: 1; object-fit: contain; width: 100%; }
.clients__note { color: var(--muted); font-size: .9rem; margin: 0; }

/* quote */
.quote { background: var(--ink); color: #d9dbe3; }
.quote h2 { color: #fff; }
.quote__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.quote__lines { display: grid; gap: 8px; margin-top: 18px; }
.quote__lines a { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.qform { background: #fff; color: var(--text); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.qform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qform label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.qform input, .qform select, .qform textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #cfd3dc; border-radius: 9px; background: #fff; color: var(--ink); width: 100%; }
.qform input:focus, .qform select:focus, .qform textarea:focus { outline: 3px solid rgba(245,196,0,.45); border-color: #c9a100; }
.qform .invalid { border-color: #d33; }
.qform__note { font-size: .8rem; color: var(--muted); margin: 0; }

/* contact */
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ccard { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.ccard h3 { text-transform: uppercase; font-size: 1.2rem; color: var(--navy); }
.ccard p { margin: 0; color: var(--muted); }
.careers { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; background: #fff8d6; border: 1px solid #f1e2a0; border-radius: var(--radius); padding: 22px 26px; }
.careers h3 { margin-bottom: 4px; text-transform: uppercase; }
.careers p { margin: 0; color: var(--muted); }

/* footer */
.footer { background: #0e0c30; color: #b9bccb; padding: 40px 0; }
.footer__in { display: grid; gap: 22px; }
.footer__brand { display: flex; gap: 12px; align-items: center; }
.footer__brand strong { display: block; color: #fff; }
.footer__brand span { font-size: .85rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__nav a { color: #fff; text-decoration: none; font-size: .92rem; }
.footer__copy { font-size: .82rem; margin: 0; }

.fab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--accent); color: var(--accent-ink); font-weight: 800; text-decoration: none; padding: 14px 18px; border-radius: 999px; box-shadow: 0 10px 25px rgba(0,0,0,.25); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 1050px) {
  .nav { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .nav.open { transform: none; }
  .nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 12px; }
  .burger { display: block; }
  .feature__in, .cement__in, .about__in, .quote__in { grid-template-columns: 1fr; gap: 40px; }
  .feature__in--rev .feature__media { order: 0; }
  .plants { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topline__in { flex-direction: column; gap: 2px; }
  .topline a { margin: 0 14px 0 0; }
  .topline__in > span:first-child { display: none; }
  .hero { padding-top: 70px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(2) { border-right: 0; }
  .stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards3, .services { grid-template-columns: 1fr; }
  .ticks--2 { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .proj--wide { grid-column: auto; grid-row: span 1; }
  .qform__row, .contact__grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .feature__inset { width: 50%; right: -6px; }
  .feature__in--rev .feature__inset { left: -6px; }
  .fab { display: inline-block; }
  .brand__text small { display: none; }
}
