/* ==========================================================================
   AAC RAW MATERIALS GUIDE STYLES
   Source: https://aac-block-raw-material-guide.mitesh958.chatgpt.site/
   ========================================================================== */

:root {
  --navy: #0B1727;
  --blue: #0C4F80;
  --deep: #09263D;
  --white: #fff;
  --silver: #EEF2F5;
  --light: #F5F7F8;
  --secondary: #5E6874;
  --muted: #84909C;
  --line: #DCE2E7;
  --highlight: #8FC6EC;
  --max: 1400px;
}

.raw-materials-page {
  margin: 0;
  color: var(--navy);
  background: #fff;
  font-family: 'Inter', 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.raw-materials-page * {
  box-sizing: border-box;
}

.raw-materials-page a {
  color: inherit;
}

.raw-materials-page img {
  display: block;
  max-width: 100%;
}

.rm-wrap {
  width: min(var(--max), 86vw);
  margin: auto;
}

.rm-eyebrow {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.rm-section {
  padding: clamp(90px, 10vw, 150px) 0;
}

.rm-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr);
  gap: 7vw;
  align-items: end;
  margin-bottom: 64px;
}

.rm-section-head h2,
.rm-display {
  margin: 0;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 650;
  color: var(--navy);
}

.rm-section-head h2 span,
.rm-display span {
  color: #7a8794;
}

.rm-lede {
  margin: 0;
  color: var(--secondary);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
  max-width: 620px;
}

.rm-small {
  font-size: 14px;
  color: var(--secondary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.rm-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
  background: #f8fafb;
}

.rm-hero-media {
  position: absolute;
  inset: 0;
  background: url('../assets/images/raw-materials-hero.webp') center right / cover no-repeat;
  z-index: 1;
}

.rm-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 35%, rgba(255, 255, 255, 0.35) 60%, rgba(255, 255, 255, 0) 80%);
}

.rm-hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), 88vw);
  margin: auto;
  padding: 100px 0 80px;
}

.rm-hero-copy {
  max-width: 720px;
}

.rm-hero h1 {
  margin: 0 0 28px;
  font-size: clamp(48px, 6.5vw, 92px);
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 700;
  color: var(--navy);
}

.rm-hero h1 span {
  display: block;
  color: #7c8995;
}

.rm-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.rm-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(12, 79, 128, 0.25);
}

.rm-primary-btn:hover {
  background: #083c63;
  transform: translateY(-2px);
}

.rm-text-link {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid #9aa6b0;
  padding: 8px 0;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}

.rm-text-link:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.rm-hero-note {
  margin-top: 36px;
  color: #6e7984;
  font-size: 13.5px;
  font-weight: 500;
}

.rm-hero-note:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  vertical-align: middle;
  margin-right: 10px;
}

/* ==========================================================================
   Quick Answer
   ========================================================================== */

.rm-quick-answer {
  background: var(--navy);
  color: #fff;
}

.rm-quick-answer .rm-eyebrow {
  color: var(--highlight);
}

.rm-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 9vw;
  align-items: start;
}

.rm-quick-grid h2 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 650;
  color: #fff;
}

.rm-answer-text {
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.55;
  color: #dbe5ed;
  margin: 0;
  font-weight: 400;
}

.rm-answer-note {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: #99a9b7;
  font-size: 14.5px;
  line-height: 1.6;
}

/* ==========================================================================
   Ratio Band
   ========================================================================== */

.rm-ratio-band {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.rm-ratio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}

.rm-ratio {
  padding: 34px 24px 28px;
  border-right: 1px solid var(--line);
}

.rm-ratio:last-child {
  border-right: 0;
}

.rm-ratio b {
  display: block;
  font-size: clamp(26px, 2.8vw, 42px);
  line-height: 1;
  color: var(--blue);
  letter-spacing: -.03em;
  font-weight: 700;
}

.rm-ratio span {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--secondary);
  font-weight: 500;
}

/* ==========================================================================
   01 Material Intelligence (Tabs)
   ========================================================================== */

