/* ==========================================================================
   Ganesh Polyfabrics
   Sections: 1 tokens, 2 base, 3 buttons & tags, 4 navbar, 5 hero, 6 about,
   7 cards, 8 sub banner, 9 detail pages, 10 contact, 11 gallery, 12 footer,
   13 floating buttons, 14 responsive
   ========================================================================== */

/* 1. tokens ---------------------------------------------------------------- */
:root {
  --brand: #f08a24;
  --brand-dark: #d9730f;
  --brand-soft: #fff3e6;
  --ink: #16181d;
  --ink-soft: #2a2d34;
  --text: #4a4f58;
  --muted: #6b7280;
  --line: #e6e8ec;
  --surface: #ffffff;
  --surface-alt: #f6f7f9;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(22, 24, 29, 0.08);
  --shadow-hover: 0 12px 32px rgba(22, 24, 29, 0.14);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-height: 76px;
}

/* 2. base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }

section {
  padding: 70px 0;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* headings with a coloured last word */
h1 span,
h2 span {
  color: var(--brand);
}

/* 3. buttons & tags --------------------------------------------------------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.about-btn,
.product-btn,
.small-cta-btn,
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border: 2px solid var(--brand);
  border-radius: 50px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.about-btn:hover,
.product-btn:hover,
.small-cta-btn:hover,
.contact-btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
}

.about-btn-light {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.about-btn-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* 4. navbar ------------------------------------------------------------------ */
.navbar {
  min-height: var(--nav-height);
  padding: 8px 0;
  background: var(--ink);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.navbar .logo {
  width: auto;
  height: 46px;
}

.navbar .nav-link {
  padding: 10px 16px;
  color: #e8e9ec;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--brand);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.4);
}

.dropdown-menu {
  min-width: 260px;
  padding: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--ink);
  white-space: normal;
}

.dropdown-item i {
  color: var(--brand);
  font-size: 0.75rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* 5. hero --------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 80px 0;
  background: #1c1f26 url("/assets/img/bg/slider-bg-01.jpg") center right / cover no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 16, 20, 0.92) 0%, rgba(14, 16, 20, 0.7) 45%, rgba(14, 16, 20, 0.1) 100%);
}

.hero .container {
  position: relative;
}

.hero .section-tag {
  background: rgba(240, 138, 36, 0.18);
  color: #ffb066;
}

.hero-title {
  color: #fff;
}

.hero-text {
  max-width: 520px;
  color: #d6d8dd;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* 6. about --------------------------------------------------------------------- */
.about-area {
  background: var(--surface);
}

.about-heading {
  margin-bottom: 16px;
}

.about-desc {
  color: var(--text);
}

.about-highlight {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-soft);
}

.about-highlight p {
  margin: 0;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.point-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.point-box i {
  color: var(--brand);
  font-size: 1.25rem;
}

.point-box h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.about-visual {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-visual img {
  display: block;
  width: 100%;
}

.counter-section {
  margin-top: 60px;
}

.counter-card {
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  text-align: center;
  color: #fff;
}

.counter-card h2 {
  margin: 0;
  color: var(--brand);
  font-size: 2.4rem;
}

.counter-card p {
  margin: 4px 0 0;
  color: #d6d8dd;
  font-size: 0.9rem;
}

/* about page blocks */
.info-section {
  background: var(--surface-alt);
}

.info-card {
  height: 100%;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.info-card h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.info-card h2 i {
  color: var(--brand);
}

.tick-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.tick-list li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.85rem;
}

.tick-list.two-col {
  columns: 2;
  column-gap: 28px;
}

.tick-list.two-col li {
  break-inside: avoid;
}

/* 7. cards ----------------------------------------------------------------------- */
.products-section {
  background: var(--surface-alt);
}

.products-wrapper,
.why-choose-section .row.g-4 {
  margin-top: 24px;
}

.products-desc,
.why-desc,
.contact-desc {
  color: var(--muted);
}

.product-card {
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.06);
}

.product-content {
  padding: 20px;
  text-align: center;
}

.product-content h3 {
  min-height: 2.6em;
  margin-bottom: 14px;
}

.product-btn {
  padding: 9px 20px;
  font-size: 0.88rem;
}

.why-choose-section {
  background: var(--surface);
}

.choose-card {
  height: 100%;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.choose-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.choose-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.choose-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.5rem;
}

.cert-section {
  background: var(--surface-alt);
}

.cert-card {
  margin: 0;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.small-cta-section {
  padding: 60px 0;
  background: var(--ink) url("/assets/img/bg/contact-bg.jpg") center / cover no-repeat;
  position: relative;
}

.small-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 20, 0.82);
}

.small-cta-section .container {
  position: relative;
}

.small-cta-content h2,
.small-cta-content p {
  color: #fff;
}

.small-cta-content p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: #d6d8dd;
}

/* 8. sub banner ----------------------------------------------------------------- */
.sub-banner-section {
  padding: 56px 0;
  background: var(--ink) url("/assets/img/bg/page-title-bg.jpg") center / cover no-repeat;
  position: relative;
}

.sub-banner-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 16, 20, 0.78);
}

.sub-banner-section .container {
  position: relative;
}

.sub-banner-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
}

.sub-banner-content p {
  max-width: 760px;
  color: #d6d8dd;
}

.sub-breadcrumb {
  margin: 12px 0 0;
  padding: 0;
  background: none;
}

.sub-breadcrumb a {
  color: var(--brand);
}

.sub-breadcrumb .breadcrumb-item.active,
.sub-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #d6d8dd;
}

