/* ===== Radix Power Engineering ===== */
:root {
  --navy: #2a2566;
  --navy-dark: #1c1848;
  --blue: #1f5fae;
  --accent: #f5a524;
  --accent-dark: #e08e0b;
  --gold: #c9a36a;
  --soft: #f4f6fb;
  --text: #4a4f63;
  --heading: #1c1848;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 600; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent-dark); }
section[id], header[id] { scroll-margin-top: 80px; }

/* ----- Buttons ----- */
.btn-accent {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--navy-dark);
  font-weight: 600;
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: .75rem 1.6rem; font-size: 1rem; border-radius: 8px; }

/* ----- Top bar ----- */
.topbar {
  background: var(--navy-dark);
  color: #cfd2e6;
  font-size: .85rem;
  padding: .45rem 0;
}
.topbar a { color: #cfd2e6; }
.topbar a:hover { color: var(--accent); }
.topbar i { color: var(--accent); margin-right: 4px; }

/* ----- Logo ----- */
.brand-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
}
.logo-word {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 1px;
  color: var(--blue);
}
.logo-r { display: inline-flex; align-items: center; }
.logo-r i {
  order: -1;
  font-size: .8em;
  color: var(--accent);
  margin-right: -2px;
}
.logo-a { color: var(--accent); }
.logo-sub {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--blue);
  margin-top: 2px;
}
.brand-logo.light .logo-word, .brand-logo.light .logo-sub { color: #fff; }
.brand-logo.light .logo-a { color: var(--accent); }

/* ----- Navbar ----- */
.navbar {
  background: #fff;
  box-shadow: 0 2px 18px rgba(28, 24, 72, .08);
  padding: .6rem 0;
}
.navbar .nav-link {
  color: var(--navy);
  font-weight: 500;
  padding: .5rem .8rem !important;
  position: relative;
}
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--accent-dark); }
.navbar-toggler { border: none; font-size: 1.8rem; color: var(--navy); }
.navbar-toggler:focus { box-shadow: none; }

/* ----- Hero ----- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(245, 165, 36, .18), transparent 40%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #3a3490 100%);
  color: #fff;
  padding: 90px 0 150px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-bolt {
  position: absolute;
  right: -60px;
  top: -40px;
  font-size: 26rem;
  color: rgba(245, 165, 36, .07);
  line-height: 1;
  pointer-events: none;
}
.hero-title {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 1rem 0;
}
.hero-title span { color: var(--accent); }
.hero .lead { color: #d6d8ec; font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  padding: .35rem .9rem;
  border: 1px solid rgba(245, 165, 36, .5);
  border-radius: 50px;
}
.eyebrow.dark { color: var(--accent-dark); background: rgba(245, 165, 36, .1); border-color: transparent; }
.hero-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 1.8rem;
}
.hero-card h5 { color: #fff; font-family: 'Oswald', sans-serif; letter-spacing: .5px; margin-bottom: 1rem; }
.hero-card h5 i { color: var(--accent); }
.hero-list { list-style: none; padding: 0; margin: 0; }
.hero-list li {
  padding: .5rem 0 .5rem 1.6rem;
  border-bottom: 1px dashed rgba(255, 255, 255, .15);
  position: relative;
  font-size: .95rem;
}
.hero-list li:last-child { border-bottom: none; }
.hero-list li::before {
  content: "\F46C";
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 110px; }

/* ----- Highlights ----- */
.highlights { margin-top: -60px; position: relative; z-index: 2; }
.stat {
  background: #fff;
  border-radius: 14px;
  padding: 1.6rem 1rem;
  box-shadow: 0 10px 35px rgba(28, 24, 72, .1);
  height: 100%;
  border-bottom: 4px solid var(--accent);
  transition: transform .3s;
}
.stat:hover { transform: translateY(-6px); }
.stat i { font-size: 2rem; color: var(--blue); }
.stat h3 { font-family: 'Oswald', sans-serif; font-size: 1.6rem; margin: .5rem 0 .2rem; }
.stat p { margin: 0; font-size: .88rem; }

