
/* =====================================================
   DHURVI ENTERPRISES — MATERIALS PAGE CSS
===================================================== */

/* =================== 1. MATERIALS HERO ==================== */

.materials-page-header {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 440px;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;

  background-image:
    linear-gradient(
      90deg,
      rgba(8, 22, 39, 0.94) 0%,
      rgba(8, 22, 39, 0.78) 55%,
      rgba(8, 22, 39, 0.38) 100%
    ),
    url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1800&q=85");

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.materials-page-header .container {
  position: relative;
  z-index: 1;
}

.materials-page-header .breadcrumb-tf {
  color: #fff;
}

.materials-page-header .breadcrumb-tf a {
  color: #ff8a35;
  text-decoration: none;
}

.materials-page-header .breadcrumb-tf a:hover {
  color: #fff;
  text-decoration: underline;
}

.materials-hero-eyebrow {
  margin: 0 0 0.85rem;
  color: #ff8a35;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.7;
}

.materials-page-header h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.materials-hero-subtitle {
  max-width: 620px;
  margin: 1.2rem 0 0;
  color: #edf1f5;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
}

.materials-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.materials-hero-secondary {
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
}

.materials-hero-secondary:hover,
.materials-hero-secondary:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #0c1b2f;
}

/* =====================================================
   2. MATERIALS CATALOGUE
===================================================== */

.materials-catalogue {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.materials-section-intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.materials-section-intro h2 {
  margin: 0 0 1rem;
  color: var(--charcoal, #0c1b2f);
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
}

.materials-section-intro > p {
  max-width: 620px;
  margin: 0;
  color: var(--steel, #64748b);
  font-size: 1rem;
  line-height: 1.8;
}

/* =====================================================
   3. MATERIAL CARDS
===================================================== */

.material-product-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;

  border: 1px solid rgba(12, 27, 47, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(12, 27, 47, 0.06);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.material-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(12, 27, 47, 0.13);
}

.material-product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e3db;
}

.material-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.material-product-card:hover .material-product-image img {
  transform: scale(1.045);
}

.material-image-label {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.45rem 0.65rem;

  background: rgba(12, 27, 47, 0.88);
  color: #fff;

  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.material-product-card .tf-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
}

.material-card-category {
  margin-bottom: 0.65rem;
  color: var(--laterite, #b64b2a);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.material-product-card h3 {
  margin: 0 0 0.85rem;
  color: var(--charcoal, #0c1b2f);
  font-family: "Oswald", sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.25;
}

.material-product-card p {
  margin-bottom: 1.5rem;
  color: #5e6875;
  font-size: 0.94rem;
  line-height: 1.8;
}

/* Request Price buttons */

.material-product-card .material-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;

  min-height: 46px;
  margin-top: auto;
  padding: 0.75rem 1.25rem;

  border: 1px solid #0c1b2f;
  border-radius: 4px;
  background: #0c1b2f;
  color: #fff;

  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.material-product-card .material-card-button:hover,
.material-product-card .material-card-button:focus-visible {
  border-color: #ff8a35;
  background: #ff8a35;
  color: #0c1b2f;
}

.material-product-card .material-card-button:focus-visible {
  outline: 3px solid rgba(255, 138, 53, 0.4);
  outline-offset: 3px;
}

/* MATERIALS PAGE — ENQUIRY CTA ONLY */

.materials-enquiry-banner {
  padding: 2rem 0;
  background-color: #a94229;
  border-bottom: 4px solid #7f2e1d;
}

.materials-enquiry-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.materials-enquiry-content > div:first-child {
  flex: 1 1 560px;
  min-width: 0;
  max-width: 680px;
}

.materials-enquiry-content h2 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.materials-enquiry-content > div:first-child > p:last-child {
  margin: 0;
  color: #fff1e9;
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Call Now button — white border, compact size */
.materials-enquiry-banner .btn.btn-tf-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border: 1px solid #fff;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.materials-enquiry-banner .btn.btn-tf-primary:hover,
.materials-enquiry-banner .btn.btn-tf-primary:focus-visible,
.materials-enquiry-banner .btn.btn-tf-primary:active {
  background: #fff;
  border-color: #fff;
  color: #a94229;
}

.materials-enquiry-banner .btn.btn-tf-primary:focus-visible {
  outline: 3px solid #ffd0ad;
  outline-offset: 3px;
}

/* =====================================================
   5. TABLET RESPONSIVE
===================================================== */

@media (max-width: 991.98px) {
  .materials-page-header {
    min-height: 380px;
    padding: 4.5rem 0 3.5rem;
    background-position: center;
  }

  .materials-catalogue {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .materials-enquiry-banner {
    padding: 1.75rem 0;
  }

  .materials-enquiry-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .materials-enquiry-content > div:first-child {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .materials-enquiry-actions {
    width: 100%;
  }
}

/* =====================================================
   6. MOBILE RESPONSIVE
===================================================== */

@media (max-width: 575.98px) {
  .materials-page-header {
    min-height: 360px;
    padding: 3.5rem 0 3rem;
    background-position: center;
  }

  .materials-page-header h1 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .materials-hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .materials-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .materials-hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .materials-catalogue {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .materials-section-intro {
    margin-bottom: 1.75rem;
  }

  .material-product-card .tf-card-body {
    padding: 1.25rem;
  }

  .material-product-card .material-card-button {
    width: 100%;
  }

  /* Compact enquiry CTA on mobile */
  .materials-enquiry-banner {
    padding: 1.5rem 0;
  }

  .materials-enquiry-content {
    gap: 1rem;
  }

  .materials-enquiry-content h2 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.55rem, 6.5vw, 2rem);
  }

  .materials-enquiry-content > div:first-child > p:last-child {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .materials-enquiry-actions {
    width: auto;
    max-width: 100%;
    align-items: flex-start;
    flex-direction: row;
  }

  .materials-enquiry-actions .materials-whatsapp-button,
  .materials-enquiry-actions .btn {
    width: auto;
    max-width: 100%;
    min-height: 42px;
    padding: 0.6rem 1rem;
    white-space: normal;
  }
}

/* =====================================================
   7. SMALL MOBILE
===================================================== */

@media (max-width: 380px) {
  .materials-enquiry-banner {
    padding: 1.25rem 0;
  }

  .materials-enquiry-content h2 {
    font-size: 1.7rem;
  }

  .materials-enquiry-actions .materials-whatsapp-button,
  .materials-enquiry-actions .btn {
	min-height: 38px;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* =====================================================
   8. REDUCED MOTION ACCESSIBILITY
===================================================== */

@media (prefers-reduced-motion: reduce) {
  .material-product-card,
  .material-product-image img,
  .material-product-card .material-card-button,
  .materials-enquiry-actions .materials-whatsapp-button,
  .materials-enquiry-actions .btn {
    transition: none;
  }

  .material-product-card:hover {
    transform: none;
  }

  .material-product-card:hover .material-product-image img {
    transform: none;
  }
}
