/* ============================================================
   Royal Concrete — Homepage sections.
   The signature: an engineered "shadow-line" hero where the slab
   structure reads as architectural section drawing over photography.
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
  background-size: cover; background-position: center;
}
.hero__slide.active { opacity: 1; }
.hero__slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(17,32,46,.86) 0%, rgba(17,32,46,.55) 45%, rgba(17,32,46,.25) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  min-height: clamp(520px, 72vh, 760px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 3rem; padding-bottom: 3rem; max-width: 760px;
}
.hero__eyebrow {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 1.1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.hero__eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--cyan); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem); font-weight: 800; line-height: 1.02; }
.hero p.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: #C7D2DD; margin: 1.4rem 0 2rem; max-width: 54ch; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__dots { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: .5rem; }
.hero__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); border: 0; cursor: pointer; padding: 0; transition: .2s; }
.hero__dot.active { background: var(--cyan); width: 26px; border-radius: 5px; }

/* ---------- SECTION HEADERS ---------- */
.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2:where(:not(.h3, .h4)), .section-head h1, .section-head h3:where(:not(.h4)), .section-head .h3 { margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-top: .6rem; }
.section-divider { display: flex; align-items: center; gap: .8rem; justify-content: center; margin-bottom: .9rem; }
.section-divider span { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.section-divider::before, .section-divider::after { content: ''; height: 1px; width: 40px; background: var(--bg-line); }

/* ---------- PRODUCT GRID ---------- */
.prod-card { display: flex; flex-direction: column; }
.prod-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-soft); }
.prod-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.prod-card:hover .prod-card__img img { transform: scale(1.05); }
.prod-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.prod-card__body h3:where(:not(.h4)), .prod-card__body .h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.prod-card__body p { color: var(--muted); font-size: .94rem; flex: 1; }
.prod-card__link { color: var(--cyan-700); font-weight: 600; font-family: var(--font-display); margin-top: 1rem; display: inline-flex; align-items: center; gap: .35rem; }
.prod-card__link::after { content: '→'; transition: transform .15s; }
.prod-card:hover .prod-card__link::after { transform: translateX(4px); }
.badge-new { display: inline-block; background: var(--cyan); color: #fff; font-family: var(--font-mono); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 4px; margin-bottom: .6rem; align-self: flex-start; }

/* ---------- PROCESS ---------- */
.process-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.process-step { position: relative; padding-top: 2.6rem; }
.process-step::before { content: none; }
.process-step__num {
  position: absolute; top: 0; left: 0; font-family: var(--font-mono);
  font-size: 1.6rem; color: #2ea44f; font-weight: 600;
}
.process-step h4, .process-step .h4 { margin-bottom: .4rem; }
.process-step p { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .process-strip { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 520px) { .process-strip { grid-template-columns: 1fr; } }

/* ---------- WHY CHOOSE US ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }
.why-card { background: var(--navy); color: #fff; padding: 1.8rem 1.5rem; border-radius: var(--radius); }
.why-card .ic { width: 44px; height: 44px; border-radius: 10px; background: rgba(0,153,214,.16); display: grid; place-items: center; margin-bottom: 1rem; font-size: 1.3rem; }
.why-card h4, .why-card .h4 { color: #fff; font-size: 1.08rem; margin-bottom: .5rem; }
.why-card p { color: #9FB1C2; font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- STATS ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; text-align: center; }
.stat { padding: 1.5rem 1rem; }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); font-weight: 800; color: var(--cyan); line-height: 1; }
.stat__label { font-size: .85rem; color: var(--muted); margin-top: .5rem; letter-spacing: .02em; }
.section--navy .stat__label { color: #8597A8; }
@media (max-width: 600px) { .stats-bar { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; } }

/* ---------- CASE STUDY ---------- */
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius); overflow: hidden; }
.case__media { background: var(--bg-soft); min-height: 340px; background-size: cover; background-position: center; }
.case__body { padding: clamp(1.8rem, 4vw, 3rem); }
.case__tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.case__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0; }
.case__metric { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 1rem; }
.case__metric--green { background: rgba(46,164,79,.06); border: 1.5px solid #2ea44f; }
.case__metric--green strong { color: #2ea44f; }
.case__metric strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.case__metric span { font-size: .82rem; color: var(--muted); }
@media (max-width: 800px) { .case { grid-template-columns: 1fr; } .case__media { min-height: 220px; } }

/* ---------- 3 STEPS ---------- */
.steps-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.step-3 { text-align: center; padding: 2rem 1.5rem; background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius); position: relative; }
.step-3__n { width: 48px; height: 48px; border-radius: 50%; background: var(--cyan); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; display: grid; place-items: center; margin: 0 auto 1rem; }
.step-3 h4, .step-3 .h4 { margin-bottom: .5rem; }
.step-3 p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 760px) { .steps-3 { grid-template-columns: 1fr; } }

