/* ==========================================================================
   MODIYIL EXPORTS — INNER PAGE STYLES
   Products listing + product detail. Loaded after style_1.css, which
   supplies the shared tokens, header, footer, buttons and .product-card.
   ========================================================================== */

/* ============ PAGE HEAD (banner + breadcrumb) ============ */
.page-head {
  position: relative;
  background-color: var(--primary-deep);
  background-size: cover;
  background-position: center;
  padding: 3rem 0 2.75rem;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 40, 30, 0.9) 0%, rgba(9, 40, 30, 0.68) 55%, rgba(9, 40, 30, 0.5) 100%);
}
.page-head .container { position: relative; z-index: 2; }
.page-head h1 {
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1.14;
  margin-bottom: 0.7rem;
}
.page-head .page-head-text {
  color: rgba(233, 238, 232, 0.82);
  font-size: 17px;
  line-height: 1.75;
  max-width: 620px;
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(233, 238, 232, 0.62);
}
.breadcrumb-trail a { color: rgba(233, 238, 232, 0.62); }
.breadcrumb-trail a:hover { color: var(--white); }
.breadcrumb-trail .sep { opacity: 0.45; font-size: 0.6rem; }
.breadcrumb-trail .current { color: var(--cardamom-gold); }

/* light variant, used on the detail page */
.page-head-light { background-color: var(--cream); padding: 1rem 0; }
.page-head-light::before { display: none; }
.page-head-light .breadcrumb-trail { margin-bottom: 0; color: var(--text-muted); }
.page-head-light .breadcrumb-trail a { color: var(--text-muted); }
.page-head-light .breadcrumb-trail a:hover { color: var(--primary); }
.page-head-light .breadcrumb-trail .current { color: var(--primary); }

/* ============ LISTING TOOLBAR ============ */
.listing-section { background-color: var(--ivory); padding: 3.5rem 0 5rem; }

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}
.listing-count { font-size: 15px; color: var(--text-muted); }
.listing-count strong { color: var(--text-primary); font-weight: 600; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.45rem 1.05rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.filter-chip:hover { border-color: var(--primary); color: var(--primary); }
.filter-chip.is-active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ============ PRODUCT GRID ============ */
.product-grid {
  display: grid;
  /* minmax(0, 1fr) — a plain 1fr floors each track at the card's min-content,
     which the nowrap buttons push wide enough to blow the grid out */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}

/* four cards need ~1200px to breathe; drop to three below that */
@media (max-width: 1199.98px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}
.product-grid .product-card { height: 100%; }

/* a listing card carries a little more info than the carousel one */
.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.product-tag {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--spice-gold);
  background-color: rgba(168, 129, 74, 0.1);
  border-radius: 3px;
  padding: 0.25rem 0.5rem;
}

.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 15px;
}

/* ============ PAGINATION ============ */
.pagination-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
}
.page-link-box {
  min-width: 40px;
  height: 40px;
  padding: 0 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.page-link-box:hover { border-color: var(--primary); color: var(--primary); }
.page-link-box.is-current {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.page-link-box.is-disabled { opacity: 0.4; pointer-events: none; }

/* ============ PRODUCT DETAIL ============ */
.detail-section { background-color: var(--white); padding: 3.25rem 0 4.5rem; }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 3rem;
  /* start (not stretch) is what lets the gallery stick: the grid item stays
     its own height while its grid area runs the full row, giving it room
     to travel as the taller right column scrolls past */
  align-items: start;
}

/* ---- gallery ---- */
.detail-gallery {
  position: sticky;
  top: 100px; /* clears the 80px sticky header */
}
.gallery-main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background-color: var(--cream);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.gallery-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  background-color: var(--cream);
  padding: 0;
  transition: var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--accent-leaf); }
.gallery-thumb.is-active { border-color: var(--primary); border-width: 2px; }

/* ---- summary ---- */
.detail-summary .eyebrow { margin-bottom: 0.6rem; }
.detail-summary h1 {
  font-size: 2.6rem;
  line-height: 1.14;
  margin-bottom: 0.75rem;
}
.detail-rule {
  display: block;
  width: 44px;
  height: 2.5px;
  border-radius: 2px;
  background-color: var(--spice-gold);
  margin-bottom: 1.35rem;
}
.detail-summary .lede {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 1.85rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.detail-meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.detail-meta dd { font-size: 15px; color: var(--text-primary); margin: 0; font-weight: 500; }

.detail-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.detail-actions .btn { margin-top: 0; }
.btn-outline-primary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover { background-color: var(--primary); color: var(--white); }

.detail-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 1.85rem;
}
.detail-assurances div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 14px;
  color: var(--text-secondary);
}
.detail-assurances i { color: var(--accent-leaf); font-size: 0.95rem; }