.rm-materials {
  background: var(--light);
}

.rm-material-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 6vw;
}

.rm-material-tabs {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 105px;
  align-self: start;
  border-top: 1px solid var(--line);
}

.rm-material-tabs button {
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 19px 4px;
  color: #6d7883;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rm-material-tabs button:hover {
  color: var(--blue);
}

.rm-material-tabs button.active {
  color: var(--blue);
  font-weight: 700;
  border-bottom: 2px solid var(--blue);
}

.rm-material-panel {
  display: none;
  animation: rmFadeIn 0.3s ease-out;
}

.rm-material-panel.active {
  display: block;
}

@keyframes rmFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.rm-material-panel h3 {
  margin: 0 0 20px;
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -.035em;
  color: var(--navy);
  font-weight: 650;
}

.rm-material-panel > p {
  max-width: 800px;
  color: var(--secondary);
  font-size: 17.5px;
  line-height: 1.65;
}

.rm-specs {
  margin-top: 36px;
  border-top: 1px solid #cbd3d9;
}

.rm-spec-row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.rm-spec-row dt {
  color: #6e7882;
  font-size: 14.5px;
}

.rm-spec-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
}

.rm-role-callout {
  margin-top: 34px;
  padding: 24px 28px;
  border-left: 3px solid var(--blue);
  background: #fff;
  color: #344250;
  font-size: 15px;
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   02 Consumption Benchmark Table
   ========================================================================== */

.rm-table-shell {
  overflow-x: auto;
  border-top: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.rm-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1020px;
}

.rm-table th,
.rm-table td {
  text-align: left;
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rm-table th {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #687580;
  background: #f9fbfc;
  font-weight: 700;
}

.rm-table th:first-child,
.rm-table td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  min-width: 190px;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.02);
}

.rm-table th:first-child {
  background: #f9fbfc;
}

.rm-table td {
  font-size: 14.5px;
  color: #3b4856;
}

.rm-table td strong {
  display: block;
  color: var(--navy);
  font-weight: 650;
}

.rm-table-note {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
  color: var(--secondary);
  font-size: 13.5px;
}

.rm-table-note strong {
  color: var(--navy);
}

/* ==========================================================================
   03 India Sourcing
   ========================================================================== */

.rm-sourcing {
  background: linear-gradient(135deg, #104F7D, #09263D);
  color: #fff;
}

.rm-sourcing .rm-eyebrow {
  color: var(--highlight);
}

.rm-sourcing .rm-section-head h2 {
  color: #fff;
}

.rm-sourcing .rm-section-head h2 span {
  color: #8da4b7;
}

.rm-sourcing .rm-lede {
  color: #c2d0db;
}

.rm-source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
}

.rm-source-card {
  background: rgba(9, 38, 61, .84);
  padding: 40px;
}

.rm-source-card small {
  color: var(--highlight);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11.5px;
}

.rm-source-card h3 {
  font-size: 24px;
  margin: 12px 0;
  color: #fff;
  font-weight: 650;
}

.rm-source-card p {
  color: #b9c9d6;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.rm-logistics {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  padding-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.rm-logistics strong {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1;
  color: #fff;
  display: block;
  font-weight: 700;
}

.rm-logistics p {
  color: #b8c8d5;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

/* ==========================================================================
   04 Reaction Science
   ========================================================================== */

.rm-science-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 8vw;
  align-items: start;
}

.rm-reaction {
  padding: 38px;
  background: var(--silver);
  border-radius: 4px;
}

.rm-reaction-label {
  font-size: 12px;
  color: var(--blue);
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
}

.rm-formula {
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.4;
  margin: 18px 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--navy);
  font-weight: 600;
}

.rm-science-copy h3 {
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--navy);
  font-weight: 650;
}

.rm-science-copy p {
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.65;
}

.rm-stages {
  margin-top: 35px;
}

