/* ==========================================================================
   MIGCON — custom styles on top of Bootstrap 5
   Bootstrap handles grid, navbar, carousel, cards, spacing and utilities.
   This file only holds brand colours, type and the bits Bootstrap doesn't do.
   ========================================================================== */

:root {
  --navy:        #2b2a8c;   /* top bar / brand blue      */
  --navy-dark:   #191970;   /* buttons                   */
  --green:       #62a744;   /* logo accent               */
  --blue:        #1a73e8;   /* form submit / links       */
  --ink:         #2f3d4c;   /* headings                  */
  --body:        #6b7684;   /* body copy                 */
  --light-blue:  #f5f8fd;   /* alternating section bg     */
  --card-foot:   #f2f2f2;   /* product card bottom strip */
  --line:        #e8ecf3;
}

/* ---------- base ---------- */
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: "Poppins", sans-serif;
  color: var(--ink);
}

a { text-decoration: none; }

.bg-light-blue   { background-color: var(--light-blue); }
.text-muted-body { color: var(--body); }

.section-pad { padding: 3rem 0; }

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
}

.eyebrow {
  color: #4a7dff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

/* ---------- buttons ---------- */
.btn-navy {
  background-color: var(--navy-dark);
  border: 1px solid var(--navy-dark);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  transition: background-color .25s ease, transform .25s ease;
}
.btn-navy:hover,
.btn-navy:focus-visible {
  background-color: #10105a;
  border-color: #10105a;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- top bar ---------- */
.topbar {
  background-color: var(--navy);
  font-size: .9rem;
}
.topbar-link,
.topbar-social {
  color: #fff;
  transition: opacity .2s ease;
}
.topbar-link:hover,
.topbar-social:hover { opacity: .75; color: #fff; }
.topbar-social { margin-left: 1rem; font-size: 1rem; }

/* ---------- navbar ---------- */
.site-nav {
  padding: .85rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.brand-logo {
  height: 46px;
  width: auto;
}
.site-nav .nav-link {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  padding: .4rem .6rem;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--navy); }

.site-nav .dropdown-menu {
  border-radius: .25rem;
  padding: .4rem 0;
}
.site-nav .dropdown-item {
  font-size: .95rem;
  padding: .55rem 1.1rem;
  color: var(--ink);
}
.site-nav .dropdown-item:hover {
  background-color: var(--light-blue);
  color: var(--navy);
}
.navbar-toggler:focus { box-shadow: none; }

/* ---------- hero carousel ---------- */
.hero {
  height: 78vh;
  min-height: 460px;
}

.hero-slide {
  position: relative;
  height: 100%;
  background-color: #3b4450;   /* fallback while images are missing */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

/* >>> DROP YOUR HERO IMAGES IN assets/images/hero/ AND KEEP THESE NAMES <<< */
.hero-slide-1 { background-image: url("../assets/images/hero-1.png"); }
.hero-slide-2 { background-image: url("../assets/images/hero-2.png"); }
.hero-slide-3 { background-image: url("../assets/images/hero-3.png"); }
.hero-slide-4 { background-image: url("../assets/images/hero-4.png"); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 24, 60, .78) 0%, rgba(20, 24, 60, .45) 65%, rgba(20, 24, 60, .3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-left: 60px;
}

.hero-title {
  color: #fff;
  font-size: clamp(2.0rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(0.9rem, 1.4vw, 1.4rem);
  font-weight: 400;
  max-width: 70ch;
  margin-bottom: 0;
}

.hero-arrow {
  width: 4rem;
  opacity: .7;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2rem;
}
.hero-arrow:hover,
.hero-arrow:focus-visible { opacity: 1; color: #fff; }

/* ---------- client logos ---------- */
.client-logo {
  max-width: 100%;
  height: 140px;
  object-fit: contain;
  filter: grayscale(0);
  transition: transform .3s ease;
}
.client-logo:hover { transform: scale(1.05); }

/* ---------- top sellers slider ---------- */
.product-slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.product-slider::-webkit-scrollbar { display: none; }

.product-card {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: start;
  background-color: #fff;
  box-shadow: 0 2px 14px rgba(24, 40, 80, .06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(24, 40, 80, .12);
}

.product-media {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background-color: #fff;
}
.product-media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.product-body {
  background-color: var(--card-foot);
  padding: 1rem 1.15rem 1.15rem;
}
.product-name {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  min-height: 2.8em;
  margin-bottom: 1.25rem;
}
.product-link {
  color: var(--ink);
  font-size: .9rem;
}
.product-link:hover { color: var(--navy); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background-color: #fff;
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(24, 40, 80, .14);
  transition: background-color .2s ease, color .2s ease;
}
.slider-arrow:hover { background-color: var(--navy-dark); color: #fff; }
.slider-arrow-prev { left: -18px; }
.slider-arrow-next { right: -18px; }

/* ---------- what we do ---------- */
.feature-card {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: 1.75rem;
  transition: box-shadow .3s ease, transform .3s ease;
}
.feature-card:hover {
  box-shadow: 0 12px 28px rgba(24, 40, 80, .08);
  transform: translateY(-4px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: .75rem;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1.25rem;
}
.icon-blue   { background: linear-gradient(135deg, #6f9bff, #3f6dff); }
.icon-sky    { background: linear-gradient(135deg, #7fb4ff, #4b8cff); }
.icon-teal   { background: linear-gradient(135deg, #63d9d0, #38b6ff); }
.icon-violet { background: linear-gradient(135deg, #8f7bff, #4bc6ff); }

.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .6rem;
}
.feature-text {
  font-size: .9rem;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 0;
}

/* ---------- about ---------- */
.about-img {
  border-radius: .35rem;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background-color: #dfe6f2;
}

.check-list li {
  display: flex;
  gap: .65rem;
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: .5rem;
}
.check-list i { color: var(--ink); }

.about-point {
  display: flex;
  gap: .85rem;
  background-color: #f1f4f9;
  border-radius: .35rem;
  padding: 1rem 1.15rem;
}
.about-point > i {
  color: var(--ink);
  font-size: 1.05rem;
  margin-top: .2rem;
}
.about-point-title {
  font-size: .98rem;
  font-weight: 600;
  margin-bottom: .3rem;
}
.about-point-text {
  font-size: .85rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--body);
}

/* ---------- footer ---------- */
.footer-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
  color: var(--navy);
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.footer-links a:hover { color: var(--green); }
.footer-links i { font-size: .7rem; }

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: .35rem;
  background-color: #eef1f6;
  color: var(--navy);
  transition: background-color .2s ease, color .2s ease;
}
.footer-social:hover { background-color: var(--navy); color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--body);
}

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  z-index: 1030;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   CATALOGUE / CATEGORY PAGE (products.html)
   ========================================================================== */

.shop-breadcrumb {
  font-size: .9rem;
  margin-bottom: .75rem;
  --bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236b7684' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 2l6 6-6 6'/%3E%3C/svg%3E");
}
.shop-breadcrumb a { color: var(--body); }
.shop-breadcrumb a:hover { color: var(--navy); }
.shop-breadcrumb .breadcrumb-item.active { color: var(--body); }

.page-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--ink);
}

/* --- toolbar --- */
.shop-label {
  font-size: .95rem;
  color: var(--ink);
  font-weight: 500;
}

.btn-show {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: .95rem;
  padding: .25rem .5rem;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.btn-show:hover { color: var(--navy); }
.btn-show.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  background: none;
}
.btn-group > .btn-show:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  box-shadow: none;
}

.shop-select {
  width: auto;
  min-width: 190px;
  border-color: var(--line);
  border-radius: .25rem;
  padding: .6rem 2.5rem .6rem 1rem;
  font-size: .95rem;
  color: var(--ink);
}
.shop-select:focus {
  border-color: var(--navy);
  box-shadow: none;
}

/* --- product cards --- */
.catalogue-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #fff;
  border-radius: .5rem;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.catalogue-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(24, 40, 80, .1);
}

.catalogue-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  padding: 1.5rem;
  background-color: #fff;
}
.catalogue-media img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.catalogue-body {
  margin-top: auto;
  background-color: #f1f1f1;
  border-radius: .5rem;
  padding: 1.15rem 1.25rem;
}
.catalogue-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
  min-height: 2.9em;
}

.shop-count {
  font-size: .88rem;
  color: var(--body);
}

/* ==========================================================================
   CONTACT PAGE (contact.html)
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 380px;
  border-radius: .75rem;
  overflow: hidden;
  background-color: #3b4450;   /* fallback while the image is missing */
  background-image: url("../assets/images/contact.jpg");
  background-size: cover;
  background-position: center;
  padding: 3rem 1rem;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 30, .58);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.page-hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero-sub {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  line-height: 1.6;
}

.contact-section {
  background-color: #f7f7f9;
  padding: 4rem 0 5rem;
  margin-top: 2.5rem;
}

.contact-panel {
  background-color: #fff;
  padding: 2.5rem;
}

.contact-heading {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
}

/* --- reach out list --- */
.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.contact-list li:last-child { margin-bottom: 0; }

.contact-list a,
.contact-list address,
.contact-list span:not(.contact-icon) {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.75;
  font-style: normal;
}
.contact-list a:hover { color: var(--navy); }

.contact-icon {
  flex: 0 0 auto;
  color: #2f7bf6;
  font-size: 1.25rem;
  line-height: 1.6;
}

/* --- form --- */
.contact-panel .form-label {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: .6rem;
}

.contact-panel .form-control {
  border: 1px solid #d8dde5;
  border-radius: .25rem;
  padding: .7rem .9rem;
  font-size: 1rem;
  color: var(--ink);
}
.contact-panel .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 .2rem rgba(26, 115, 232, .15);
}
.contact-panel textarea.form-control { min-height: 180px; resize: vertical; }

.contact-panel .form-text { font-size: .8rem; }
.contact-panel .invalid-feedback { font-size: .85rem; }

.btn-blue {
  background-color: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  font-weight: 600;
  border-radius: .25rem;
  transition: background-color .25s ease, transform .25s ease;
}
.btn-blue:hover,
.btn-blue:focus-visible {
  background-color: #1560c4;
  border-color: #1560c4;
  color: #fff;
  transform: translateY(-2px);
}
.btn-blue:disabled { opacity: .7; transform: none; }

/* ==========================================================================
   PRODUCT DETAIL PAGE (temperature-humidity-transmitter.html)
   ========================================================================== */

.pdp-top { background-color: #f7f7f7; }

.pdp-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
  padding: 3rem;
  background-color: white;
}
.pdp-media img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.pdp-summary {
  padding: 3.5rem 3rem 3.5rem 1rem;
  max-width: 720px;
}

.pdp-title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
}

.pdp-model {
  font-size: 1rem;
  color: var(--body);
  margin-bottom: 0;
}
.pdp-model strong { color: var(--ink); font-weight: 600; }

.pdp-rule {
  border-color: #dcdfe5;
  opacity: 1;
  margin: 1.75rem 0;
}

.pdp-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 1rem;
}

.btn-yellow {
  background-color: #ffd400;
  border: 1px solid #ffd400;
  color: var(--ink);
  font-weight: 600;
  border-radius: .25rem;
  transition: background-color .25s ease, transform .25s ease;
}
.btn-yellow:hover,
.btn-yellow:focus-visible {
  background-color: #f0c500;
  border-color: #f0c500;
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-outline-ink {
  border: 1px solid #c9cfd8;
  background-color: transparent;
  color: var(--ink);
  font-weight: 500;
  border-radius: .25rem;
}
.btn-outline-ink:hover,
.btn-outline-ink:focus-visible {
  border-color: var(--ink);
  background-color: #fff;
  color: var(--ink);
}

.pdp-assurance li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: .5rem;
}
.pdp-assurance i { color: var(--green); }

.pdp-meta {
  border-top: 1px solid #dcdfe5;
  padding-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.pdp-meta p {
  font-size: .95rem;
  margin-bottom: .55rem;
  color: var(--body);
}
.pdp-meta-label {
  color: var(--ink);
  font-weight: 600;
  margin-right: .4rem;
}
.pdp-meta a { color: var(--body); }
.pdp-meta a:hover { color: var(--navy); }

.pdp-share a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  font-size: .95rem;
}
.pdp-share a:hover { color: var(--navy); }
.pdp-share i { font-size: 1.05rem; }

/* --- tabs --- */
.pdp-detail { padding: 5rem 0; }

.pdp-tabs { border-bottom: 0; gap: 2.5rem; }
.pdp-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .5rem .25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--body);
  background: none;
}
.pdp-tabs .nav-link:hover { color: var(--ink); }
.pdp-tabs .nav-link.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.pdp-statement {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
}

.pdp-prose {
  max-width: 760px;
}
.pdp-prose p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--body);
  margin-bottom: 1.15rem;
}

