/* ============================================================
   hazpack.css — Shared stylesheet for Hazpack Solutions
   Used by: index.html, products.html, and all un-approved-*.html pages
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --brand:        #136dc7;
  --brand-dark:   #0d3e6e;
  --bg:           #f4f5f7;
  --card:         #ffffff;
  --text:         #0f172a;
  --muted:        #64748b;
  --green:        #2e7d32;
  --green-light:  #388e3c;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 3px 10px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.10);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 90px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  padding-top: 72px;
  overflow-x: hidden;
}
@media (min-width: 992px) { body { padding-top: 76px; } }

img { max-width: 100%; height: auto; }

/* ── NAVBAR ── */
.navbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  min-height: 72px;
  padding-top: .4rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}
@media (min-width: 992px) { .navbar { min-height: 76px; } }
.navbar .navbar-brand,
.navbar .nav-link { font-weight: 600; color: #000 !important; }
.navbar .nav-link:hover { color: var(--brand) !important; }
.navbar .nav-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ── DROPDOWN ── */
.dropdown-menu .dropdown-header { font-weight: 600; color: var(--brand); font-size: .95rem; }
@media (min-width: 992px) {
  .navbar .dropdown:hover .dropdown-menu { display: block; margin-top: 0; }
  .dropdown-menu { min-width: 220px; max-width: 280px; padding: .5rem 0; }
}
@media (max-width: 991px) {
  .dropdown-menu { width: 100% !important; max-width: 100% !important; max-height: 50vh; overflow-y: auto; padding: .5rem 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
  .dropdown-menu .dropdown-item { padding: 10px 15px; font-size: 1rem; }
  .dropdown-menu .dropdown-header { margin: .75rem .25rem; font-size: 1rem; }
  .dropdown-menu .dropdown-divider { margin: .5rem 0; }
}

/* ── BREADCRUMB ── */
.breadcrumb-section {
  background: #f1f1f1;
  padding: 10px 20px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

/* ── PAGE HERO (product pages) ── */
.page-hero { padding: 18px 0 8px; }
.page-hero h1 {
  font-size: clamp(1.25rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  margin: 0;
}
.page-hero p { color: var(--muted); margin: 10px 0 0; max-width: 1100px; }

/* ── PRODUCT CARD ── */
.product-card {
  overflow: hidden;
  padding: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease;
}
.product-card:hover { box-shadow: var(--shadow-hover); }
#product-list { min-height: 1100px; }

/* ── PRODUCT IMAGE / CAROUSEL ── */
.image-carousel {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 0 auto;
  cursor: zoom-in;
  background: transparent;
}
.thumbnail-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  min-height: 48px;
}
.thumbnail-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all .2s ease;
  background: var(--card);
  padding: 2px;
}
.thumbnail-img:hover { border-color: #9ca3af; transform: scale(1.05); }
.thumbnail-img.active-thumb { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }

/* ── PRODUCT TITLE & TEXT ── */
.product-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 12px 0 8px;
  text-align: center;
}
.product-text {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 12px;
  text-align: center;
}

/* ── PRODUCT TABLE ── */
.product-table { margin-top: 0.5rem; }
.product-table td { padding: 6px 12px; vertical-align: top; }
.product-table td:first-child { font-weight: 600; width: 180px; color: #444; }

/* ── QUOTE SECTION ── */
.quote-section {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.quote-section input[type="number"] { width: 90px; max-width: 90px; }
.quote-alert { position: fixed; bottom: 0; left: 0; right: 0; text-align: center; z-index: 1050; }

/* ── PRICE BOX ── */
.price-box {
  background: #f1f8e9;
  border: 1px solid #c8e6c9;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
  text-align: center;
}
.price-heading { font-weight: 600; font-size: 14px; color: var(--green-light); margin-bottom: 4px; }
.price-value   { font-size: 20px; font-weight: bold; color: var(--green); }
.price-note    { font-size: 13px; color: #555; margin-top: 5px; }

/* ── VIEW MORE BUTTON ── */
.view-more-btn { margin-top: 1rem; }
.view-more-btn:hover { background-color: var(--brand); color: #fff; }
.card-cta { margin-top: auto; text-align: center; padding-top: 12px; }

/* ── MODAL ── */
#modalImage {
  max-height: 70vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── ARROW BULLETS ── */
.arrow-bullets { list-style: none; padding-left: 0; margin-bottom: 1.5rem; }
.arrow-bullets li { position: relative; padding-left: 1.5rem; margin-bottom: 0.7rem; font-size: 1.05rem; }
.arrow-bullets li::before {
  content: "➤";
  position: absolute;
  left: 0; top: 0;
  color: var(--brand);
  font-size: 1rem;
}

/* ── TYPOGRAPHY HELPERS ── */
.extra-bold-heading { font-weight: 700; letter-spacing: 0.2px; }
.section-underline { border: none; border-top: 2px solid rgba(0, 0, 0, 0.2); width: 100%; margin: 10px 0 30px; }

/* ── FOOTER ── */
footer a:hover { color: var(--brand) !important; text-decoration: underline !important; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  right: 16px;
  background: #25d366;
  color: #fff;
  font-size: 1.8rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .22);
  z-index: 1200;
  text-decoration: none;
}

/* ── ACCESSIBILITY ── */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ── MOBILE ── */
@media (max-width: 576px) {
  .product-card  { padding: 16px; }
  .product-title { font-size: 1.2rem; }
  .image-carousel { min-height: 280px; }
  .product-img   { height: 240px; }
  .thumbnail-img { width: 44px; height: 44px; }
}

/* ============================================================
   SERVICE PAGES (air_freight, sea_freight, dg_packaging, etc.)
   ============================================================ */

/* ── SERVICE PAGE VARIABLES (slightly different brand palette) ── */
/* Override in <style> per page if needed; these are the service defaults */
body.page-service {
  --brand: #205a95;
  --brand-dark: #174a7e;
  --bg: #eceae6;
}

/* ── PAGE HEADER (hero banner on service pages) ── */
.page-header {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.75), rgba(0,0,0,.35));
  z-index: 1;
}
.page-header h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: .3px;
  text-shadow: 1px 1px 10px rgba(0,0,0,.75);
  margin: 0;
}

/* ── BREADCRUMB ── */
.breadcrumb { background: transparent; margin-bottom: 0; }
.breadcrumb a { color: var(--brand); text-decoration: none; font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: rgba(15,23,42,.65); font-weight: 700; }

/* ── CONTENT WRAPPER (service page main body card) ── */
.content-wrapper {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem;
  margin-bottom: 3rem;
}
.content-wrapper h2 {
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--brand);
  letter-spacing: .2px;
}
.content-wrapper p {
  color: rgba(15,23,42,.78);
  line-height: 1.75;
}
.content-wrapper ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}
.content-wrapper ul li {
  padding-left: 1.9rem;
  position: relative;
  margin-bottom: .85rem;
  line-height: 1.7;
  color: rgba(15,23,42,.80);
  font-weight: 600;
}
.content-wrapper ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 900;
}