/* 9. detail pages ------------------------------------------------------------------ */
.product-detail-section {
  padding-bottom: 40px;
}

.product-detail-image-box {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.product-detail-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-detail-title {
  margin-bottom: 16px;
}

.product-detail-desc p {
  text-align: left;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.about-btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.about-btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.detail-badges i {
  margin-right: 6px;
  color: var(--brand);
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
}

.product-price-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-price-value {
  color: var(--brand-dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.product-price-unit {
  color: var(--muted);
}

.product-spec-section {
  padding: 30px 0;
}

.product-spec-section.pt-0 {
  padding-top: 0;
}

.spec-table-card {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.spec-table-card > h2 {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-soft);
}

.product-rich-text > :first-child {
  margin-top: 0;
}

.product-rich-text h2 {
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
  font-size: 1.35rem;
}

.product-rich-text h3 { font-size: 1.15rem; margin: 20px 0 10px; }
.product-rich-text h4 { font-size: 1.05rem; margin: 16px 0 8px; }
.product-rich-text p { text-align: left; }

.product-rich-text p.point {
  position: relative;
  margin-bottom: 10px;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}

.product-rich-text p.point::before {
  content: "\f00c";
  position: absolute;
  left: 16px;
  top: 12px;
  color: var(--brand);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.85rem;
}

.product-rich-text p.point strong {
  display: block;
  color: var(--ink);
}

.product-rich-text ul,
.product-rich-text ol { margin: 0 0 1rem; padding-left: 22px; }
.product-rich-text ul { list-style: disc; }
.product-rich-text li { margin-bottom: 6px; }

.accordion-button:not(.collapsed) {
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(240, 138, 36, 0.25);
}

.accordion-button {
  font-size: 1rem;
  font-weight: 500;
}

.presence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.presence-links a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 50px;
  color: var(--ink);
  font-size: 0.9rem;
}

.presence-links a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.presence-links i {
  color: var(--brand);
}

.related-products .owl-dots {
  margin-top: 16px;
  text-align: center;
}

.related-products .owl-theme .owl-dots .owl-dot.active span,
.related-products .owl-theme .owl-dots .owl-dot:hover span {
  background: var(--brand);
}

/* 10. contact -------------------------------------------------------------------------- */
.contact-section {
  background: var(--surface-alt);
}

.contact-top-cards {
  margin-top: 24px;
}

.contact-mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  overflow-wrap: anywhere;
}

.contact-mini-card h5 {
  margin-bottom: 8px;
}

.contact-mini-card a,
.contact-mini-card span {
  color: var(--text);
  font-size: 0.95rem;
}

.contact-mini-card a:hover {
  color: var(--brand-dark);
}

.contact-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.25rem;
}

.contact-main-box {
  max-width: 860px;
  margin: 40px auto 0;
}

.contact-form-panel {
  padding: 36px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form-panel > h2,
.contact-form-panel > h3 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-control {
  border: 1px solid #d3d7dd;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(240, 138, 36, 0.2);
}

.form-control.error {
  border-color: #dc3545;
}

.form-control.success {
  border-color: #198754;
}

.error-message {
  display: block;
  min-height: 1.2em;
  margin-top: 4px;
  color: #dc3545;
  font-size: 0.8rem;
}

.form-success {
  margin: 0;
  color: #198754;
  font-weight: 500;
}

.captcha-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px dashed var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--ink);
  font-weight: 600;
}

.captcha-refresh {
  border: 0;
  background: none;
  color: var(--brand-dark);
  cursor: pointer;
}

.contact-btn {
  width: 100%;
}

.map-location iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* 11. gallery ------------------------------------------------------------------------------ */
.gallery-section {
  background: var(--surface);
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  aspect-ratio: 3 / 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item::after {
  content: "\f00e";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 16, 20, 0.5);
  color: #fff;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 20px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* 12. footer ----------------------------------------------------------------------------------- */
.footer-section {
  padding: 60px 0 0;
  background: var(--ink);
  color: #c4c7cd;
}

.footer-widget h4 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 1.1rem;
}

.footer-logo-img {
  width: auto;
  height: 46px;
  margin-bottom: 16px;
}

.footer-text {
  font-size: 0.92rem;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
  color: #c4c7cd;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--brand);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.footer-contact i {
  margin-top: 5px;
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-credit a {
  color: var(--brand);
}

/* brand logo on a light page (the logo artwork has a dark background) */
.brand-plate {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: #000;
}

.brand-plate img {
  display: block;
  height: 46px;
  width: auto;
}

/* 13. floating buttons ------------------------------------------------------------------------ */
.fix-icons {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fix-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.fix-icons a:hover {
  color: #fff;
  transform: scale(1.1);
}

.whatsapp-icon a { background: #25d366; }
.phone-icon a { background: var(--brand); }

.top {
  position: fixed;
  left: 18px;
  bottom: 24px;
  z-index: 1030;
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  line-height: 42px;
  text-align: center;
}

.top:hover {
  background: var(--brand);
  color: #fff;
}

/* 14. responsive ---------------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .navbar-collapse {
    padding: 12px 0;
  }

  .hero {
    min-height: 460px;
  }

  .hero::before {
    background: rgba(14, 16, 20, 0.8);
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  section {
    padding: 44px 0;
  }

  .hero {
    min-height: 0;
    padding: 56px 0;
  }

  .about-points {
    grid-template-columns: 1fr;
  }

  .tick-list.two-col {
    columns: 1;
  }

  .spec-table-card,
  .contact-form-panel,
  .info-card {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .map-location iframe {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