/* ============ DETAIL TABS ============ */
/* the tabbed detail now sits inside the right-hand column, under the summary */
.detail-tabs {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-soft);
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.25rem;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.8rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.is-active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-panel h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 0.65rem;
}
.tab-panel h3:first-child { margin-top: 0; }
.tab-panel p { font-size: 15px; line-height: 1.85; color: var(--text-secondary); }
.tab-panel p + p { margin-top: 0.9rem; }

.bullet-list { margin-top: 0.85rem; }
.bullet-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--spice-gold);
}

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table caption {
  caption-side: top;
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 0.75rem;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  font-size: 15px;
  border-bottom: 1px solid var(--border-soft);
}
.spec-table th {
  width: 42%;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--cream);
}
.spec-table td { color: var(--text-secondary); }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }

/* ============ ENQUIRY STRIP ============ */
/* deep green, matching the history/export bands — --primary is the orange accent */
.enquiry-strip { background-color: var(--primary-deep); padding: 3rem 0; }
.enquiry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.enquiry-inner h2 { color: var(--white); font-size: 2rem; margin-bottom: 0.4rem; }
.enquiry-inner p { color: rgba(233, 238, 232, 0.8); font-size: 15px; }

/* ============ RELATED ============ */
.related-section { background-color: var(--ivory); padding: 4rem 0 5rem; }
.related-section .section-heading-row { margin-bottom: 2rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1199.98px) {
  .page-head h1 { font-size: 2.15rem; }
  .detail-summary h1 { font-size: 2.15rem; }
  .detail-layout { gap: 2.5rem; }
}

@media (max-width: 991.98px) {
  /* :not() keeps the slim breadcrumb-only variant at its own padding */
  .page-head:not(.page-head-light) { padding: 2.25rem 0 2rem; }
  .page-head h1 { font-size: 1.9rem; }
  .listing-section { padding: 2.5rem 0 3.5rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

  .detail-layout { grid-template-columns: 1fr; gap: 2rem; }
  .detail-gallery { position: static; }
  .detail-section { padding: 2.5rem 0 3.25rem; }
  .detail-tabs { margin-top: 2rem; padding-top: 1.75rem; }
  .related-section { padding: 2.75rem 0 3.5rem; }
  .enquiry-strip { padding: 2.25rem 0; }
}

@media (max-width: 575.98px) {
  .page-head:not(.page-head-light) { padding: 1.75rem 0 1.6rem; }
  .page-head h1 { font-size: 1.55rem; }
  .page-head .page-head-text { font-size: 15px; }
  .breadcrumb-trail { font-size: 0.65rem;margin-bottom: 0; }

  .listing-toolbar { padding-bottom: 1.15rem; margin-bottom: 1.5rem; }

  /* Two up on phones. One column made each card ~400px tall, so ten products
     ran to nearly 6000px of scrolling. Everything inside is scoped to
     .product-grid so the homepage carousel keeps its larger card. */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .product-grid .product-card { padding: 0.4rem; }
  .product-grid .product-card-body { padding: 0.8rem 0.35rem 0.4rem; }
  .product-grid .product-card h3 { font-size: 1rem; line-height: 1.3; }
  .product-grid .product-rule { width: 26px; height: 2px; margin: 0.5rem 0 0.55rem; }
  .product-grid .product-card p { font-size: 13px; line-height: 1.5; }

  /* side by side would leave ~70px per button at this card width */
  .product-grid .product-actions { flex-direction: column; gap: 0.4rem; padding-top: 0.9rem; }
  .product-grid .product-btn { font-size: 12.5px; padding: 0.55rem 0.4rem; }

  .detail-summary h1 { font-size: 1.75rem; }
  .detail-summary .lede { font-size: 15px; }
  .detail-meta { grid-template-columns: 1fr; gap: 0.9rem; margin: 1.5rem 0; padding: 1.25rem 0; }
  .detail-actions .btn { width: 100%; justify-content: center; }
  .gallery-thumbs { gap: 0.45rem; }
  .tab-btn { padding: 0.7rem 0.85rem; font-size: 0.82rem; }
  .enquiry-inner h2 { font-size: 1.6rem; }
  .spec-table th { width: 50%; }
  .spec-table th, .spec-table td { padding: 0.7rem 0.75rem; }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- contact + enquiry ---- */
.contact-section { background-color: var(--ivory); padding: 4rem 0 4.5rem; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3.25rem;
  align-items: start;
}

.contact-intro .section-text { margin-bottom: 2rem; }

/* stacked contact rows with icon tiles */
.contact-rows { display: grid; gap: 0.9rem; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  transition: var(--transition);
}
.contact-row:hover {
  border-color: var(--border);
  box-shadow: 0 10px 26px rgba(11, 61, 46, 0.07);
  transform: translateY(-2px);
}
.contact-row-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--cream);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.contact-row-label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.contact-row-value {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
  word-break: break-word;
}
.contact-row-value a { color: var(--text-primary); }
.contact-row-value a:hover { color: var(--primary); }
.contact-row-value .muted { color: var(--text-muted); font-weight: 400; }

/* working hours + brochure */
.contact-aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background-color: var(--sage);
  border-radius: 8px;
}
.contact-hours strong {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.contact-hours span { font-size: 15px; font-weight: 500; }
.btn-brochure { margin-top: 0; }

/* ---- enquiry card ---- */
.enquiry-card {
  background-color: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(11, 61, 46, 0.07);
  overflow: hidden;
}
.enquiry-card-head {
  padding: 1.6rem 1.75rem 1.35rem;
  border-bottom: 1px solid var(--border-soft);
  background-color: var(--cream);
}
.enquiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 0.85rem;
}
.enquiry-card-head h2 { font-size: 1.7rem; margin-bottom: 0.3rem; }
.enquiry-card-head p { font-size: 15px; color: var(--text-secondary); }

