/* ── Reset & Variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark:   #003366;
  --blue-mid:    #005599;
  --blue-light:  #0077cc;
  --accent:      #e8a000;
  --text:        #333;
  --muted:       #666;
  --light-bg:    #f5f8fc;
  --white:       #ffffff;
  --border:      #dde4ed;
  --radius:      6px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 6px 24px rgba(0,0,0,.12);
  --transition:  .25s ease;
  --max-width:   1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); line-height: 1.65; background: var(--white); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Container ─────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-block; padding: .7rem 1.75rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; cursor: pointer; border: none; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: #c98800; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(232,160,0,.35); }
.btn--full { width: 100%; text-align: center; }

/* ── Top Bar ───────────────────────────────────────────── */
.topbar { background: var(--blue-dark); color: rgba(255,255,255,.85); font-size: .82rem; padding: .4rem 0; }
.topbar__inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.topbar__inner span { display: flex; align-items: center; gap: .4rem; }
.topbar__inner i { color: var(--accent); }
.topbar__social { margin-left: auto; display: flex; gap: .75rem; }
.topbar__social a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.topbar__social a:hover { color: var(--accent); }

/* ── Header / Nav ──────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.nav__logo { display: flex; align-items: center; }
.nav__logo-img { height: 44px; width: auto; display: block; }

.nav__links { display: flex; gap: .25rem; }
.nav__links .nav-link {
  padding: .45rem .85rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue-dark);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.nav__links .nav-link:hover,
.nav__links .nav-link.active { background: var(--blue-dark); color: var(--white); }

.nav__toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--blue-dark); cursor: pointer; }

/* ── Hero Carousel ─────────────────────────────────────── */
.hero { position: relative; overflow: hidden; height: min(580px, calc(100vh - 200px)); min-height: 360px; }

.carousel { position: relative; width: 100%; height: 100%; }
.carousel__track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4,0,.2,1); }

.carousel__slide {
  min-width: 100%; height: 100%;
  background-size: cover; background-position: center;
  background-color: var(--blue-dark); /* fallback when no image */
  position: relative;
}

.slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,30,70,.75) 0%, rgba(0,30,70,.3) 100%);
  display: flex; align-items: center;
}
.slide__content { max-width: 580px; padding: 0 calc(5rem + 1cm); color: var(--white); }
.slide__content h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.2; }
.slide__content p  { font-size: 1.05rem; opacity: .9; margin-bottom: 1.75rem; }

/* Carousel Controls */
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.5);
  color: var(--white); width: 44px; height: 44px; border-radius: 50%;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 10;
}
.carousel__btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel__btn--prev { left: 1.25rem; }
.carousel__btn--next { right: 1.25rem; }

.carousel__dots { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background var(--transition), transform var(--transition); }
.dot.active { background: var(--accent); transform: scale(1.25); }

/* ── Stats Bar ─────────────────────────────────────────── */
.stats-bar { background: var(--blue-dark); color: var(--white); padding: 1.5rem 0; }
.stats-bar__inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat span { font-size: .85rem; opacity: .8; margin-top: .25rem; display: block; }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section--alt { background: var(--light-bg); }

.section__tag {
  display: inline-block;
  background: rgba(0,85,153,.1);
  color: var(--blue-mid);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: .3rem .75rem;
  border-radius: 20px;
  margin-bottom: .75rem;
}
.section__tag--center { display: block; text-align: center; }

.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: .5rem;
}
.section__title--left { text-align: left; }
.section__subtitle { text-align: center; color: var(--muted); font-size: 1rem; margin-bottom: 3rem; }

/* ── About ─────────────────────────────────────────────── */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 1rem; }
.about__list { margin: 1.25rem 0 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.about__list li { display: flex; align-items: center; gap: .6rem; font-size: .95rem; }
.about__list li i { color: var(--accent); font-size: 1rem; flex-shrink: 0; }

.about__image { display: flex; align-items: center; justify-content: center; }
.about__img-placeholder {
  width: 100%; max-width: 400px; aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  box-shadow: var(--shadow-md);
}
.about__logo-img { width: 85%; max-width: 260px; }
.about__logo-tagline { margin-top: 1.25rem; color: rgba(255,255,255,.65); font-size: .9rem; letter-spacing: .15em; text-transform: uppercase; }

/* ── Services ──────────────────────────────────────────── */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-bottom: 4px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service__card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service__icon { width: 56px; height: 56px; background: rgba(0,85,153,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.service__icon i { font-size: 1.4rem; color: var(--blue-mid); }
.service__card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .5rem; }
.service__card p  { font-size: .9rem; color: var(--muted); }

/* ── Products ──────────────────────────────────────────── */
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.product__cat {
  display: flex; flex-direction: row; align-items: center; gap: 1.25rem;
  background: var(--white); border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-align: left;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.product__cat:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.product__cat { cursor: pointer; text-decoration: none; }
.product__cat.active { border-color: var(--blue-mid); background: var(--light-bg); box-shadow: var(--shadow-md); }
.product__cat i { font-size: 2rem; color: var(--blue-mid); flex-shrink: 0; width: 2rem; text-align: center; }
.product__cat span { font-size: .92rem; font-weight: 600; color: var(--blue-dark); }

/* ── Product Browser ────────────────────────────────────── */
.product-browser {
  display: none; margin-top: 1.5rem;
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow-md);
  animation: slideDown .25s ease;
}
.product-browser.open { display: block; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.product-browser__header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blue-dark); color: var(--white);
  padding: .85rem 1.5rem; font-weight: 700; font-size: 1rem;
}
.browser-close {
  background: none; border: none; color: var(--white);
  font-size: 1.2rem; cursor: pointer; line-height: 1; padding: 0;
  opacity: .7; transition: opacity var(--transition);
}
.browser-close:hover { opacity: 1; }

.product-browser__body {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: 320px;
}

.product-list {
  border-right: 1px solid var(--border);
  overflow-y: auto; max-height: 400px;
  background: var(--white);
}
.product-list li {
  padding: .75rem 1.25rem; font-size: .9rem; cursor: pointer;
  border-bottom: 1px solid var(--border);
  color: var(--text); transition: background var(--transition), color var(--transition);
  display: flex; align-items: center; gap: .6rem;
}
.product-list li:hover { background: var(--light-bg); color: var(--blue-dark); }
.product-list li.active { background: var(--blue-dark); color: var(--white); font-weight: 600; }
.product-list li.active::before { content: '›'; font-size: 1.1rem; }
.product-list li:not(.active)::before { content: '›'; font-size: 1.1rem; color: var(--accent); }

.product-image-panel {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem; background: var(--light-bg); gap: 1rem;
}
.product-img-wrap { position: relative; width: 100%; max-width: 380px; aspect-ratio: 4/3; }
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  border-radius: 8px; display: block;
}
.product-img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--border); border-radius: 8px; color: var(--muted); gap: .5rem;
}
.product-img-placeholder i { font-size: 2.5rem; }
.product-img-placeholder p { font-size: .82rem; }
.product-img-caption { font-size: .92rem; font-weight: 600; color: var(--blue-dark); text-align: center; }