/* ── SIDEBAR (services list) ── */
.sidebar {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 3rem;
}
.sidebar h5 { font-weight: 900; color: var(--brand); margin-bottom: 1rem; }
.sidebar a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-weight: 800;
  border-radius: 10px;
  color: rgba(15,23,42,.78);
  text-decoration: none;
  transition: .2s ease;
  background: rgba(248,250,252,.8);
}
.sidebar a:hover { background: rgba(32,90,149,.12); color: var(--brand); }
.sidebar a.active { background: var(--brand); color: #fff; }

/* ── DROPDOWN (service pages) ── */
.dropdown-menu { border: 0; border-radius: 12px; box-shadow: var(--shadow); }
.dropdown-menu .dropdown-header { font-weight: 700; color: var(--brand); font-size: .95rem; }
.dropdown-item { border-radius: 8px; font-weight: 600; }
.dropdown-item:hover { background: rgba(32,90,149,.10); color: var(--brand); }

/* ── BUTTONS ── */
.btn-pill { border-radius: 999px; font-weight: 700; }
.btn-brand { background: var(--brand); border: none; }
.btn-brand:hover { filter: brightness(.95); }

/* ── BLOG / ARTICLE PAGES ── */
.blog-content,
.blog-container {
  max-width: 1400px;
  background: #fff;
  margin: 30px auto;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.blog-container { max-width: 1100px; }
.blog-content img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}
.blog-content ul li { margin-bottom: .5rem; }
.blog-content .row { align-items: center; gap: 1.5rem; }
.text-primary { color: #2C6CA3 !important; }
.example {
  background: #f1f1f1;
  padding: 1rem;
  border-left: 4px solid #2C6CA3;
  margin-bottom: 1rem;
  font-family: monospace;
}
.quote-alert { position: fixed; bottom: 0; left: 0; right: 0; text-align: center; z-index: 1050; }

/* ── SERVICE PAGE RESPONSIVE ── */
@media (max-width: 992px) {
  html { scroll-padding-top: 72px; }
}
@media (max-width: 768px) {
  .content-wrapper { padding: 1.6rem; }
}
@media (max-width: 576px) {
  .content-wrapper, .sidebar { border-radius: var(--radius-sm); }
  .page-header { height: 280px; }
}