.enquiry-form { padding: 1.75rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; }
.form-field-full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}
.form-field label .req { color: var(--primary); }

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  transition: var(--transition);
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: #A9ADA5; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(241, 98, 33, 0.12);
}
.form-field .field-error {
  font-size: 0.75rem;
  color: #C0392B;
  margin-top: 0.35rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  display: none;
}
.form-field.has-error input,
.form-field.has-error textarea { border-color: #C0392B; }
.form-field.has-error .field-error { display: block; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.form-note { font-size: 13px; color: var(--text-muted); }
.enquiry-form .btn { margin-top: 0; }

.form-success {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  background-color: var(--sage);
  border: 1px solid rgba(31, 74, 56, 0.18);
  font-size: 15px;
  color: var(--text-primary);
}
.form-success.is-visible { display: flex; }
.form-success i { color: var(--accent-leaf); margin-top: 0.2rem; }

/* same box, error dress — sage + a green tick would read as a confirmation */
.form-success.is-error {
  background-color: #FDEDEC;
  border-color: rgba(192, 57, 43, 0.35);
  color: #7B241C;
}
.form-success.is-error i { color: #C0392B; }

/* the send button confirms on itself once the lead is in — :disabled would
   otherwise grey it out, so both need overriding */
.enquiry-form .btn.is-sent,
.enquiry-form .btn.is-sent:disabled {
  background-color: var(--accent-leaf);
  border-color: var(--accent-leaf);
  color: var(--white);
  opacity: 1;
  cursor: default;
  transform: none;
}
.enquiry-form .btn.is-sent i { margin-right: 0.35rem; }

/* ---- office ---- */
.office-section { background-color: var(--white); padding: 4rem 0; }
.office-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}
.office-card {
  border-left: 3px solid var(--spice-gold);
  padding-left: 1.5rem;
}
.office-card .office-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.85rem;
}
.office-card address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin: 0;
}
.office-card address a { color: var(--text-secondary); }
.office-card address a:hover { color: var(--primary); }

