/* =========================================================
   RDK GROUP — Home Page 2
   ========================================================= */

:root{
  --navy: #0d1f4d;
  --navy-deep: #0a1738;
  --blue: #3457e0;
  --blue-light: #6f95ff;
  --gold: #eeb43e;
  --gold-dark: #d99f2b;
  --gray-900: #1c2333;
  --gray-700: #4b5568;
  --gray-500: #6b7280;
  --gray-300: #d8dce3;
  --gray-100: #f4f5f8;
  --white: #ffffff;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --container: 1800px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 30px rgba(13, 31, 77, 0.08);
  --shadow-lift: 0 20px 45px rgba(13, 31, 77, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
ul, ol{ list-style: none; margin: 0; padding: 0; }
a{ color: inherit; text-decoration: none; }
h1, h2, h3, h4{
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
}
p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link{
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 999;
  font-weight: 600;
  font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus{ top: 12px; }

a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero-slide, .hero-bg, .btn, .btn span, .link-arrow span,
  .company-card, .company-card-img img, .project-card, .project-card-img img,
  .testimonial, .t-arrow{ transition: none !important; animation: none !important; }
}

/* ---------- Shared bits ---------- */
.eyebrow{
  font-family: var(--font-head);
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.eyebrow--center{ text-align: center; }

.section-title{
  font-size: clamp(24px, 2.9vw, 34px);
  font-weight: 700;
  margin: 0 0 44px;
  max-width: 720px;
}
.section-title--center{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-title--wide{ max-width: none; }
.section-title--regular{ font-weight: 500; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn span{ transition: transform .25s ease; }
.btn:hover span{ transform: translateX(3px); }
.btn:hover{ transform: translateY(-2px); }

.btn-gold{
  background: var(--gold);
  color: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(238, 180, 62, 0.35);
}
.btn-gold:hover{ background: var(--gold-dark); }

.btn-outline{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover{ background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }

.link-arrow{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
}
.link-arrow span{ transition: transform .2s ease; }
.link-arrow:hover span{ transform: translateX(4px); }

.accent-gold{ color: var(--gold); }
.accent-blue{
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 600;
  padding: 22px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease, position .35s ease;
}
.site-header.is-scrolled,
.site-header.is-open{
  position: fixed;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(13,31,77,0.08);
  padding: 14px 0;
}

.header-inner{
  display: flex;
  align-items: center;
  gap: clamp(110px, 18vw, 260px);
}

.logo img{ height: 54px; width: auto; }
.site-header.is-scrolled .logo img,
.site-header.is-open .logo img{ height: 46px; }
.logo{ transition: none; }

.main-nav ul{ display: flex; align-items: center; gap: clamp(42px, 5.9vw, 88px); }
.main-nav a{
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--navy);
  position: relative;
  padding-bottom: 4px;
  transition: color .2s ease;
}
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--navy);
  transition: width .25s ease;
}
.main-nav a:hover{ color: var(--blue); }
.main-nav a.active::after{ width: 100%; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
  z-index: 600;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.site-header.is-open .nav-toggle span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2){ opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 620px;
  max-height: 900px;
  overflow: hidden;
  background: var(--navy);
}

.hero-track{ position: relative; width: 100%; height: 100%; }

.hero-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active{ opacity: 1; visibility: visible; z-index: 2; }

.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.hero-slide.is-active .hero-bg{ transform: scale(1); }

.hero-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,17,45,.72) 5%, rgba(10,17,45,.35) 45%, rgba(10,17,45,.05) 70%);
}
.hero-scrim--light{
  background: linear-gradient(100deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.16) 38%, rgba(255,255,255,0) 62%);
}