/* ----- Sections ----- */
.section { padding: 90px 0; }
.bg-soft { background: var(--soft); }
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  margin: .9rem 0 1rem;
}
.section-title span { color: var(--accent-dark); }
.section-title.light { color: #fff; }
.section-title.light span { color: var(--accent); }
.section-lead { max-width: 720px; margin: 0 auto; }
.sub-title { font-family: 'Oswald', sans-serif; color: var(--navy); }

/* ----- About ----- */
.mv-card {
  border-radius: 16px;
  padding: 2rem 1.6rem;
  height: 100%;
  color: #fff;
}
.mv-card.mission { background: linear-gradient(145deg, var(--navy), var(--blue)); }
.mv-card.vision { background: linear-gradient(145deg, var(--accent-dark), var(--accent)); }
.mv-card i { font-size: 2.4rem; }
.mv-card h4 { color: #fff; margin: .8rem 0; font-family: 'Oswald', sans-serif; }
.mv-card p { margin: 0; opacity: .95; }
.value-card {
  background: #fff;
  border: 1px solid #e7e9f3;
  border-radius: 14px;
  padding: 1.8rem 1.4rem;
  height: 100%;
  text-align: center;
  transition: all .3s;
}
.value-card:hover { border-color: var(--accent); box-shadow: 0 12px 30px rgba(28, 24, 72, .1); transform: translateY(-4px); }
.value-card i {
  display: inline-flex;
  width: 64px; height: 64px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(31, 95, 174, .1);
  color: var(--blue);
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.value-card p { font-size: .92rem; margin: 0; }

/* ----- Products ----- */
.product-list-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(28, 24, 72, .07);
  height: 100%;
}
.plc-head {
  background: var(--navy);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .5px;
  padding: 1rem 1.5rem;
}
.product-list-card.alt .plc-head { background: var(--gold); }
.plc-head i { color: var(--accent); margin-right: 6px; }
.product-list-card.alt .plc-head i { color: #fff; }
.arrow-list { list-style: none; padding: 1.3rem 1.5rem; margin: 0; }
.arrow-list li { padding: .45rem 0 .45rem 1.5rem; position: relative; font-weight: 500; color: var(--heading); }
.arrow-list li::before {
  content: "\F285";
  font-family: 'bootstrap-icons';
  position: absolute; left: 0;
  color: var(--accent-dark);
  font-size: .85rem;
  top: .6rem;
}
@media (min-width: 576px) {
  .arrow-list.two-col { columns: 2; column-gap: 1.5rem; }
  .arrow-list.two-col li { break-inside: avoid; }
}
.icon-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem .5rem;
  text-align: center;
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 6px 20px rgba(28, 24, 72, .06);
  transition: all .3s;
  height: 100%;
}
.icon-tile i { font-size: 2rem; color: var(--accent-dark); transition: color .3s; }
.icon-tile:hover { background: var(--navy); color: #fff; transform: translateY(-4px); }
.icon-tile:hover i { color: var(--accent); }

/* ----- Solutions ----- */
.solution-tabs {
  gap: .4rem;
  position: sticky;
  top: 90px;
}
.solution-tabs .nav-link {
  text-align: left;
  color: var(--navy);
  background: var(--soft);
  border-radius: 10px;
  font-weight: 500;
  padding: .75rem 1rem;
}
.solution-tabs .nav-link i { color: var(--accent-dark); margin-right: 8px; }
.solution-tabs .nav-link.active {
  background: var(--navy);
  color: #fff;
}
.solution-tabs .nav-link.active i { color: var(--accent); }
@media (max-width: 991.98px) {
  .solution-tabs {
    position: static;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .solution-tabs .nav-link { white-space: nowrap; flex-shrink: 0; }
}
.solution-content {
  background: #fff;
  border: 1px solid #e7e9f3;
  border-radius: 16px;
  padding: 2rem;
}
.solution-content h3 {
  font-family: 'Oswald', sans-serif;
  color: var(--navy);
  border-left: 5px solid var(--accent);
  padding-left: .8rem;
  margin-bottom: 1.2rem;
}
.info-box {
  background: var(--soft);
  border-radius: 12px;
  padding: 1.4rem;
}
.info-box h5 { color: var(--blue); font-size: 1.05rem; margin-bottom: .7rem; }
.info-box p { font-size: .93rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: .28rem 0 .28rem 1.6rem; font-size: .93rem; }
.check-list li::before {
  content: "\F26A";
  font-family: 'bootstrap-icons';
  position: absolute; left: 0; top: .3rem;
  color: var(--accent-dark);
}
.check-list.light li { color: #d6d8ec; }
.check-list.light li::before { color: var(--accent); }
.feature-mini {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: var(--soft);
  border-radius: 12px;
  padding: 1rem;
  height: 100%;
}
.feature-mini i { font-size: 1.6rem; color: var(--accent-dark); }
.feature-mini p { margin: 0; font-size: .9rem; }
.spec-table { font-size: .88rem; min-width: 640px; }
.spec-table thead th { background: var(--navy); color: #fff; font-weight: 500; }
.spec-table tbody td:first-child { font-weight: 600; color: var(--heading); }
.spec-table tbody tr:nth-child(even) td { background: var(--soft); }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-row span {
  background: rgba(245, 165, 36, .12);
  color: var(--accent-dark);
  font-weight: 500;
  font-size: .85rem;
  padding: .35rem .9rem;
  border-radius: 50px;
}

/* ----- EPC ----- */
.epc-section {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #d6d8ec;
  position: relative;
}
.epc-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 2rem 1.6rem;
  height: 100%;
  transition: all .3s;
}
.epc-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.epc-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .8rem;
}
.epc-card h5 { color: #fff; margin-bottom: 1rem; }

/* ----- Brands ----- */
.brand-box {
  background: #fff;
  border-radius: 12px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  box-shadow: 0 6px 20px rgba(28, 24, 72, .06);
  transition: transform .3s;
  padding: .5rem;
}
.brand-box:hover { transform: scale(1.04); }
.b-schneider { color: #3dcd58; }
.b-abb { color: #ff000f; font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: 3px; }
.b-fujihd { color: #1e3c96; letter-spacing: 2px; }
.b-volvo { color: #1a3a73; font-family: Georgia, serif; }
.b-cummins { color: #111; font-style: italic; }
.b-deutz { color: #1a1a1a; letter-spacing: 3px; }
.b-perkins { color: #1a5fb4; }
.b-hyundai { color: #0a4a9e; letter-spacing: 1px; }

/* ----- Profile download ----- */
.profile-box {
  background: linear-gradient(135deg, #fff8ec, #f4f6fb);
  border: 1px solid #f0e2c6;
  border-radius: 20px;
  padding: 3rem;
}
.profile-preview {
  position: relative;
  display: inline-block;
  max-width: 360px;
  transform: rotate(-3deg);
  transition: transform .4s;
}
.profile-preview:hover { transform: rotate(0) scale(1.02); }
.profile-preview img {
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(28, 24, 72, .25);
  border: 6px solid #fff;
}
.pdf-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  background: #d93025;
  color: #fff;
  font-weight: 700;
  padding: .45rem .9rem;
  border-radius: 50px;
  box-shadow: 0 6px 16px rgba(217, 48, 37, .4);
}

/* ----- CTA ----- */
.cta { background: var(--accent); padding: 50px 0; }
.cta h3 { color: var(--navy-dark); font-weight: 700; }
.cta p { color: var(--navy-dark); }
.cta .btn-dark { background: var(--navy-dark); border-color: var(--navy-dark); }

/* ----- Contact ----- */
.contact-card {
  background: var(--navy);
  color: #d6d8ec;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
}
.contact-item { display: flex; gap: 1rem; margin-bottom: 1.3rem; }
.contact-item > i {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy-dark);
  font-size: 1.2rem;
}
.contact-item h6 { color: #fff; margin-bottom: .2rem; }
.contact-item p { margin: 0; font-size: .93rem; }
.contact-item a { color: #d6d8ec; }
.contact-item a:hover { color: var(--accent); }
.director {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 1.3rem;
}
.director .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--accent);
  flex-shrink: 0;
}
.director h6 { color: var(--accent); margin-bottom: .2rem; }
.director p { margin: 0; font-size: .9rem; }
.card-thumb { display: block; }
.card-thumb img { border-radius: 10px; border: 3px solid rgba(255, 255, 255, .2); transition: transform .3s; }
.card-thumb:hover img { transform: scale(1.02); }
.contact-form {
  background: #fff;
  border: 1px solid #e7e9f3;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(28, 24, 72, .06);
}
.contact-form .form-label { font-weight: 500; color: var(--heading); font-size: .92rem; }
.contact-form .form-control, .contact-form .form-select {
  border-radius: 8px;
  padding: .7rem .9rem;
  border-color: #dde0ec;
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(245, 165, 36, .2);
}
.map-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(28, 24, 72, .08); }
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ----- Footer ----- */
.footer { background: var(--navy-dark); color: #aeb2cf; padding: 70px 0 0; font-size: .92rem; }
.footer h6 { color: #fff; font-family: 'Oswald', sans-serif; letter-spacing: .5px; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #aeb2cf; }
.footer-links a:hover { color: var(--accent); }
.footer-links i { color: var(--accent); margin-right: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 40px;
  padding: 1.3rem 0;
  text-align: center;
  font-size: .85rem;
}

/* ----- Back to top ----- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--navy-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 1030;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--navy); color: #fff; }

/* ----- Reveal animation ----- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
  .navbar-collapse { padding: 1rem 0; }
  .hero { padding: 60px 0 130px; }
  .section { padding: 70px 0; }
  .profile-box { padding: 2rem 1.4rem; }
}
@media (max-width: 575.98px) {
  .logo-word { font-size: 1.6rem; }
  .logo-sub { font-size: .5rem; }
  .hero-card { padding: 1.3rem; }
  .solution-content, .contact-form, .contact-card { padding: 1.3rem; }
  .stat h3 { font-size: 1.25rem; }
  .btn-lg { width: 100%; }
  .cta .btn-lg { width: auto; }
}