.office-map {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  aspect-ratio: 16 / 10;
  background-color: var(--cream);
  /* a grid item defaults to min-width:auto, so the iframe's intrinsic size
     pushes this wider than its track */
  min-width: 0;
  max-width: 100%;
}
.office-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- certifications ---- */
.certs-section { background-color: var(--cream); padding: 3.5rem 0; }
.certs-head { text-align: center; margin-bottom: 2.25rem; }
.certs-head h2 { font-size: 2rem; }
.certs-head .section-text { margin-left: auto; margin-right: auto; }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.cert-item {
  background-color: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 1.35rem 1.1rem;
  text-align: center;
  transition: var(--transition);
}
.cert-item:hover { border-color: var(--border); box-shadow: 0 10px 24px rgba(11, 61, 46, 0.06); }
.cert-item i { color: var(--spice-gold); font-size: 1.35rem; margin-bottom: 0.7rem; display: block; }
.cert-item .cert-abbr {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.cert-item .cert-name { display: block; font-size: 13px; line-height: 1.55; color: var(--text-muted); }

/* ---- global reach ---- */
.reach-section { background-color: var(--sage); padding: 4rem 0 4.5rem; overflow: hidden; }
.reach-head { text-align: center; margin-bottom: 1.5rem; }
.reach-head h2 { font-size: 2rem; }

.reach-map {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.reach-map > img { width: 100%; display: block; opacity: 0.4; }

.reach-pin {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(241, 98, 33, 0.2);
}
.reach-pin-origin {
  width: 15px;
  height: 15px;
  box-shadow: 0 0 0 6px rgba(241, 98, 33, 0.22);
  animation: reachPulse 2.4s ease-out infinite;
}
@keyframes reachPulse {
  0%   { box-shadow: 0 0 0 0 rgba(241, 98, 33, 0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(241, 98, 33, 0); }
  100% { box-shadow: 0 0 0 0 rgba(241, 98, 33, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .reach-pin-origin { animation: none; box-shadow: 0 0 0 6px rgba(241, 98, 33, 0.22); }
}

.reach-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 2.25rem auto 0;
  padding-top: 1.85rem;
  border-top: 1px solid rgba(31, 38, 34, 0.12);
  text-align: center;
}

/* ---- responsive ---- */
@media (max-width: 991.98px) {
  .contact-section, .office-section, .reach-section { padding: 2.75rem 0 3rem; }
  .certs-section { padding: 2.5rem 0; }
  .contact-layout, .office-layout { grid-template-columns: 1fr; gap: 2rem; }
  .certs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reach-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
}

@media (max-width: 575.98px) {
  .contact-section, .office-section, .reach-section { padding: 2.25rem 0 2.5rem; }
  .form-grid { grid-template-columns: 1fr; gap: 0.95rem; }
  .enquiry-card-head { padding: 1.25rem 1.15rem 1rem; }
  .enquiry-card-head h2 { font-size: 1.4rem; }
  .enquiry-form { padding: 1.15rem; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; justify-content: center; }
  .certs-grid { gap: 0.7rem; }
  .cert-item { padding: 1.1rem 0.7rem; }
  .contact-aside { flex-direction: column; align-items: flex-start; }
  .btn-brochure { width: 100%; justify-content: center; }
  .office-card { padding-left: 1.15rem; }
  .certs-head h2, .reach-head h2 { font-size: 1.6rem; }
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */

/* a taller, quieter banner with a gold rule under the title */
.page-head-about { padding: 3.75rem 0 3.5rem; }
.page-head-about::before {
  background:
    linear-gradient(90deg, rgba(9, 40, 30, 0.94) 0%, rgba(9, 40, 30, 0.72) 48%, rgba(9, 40, 30, 0.42) 100%),
    linear-gradient(0deg, rgba(9, 40, 30, 0.55) 0%, rgba(9, 40, 30, 0) 55%);
}
.page-head-about h1 { font-size: 2.8rem; margin-bottom: 1rem; }
.page-head-rule {
  display: block;
  width: 62px;
  height: 2px;
  background-color: var(--cardamom-gold);
  border-radius: 2px;
}

/* ---- editorial story rows ---- */
.story-section {
  background-color: var(--ivory);
  padding: 5rem 0 4rem;
  /* the offset frame behind each photo sits ~22px outside the container and
     would push the page wider once the container stops being centred */
  overflow: hidden;
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 4.5rem;
  align-items: center;
  padding: 0 0 4.5rem;
}
.story-row:last-child { padding-bottom: 0; }

/* image on the left for the alternating row */
.story-row-reverse .story-copy { order: 2; }
.story-row-reverse .story-media-wrap { order: 1; }

.story-copy h2 { margin-bottom: 0.85rem; }
.story-copy .story-rule {
  display: block;
  width: 48px;
  height: 2.5px;
  border-radius: 2px;
  background-color: var(--spice-gold);
  margin-bottom: 1.6rem;
}
/* opening paragraph carries more weight than the ones that follow */
.story-copy .lede {
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}
.story-copy .section-text + .section-text { margin-top: 1rem; }

/* offset panel behind the photograph */
.story-media-wrap { position: relative; }
.story-media-wrap::before {
  content: '';
  position: absolute;
  inset: -1.35rem -1.35rem 1.35rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  pointer-events: none;
}
.story-row-reverse .story-media-wrap::before { inset: -1.35rem 1.35rem 1.35rem -1.35rem; }

.story-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 26px 56px rgba(11, 61, 46, 0.14);
}
.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
  transition: transform 0.9s ease;
}
.story-media:hover img { transform: scale(1.03); }

.story-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1.35rem 1.1rem;
  background: linear-gradient(0deg, rgba(9, 40, 30, 0.82) 0%, rgba(9, 40, 30, 0) 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---- stat band ---- */
.about-stats-section { background-color: var(--cream); padding: 3rem 0; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.about-stat {
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid var(--border);
}
.about-stats .about-stat:last-child { border-right: none; }
.about-stat .num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.about-stat .lbl {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---- pull quote ---- */
.quote-section {
  background-color: var(--primary-deep);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}
.quote-inner { max-width: 860px; margin: 0 auto; text-align: center; position: relative; }
.quote-mark {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 0.7;
  color: rgba(201, 172, 114, 0.4);
  display: block;
  margin-bottom: 0.5rem;
}
.quote-inner blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  line-height: 1.5;
  color: var(--white);
  font-weight: 400;
}
.quote-attrib {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cardamom-gold);
}
.quote-attrib::before {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  background-color: rgba(201, 172, 114, 0.55);
  margin: 0 auto 1rem;
}

/* ---- why us ---- */
.why-section { background-color: var(--white); padding: 4.5rem 0 5rem; }
.why-head { max-width: 1020px; margin-bottom: 3rem; }
.why-head .section-text { max-width: 100%; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.why-item {
  background-color: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 2.25rem 1.75rem 2rem;
  position: relative;
  transition: var(--transition);
}
.why-item:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: 0 18px 40px rgba(11, 61, 46, 0.09);
}
.why-num {
  position: absolute;
  top: 1.35rem;
  right: 1.6rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--border);
  line-height: 1;
}
.why-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 1.35rem;
  border-radius: 50%;
  background-color: var(--white);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.why-item h3 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}
.why-item h3::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background-color: var(--spice-gold);
  border-radius: 2px;
  margin-top: 0.85rem;
}
.why-item p { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }

/* ---- team ---- */
.team-section { background-color: var(--sage); padding: 4.5rem 0 5rem; }
.team-head { text-align: center; margin-bottom: 2.75rem; }
.team-head h2 { font-size: 2.5rem; }
.team-head .team-rule {
  display: block;
  width: 48px;
  height: 2.5px;
  border-radius: 2px;
  background-color: var(--spice-gold);
  margin: 1.1rem auto 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}
.team-card {
  background-color: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 0.75rem 0.75rem 1.4rem;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(11, 61, 46, 0.12);
  border-color: var(--border);
}
.team-photo {
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  overflow: hidden;
  background: linear-gradient(160deg, #14503C 0%, var(--primary-deep) 100%);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

/* monogram ring stands in until real portraits arrive */
.team-initials {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(201, 172, 114, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--cardamom-gold);
  user-select: none;
}
.team-card h3 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.45rem;
}
.team-role {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--spice-gold);
}

/* ---- responsive ---- */
@media (max-width: 1199.98px) {
  .page-head-about h1 { font-size: 2.3rem; }
  .story-row { gap: 3rem; }
  .quote-inner blockquote { font-size: 1.5rem; }
}

@media (max-width: 991.98px) {
  .page-head-about { padding: 2.5rem 0 2.25rem; }
  .page-head-about h1 { font-size: 1.95rem; }

  .story-section { padding: 2.75rem 0 2rem; }
  .story-row { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.75rem; }
  /* copy always leads once stacked */
  .story-row-reverse .story-copy { order: 1; }
  .story-row-reverse .story-media-wrap { order: 2; }
  .story-media-wrap::before,
  .story-row-reverse .story-media-wrap::before { inset: -0.85rem -0.85rem 0.85rem 0.85rem; }

  .about-stats-section { padding: 2.25rem 0; }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; }
  .about-stat:nth-child(2n) { border-right: none; }
  .about-stat .num { font-size: 2rem; }

  .quote-section { padding: 3rem 0; }
  .quote-inner blockquote { font-size: 1.3rem; }
  .quote-mark { font-size: 3.5rem; }

  .why-section { padding: 2.75rem 0 3rem; }
  .why-head { margin-bottom: 2rem; }
  .why-grid { grid-template-columns: 1fr; gap: 1rem; }

  .team-section { padding: 2.75rem 0 3rem; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .team-head { margin-bottom: 2rem; }
  .team-head h2 { font-size: 1.9rem; }
}

@media (max-width: 575.98px) {
  .page-head-about { padding: 1.9rem 0 1.75rem; }
  .page-head-about h1 { font-size: 1.6rem; }

  .story-section { padding: 2.25rem 0 1.5rem; }
  .story-row { padding-bottom: 2.25rem; gap: 1.5rem; }
  .story-copy .lede { font-size: 17px; }
  .story-media-wrap::before,
  .story-row-reverse .story-media-wrap::before { display: none; }
  .story-caption { padding: 1.2rem 1rem 0.85rem; font-size: 0.6rem; letter-spacing: 0.14em; }

  .about-stats-section { padding: 1.75rem 0; }
  .about-stat { padding: 0 0.6rem; }
  .about-stat .num { font-size: 1.7rem; }
  .about-stat .lbl { font-size: 0.62rem; letter-spacing: 0.12em; }

  .quote-section { padding: 2.5rem 0; }
  .quote-inner blockquote { font-size: 1.15rem; }
  .quote-mark { font-size: 2.75rem; }

  .why-section, .team-section { padding: 2.25rem 0 2.5rem; }
  .why-item { padding: 1.75rem 1.25rem 1.5rem; }
  .team-grid { gap: 1rem; }
  .team-card h3 { font-size: 1.05rem; }
  .team-initials { width: 58px; height: 58px; font-size: 1.2rem; }
  .team-head h2 { font-size: 1.6rem; }
}

/* ==========================================================================
   PRODUCT CARD ACTIONS + ENQUIRY MODAL
   ========================================================================== */

/* ---- the two buttons on a product card ---- */
.product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.35rem;
}
.product-btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  margin-top: 0;
  padding: 0.62rem 0.45rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 3px;
  white-space: nowrap; /* keeps "Know More" on one line in a narrow card */
}
.product-btn-enquiry {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.product-btn-enquiry:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
}
.product-btn-more {
  background-color: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.product-btn-more:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- enquiry modal ---- */
.enquiry-modal .modal-dialog { max-width: 560px; }
.enquiry-modal .modal-content {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(11, 61, 46, 0.22);
}

.enquiry-modal-head {
  position: relative;
  padding: 1.5rem 1.75rem 1.25rem;
  background-color: var(--cream);
  border-bottom: 1px solid var(--border-soft);
}
.enquiry-modal-head .enquiry-badge { margin-bottom: 0.7rem; }
.enquiry-modal-head h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}
.enquiry-modal-head p { font-size: 14px; color: var(--text-secondary); }
.enquiry-modal-head .modal-product {
  color: var(--primary);
  font-weight: 600;
}

