/* =========================================================
   IONEX ENGINEERS — FULL COMPANY PROFILE / ABOUT PAGE
   Fonts  : Rubik (headings) + Poppins (body)
   Redesigned for a cleaner, more premium industrial look
   Responsive: fluid clamp() typography/spacing + breakpoints
               1199 / 991 / 767 / 575 / 400
========================================================= */

:root{
  --blue:      #0091DD;
  --blue-dark: #006BAA;
  --green:     #028439;
  --green-dark:#016b2e;
  --dark:      #0b1620;
  --dark-2:    #071019;
  --white:     #ffffff;
  --black:     #0a0a0a;
  --text:      #26333d;
  --text-soft: #56666f;
  --light:     #f5f9fa;
  --line:      #e4ecee;

  --font-head: 'Rubik', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --shadow-sm: 0 4px 14px rgba(11,22,32,.06);
  --shadow-md: 0 18px 40px rgba(11,22,32,.10);
  --radius: 10px;
}

*{ margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }
html{ overflow-x:hidden; scroll-behavior:smooth; }
body{ font-family: var(--font-body); color: var(--text); background: var(--white); overflow-x:hidden; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
}

/* =========================================================
   HERO / INTRO BANNER
========================================================= */
.hero{
  position:relative;
  min-height: clamp(340px, 46vw, 500px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  background-size: cover;
  background-position:center;
  overflow:hidden;
}

.hero-overlay{
  position:absolute; inset:0;
  background:
    linear-gradient(115deg, rgba(6,14,22,.94) 0%, rgba(7,16,25,.86) 38%, rgba(2,80,120,.55) 72%, rgba(2,132,57,.45) 100%);
}

.hero-inner{
  position:relative;
  z-index:2;
  max-width: 1300px;
  margin: 0 auto;
  padding: clamp(50px, 9vw, 70px) clamp(18px, 4vw, 30px) clamp(70px, 10vw, 100px);
  width:100%;
  animation: heroRise .7s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes heroRise{
  from{ opacity:0; transform: translateY(18px); }
  to{ opacity:1; transform: translateY(0); }
}

.breadcrumb{
  display:flex;
  align-items:center;
  flex-wrap: wrap;
  gap:10px;
  font-family: var(--font-head);
  font-weight:500;
  font-size: clamp(12px, 1.6vw, 13.5px);
  color: rgba(255,255,255,.75);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.breadcrumb a{ transition:.2s; }
.breadcrumb a:hover{ color: #4ee08c; }
.breadcrumb i{ font-size:10px; color: rgba(255,255,255,.45); }
.breadcrumb span{ color: #4ee08c; font-weight:600; }

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-head);
  font-weight:600;
  font-size: clamp(11px, 1.5vw, 12.5px);
  letter-spacing: .6px;
  text-transform:uppercase;
  padding: 9px 18px;
  border-radius: 30px;
  margin-bottom: clamp(18px, 3vw, 24px);
  max-width: 100%;
}
.hero-badge i{ color: #4ee08c; flex-shrink:0; }

.hero-inner h1{
  font-family: var(--font-head);
  font-weight:800;
  font-size: clamp(30px, 6.2vw, 58px);
  letter-spacing: clamp(0.5px, .3vw, 2px);
  color: #fff;
  line-height:1.12;
  word-break: break-word;
  text-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.hero-inner h1 span{
  background: linear-gradient(90deg, #4ee08c, #0091DD);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline{
  font-family: var(--font-body);
  font-weight:300;
  font-size: clamp(15px, 2.4vw, 21px);
  color: rgba(255,255,255,.82);
  letter-spacing: clamp(1px, .3vw, 3px);
  margin: 8px 0 clamp(24px, 4vw, 34px);
}

.hero-pills{ display:flex; flex-wrap:wrap; gap: 14px clamp(16px, 3vw, 30px); }
.hero-pill{
  display:flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-head);
  font-weight:500;
  font-size: clamp(13px, 1.8vw, 14.5px);
  color:#fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  padding: 9px 16px;
  border-radius: 8px;
}
.hero-pill i{ color: #4ee08c; flex-shrink:0; }

.hero-wave{
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: clamp(30px, 6vw, 60px);
  background: var(--white);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 75% 100%, 50% 30%, 25% 100%, 0 40%);
}

/* =========================================================
   PAGE BODY — SIDEBAR + CONTENT
========================================================= */
.profile-wrap{
  max-width: 1400px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 270px 1fr;
  gap: 0;
  align-items:start;
}

/* ---- sticky nav (desktop) ---- */
.profile-nav{
  position: sticky;
  top: 0;
  padding: 54px 26px;
  border-right: 1px solid var(--line);
  max-height: 100vh;
  overflow-y: auto;
}

.nav-label{
  display:block;
  font-family: var(--font-head);
  font-weight:700;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform:uppercase;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.profile-nav ul{ display:flex; flex-direction:column; gap: 3px; }

.profile-nav a{
  display:flex;
  align-items:center;
  gap:12px;
  font-family: var(--font-head);
  font-weight:500;
  font-size: 13.8px;
  color: var(--text-soft);
  padding: 11px 14px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: .22s ease;
}
.profile-nav a em{
  font-style:normal;
  font-weight:700;
  color: #c3cdd0;
  font-size: 12px;
  width: 20px;
  flex-shrink:0;
  transition:.22s;
}
.profile-nav a:hover{ background: var(--light); color: var(--dark); transform: translateX(2px); }
.profile-nav a.active{
  background: linear-gradient(90deg, rgba(2,132,57,.08), transparent);
  border-left-color: var(--green);
  color: var(--green-dark);
  font-weight:600;
}
.profile-nav a.active em{ color: var(--green); }

/* =========================================================
   MAIN CONTENT
========================================================= */
.profile-content{ min-width:0; }

.profile-section{
  padding: clamp(46px, 6vw, 72px) clamp(20px, 5vw, 54px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.profile-section.alt{ background: var(--light); }
.profile-section.highlight{
  background: linear-gradient(155deg, #eaf9f0 0%, var(--white) 55%);
  border-bottom:none;
}

/* ---- section heading ---- */
.sec-head{
  display:flex;
  align-items:flex-start;
  gap: clamp(14px, 2.5vw, 24px);
  margin-bottom: clamp(24px, 4vw, 34px);
  position:relative;
}

.sec-number{
  font-family: var(--font-head);
  font-weight:800;
  font-size: clamp(30px, 6vw, 54px);
  line-height:1;
  color: transparent;
  -webkit-text-stroke: 1.5px #d6e1e4;
  flex-shrink:0;
}

.sec-head h2{
  font-family: var(--font-head);
  font-weight:700;
  font-size: clamp(19px, 3.2vw, 29px);
  color: var(--dark);
  margin-top: 8px;
  word-break: break-word;
}

.sec-underline{
  display:block;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

/* ---- section body text ---- */
.sec-grid{
  display:grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: clamp(26px, 4vw, 54px);
  align-items:start;
  margin-bottom: clamp(32px, 5vw, 46px);
}

.sec-text p{
  font-size: clamp(13.8px, 1.8vw, 15px);
  line-height: 1.95;
  color: var(--text-soft);
  margin-bottom: 17px;
  font-family:var(--font-body);
  font-weight: 400;
}
.sec-text p:last-child{ margin-bottom:0; }
.sec-text strong{ color: var(--dark); font-weight:600; }

.sec-text-single{ max-width: 900px; margin-bottom: 32px; }

.sec-image{ position:relative; }
.sec-image img{
  width:100%;
  height: clamp(240px, 32vw, 360px);
  object-fit:cover;
  border-radius: var(--radius);
  position:relative;
  z-index:2;
  box-shadow: var(--shadow-md);
}
.sec-image-frame{
  position:absolute;
  top: 18px; left: 18px;
  width:100%; height:100%;
  border: 3px solid var(--green);
  border-radius: var(--radius);
  z-index:1;
}

/* ---- product range box ---- */
.range-box{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 40px);
}
.range-box h3{
  font-family: var(--font-head);
  font-weight:700;
  font-size: clamp(16px, 2.4vw, 18.5px);
  color: var(--dark);
  margin-bottom: clamp(18px, 3vw, 24px);
  padding-bottom: 17px;
  border-bottom: 1px dashed #dde5e7;
}

.range-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px 28px;
}
.range-grid li{
  display:flex;
  align-items:center;
  gap:11px;
  font-size: clamp(12.5px, 1.6vw, 13.7px);
  color: var(--text);
  font-weight:500;
  font-family:var(--font-body);
  transition:.2s;
}
.range-grid li:hover{ color: var(--green-dark); }
.range-grid li i{
  flex-shrink:0;
  width: 22px; height:22px;
  border-radius:50%;
  background: rgba(2,132,57,.1);
  color: var(--green);
  font-size: 10px;
  display:flex; align-items:center; justify-content:center;
}

/* ---- simple checklist ---- */
.simple-list{ margin-bottom: 6px; }
.simple-list li{
  display:flex;
  align-items:flex-start;
  gap:11px;
  font-size: clamp(13.2px, 1.7vw, 14.2px);
  line-height:1.65;
  font-family:var(--font-body);
  font-weight: 400;
  color: var(--text-soft);
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  transition:.2s;
}
.simple-list li:hover{ color: var(--dark); padding-left:4px; }
.simple-list li i{ color: var(--green); margin-top:3px; font-size:12px; flex-shrink:0; }
.simple-list.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
}

/* ---- engineering / support cards ---- */
.card-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 26px);
}
.card-grid.two{ grid-template-columns: repeat(2, 1fr); }

.mini-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 28px) clamp(20px, 3vw, 26px);
  box-shadow: var(--shadow-sm);
  transition: .3s ease;
  min-width:0;
}
.mini-card:hover{
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-top-color: var(--green);
}

.mini-card h4{
  display:flex;
  align-items:center;
  gap:11px;
  font-family: var(--font-head);
  font-weight:700;
  font-size: clamp(14.5px, 2vw, 15.5px);
  color: var(--dark);
  margin-bottom: 17px;
}
.mini-card h4 i{
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--blue));
  width: 32px; height:32px;
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-size:14px;
  flex-shrink:0;
}

.mini-card ul li{
  font-size: clamp(12.6px, 1.6vw, 13.2px);
  line-height:1.7;
  color: var(--text-soft);
  font-family:var(--font-body);
  padding: 6px 0 6px 17px;
  position:relative;
}
.mini-card ul li::before{
  content:"";
  position:absolute;
  left:0; top:15px;
  width:6px; height:6px;
  border-radius:50%;
  background: var(--blue);
}

/* ---- turn key deliverables box ---- */
.deliverables-box{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 40px);
}
.deliverables-box h3{
  font-family: var(--font-head);
  font-weight:700;
  font-size: clamp(16px, 2.4vw, 18.5px);
  color: var(--dark);
  margin-bottom: clamp(18px, 3vw, 24px);
  padding-bottom: 17px;
  border-bottom: 1px dashed #dde5e7;
}

