/* RL Group of Construction - homepage styles */
:root {
  --brand-red: #ae2324;
  --brand-dark: #191b1c;
  --text: #202326;
  --muted: #56585e;
  --soft: #f5f5df;
  --line: #e8e8e4;
  --white: #fff;
  --container: 1224px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--text); background: #fff; font-family: "DM Sans", Arial, sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 110px 0; }
h1,h2,h3 { margin: 0; font-family: "Montserrat", sans-serif; line-height: 1.15; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); font-weight: 700; }
p { margin: 0 0 1rem; }
.eyebrow { margin: 0 0 18px; color: var(--brand-red); font-size: .76rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow.light { color: #fff; }
.button { display: inline-flex; align-items: center; gap: 26px; padding: 15px 22px; font-size: .9rem; font-weight: 700; transition: .25s ease; }
.button span { font-size: 1.15rem; }
.button-light { background: #fff; color: #1c2022; }
.button-light:hover { background: var(--brand-red); color: #fff; }
.button-outline-light { border: 1px solid rgba(255,255,255,.7); color: #fff; }
.button-outline-light:hover { background: #fff; color: var(--brand-dark); }

/* Header */
.site-header { position: sticky; z-index: 100; top: 0; height: 108px; background: #fff; border-bottom: 1px solid rgba(0,0,0,.05); }
.header-inner { width: calc(100% - 32px); height: 100%; margin-inline: 16px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; flex: 0 1 440px; }
.brand img { width: 420px; max-height: 92px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 34px); }
.nav-link { color: #0d141a; font-family: "DM Sans", Arial, sans-serif; font-size: 16px; font-weight: 500; line-height: 1.5; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--brand-red); }
.nav-contact { padding: 12px 18px; color: #fff; background: var(--brand-red); font-size: .88rem; font-weight: 700; }
.nav-contact span { margin-left: 12px; }
.menu-toggle { display: none; border: 0; padding: 8px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px; background: #1b1b1b; }

/* Hero */
.hero { min-height: 650px; height: min(78vh, 820px); position: relative; overflow: hidden; color: #fff; background: #242729; }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slide { opacity: 0; background-size: cover; background-position: center; transform: scale(1.025); transition: opacity .9s ease, transform 5s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-shade { background: linear-gradient(90deg, rgba(9,13,15,.78), rgba(9,13,15,.35) 58%, rgba(9,13,15,.15)); }
.hero-content { position: relative; z-index: 2; padding-top: clamp(130px, 17vh, 190px); }
.hero h1 { max-width: 800px; font-size: clamp(3rem, 7.3vw, 6.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -.055em; }
.hero h1 span { color: #e8b9a4; }
.hero-copy { margin: 24px 0 32px; color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-controls { position: absolute; z-index: 3; right: max(24px, calc((100% - var(--container))/2)); bottom: 45px; display: flex; align-items: center; gap: 14px; }
.hero-arrow { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: transparent; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.hero-arrow:hover { color: #222; background: #fff; }
.hero-dots { display: flex; gap: 8px; }
.dot { width: 8px; height: 8px; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.dot.is-active { width: 25px; border-radius: 10px; background: #fff; }
.scroll-cue { position: absolute; z-index: 2; left: max(24px, calc((100% - var(--container))/2)); bottom: 52px; font-size: .67rem; letter-spacing: .16em; }
.scroll-cue span { margin-left: 12px; font-size: 1rem; }

/* About */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(55px, 8vw, 110px); }
.about-photo-wrap { position: relative; padding: 0 30px 30px 0; }
.about-photo-wrap::after { position: absolute; z-index: -1; content: ""; right: 0; bottom: 0; width: 72%; height: 68%; background: #f2e9e3; }
.about-photo { width: calc(100% + 50px); height: 590px; object-fit: cover; }
.photo-note { position: absolute; right: 0; bottom: 30px; display: flex; flex-direction: column; padding: 17px 24px; background: var(--brand-red); color: #fff; }
.photo-note strong { font-family: "Montserrat", sans-serif; font-size: .9rem; letter-spacing: .12em; }
.photo-note span { font-size: .76rem; }
.about-copy h2 { margin-bottom: 25px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.about-copy .lead { color: #303439; font-size: 1.12rem; line-height: 1.75; }
.text-link { display: inline-flex; gap: 24px; align-items: center; margin-top: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--brand-red); color: var(--brand-red); font-weight: 700; }
.stats-row { display: flex; gap: clamp(38px, 7vw, 90px); margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat strong { display: block; color: var(--brand-red); font-family: "Montserrat", sans-serif; font-size: 3.1rem; line-height: 1; }
.stat strong span { font-size: 2rem; }
.stat small { display: block; margin-top: 10px; color: var(--muted); font-size: .83rem; }

/* Services */
.services-section { background: #f7f8f7; }
.section-heading { max-width: 680px; margin: 0 auto 55px; }
.section-heading.centered { text-align: center; }
.section-heading h2 { margin-bottom: 17px; }
.section-heading > p:last-child { color: var(--muted); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.service-card { position: relative; min-width: 0; background: #fff; overflow: hidden; box-shadow: 0 8px 30px rgba(20,25,25,.045); transition: transform .3s, box-shadow .3s; }
.service-card:hover { transform: translateY(-7px); box-shadow: 0 18px 40px rgba(20,25,25,.12); }
.service-card > img { width: 100%; height: 245px; object-fit: cover; }
.service-info { position: relative; min-height: 235px; padding: 28px 28px 32px; }
.service-info h3 { max-width: 90%; margin-bottom: 12px; font-size: 1.23rem; letter-spacing: -.02em; }
.service-info p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }

/* Roadway */
.roadway-section { min-height: 570px; display: grid; grid-template-columns: 1.1fr .9fr; background: #202426; color: #fff; }
.roadway-image { min-height: 570px; background: url("https://assets.zyrosite.com/ALpn5anoObC7xpxA/whatsapp-image-2024-11-11-at-6.30.06-pm-2-AzGeoD47E8U2qER0.jpeg") center/cover no-repeat; }
.roadway-content { align-self: center; max-width: 620px; padding: 80px clamp(35px, 7vw, 110px); }
.roadway-content h2 { margin-bottom: 25px; }
.roadway-content > p:not(.eyebrow) { margin-bottom: 32px; color: rgba(255,255,255,.75); line-height: 1.8; }

/* Mission and vision */
.purpose-section { padding: 82px 0 90px; background: #f6f7f6; }
.purpose-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.purpose-intro h2 { max-width: none; white-space: nowrap; }
.purpose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.purpose-card { position: relative; overflow: hidden; padding: 38px 36px 40px; border: 1px solid #e5e8e6; border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(20,25,25,.06); transition: transform .25s ease, box-shadow .25s ease; }
.purpose-card::before { position: absolute; top: 0; left: 36px; width: 68px; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--brand-red), #e8b9a4); content: ""; }
.purpose-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(20,25,25,.1); }
.purpose-index { display: inline-flex; padding: 6px 11px; border-radius: 30px; background: rgba(174,35,36,.08); color: var(--brand-red); font-size: .7rem; font-weight: 700; letter-spacing: .13em; }
.purpose-card h3 { margin: 19px 0 14px; color: var(--brand-dark); font-size: 1.75rem; }
.purpose-card p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.8; }

/* Opportunities */
.opportunities-section { padding: 100px 0 110px; background: #202426; color: #fff; }
.opportunities-section .section-heading { margin-bottom: 50px; }
.opportunity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); }
.opportunity-card { min-height: 300px; padding: 35px 32px; background: #202426; }
.opportunity-card > img { display: block; width: calc(100% + 64px); max-width: none; height: 210px; margin: -35px -32px 28px; object-fit: cover; }
.opportunity-card h3 { margin-bottom: 15px; font-size: 1.3rem; }
.opportunity-card p { min-height: 82px; color: rgba(255,255,255,.68); font-size: .91rem; line-height: 1.75; }
.opportunity-card a { display: inline-flex; align-items: center; padding-bottom: 7px; border-bottom: 1px solid #d9a18b; color: #e9b59e; font-size: .86rem; font-weight: 700; }

/* Project image strip */
.project-strip { padding: 85px 0 40px; overflow: hidden; background: var(--soft); }
.strip-heading { margin-bottom: 35px; }
.strip-heading h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.strip-track { display: flex; width: max-content; animation: strip-scroll-right 100s linear infinite; }
.strip-group { display: flex; flex: none; width: max-content; gap: 14px; margin-right: 14px; }
.strip-group img {
  flex: 0 0 calc((100vw - 56px) / 5);
  width: calc((100vw - 56px) / 5);
  height: 210px;
  padding: 8px;
  border: 1px solid rgba(25, 27, 28, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(25, 27, 28, .08);
  object-fit: contain;
}
@keyframes strip-scroll-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.whatsapp-float { position: fixed; z-index: 90; right: 22px; bottom: 22px; display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: #20c66b; box-shadow: 0 5px 18px rgba(0,0,0,.22); }
.whatsapp-float svg { width: 32px; fill: #fff; }

/* Responsive */
@media (max-width: 1000px) {
  .site-header { height: 88px; }
  .brand { flex-basis: 330px; }
  .brand img { width: 310px; max-height: 72px; }
  .main-nav { gap: 17px; }
  .nav-contact { padding: 10px 13px; }
  .about-grid { gap: 45px; }
  .about-photo { height: 510px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .roadway-section { grid-template-columns: 1fr 1fr; }
  .footer-main { gap: 35px; }
}
@media (max-width: 919px) {
  .menu-toggle { display: block; width: 40px; height: 40px; padding: 0; }
  .main-nav { position: absolute; top: 88px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 12px 22px 22px; background: #fff; box-shadow: 0 12px 20px rgba(0,0,0,.1); }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 12px 4px; border-bottom: 1px solid #eee; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 36px, var(--container)); }
  .header-inner { width: calc(100% - 32px); margin-inline: 16px; gap: 12px; }
  .section { padding: 75px 0; }
  .site-header { height: 72px; }
  .brand { flex-basis: auto; }
  .brand img { width: min(260px, calc(100vw - 100px)); max-height: 66px; }
  .main-nav { top: 72px; }
  .nav-contact { margin-top: 14px; text-align: center; }
  .hero { height: 650px; min-height: 570px; }
  .hero-content { padding-top: 145px; }
  .hero h1 { font-size: clamp(2.8rem, 12vw, 5rem); }
  .hero-controls { right: 18px; bottom: 28px; }
  .scroll-cue { left: 18px; bottom: 37px; font-size: .58rem; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-photo-wrap { width: 100%; max-width: 520px; padding-right: 0; padding-bottom: 20px; }
  .about-photo { width: 100%; height: 440px; }
  .stats-row { margin-top: 38px; }
  .services-grid { gap: 16px; }
  .service-card > img { height: 190px; }
  .service-info { min-height: 245px; padding: 22px 20px 30px; }
  .service-info h3 { font-size: 1.08rem; }
  .service-info p { font-size: .84rem; }
  .roadway-section { grid-template-columns: 1fr; }
  .roadway-image { min-height: 330px; }
  .roadway-content { padding: 65px 25px 75px; }
  .purpose-intro { display: block; margin-bottom: 34px; }
  .purpose-intro h2 { max-width: 100%; margin-top: 0; white-space: normal; }
  .purpose-grid { grid-template-columns: 1fr; }
  .purpose-section { padding: 60px 0 55px; }
  .purpose-card { padding: 30px 26px 32px; }
  .purpose-card::before { left: 26px; }
  .purpose-card h3 { font-size: 1.55rem; }
  .opportunities-section { padding: 75px 0; }
  .opportunity-grid { grid-template-columns: 1fr; }
  .opportunity-card { min-height: 0; padding: 30px 25px; }
  .opportunity-card > img { width: calc(100% + 50px); height: 220px; margin: -30px -25px 24px; }
  .opportunity-card p { min-height: 0; }
  .strip-group { width: max-content; }
  .strip-group img { flex-basis: 65vw; width: 65vw; height: 180px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px 25px; padding-top: 55px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .hero { height: 590px; }
  .hero-content { padding-top: 130px; }
  .hero-copy { max-width: 270px; }
  .hero-controls { bottom: 22px; gap: 8px; }
  .hero-arrow { width: 33px; height: 33px; }
  .scroll-cue { bottom: 32px; }
  .about-photo { height: 360px; }
  .stats-row { gap: 30px; }
  .stat strong { font-size: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card > img { height: 230px; }
  .service-info { min-height: 205px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .whatsapp-float { width: 49px; height: 49px; right: 15px; bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .strip-track { animation: none; }
}

/* Home page layout from the supplied reference */
.home-page .hero {
  height: min(58vw, 650px);
  min-height: 400px;
  max-height: 650px;
}
.home-page .hero-shade { display: none; }
.home-page .hero-controls {
  inset: 0;
  display: block;
  transform: none;
  pointer-events: none;
}
.home-page .hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  border: 0;
  background: rgba(255,255,255,.55);
  color: #333;
}
.home-page .hero-arrow.previous { left: 28px; }
.home-page .hero-arrow.next { right: 28px; }
.home-page .hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}
.home-page .dot { background: rgba(0,0,0,.25); }
.home-page .dot.is-active { background: #111; }
.home-page .about-section { padding-top: 85px; padding-bottom: 95px; }
.home-page .about-copy h2 { color: var(--brand-red); }
.home-page .services-section,
.home-page .home-additional-services { background: #dff7f8; }
.home-page .section-heading h2,
.home-page .service-info h3 { color: var(--brand-red); }
.home-page #services .section-heading h2 { white-space: nowrap; }
.home-page .service-card { box-shadow: none; }
.home-page .service-info { text-align: center; }
.home-page .home-featured-services {
  max-width: 900px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-page .home-additional-services { padding-top: 40px; }
.home-page .home-additional-services .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1000px) {
  .home-page .home-additional-services .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-page .hero { height: min(62vw, 300px); min-height: 240px; }
  .home-page .hero-arrow.previous { left: 28px; }
  .home-page .hero-arrow.next { right: 28px; }
  .home-page #services .section-heading h2 { font-size: clamp(1.15rem, 5.4vw, 2rem); white-space: nowrap; }
  .home-page .about-section { padding-top: 38px; padding-bottom: 75px; }
  .home-page .about-copy h2 { margin-bottom: 28px; }
  .home-page .stats-row { display: grid; grid-template-columns: 1fr; gap: 30px; }
  .home-page .home-featured-services,
  .home-page .home-additional-services .services-grid { grid-template-columns: 1fr; }
  .home-page .about-photo-wrap { display: block; width: 100%; max-width: 520px; margin: 0 auto; padding: 0 0 20px; }
  .home-page .about-photo { width: 100%; height: clamp(190px, 60vw, 280px); }
}