.enquiry-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.enquiry-modal-close:hover { background-color: var(--white); color: var(--primary); }

.enquiry-modal-body { padding: 1.5rem 1.75rem 1.75rem; }
.enquiry-modal-body .form-grid { gap: 0.9rem; }
.enquiry-modal-body textarea { min-height: 96px; }
.enquiry-modal-body .form-foot { margin-top: 1.25rem; }

@media (max-width: 575.98px) {
  .enquiry-modal-head { padding: 1.15rem 1.15rem 1rem; }
  .enquiry-modal-head h2 { font-size: 1.25rem; }
  .enquiry-modal-body { padding: 1.15rem 1.15rem 1.35rem; }
  .enquiry-modal-body .form-grid { grid-template-columns: 1fr; }
  .enquiry-modal-body .form-foot { flex-direction: column; align-items: stretch; }
  .enquiry-modal-body .form-foot .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   ICON POLISH — listing toolbar, detail meta, tabs, card buttons
   ========================================================================== */

/* ---- listing toolbar ---- */
.listing-count i {
  color: var(--spice-gold);
  margin-right: 0.5rem;
  font-size: 0.95em;
}

.filter-chip i {
  margin-right: 0.45rem;
  font-size: 0.85em;
  opacity: 0.75;
  transition: var(--transition);
}
.filter-chip:hover i { opacity: 1; }
.filter-chip.is-active i { opacity: 1; }

.grid-empty i {
  display: block;
  font-size: 1.9rem;
  color: var(--border);
  margin-bottom: 0.85rem;
}

/* ---- detail meta list ---- */
.detail-meta dt i {
  color: var(--spice-gold);
  margin-right: 0.45rem;
  width: 14px;
  text-align: center;
  font-size: 0.95em;
}

/* ---- tabs ---- */
.tab-btn i {
  margin-right: 0.45rem;
  font-size: 0.88em;
  opacity: 0.7;
  transition: var(--transition);
}
.tab-btn:hover i,
.tab-btn.is-active i { opacity: 1; }

/* ---- spec table caption ---- */
.spec-table caption i {
  color: var(--spice-gold);
  margin-right: 0.4rem;
}

/* ---- bullet lists: a leaf tick instead of a plain dot ---- */
.bullet-list li::before {
  content: '\f00c';                    /* fa-check */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.82em;
  color: var(--accent-leaf);
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  top: 0.35em;
  line-height: 1;
}

/* ---- card buttons ---- */
.product-btn i { font-size: 0.72rem; }
.product-btn-enquiry i { margin-right: 0.1rem; }
.product-btn-more i { transition: var(--transition); }
.product-btn-more:hover i { transform: translateX(3px); }

/* ==========================================================================
   PRODUCT DETAIL — FIXED ACTION BAR (mobile / tablet)
   The CTA scrolls away once the columns stack, so below 992px the two
   buttons pin to the bottom of the viewport in a single row.
   ========================================================================== */
@media (max-width: 991.98px) {
  .detail-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;            /* under the drawer (1045) and modal (1055) */
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0.7rem 1rem;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background-color: var(--white);
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 -6px 24px rgba(11, 61, 46, 0.12);
  }

  /* override the stacked full-width treatment from the phone breakpoint */
  .detail-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    justify-content: center;
    white-space: nowrap;
    padding: 0.72rem 0.5rem;
    font-size: 14px;
  }

  /* stop the bar covering the end of the page */
  body.has-action-bar { padding-bottom: 76px; }
}