.pdp-prose-wide { max-width: 940px; }

/* --- spec table --- */
.spec-wrap { max-width: 760px; }

.spec-table th,
.spec-table td {
  padding: .95rem 1.25rem;
  border-color: var(--line);
  vertical-align: top;
}
.spec-table th {
  width: 38%;
  font-weight: 600;
  color: var(--ink);
  background-color: #f7f9fc;
  white-space: normal;
}
.spec-table td { color: var(--body); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    padding: .75rem 0 1rem;
  }
  .site-nav .nav-link { padding: .55rem 0; }
  .hero { height: 62vh; min-height: 380px; }
  .hero-overlay {
    background: linear-gradient(90deg, rgba(20, 24, 60, .82) 0%, rgba(20, 24, 60, .6) 100%);
  }
  .section-pad { padding: 3.5rem 0; }
  .slider-arrow-prev { left: 2px; }
  .slider-arrow-next { right: 2px; }
  .about-img { aspect-ratio: 4 / 3; }
  .catalogue-media { height: 240px; }
  .page-hero { min-height: 300px; }
  .contact-section { padding: 3rem 0 3.5rem; margin-top: 2rem; }
  .contact-panel { padding: 2rem; }
  .pdp-media { min-height: 380px; padding: 2rem; }
  .pdp-media img { max-height: 320px; }
  .pdp-summary { padding: 2.5rem 1rem 3rem; max-width: none; }
  .pdp-detail { padding: 3.5rem 0; }
  .pdp-tabs { gap: 1.5rem; }
}

