/* ==================== ROOT VARIABLES ==================== */
:root {
  --primary: #3C91E6;
  --primary-dark: #1A6BC8;
  --accent: #F4C95D;
  --accent-dark: #E0AF30;
  --dark: #1E293B;
  --text: #334155;
  --muted: #64748B;
  --light-bg: #EFF6FF;
  --white: #FFFFFF;
  --card-shadow: 0 4px 24px rgba(60, 145, 230, 0.10);
  --radius: 16px;
}

/* ==================== BASE ==================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: #F8FAFC;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ==================== TYPOGRAPHY ==================== */
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(60, 145, 230, 0.10);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-header { margin-bottom: 8px; }
.text-accent { color: var(--accent); }

/* ==================== BUTTONS ==================== */
.btn-accent {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--dark);
  transform: translateY(-2px);
}
.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

/* ==================== NAVBAR ==================== */
#mainNav {
  background: var(--primary);
  padding: 14px 0;
  transition: background 0.3s, box-shadow 0.3s;
  z-index: 1000;
  width: 100%;
  max-width: 100vw;
}
#mainNav.scrolled {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.10);
}
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  transition: color 0.3s;
}
#mainNav.scrolled .brand-name { color: var(--primary); }

#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
#mainNav .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
#mainNav.scrolled .nav-link { color: var(--text); }
#mainNav.scrolled .nav-link:hover { background: var(--light-bg); color: var(--primary); }

#mainNav .navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 4px 8px;
  color: #fff;
  background: transparent;
}
#mainNav.scrolled .navbar-toggler { border-color: var(--primary); color: var(--primary); }

/* ==================== HERO ==================== */
.hero-section {
  position: relative;
  background: url('./assets/thermal1.jpg') center / cover no-repeat;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(26, 107, 200, 0.93) 40%, rgba(60, 145, 230, 0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 0;
}
.badge-label {
  display: inline-block;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 500px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img {
  width: 420px;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  height: 340px;
}

/* ==================== STATS STRIP ==================== */
.stats-strip {
  background: var(--primary);
  padding: 40px 0;
}
.stat-item { padding: 10px; }
.stat-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

/* ==================== SECTION PAD ==================== */
.section-pad { padding: 80px 0; }
.bg-light-blue { background: var(--light-bg); }

/* ==================== PRODUCTS ==================== */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(60, 145, 230, 0.20);
}
.featured-product { border: 2px solid var(--accent); }

.product-img-wrap { position: relative; }
.product-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.product-img-sm {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.product-desc { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; flex: 1; }
.product-sizes {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  font-size: 0.88rem;
  color: var(--text);
}
.product-sizes li { padding: 3px 0; }
.text-accent { color: var(--accent) !important; }

/* Horizontal card (wide product) - kept for potential future use */
.product-card-horizontal {
  flex-direction: row;
  align-items: stretch;
}
.product-img-horizontal {
  width: 220px;
  min-width: 180px;
  max-width: 260px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

/* New badge overlaid on card image */
.new-badge-img {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #22C55E;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
}
.new-badge {
  display: inline-block;
  background: #22C55E;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 20px;
  vertical-align: middle;
}

/* ==================== WHY CHOOSE US ==================== */
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  box-shadow: var(--card-shadow);
  height: 100%;
  transition: transform 0.25s;
}
.why-card:hover { transform: translateY(-4px); }
.why-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.why-icon-wrap i { font-size: 1.5rem; color: var(--primary); }
.why-card h5 { font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.why-card p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ==================== ABOUT ==================== */
.about-img {
  object-fit: cover;
  height: 420px;
  box-shadow: var(--card-shadow);
}
.highlight-chip {
  background: var(--light-bg);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(60, 145, 230, 0.2);
}

/* ==================== HOW TO ORDER ==================== */
.order-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  box-shadow: var(--card-shadow);
  height: 100%;
  position: relative;
}
.step-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(60, 145, 230, 0.10);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 20px;
}
.step-icon {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-icon i { font-size: 1.4rem; color: #fff; }
.order-step h5 { font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.order-step p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* ==================== CONTACT ==================== */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.contact-info-item i { font-size: 1.1rem; width: 20px; color: var(--primary); }
.contact-info-item a { color: var(--primary); font-weight: 500; }
.contact-info-item a:hover { color: var(--primary-dark); text-decoration: underline; }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--card-shadow);
}
.form-control, .form-select {
  border-radius: 8px;
  border: 1.5px solid #E2E8F0;
  padding: 10px 14px;
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 145, 230, 0.12);
  outline: none;
}
.form-label { font-weight: 600; font-size: 0.88rem; margin-bottom: 5px; color: var(--dark); }

/* ==================== FOOTER ==================== */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}
.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}
.footer-brand img { filter: brightness(0) invert(1); opacity: 0.9; }
.footer-tagline { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); max-width: 280px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.footer-socials a:hover { background: var(--accent); color: var(--dark); }