@media (max-width: 380px) {
  .detail-actions { gap: 0.45rem; padding-left: 0.7rem; padding-right: 0.7rem; }
  .detail-actions .btn { font-size: 13px; padding: 0.7rem 0.35rem; }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON + SOCIAL RAIL
   Injected on every page by initFloatingSocial() in main.js.
   Layering: rail/FAB 1030 — under the nav drawer (1045) and modal (1050/1055),
   over the sticky header (1000) and the detail action bar (1020).
   ========================================================================== */

/* ---- vertical social rail, left edge ---- */
.floating-rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1030;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 0 8px 8px 0;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(11, 61, 46, 0.14);
}
.floating-rail a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  color: var(--primary-deep);
  font-size: 0.95rem;
  transition: var(--transition);
}
.floating-rail a i {
  font-size: 18px;
}
.floating-rail a:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ---- WhatsApp button, bottom right ---- */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1030;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-fab:hover {
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5);
}

/* soft outward pulse to draw the eye */
.whatsapp-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: waPulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: 0.75; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* hover label */
.whatsapp-fab-label {
  position: absolute;
  right: calc(100% + 12px);
  white-space: nowrap;
  background-color: var(--primary-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.8rem;
  border-radius: 5px;
  opacity: 0;
  transform: translateX(6px);
  transition: var(--transition);
  pointer-events: none;
}
.whatsapp-fab-label::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--primary-deep);
}
.whatsapp-fab:hover .whatsapp-fab-label,
.whatsapp-fab:focus-visible .whatsapp-fab-label {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-fab:focus-visible,
.floating-rail a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab::after { animation: none; }
  .whatsapp-fab:hover { transform: none; }
}