@media (max-width: 575.98px) {
  .hero { height: 60vh; min-height: 340px; }
  .hero-arrow { width: 2.5rem; font-size: 1.4rem; }
  .product-card { width: 78vw; max-width: 300px; }
  .client-logo { height: 64px; }
  .topbar { font-size: .82rem; }
  .topbar-social { margin: 0 .35rem; }
  .catalogue-media { height: 260px; }
  .catalogue-name { min-height: 0; }
  .shop-select { width: 100%; }
  .page-hero { min-height: 250px; border-radius: .5rem; padding: 2rem 1rem; }
  .contact-panel { padding: 1.5rem 1.25rem; }
  .contact-list a,
  .contact-list address,
  .contact-list span:not(.contact-icon) { font-size: .95rem; }
  .contact-panel .form-label { font-size: .95rem; }
  .btn-blue { width: 100%; }
  .pdp-media { min-height: 300px; padding: 1.5rem; }
  .pdp-media img { max-height: 260px; }
  .pdp-tabs {
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start !important;
    scrollbar-width: none;
  }
  .pdp-tabs::-webkit-scrollbar { display: none; }
  .pdp-tabs .nav-link { font-size: 1rem; padding: .5rem .9rem; white-space: nowrap; }
  .pdp-summary .btn { width: 100%; }
  .spec-table th, .spec-table td { padding: .75rem .85rem; font-size: .9rem; }
  .spec-table th { width: 45%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .product-slider { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}