.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255, 255, 255, 0.6); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-divider { border-color: rgba(255, 255, 255, 0.10); margin: 40px 0 20px; }
.footer-bottom {
  padding-bottom: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==================== RESPONSIVE ==================== */

/* ---------- Tablet (≤991px) ---------- */
@media (max-width: 991px) {
  /* Navbar: mobile/tablet collapse panel */
  #mainNav .navbar-collapse {
    background: var(--primary-dark);
    margin-top: 10px;
    border-radius: var(--radius);
    padding: 16px 20px 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  #mainNav.scrolled .navbar-collapse {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  }
  #mainNav .navbar-nav .nav-link {
    padding: 10px 12px;
    border-radius: 8px;
  }
  #mainNav.scrolled .navbar-collapse .nav-link { color: var(--text); }

  /* Hero */
  .hero-section { min-height: 460px; }
  .hero-content { padding: 72px 0 60px; }
  .hero-sub { max-width: 100%; }

  /* About */
  .about-img { height: 300px; }

  /* Contact: reduce gap between info and form */
  #contact .row { --bs-gutter-y: 2rem; }
}

/* ---------- Phablet / Large Mobile (≤767px) ---------- */
@media (max-width: 767px) {
  body { min-width: 320px; }

  .section-pad { padding: 52px 0; }
  .section-title { font-size: 1.6rem; }
  .section-sub { font-size: 0.93rem; }

  /* Stats */
  .stats-strip { padding: 28px 0; }
  .stat-number { font-size: 1.5rem; }

  /* Hero */
  .hero-content { padding: 60px 0 50px; }
  .hero-title { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { gap: 10px; }

  /* Products */
  .product-img-sm { height: 130px; }
  .product-body { padding: 14px; }
  .product-title { font-size: 0.95rem; }

  /* About */
  .about-img { height: 240px; }
  .about-highlights { gap: 8px !important; }
  .highlight-chip { font-size: 0.78rem; }

  /* How to order */
  .order-step { padding: 28px 18px; }

  /* Contact */
  .contact-form-wrap { padding: 20px; }
  .contact-info-item { font-size: 0.88rem; }

  /* Footer */
  .footer-brand {
    justify-content: flex-start;
  }
  .footer-tagline { max-width: 100%; }
}

/* ---------- Mobile (≤575px) ---------- */
@media (max-width: 575px) {
  .section-pad { padding: 44px 0; }
  /* Horizontal card stacks on mobile */
  .product-card-horizontal { flex-direction: column; }
  .product-img-horizontal { width: 100%; max-width: 100%; height: 140px; }
  /* Prevent any child from causing horizontal bleed */
  .container, .container-fluid, section, footer, nav {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Hero: full-width centered layout */
  .hero-section { min-height: 420px; }
  .hero-content { padding: 56px 0 44px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .badge-label { font-size: 0.7rem; }

  /* Products small cards: tighter on very small screens */
  .product-img-sm { height: 110px; }
  .product-body { padding: 10px 10px 12px; }
  .product-title { font-size: 0.88rem; margin-bottom: 4px; }

  /* Why cards */
  .why-card { padding: 24px 16px; }

  /* How to order */
  .step-number { font-size: 2.8rem; }

  /* Contact form */
  .contact-form-wrap { padding: 16px; }
  .contact-form-wrap .btn-lg { font-size: 0.95rem; }

  /* Footer */
  .footer-brand { justify-content: center; }
  .footer-tagline { text-align: center; }
  .footer-socials { justify-content: center; }
  .footer-heading { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  footer { padding-top: 44px; }
}