/* ====================================
   RAW MATERIALS BASE STYLES
==================================== */
:root {
  --raw-primary: #214f99;
  --raw-primary-dark: #17396f;
  --raw-secondary: #5e832a;
  --raw-navy: #08101c;
  --raw-text: #111827;
  --raw-muted: #667085;
  --raw-light: #f8fafc;
  --raw-border: #e5e7eb;
  --raw-white: #ffffff;
  --raw-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --raw-shadow-hover: 0 18px 42px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--raw-text);
  line-height: 1.6;
  background-color: var(--raw-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====================================
   HERO SECTION
==================================== */
.raw-materials-hero {
  padding: 155px 0;
  background: linear-gradient(rgba(8, 15, 28, 0.86), rgba(8, 15, 28, 0.86)),
              url('../images/raw-materials/raw-materials-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.raw-materials-hero-content {
  max-width: 950px;
  color: var(--raw-white);
}

.raw-materials-hero-content h1 {
  margin: 24px 0;
  color: var(--raw-white);
  font-size: 70px;
  font-weight: 800;
  line-height: 1.1;
  animation: rawFadeUp 0.7s ease both;
}

.raw-materials-hero-content p {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.9;
  animation: rawFadeUp 0.8s ease both;
}

.hero-search {
  margin-top: 38px;
}

.hero-search form {
  display: flex;
  max-width: 700px;
  overflow: hidden;
  background: var(--raw-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 18px 20px;
  background: var(--raw-white);
  border: 0;
  color: var(--raw-text);
  font-size: 16px;
  outline: none;
}

.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  background: var(--raw-primary);
  border: 0;
  color: var(--raw-white);
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.hero-search button:hover {
  background: var(--raw-primary-dark);
}

/* ====================================
   OVERVIEW SECTION
==================================== */
.section-tag {
  display: inline-block;
  padding: 8px 16px;
  background: #eef3f9;
  border: 1px solid #d8e3f1;
  border-radius: 6px;
  color: var(--raw-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.section-title {
  margin: 18px 0;
  color: var(--raw-text);
  font-size: 50px;
  font-weight: 800;
  line-height: 1.18;
}

.section-subtitle {
  max-width: 850px;
  margin: 0 0 48px;
  color: var(--raw-muted);
  line-height: 1.9;
}

/* ====================================
   MATERIAL CATEGORIES SECTION
==================================== */
.material-categories {
  padding: 110px 0;
  background: var(--raw-light);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.category-card {
  display: block;
  padding: 38px;
  background: var(--raw-white);
  border: 1px solid var(--raw-border);
  border-radius: 8px;
  box-shadow: var(--raw-shadow);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: #cbd7e5;
  box-shadow: var(--raw-shadow-hover);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin-bottom: 24px;
  background: var(--raw-primary);
  border-radius: 8px;
  color: var(--raw-white);
}

.category-icon i {
  font-size: 34px;
}

.category-card h3 {
  margin: 0 0 14px;
  color: var(--raw-text);
  font-size: 27px;
  font-weight: 700;
}

.category-card p {
  margin: 0 0 20px;
  color: var(--raw-muted);
  line-height: 1.8;
}

.category-card span {
  color: var(--raw-primary);
  font-weight: 700;
}

/* ====================================
   PRODUCT FORMS SECTION
==================================== */
.product-forms {
  padding: 110px 0;
  background: var(--raw-white);
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.form-card {
  display: block;
  padding: 34px 24px;
  background: var(--raw-light);
  border: 1px solid var(--raw-border);
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.form-card:hover {
  transform: translateY(-6px);
  background: var(--raw-primary);
  box-shadow: var(--raw-shadow-hover);
}

.form-card i {
  margin-bottom: 20px;
  color: var(--raw-primary);
  font-size: 40px;
  transition: color 0.25s ease;
}

.form-card h3 {
  margin: 0 0 12px;
  color: var(--raw-text);
  font-size: 22px;
  font-weight: 700;
  transition: color 0.25s ease;
}

.form-card p {
  margin: 0;
  color: var(--raw-muted);
  line-height: 1.7;
  transition: color 0.25s ease;
}

.form-card:hover h3,
.form-card:hover p,
.form-card:hover i {
  color: var(--raw-white);
}

/* ====================================
   TIMELINE & WHY SECTION
==================================== */
.raw-materials-why {
  padding: 110px 0;
  background: var(--raw-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.why-card {
  padding: 38px 28px;
  background: var(--raw-white);
  border: 1px solid var(--raw-border);
  border-radius: 8px;
  box-shadow: var(--raw-shadow);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--raw-shadow-hover);
}

.why-card i {
  margin-bottom: 20px;
  color: var(--raw-primary);
  font-size: 46px;
}

.why-card h3 {
  margin: 0 0 14px;
  color: var(--raw-text);
  font-size: 24px;
  font-weight: 700;
}

.why-card p {
  margin: 0;
  color: var(--raw-muted);
  line-height: 1.8;
}

/* ====================================
   CTA SECTION
==================================== */
.raw-materials-cta {
  padding: 135px 0;
  background: linear-gradient(rgba(8, 15, 28, 0.88), rgba(8, 15, 28, 0.88)),
              url('../images/raw-materials/raw-materials-cta.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.raw-materials-cta h2 {
  margin: 0 0 24px;
  color: var(--raw-white);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.18;
}

.raw-materials-cta p {
  max-width: 900px;
  margin: 0 auto 38px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.primary-btn {
  background: var(--raw-primary);
  border: 2px solid var(--raw-primary);
  color: var(--raw-white);
}

.secondary-btn {
  background: transparent;
  border: 2px solid var(--raw-white);
  color: var(--raw-white);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: var(--raw-primary-dark);
  border-color: var(--raw-primary-dark);
}

.secondary-btn:hover {
  transform: translateY(-2px);
  background: var(--raw-white);
  color: var(--raw-text);
}

/* ====================================
   ANIMATIONS
==================================== */
@keyframes rawFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================================
   RESPONSIVE SECTION
==================================== */

/* Breakpoint: 1200px */
@media (max-width: 1200px) {
  .raw-materials-hero-content h1 {
    font-size: 60px;
  }

  .section-title {
    font-size: 44px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forms-grid,
  .why-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Breakpoint: 991px */
@media (max-width: 991px) {
  .raw-materials-hero {
    padding: 120px 0;
  }

  .material-categories,
  .product-forms,
  .raw-materials-why {
    padding: 85px 0;
  }

  .raw-materials-hero-content h1 {
    font-size: 50px;
  }

  .raw-materials-hero-content p {
    font-size: 18px;
  }

  .forms-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .raw-materials-cta {
    padding: 105px 0;
  }

  .raw-materials-cta h2 {
    font-size: 44px;
  }
}

/* Breakpoint: 768px */
@media (max-width: 768px) {
  .raw-materials-hero {
    padding: 95px 0;
  }

  .raw-materials-hero-content h1 {
    font-size: 40px;
  }

  .raw-materials-hero-content p {
    font-size: 17px;
    line-height: 1.75;
  }

  .hero-search form {
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
    height: 55px;
  }

  .section-title {
    font-size: 34px;
  }

  .category-grid,
  .forms-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .form-card,
  .why-card {
    padding: 30px 22px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .raw-materials-cta h2 {
    font-size: 36px;
  }

  .raw-materials-cta p {
    font-size: 18px;
  }
}

/* Breakpoint: 480px */
@media (max-width: 480px) {
  .raw-materials-hero {
    padding: 78px 0;
  }

  .raw-materials-hero-content h1 {
    margin: 18px 0;
    font-size: 32px;
  }

  .raw-materials-hero-content p {
    font-size: 16px;
    line-height: 1.7;
  }

  .material-categories,
  .product-forms,
  .raw-materials-why {
    padding: 65px 0;
  }

  .section-tag {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .section-title {
    font-size: 29px;
  }

  .category-card,
  .form-card,
  .why-card {
    padding: 24px 18px;
  }

  .category-icon {
    width: 68px;
    height: 68px;
  }

  .category-card h3 {
    font-size: 23px;
  }

  .why-card h3 {
    font-size: 21px;
  }

  .raw-materials-cta {
    padding: 82px 0;
  }

  .raw-materials-cta h2 {
    font-size: 30px;
  }

  .raw-materials-cta p {
    font-size: 16px;
    line-height: 1.7;
  }
}