/* ── Clients ───────────────────────────────────────────── */
.clients__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.industries__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1rem; }
.industry__tag { padding: .6rem 1.75rem; border: 2px solid var(--blue-mid); border-radius: 50px; font-size: 1rem; font-weight: 600; color: var(--blue-dark); background: var(--white); }
.client__logo {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.client__logo:hover { border-color: var(--blue-mid); box-shadow: var(--shadow-md); }
.client__logo i { font-size: 3.5rem; color: var(--blue-mid); }
.client__logo span { font-size: .78rem; font-weight: 600; color: var(--muted); text-align: center; }
.clients__note { font-size: .82rem; color: var(--muted); text-align: center; }
.clients__note code { background: var(--light-bg); padding: .1rem .35rem; border-radius: 4px; font-size: .8rem; }

/* ── Contact ───────────────────────────────────────────── */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact__info p { color: var(--muted); margin-bottom: 1.5rem; }
.contact__details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact__details li { display: flex; align-items: flex-start; gap: 1rem; }
.contact__details li i { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; margin-top: .2rem; }
.contact__details li div { font-size: .9rem; color: var(--muted); }
.contact__details li strong { display: block; color: var(--blue-dark); font-size: .95rem; }

.contact__form { background: var(--light-bg); border-radius: 10px; padding: 2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .9rem; }
.contact__form h3 { font-size: 1.15rem; color: var(--blue-dark); margin-bottom: .25rem; }
.contact__form input,
.contact__form textarea {
  width: 100%; padding: .7rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact__form input:focus,
.contact__form textarea:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(0,119,204,.1); }
.form__msg { font-size: .88rem; text-align: center; min-height: 1.2rem; }
.form__msg.success { color: #28a745; }
.form__msg.error   { color: #dc3545; }

/* ── Footer ────────────────────────────────────────────── */
.footer { background: var(--blue-dark); color: rgba(255,255,255,.75); padding: 3.5rem 0 0; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 2.5rem; padding-bottom: 2.5rem; }

.footer__logo { margin-bottom: .75rem; }
.footer__logo-img { height: 48px; width: auto; display: block; }
.footer > .container > .footer__inner > .footer__col > p { font-size: .88rem; line-height: 1.7; }

.footer__social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer__social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .85rem; transition: background var(--transition); }
.footer__social a:hover { background: var(--accent); }

.footer__col h4 { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 1rem; position: relative; padding-bottom: .5rem; }
.footer__col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--accent); }
.footer__col ul li { margin-bottom: .5rem; }
.footer__col ul li a { font-size: .88rem; transition: color var(--transition); }
.footer__col ul li a:hover { color: var(--accent); }

.footer__contact li { display: flex; align-items: flex-start; gap: .6rem; font-size: .86rem; margin-bottom: .6rem; }
.footer__contact li i { color: var(--accent); margin-top: .2rem; flex-shrink: 0; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0; text-align: center; font-size: .82rem; }

/* ── Back to Top ───────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: var(--white); border: none;
  font-size: 1rem; cursor: pointer; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 992px) {
  .about__inner   { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__inner  { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .product-browser__body { grid-template-columns: 1fr; }
  .product-list { max-height: 200px; border-right: none; border-bottom: 1px solid var(--border); }
  .topbar__social { display: none; }

  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    gap: .25rem;
  }
  .nav__links.open { display: flex; }
  .nav__links .nav-link { display: block; padding: .6rem 1rem; }

  .hero { height: 440px; }
  .slide__content { padding: 0 1.25rem; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .products__grid { grid-template-columns: 1fr; }
  .hero { height: 380px; }
  .stats-bar__inner { gap: 1.5rem; }
  .stat strong { font-size: 1.6rem; }
  .section { padding: 3.5rem 0; }
}