/* ---------- REVIEWS ---------- */
.reviews { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; }
.review { background: #fff; border: 1px solid var(--bg-line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.review__stars { color: var(--amber); margin-bottom: .8rem; letter-spacing: 2px; }
.review__text { font-size: .92rem; color: var(--ink); flex: 1; }
.review__name { margin-top: 1rem; font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: .95rem; }
.review__role { font-size: .8rem; color: var(--muted); }
@media (max-width: 980px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- PROJECTS STRIP ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.project-tile { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-soft); }
.project-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-tile:hover img { transform: scale(1.08); }
@media (max-width: 700px) { .projects-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- BLOG TEASERS ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blog-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.blog-card__date { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.blog-card__body h3:where(:not(.h4)), .blog-card__body .h3 { font-size: 1.12rem; margin: .4rem 0 .5rem; }
.blog-card__body p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- CTA BAND ---------- */
.cta-band { background: linear-gradient(120deg, var(--cyan) 0%, var(--cyan-700) 100%); color: #fff; border-radius: var(--radius); padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center; }
.cta-band h2:where(:not(.h3, .h4)) { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 50ch; margin: .8rem auto 1.8rem; }
.cta-band .btn--ghost { background: #fff; border-color: #fff; color: var(--cyan-700); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.9); }


/* ============================================================
   3 TYPES OF SLAB SYSTEMS (numbered list)
   ============================================================ */
.slab-type { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--bg-line); }
.slab-type:last-child { border-bottom: 0; }
.slab-type__num {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--cyan); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.slab-type h4, .slab-type .h4 { margin-bottom: .3rem; }
.slab-type p { color: var(--muted); font-size: .92rem; margin-bottom: .4rem; }

/* ============================================================
   PROCESS DIAGRAM — centered 3D image, 4 blocks around it
   ============================================================ */
.process-diagram {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}
.process-diagram__img img { width: 100%; border-radius: var(--radius); border: 1px solid var(--bg-line); }
.process-diagram__col { display: flex; flex-direction: column; gap: 1.6rem; }
.process-block { display: flex; gap: .8rem; align-items: flex-start; }
.process-diagram__col:first-child .process-block { text-align: right; flex-direction: row-reverse; }
.process-block__num {
  flex-shrink: 0; font-family: var(--font-mono); font-size: 1.6rem;
  font-weight: 600; color: #2ea44f; line-height: 1;
}
.process-block h4, .process-block .h4 { margin-bottom: .25rem; }
.process-block p { color: var(--muted); font-size: .9rem; margin: 0; }

@media (max-width: 900px) {
  .process-diagram { grid-template-columns: 1fr; }
  .process-diagram__img { order: -1; max-width: 560px; margin: 0 auto 1.5rem; }
  .process-diagram__col:first-child .process-block { text-align: left; flex-direction: row; }
  .process-diagram__col { gap: 1.6rem; margin-bottom: 1.6rem; }
}

/* ============================================================
   VIDEO SECTION (responsive 16:9 embeds)
   ============================================================ */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }
.video-embed {
  position: relative; width: 100%; padding-bottom: 56.25%; height: 0;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--bg-line);
  box-shadow: var(--shadow);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================
   ABOUT IMAGE ROTATOR (crossfade between estate images)
   ============================================================ */
.about-rotator {
  position: relative; width: 100%; aspect-ratio: 16/10;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--bg-line);
}
.about-rotator__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s ease;
}
.about-rotator__img.is-active { opacity: 1; }

/* ---------- THE ROYAL CONCRETE DIFFERENCE (5 light linked tiles) ---------- */
.why-grid--5 { grid-template-columns: repeat(5, 1fr); }
.why-grid--5 .why-card {
  background: var(--bg-soft); color: var(--ink);
  border: 1px solid var(--bg-line);
  display: flex; flex-direction: column; text-decoration: none;
  padding: 1.6rem 1.3rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.why-grid--5 .why-card:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 10px 26px rgba(26,43,60,.10); }
.why-grid--5 .why-card .ic { background: rgba(0,153,214,.12); color: var(--cyan); }
.why-grid--5 .why-card .ic svg { width: 23px; height: 23px; }
.why-grid--5 .why-card h4, .why-grid--5 .why-card .h4 { color: var(--navy); font-size: 1rem; line-height: 1.3; }
.why-grid--5 .why-card p { color: var(--muted); flex: 1; }
.why-card__link {
  margin-top: 1rem; font-family: var(--font-display); font-weight: 600;
  font-size: .85rem; color: var(--cyan);
}
@media (max-width: 1100px) { .why-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .why-grid--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .why-grid--5 { grid-template-columns: 1fr; } }

/* ---------- OUR 3 TYPES OF SLAB SYSTEMS (exploded render per system) ---------- */
.slab-systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.slab-system {
  background: var(--bg-soft); border: 1px solid var(--bg-line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.slab-system__art { background: #fff; padding: .5rem; }
.slab-system__art img { width: 100%; height: auto; display: block; border-radius: calc(var(--radius) - 4px); }
.slab-system__body { display: flex; gap: .9rem; padding: 1.3rem 1.4rem 1.5rem; }
.slab-system__body h4, .slab-system__body .h4 { font-size: 1.05rem; margin: 0 0 .4rem; color: var(--navy); }
.slab-system__body p { font-size: .9rem; color: var(--muted); margin: 0 0 .7rem; }
@media (max-width: 900px) { .slab-systems { grid-template-columns: 1fr; } }