/* =========================================================
   RESPONSIVE — LAPTOP (≤1199px)
========================================================= */
@media (max-width: 1199px){
  .profile-wrap{ grid-template-columns: 230px 1fr; }
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
  .profile-nav{ padding: 44px 20px; }
}

/* =========================================================
   RESPONSIVE — TABLET LARGE (≤991px)
   Sidebar becomes a sticky horizontal scroll bar
========================================================= */
@media (max-width: 991px){

  .profile-wrap{ grid-template-columns: 1fr; }

  .profile-nav{
    position:sticky;
    top:0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-right:none;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    max-height:none;
  }
  .nav-label{ display:none; }
  .profile-nav ul{
    flex-direction:row;
    overflow-x:auto;
    overflow-y:hidden;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .profile-nav ul::-webkit-scrollbar{ height:4px; }
  .profile-nav ul::-webkit-scrollbar-thumb{ background:#dbe3e5; border-radius:4px; }

  .profile-nav a{
    white-space:nowrap;
    border-left:none;
    border-bottom: 3px solid transparent;
    background: var(--light);
    flex-shrink:0;
  }
  .profile-nav a:hover{ transform:none; }
  .profile-nav a.active{ border-bottom-color: var(--green); border-left-color:transparent; background: var(--light); }

  .sec-grid{ grid-template-columns:1fr; }
  .sec-image{ order:-1; }
  .sec-image-frame{ display:none; }

  .range-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   RESPONSIVE — TABLET SMALL / LARGE PHONE (≤767px)
========================================================= */
@media (max-width: 767px){

  .hero-wave{ height:34px; }

  .simple-list.two-col{ grid-template-columns: 1fr; column-gap:0; }
  .card-grid, .card-grid.two{ grid-template-columns: 1fr 1fr; gap:14px; }

  .sec-image img{ height: 240px; }
}

/* =========================================================
   RESPONSIVE — MOBILE (≤575px)
========================================================= */
@media (max-width: 575px){

  .hero-inner{ padding-bottom: 56px; }
  .hero-pills{ flex-direction:column; gap:10px; align-items:flex-start; }
  .breadcrumb{ margin-bottom: 16px; }

  .profile-nav{ padding: 12px 14px; }
  .profile-nav a{ font-size: 12.8px; padding: 8px 10px; }

  .profile-section{ padding-left: 16px; padding-right: 16px; }
  .sec-head{ flex-wrap: wrap; }

  .range-box{ padding: 20px 16px; }
  .range-grid{ grid-template-columns: 1fr; gap:12px; }

  .card-grid, .card-grid.two{ grid-template-columns: 1fr; }

  .deliverables-box{ padding: 20px 16px; }
  .cta-btn{ width:100%; justify-content:space-between; }
  .hero-badge{ white-space:normal; text-align:center; }
}

/* =========================================================
   RESPONSIVE — SMALL PHONE (≤400px)
========================================================= */
@media (max-width: 400px){
  .hero-inner h1{ letter-spacing:0.5px; }
  .sec-number{ font-size: 28px; }
  .sec-head h2{ font-size:17px; }
  .mini-card{ padding: 16px 14px; }
}

/* =========================================================
   LANDSCAPE PHONES / SHORT VIEWPORTS
========================================================= */
@media (max-height: 480px) and (orientation: landscape){
  .hero{ min-height: 340px; }
}