/* ---- responsive ---- */
@media (max-width: 991.98px) {
  /* the rail crowds a narrow screen; the footer carries the same links */
  .floating-rail { display: none; }

  .whatsapp-fab {
    right: 16px;
    /* clear the floating action nav (62 tall + 10 float gap + 12 breathing) */
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  /* on product detail the taller .detail-actions bar replaces the action nav */
  body.has-action-bar .whatsapp-fab { bottom: calc(76px + 14px); }
}

/* ==========================================================================
   MOBILE ACTION NAV  (below 992px)
   Fixed bottom bar rendered from _partialFooter.cshtml: the header drawer
   already lists every page, so this carries the things worth one tap —
   Home, Products, and the contact actions the business has configured.
   Layering: 1025 — over the sticky header (1000) and the detail action bar
   (1020), under the WhatsApp FAB (1030), drawer (1045) and modal (1055).
   ========================================================================== */
.mobile-action-nav { display: none; }

@media (max-width: 991.98px) {
  /* A floating pill rather than an edge-to-edge slab: it lets the page show
     through underneath, which keeps the phone view feeling light. */
  .mobile-action-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 1025;
    display: flex;
    align-items: stretch;
    gap: 2px;
    padding: 6px;
    border-radius: 22px;
    /* 0.88, not 0.95 — any higher and the blur behind it stops reading */
    background-color: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(234, 229, 216, 0.9);
    /* shadow tinted with the brand's deep green, not neutral grey */
    box-shadow:
      0 12px 28px -8px rgba(9, 53, 40, 0.26),
      0 2px 8px rgba(9, 53, 40, 0.06);
  }

  /* equal columns however many items the business record yields (3–5) */
  .man-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 50px;
    padding: 0 2px;
    border: 0;
    border-radius: 16px;
    background: none;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    /* --text-muted is only ~3:1 on white, which fails AA at this size;
       the active state is carried by the orange + blob, not by dimming the rest */
    color: var(--text-secondary);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.25s ease, background-color 0.25s ease,
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* fixed icon box so the CTA's filled chip doesn't push its label out of
     line with the others */
  .man-item i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.02rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* long labels ("WhatsApp") must not widen their column on a 320px screen */
  .man-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* springy press — the whole tile dips, so the tap feels physical */
  .man-item:active { transform: scale(0.9); }

  .man-item:hover,
  .man-item:focus-visible { color: var(--primary); }
  .man-item:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

  /* current page sits in a soft blob, icon pops up a touch */
  .man-item.active {
    background-color: rgba(241, 98, 33, 0.1);
    color: var(--primary);
    font-weight: 600;
  }
  .man-item.active i { transform: translateY(-1px) scale(1.14); }

  /* WhatsApp keeps its own green so it reads at a glance */
  .man-item .fa-whatsapp { color: #25D366; }

  /* the one primary action gets a filled chip instead of a bare glyph */
  .man-cta { color: var(--primary); font-weight: 600; }
  .man-cta i {
    border-radius: 50%;
    font-size: 0.78rem;
    color: var(--white);
    background: linear-gradient(135deg, #f7853f 0%, var(--primary) 100%);
    box-shadow: 0 3px 10px rgba(241, 98, 33, 0.42);
  }
  .man-cta:active i { transform: scale(0.92); }

  /* stop the bar covering the last of the footer
     (6 pad + 50 item + 6 pad = 62 tall, + 10 float gap, + 10 breathing room) */
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }

  /* product detail: its own action bar owns the bottom edge, so ours hides
     rather than stacking 130px of fixed chrome onto a phone screen */
  body.has-action-bar .mobile-action-nav { display: none; }
}

@media (max-width: 360px) {
  .mobile-action-nav { left: 8px; right: 8px; gap: 0; padding: 5px; }
  .mobile-action-nav .man-item { font-size: 9.5px; }
  .mobile-action-nav .man-item i { width: 24px; height: 24px; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  .man-item,
  .man-item i { transition: color 0.2s ease, background-color 0.2s ease; }
  .man-item:active,
  .man-item.active i,
  .man-cta:active i { transform: none; }
}
