/* ==========================================================================
   AAC PLANT MAINTENANCE SOP PAGE STYLES
   Scope: .sop-page
   ========================================================================== */

:root {
  --navy: #0b1727;
  --blue: #0c4f80;
  --deep: #09263d;
  --white: #ffffff;
  --silver: #eef2f5;
  --light: #f5f7f8;
  --secondary: #5e6874;
  --muted: #84909c;
  --line: #dce2e7;
  --highlight: #8fc6ec;
  --max: 1400px;
}

.sop-page {
  color: var(--navy);
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.sop-page * {
  box-sizing: border-box;
}

.sop-page a {
  color: inherit;
  text-decoration: none;
}

/* Scoped Eyebrow - Reset main.css pill badge styles */
.sop-page .eyebrow {
  display: block;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: var(--blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
  box-shadow: none !important;
}

.sop-page .eyebrow::before {
  content: none !important;
  display: none !important;
}

.sop-page .evaluate .eyebrow {
  color: var(--highlight) !important;
}

.sop-page .consultation .eyebrow {
  color: #b8dff8 !important;
}

/* Button & Link Styles */
.sop-page .button {
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 650;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.sop-page .button:hover {
  transform: translateY(-2px);
}

.sop-page .button.primary {
  background: var(--navy);
  color: var(--white);
}

.sop-page .button.primary:hover {
  background: var(--blue);
  box-shadow: 0 10px 28px rgba(12, 79, 128, 0.25);
}

.sop-page .button.light {
  color: var(--navy);
  background: var(--white);
}

.sop-page .button.light:hover {
  background: var(--light);
  color: var(--blue);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.sop-page .text-link,
.sop-page .consult-link {
  color: var(--blue);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.sop-page .text-link:hover {
  color: var(--navy);
}

.sop-page .consult-link {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.sop-page .consult-link:hover {
  border-bottom-color: var(--white);
  color: var(--highlight);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.sop-page .hero {
  align-items: center;
  min-height: 88vh;
  padding-top: 40px;
  display: flex;
  position: relative;
  overflow: hidden;
  background: #edf1f4;
}

.sop-page .hero-image {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.sop-page .hero-wash {
  background: linear-gradient(90deg, #fffffffc, #fffffff5 32%, #ffffffbd 52%, #ffffff0a 75%);
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sop-page .hero-content {
  z-index: 2;
  width: min(680px, 50vw);
  margin-left: clamp(24px, 7vw, 130px);
  padding: 80px 0 60px;
  position: relative;
}

.sop-page .hero h1 {
  letter-spacing: -0.062em;
  margin: 0 0 28px;
  font-size: clamp(48px, 5.8vw, 90px);
  font-weight: 620;
  line-height: 0.96;
  color: var(--navy);
}

.sop-page .hero-copy {
  max-width: 630px;
  color: var(--secondary);
  margin: 0 0 34px;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
}

.sop-page .hero-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  display: flex;
}

.sop-page .hero-note {
  max-width: 540px;
  color: var(--muted);
  margin: 32px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

/* ==========================================================================
   SECTIONS COMMON
   ========================================================================== */
.sop-page .section {
  padding: clamp(90px, 9.5vw, 160px) clamp(24px, 7vw, 130px);
}

.sop-page .section-shell {
  width: 100%;
  max-width: var(--max);
  margin: auto;
}

.sop-page .intro-grid h2,
.sop-page .dark-heading h2,
.sop-page .checklist-heading h2,
.sop-page .quality h2,
.sop-page .decide-heading h2,
.sop-page .faq h2,
.sop-page .consultation h2 {
  letter-spacing: -0.055em;
  margin: 0;
  font-size: clamp(38px, 5.2vw, 76px);
  font-weight: 600;
  line-height: 1.04;
  color: var(--navy);
}

.sop-page .intro-grid h2 span,
.sop-page .dark-heading h2 span {
  color: var(--muted);
}

/* ==========================================================================
   01 · UNDERSTAND SECTION
   ========================================================================== */
.sop-page .understand {
  background: var(--white);
}

.sop-page .intro-grid {
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: clamp(50px, 7vw, 130px);
  display: grid;
}

.sop-page .intro-copy p {
  color: var(--secondary);
  margin: 0 0 20px;
  font-size: 17.5px;
  line-height: 1.7;
}

.sop-page .intro-copy p:last-child {
  margin-bottom: 0;
}

.sop-page .principles {
  border-block: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
  margin-top: 100px;
  display: grid;
}

.sop-page .principles article {
  border-right: 1px solid var(--line);
  padding: 34px 28px 36px 0;
}

.sop-page .principles article:not(:first-child) {
  padding-left: 28px;
}

.sop-page .principles article:last-child {
  border-right: 0;
}

.sop-page .principles span,
.sop-page .equipment-list span,
.sop-page .mistakes span {
  color: var(--blue);
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 700;
  font-family: monospace;
}

.sop-page .principles h3 {
  margin: 32px 0 14px;
  font-size: 21px;
  color: var(--navy);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.sop-page .principles p {
  color: var(--secondary);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.sop-page .safety-callout {
  background: var(--silver);
  grid-template-columns: 0.45fr 1fr 1fr;
  gap: 50px;
  margin-top: 85px;
  padding: 48px 5vw;
  display: grid;
  border-radius: 8px;
  align-items: center;
}

.sop-page .safety-callout h3 {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 36px);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.sop-page .safety-callout > p:last-child {
  color: var(--secondary);
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
}

/* ==========================================================================
   02 · EVALUATE SECTION (DARK NAVY)
   ========================================================================== */
.sop-page .evaluate {
  background: var(--navy);
  color: var(--white);
}

.sop-page .dark-heading {
  max-width: 1080px;
}

.sop-page .dark-heading h2 {
  color: var(--white) !important;
}

.sop-page .dark-heading h2 span {
  color: #7d8e9f;
}

.sop-page .dark-heading > p:last-child {
  color: #aeb8c2;
  max-width: 680px;
  margin: 28px 0 0;
  font-size: 17.5px;
  line-height: 1.7;
}

.sop-page .frequency-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 90px;
}

.sop-page .frequency-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  grid-template-columns: 80px 0.65fr 1fr;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  display: grid;
}

.sop-page .frequency-row > span {
  color: var(--highlight);
  font-size: 13px;
  font-weight: 700;
  font-family: monospace;
}

.sop-page .frequency-row h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--white);
  font-weight: 600;
}

.sop-page .frequency-row p,
.sop-page .roles-grid p {
  color: #bec8d1;
  margin: 0;
  line-height: 1.65;
  font-size: 15.5px;
}

.sop-page .roles-block {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 100px;
  padding-top: 50px;
}

.sop-page .roles-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-top: 36px;
  display: grid;
}

.sop-page .roles-grid h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--white);
  font-weight: 600;
}

.sop-page .roles-grid p {
  font-size: 14px;
}

/* ==========================================================================
   MACHINE-WISE FRAMEWORK (CHECKLIST)
   ========================================================================== */
.sop-page .checklist {
  background: var(--white);
}

.sop-page .checklist-heading {
  grid-template-columns: 1.1fr 0.65fr;
  align-items: end;
  gap: 90px;
  display: grid;
}

.sop-page .checklist-heading > p {
  color: var(--secondary);
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.sop-page .equipment-list {
  border-top: 1px solid var(--line);
  margin-top: 90px;
}

.sop-page .equipment-list article {
  border-bottom: 1px solid var(--line);
  grid-template-columns: 80px 0.65fr 1fr;
  gap: 28px;
  padding: 28px 0;
  display: grid;
  align-items: center;
}

.sop-page .equipment-list h3 {
  margin: 0;
  font-size: 21px;
  color: var(--navy);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.sop-page .equipment-list p {
  color: var(--secondary);
  margin: 0;
  line-height: 1.65;
  font-size: 15.5px;
}

/* ==========================================================================
   MAINTENANCE × QUALITY SECTION
   ========================================================================== */
.sop-page .quality {
  background: var(--light);
}

.sop-page .quality-grid {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(60px, 8vw, 140px);
  display: grid;
}

.sop-page .quality h2 {
  font-size: clamp(34px, 4.2vw, 60px);
}

.sop-page .quality-grid > div:first-child > p:last-child {
  color: var(--secondary);
  margin-top: 26px;
  font-size: 17px;
  line-height: 1.7;
}

.sop-page .quality-table-wrap {
  outline-offset: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sop-page table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
}

.sop-page th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 0 24px 18px 0;
  font-size: 11px;
  font-weight: 700;
}

.sop-page td {
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  padding: 22px 24px 22px 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.sop-page td:first-child {
  width: 38%;
  font-weight: 650;
  color: var(--navy);
}

.sop-page td:last-child {
  color: var(--secondary);
}

/* ==========================================================================
   03 · DECIDE SECTION (SILVER)
   ========================================================================== */
.sop-page .decide {
  background: var(--silver);
}

.sop-page .decide-heading {
  max-width: 920px;
}

.sop-page .decision-grid {
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  margin-top: 90px;
  display: grid;
  align-items: start;
}

.sop-page .mistakes > h3 {
  margin: 0 0 24px;
  font-size: 24px;
  color: var(--navy);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.sop-page .mistakes > div {
  border-top: 1px solid var(--line);
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 20px 0;
  display: grid;
}

.sop-page .mistakes p {
  color: var(--secondary);
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
}

.sop-page .mistakes strong {
  color: var(--navy);
  margin-bottom: 6px;
  display: block;
  font-size: 16.5px;
  font-weight: 650;
}

.sop-page .shutdown {
  background: var(--white);
  padding: 48px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(11, 23, 39, 0.04);
}

.sop-page .shutdown h3 {
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  font-size: 28px;
  line-height: 1.15;
  color: var(--navy);
  font-weight: 650;
}

.sop-page .shutdown ol {
  margin: 0;
  padding-left: 20px;
}

.sop-page .shutdown li {
  color: var(--secondary);
  padding: 10px 0 10px 6px;
  line-height: 1.55;
  font-size: 15px;
}

/* ==========================================================================
   PRACTICAL QUESTIONS (FAQ SECTION)
   ========================================================================== */
.sop-page .faq {
  background: var(--white);
}

.sop-page .faq-grid {
  grid-template-columns: 0.75fr 1.25fr;
  gap: 100px;
  display: grid;
}

.sop-page .faq h2 {
  font-size: clamp(34px, 4.2vw, 62px);
}

.sop-page .accordion {
  border-top: 1px solid var(--line);
}

.sop-page details {
  border-bottom: 1px solid var(--line);
}

.sop-page summary {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  min-height: 74px;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  display: flex;
  color: var(--navy);
  transition: color 0.2s ease;
}

.sop-page summary:hover {
  color: var(--blue);
}

.sop-page summary::-webkit-details-marker {
  display: none;
}

.sop-page summary span {
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.2s ease;
  color: var(--blue);
}

.sop-page details[open] summary span {
  transform: rotate(45deg);
}

.sop-page details p {
  max-width: 750px;
  color: var(--secondary);
  margin: 0 40px 26px 0;
  line-height: 1.7;
  font-size: 16px;
}

/* ==========================================================================
   CLOSING CONSULTATION
   ========================================================================== */
.sop-page .consultation {
  color: var(--white);
  background: linear-gradient(135deg, #104f7d, #09263d);
  padding: clamp(90px, 9vw, 150px) clamp(24px, 7vw, 130px);
}

.sop-page .consultation-grid {
  grid-template-columns: 1.1fr 0.75fr;
  align-items: end;
  gap: 90px;
  display: grid;
}

.sop-page .consultation h2 {
  font-size: clamp(38px, 5vw, 76px);
  color: var(--white);
}

.sop-page .consultation-grid > div:last-child > p {
  color: #ccdae5;
  margin: 0 0 28px;
  font-size: 17.5px;
  line-height: 1.7;
}

.sop-page .consultation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 28px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1000px) {
  .sop-page .hero-content {
    width: min(650px, 64vw);
  }

  .sop-page .intro-grid,
  .sop-page .checklist-heading,
  .sop-page .quality-grid,
  .sop-page .faq-grid,
  .sop-page .consultation-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .sop-page .principles,
  .sop-page .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sop-page .principles article:nth-child(2) {
    border-right: 0;
  }

  .sop-page .safety-callout {
    grid-template-columns: 1fr 1fr;
  }

  .sop-page .safety-callout > .eyebrow {
    grid-column: 1 / -1;
  }

  .sop-page .decision-grid {
    gap: 50px;
  }
}

@media (max-width: 720px) {
  .sop-page .hero {
    min-height: auto;
    padding: 70px 0 0;
    display: block;
  }

  .sop-page .hero-image {
    aspect-ratio: 16/9;
    object-position: center !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    inset: auto !important;
  }

  .sop-page .hero-wash {
    display: none;
  }

  .sop-page .hero-content {
    width: auto;
    margin: 0;
    padding: 50px 22px 65px;
  }

  .sop-page .hero h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .sop-page .hero-copy {
    font-size: 16px;
  }

  .sop-page .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .sop-page .section {
    padding: 80px 22px;
  }

  .sop-page .intro-grid h2,
  .sop-page .dark-heading h2,
  .sop-page .checklist-heading h2,
  .sop-page .quality h2,
  .sop-page .decide-heading h2,
  .sop-page .faq h2,
  .sop-page .consultation h2 {
    font-size: clamp(32px, 9.5vw, 48px);
  }

  .sop-page .principles,
  .sop-page .roles-grid {
    grid-template-columns: 1fr;
    margin-top: 55px;
  }

  .sop-page .principles article,
  .sop-page .principles article:not(:first-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
  }

  .sop-page .safety-callout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 55px;
    padding: 30px 22px;
  }

  .sop-page .frequency-list,
  .sop-page .equipment-list {
    margin-top: 55px;
  }

  .sop-page .frequency-row,
  .sop-page .equipment-list article {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding: 22px 0;
  }

  .sop-page .frequency-row p,
  .sop-page .equipment-list p {
    grid-column: 2;
  }

  .sop-page .decision-grid {
    grid-template-columns: 1fr;
    margin-top: 55px;
  }

  .sop-page .shutdown {
    padding: 30px 22px;
  }

  .sop-page .faq-grid {
    gap: 40px;
  }

  .sop-page .consultation {
    padding: 80px 22px;
  }

  .sop-page .consultation-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 24px;
  }

  .sop-page .consult-link {
    width: max-content;
    display: inline-flex;
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sop-page * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