.rm-stage {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.rm-stage b {
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
}

.rm-stage strong {
  font-size: 16.5px;
  color: var(--navy);
  display: block;
}

.rm-stage p {
  margin: 4px 0 0;
  color: var(--secondary);
  font-size: 14.5px;
}

/* ==========================================================================
   05 Qualification Protocol
   ========================================================================== */

.rm-quality {
  background: var(--silver);
}

.rm-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #cfd7dd;
  border: 1px solid #cfd7dd;
}

.rm-check-card {
  padding: 34px;
  background: #fff;
}

.rm-check-card .num {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: .13em;
  font-weight: 700;
}

.rm-check-card h3 {
  font-size: 20px;
  margin: 16px 0 10px;
  color: var(--navy);
  font-weight: 650;
}

.rm-check-card p {
  color: var(--secondary);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
}

.rm-warning-callout {
  margin-top: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid #c9d2d8;
  border-bottom: 1px solid #c9d2d8;
  align-items: center;
}

.rm-warning-callout b {
  font-size: 13.5px;
  color: var(--blue);
  letter-spacing: .08em;
  font-weight: 700;
}

.rm-warning-callout p {
  margin: 0;
  color: #43515e;
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   06 Technical FAQ
   ========================================================================== */

.rm-faq-list {
  max-width: 980px;
  margin-left: auto;
}

.rm-faq-item {
  border-top: 1px solid var(--line);
}

.rm-faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.rm-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  border: 0;
  background: none;
  padding: 24px 0;
  font: inherit;
  font-size: 18.5px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: color 0.2s ease;
}

.rm-faq-q:hover {
  color: var(--blue);
}

.rm-faq-q span:last-child {
  color: var(--blue);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.25s ease;
}

.rm-faq-a {
  display: none;
  padding: 0 50px 24px 0;
  color: var(--secondary);
  font-size: 15.5px;
  line-height: 1.65;
}

.rm-faq-item.open .rm-faq-a {
  display: block;
}

.rm-faq-item.open .rm-faq-q span:last-child {
  transform: rotate(45deg);
}

/* ==========================================================================
   Raw-material Feasibility CTA
   ========================================================================== */

.rm-cta {
  padding: clamp(90px, 10vw, 145px) 0;
  background: var(--navy);
  color: #fff;
}

.rm-cta-inner {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 6vw;
  align-items: end;
}

.rm-cta h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0;
  color: #fff;
  font-weight: 650;
}

.rm-cta h2 span {
  color: #91a4b4;
}

.rm-cta p {
  color: #b5c4d0;
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.rm-cta .rm-primary-btn {
  background: #fff;
  color: var(--navy) !important;
}

.rm-cta .rm-primary-btn:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
  .rm-wrap {
    width: min(100% - 48px, var(--max));
  }
  .rm-section-head,
  .rm-quick-grid,
  .rm-science-grid,
  .rm-cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .rm-ratio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rm-ratio:last-child {
    grid-column: span 2;
  }
  .rm-material-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rm-material-tabs {
    position: static;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    gap: 20px;
    padding-bottom: 8px;
  }
  .rm-material-tabs button {
    flex: 0 0 auto;
  }
  .rm-source-grid {
    grid-template-columns: 1fr;
  }
  .rm-checks {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .rm-wrap {
    width: calc(100% - 36px);
  }
  .rm-hero {
    min-height: 88vh;
  }
  .rm-hero-media::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .99) 0%, rgba(255, 255, 255, .92) 70%, rgba(255, 255, 255, .3) 100%);
  }
  .rm-hero-content {
    padding: 60px 0 40px;
  }
  .rm-hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }
  .rm-section {
    padding: 64px 0;
  }
  .rm-section-head {
    margin-bottom: 36px;
  }
  .rm-ratio-grid {
    grid-template-columns: 1fr;
  }
  .rm-ratio:last-child {
    grid-column: auto;
  }
  .rm-ratio {
    border-right: 0;
    padding: 24px 0;
  }
  .rm-spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .rm-source-card {
    padding: 28px 20px;
  }
  .rm-logistics {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .rm-checks {
    grid-template-columns: 1fr;
  }
  .rm-warning-callout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rm-faq-a {
    padding-right: 0;
  }
}