.hero-inner{
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-copy{ max-width: 620px; }
.hero-copy--right{ margin-left: auto; text-align: right; }
.hero-copy--left{ margin-right: auto; text-align: left; }

.hero-copy h1{
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 700;
  margin: 0 0 22px;
}
.hero-slide--light .hero-copy h1{ color: var(--white); }
.hero-slide--dark .hero-copy h1{ color: var(--navy); }

.hero-copy p{
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
  margin: 0 0 34px;
  max-width: 400px;
}
.hero-slide--light .hero-copy p{ color: rgba(255,255,255,0.92); }
.hero-slide--dark .hero-copy p{ color: var(--gray-700); }
.hero-copy--right p{ margin-left: auto; max-width: 470px; }

.hero-cta{
  position: absolute;
  left: 24px;
  bottom: 64px;
  z-index: 3;
}

.hero-badge{
  position: absolute;
  right: 24px;
  bottom: 64px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 26px;
  box-shadow: var(--shadow-lift);
  max-width: 320px;
  z-index: 3;
}
.hero-badge strong{
  display: block;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.hero-badge span{ color: var(--gray-500); font-size: 14px; }

.hero-dots{
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dot{
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
  background: transparent;
  padding: 0;
  transition: background .25s ease, width .25s ease;
}
.hero-dot.is-active{ background: var(--gold); border-color: var(--gold); width: 26px; border-radius: 6px; }

/* =========================================================
   STATS
   ========================================================= */
.stats{ padding: 52px 0; background: var(--white); }
.stats-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
.stat{ display: flex; flex-direction: column; gap: 8px; }
.stat-num{
  font-family: var(--font-head);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--navy);
}
.stat-label{ color: var(--gray-500); font-size: 14.5px; }

/* =========================================================
   JOURNEY
   ========================================================= */
.journey{ padding: 28px 0 60px; }

.journey-steps{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  counter-reset: step;
}
.journey-step{
  text-align: center;
  padding: 0 8px;
  position: relative;
}
.journey-num{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  background: var(--white);
  position: relative;
  z-index: 2;
}
.journey-step h3{
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.journey-step p{ font-size: 14px; color: var(--gray-500); line-height: 1.5; }

.journey-steps::before{
  content: "";
  position: absolute;
  top: 27px;
  left: calc(10% + 27px);
  right: calc(10% + 27px);
  height: 1px;
  background: var(--gray-300);
  z-index: 1;
}

/* =========================================================
   OUR COMPANIES
   ========================================================= */
.companies{ padding: 70px 0; }
.companies-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.company-card{
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 18px 18px 26px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.company-card:hover{ box-shadow: var(--shadow-card); transform: translateY(-4px); }
.company-card-img{
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 22px;
}
.company-card-img img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.company-card:hover .company-card-img img{ transform: scale(1.06); }
.company-card h3{ font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.company-card p{ font-size: 14.5px; line-height: 1.6; margin-bottom: 22px; min-height: 44px; }

/* =========================================================
   FEATURED PROJECTS
   ========================================================= */
.projects{ padding: 70px 0; background: var(--white); }
.projects-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.project-card{
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}
.project-card:hover{ box-shadow: var(--shadow-card); transform: translateY(-4px); }
.project-card-img{ aspect-ratio: 4 / 3; overflow: hidden; }
.project-card-img img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-card-img img{ transform: scale(1.08); }
.project-card h3{ font-size: 15.5px; font-weight: 700; margin: 16px 16px 4px; }
.project-card p{ font-size: 13.5px; color: var(--gray-500); margin: 0 16px 18px; }

.projects-cta{ text-align: center; margin-top: 44px; }

/* =========================================================
   VISION / EXPERTISE
   ========================================================= */
.vision{ padding: 30px 0 80px; }
.vision-inner{
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.vision-text .section-title{ margin-bottom: 18px; }
.vision-text p{ font-size: 15px; line-height: 1.7; max-width: 440px; }
.vision-features{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 8px;
}
.vision-feature h3{ font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.vision-feature span{ font-size: 13.5px; color: var(--gray-500); }

/* =========================================================
   CLIENT VOICES
   ========================================================= */
.testimonials{
  position: relative;
  padding: 60px 0;
  min-height: 300px;
  overflow: hidden;
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}

/* Full-bleed photo strip on the right, fading into the page on its left edge */
.testimonials-media{
  position: absolute;
  inset: 0;
  left: 42%;
  z-index: 1;
  pointer-events: none;
}
.testimonial-media-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 16%);
  mask-image: linear-gradient(to right, transparent 0%, black 16%);
}
.testimonial-media-img.is-active{ opacity: 1; }

.testimonials-inner{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.testimonials-heading .section-title{ margin-bottom: 0; font-size: clamp(24px,2.6vw,30px); max-width: 260px; }
.testimonials-heading{ min-width: 250px; }

.testimonials-track{ position: relative; min-height: 140px; display: flex; align-items: center; }
.testimonial{
  display: none;
  margin: 0;
  max-width: 460px;
}
.testimonial.is-active{ display: block; animation: fadeIn .5s ease; }
.testimonial p{
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-900);
  font-style: normal;
}

@keyframes fadeIn{ from{ opacity: 0; transform: translateY(8px);} to{ opacity: 1; transform: translateY(0);} }

.t-arrow{
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  flex-shrink: 0;
}
.t-arrow:hover{ background: var(--navy); color: var(--white); border-color: var(--navy); transform: scale(1.05); }

/* =========================================================
   CTA
   ========================================================= */
.cta{ padding: 40px 0 90px; }
.cta .container{ max-width: 1400px; }
.cta-box{
  background: var(--navy-deep);
  background-image: radial-gradient(circle at 85% 20%, rgba(52,87,224,0.35), transparent 55%);
  border-radius: var(--radius-lg);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-text h2{ color: var(--white); font-size: clamp(24px,2.8vw,32px); font-weight: 700; margin-bottom: 10px; }
.cta-text p{ color: rgba(255,255,255,0.75); font-size: 15.5px; max-width: 420px; }
.cta-actions{ display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--white); padding-top: 70px; }
.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 56px;
}
.footer-logo{ height: 76px; width: auto; margin-bottom: 18px; }
.footer-about p{ font-size: 14.5px; line-height: 1.65; color: var(--gray-500); max-width: 260px; }

.footer-col h4{ font-size: 15.5px; font-weight: 700; margin-bottom: 20px; color: var(--navy); }
.footer-col ul{ display: flex; flex-direction: column; gap: 13px; }
.footer-col a{ font-size: 14.5px; color: var(--gray-500); transition: color .2s ease; }
.footer-col a:hover{ color: var(--blue); }
.footer-contact li{ font-size: 14.5px; color: var(--gray-500); }

.footer-bottom{
  border-top: 1px solid var(--gray-300);
  padding: 24px 0;
}
.footer-bottom p{ font-size: 13.5px; color: var(--gray-500); }

/* =========================================================
   RESPONSIVE — LAPTOP
   ========================================================= */
@media (max-width: 1199px){
  .container{ padding: 0 20px; }
  .projects-grid{ grid-template-columns: repeat(3, 1fr); }
  .projects-grid .project-card:nth-child(4),
  .projects-grid .project-card:nth-child(5){ display: none; }
  .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-contact{ grid-column: span 1; }
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */
@media (max-width: 991px){
  .main-nav{
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 550;
    padding-top: 90px;
  }
  .site-header.is-open .main-nav{ transform: translateX(0); }
  .main-nav ul{ flex-direction: column; gap: 30px; }
  .main-nav a{ font-size: 24px; }
  .nav-toggle{ display: flex; }

  .hero{ height: 86vh; min-height: 560px; }
  .hero-badge{ max-width: 260px; padding: 14px 18px; bottom: 90px; }

  .stats-grid{ grid-template-columns: repeat(3, 1fr); row-gap: 30px; }

  .journey-steps{ grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .journey-steps::before{ display: none; }

  .companies-grid{ grid-template-columns: repeat(2, 1fr); }
  .companies-grid .company-card:nth-child(3){ grid-column: span 2; max-width: 480px; margin: 0 auto; }

  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
  .projects-grid .project-card:nth-child(4){ display: block; }
  .projects-grid .project-card:nth-child(5){ display: none; }

  .vision-inner{ grid-template-columns: 1fr; }
  .vision-features{ grid-template-columns: repeat(2, 1fr); row-gap: 28px; }

  .testimonials{ display: flex; flex-direction: column; gap: 24px; overflow: visible; min-height: 0; }
  .testimonials-media{
    position: relative;
    order: 2;
    left: 0;
    width: 100%;
    height: 220px;
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  .testimonial-media-img{ mask-image: none; -webkit-mask-image: none; }
  .testimonials-inner{ order: 1; grid-template-columns: 1fr; text-align: center; position: relative; }
  .testimonials-heading{ min-width: 0; }
  .testimonials-heading .section-title{ max-width: none; margin: 0 auto; }
  .testimonial{ text-align: center; max-width: none; }
  .t-arrow{ position: absolute; top: 50%; transform: translateY(-50%); }
  .t-arrow--prev{ left: 0; }
  .t-arrow--next{ right: 0; }

  .cta-box{ justify-content: center; text-align: center; flex-direction: column; }
  .cta-actions{ justify-content: center; }

  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer-about{ grid-column: span 2; }
}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */
@media (max-width: 600px){
  .container{ padding: 0 18px; }

  .site-header{ padding: 16px 0; }
  .logo img{ height: 42px; }

  .hero{ height: 78vh; min-height: 560px; }
  .hero-copy--right, .hero-copy--left{ text-align: left; margin: 0; max-width: 100%; }
  .hero-copy--right p{ margin-left: 0; }
  .hero-copy p{ max-width: 100%; }
  .hero-badge{ left: 18px; right: 18px; bottom: 76px; max-width: none; }
  .hero-cta{ left: 18px; bottom: 172px; }

  .stats{ padding: 40px 0; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }

  .journey{ padding: 60px 0 40px; }
  .journey-steps{ grid-template-columns: repeat(2, 1fr); }

  .section-title{ margin-bottom: 30px; }

  .companies{ padding: 50px 0; }
  .companies-grid{ grid-template-columns: 1fr; }
  .companies-grid .company-card:nth-child(3){ grid-column: auto; max-width: none; }

  .projects{ padding: 50px 0; }
  .projects-grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .project-card h3{ font-size: 14px; margin: 12px 12px 4px; }
  .project-card p{ margin: 0 12px 14px; }

  .projects-cta{ margin-top: 30px; }

  .vision{ padding: 20px 0 60px; }
  .vision-features{ grid-template-columns: 1fr 1fr; }

  .testimonials{ padding: 60px 0; }
  .testimonial p{ font-size: 15.5px; }

  .cta{ padding: 20px 0 60px; }
  .cta-box{ padding: 38px 26px; }
  .cta-actions{ flex-direction: column; width: 100%; }
  .cta-actions .btn{ justify-content: center; width: 100%; }

  .site-footer{ padding-top: 50px; }
  .footer-grid{ grid-template-columns: 1fr; gap: 34px; }
  .footer-about{ grid-column: auto; }
}
