/* =====================================================================
   SLP Spinning Mills — inner page components
   ===================================================================== */

/* ---------- Page hero ---------- */
.slp-phero { position: relative; padding: 120px 0 90px; color: #fff; overflow: hidden; background-color: var(--slp-navy-deep); background-size: cover; background-position: center; }
.slp-phero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(0,32,48,.95) 0%, rgba(0,44,64,.85) 45%, rgba(0,44,64,.45) 100%); }
.slp-phero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31z M28 63v34' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='1.2'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 60%); mask-image: linear-gradient(90deg, #000 0%, transparent 60%); }
.slp-phero .container { position: relative; z-index: 2; }
.slp-phero .slp-hex-big { z-index: 1; }
.slp-phero.p1 { background-image: url(../img/home5/bg.jpg); }
.slp-phero.p2 { background-image: url(../img/home5/home5-about-img.jpg); }
.slp-phero.p3 { background-image: url(../img/home5/home5-feature-img.jpg); }
.slp-phero.p4 { background-image: url(../img/slp/solar-12mw.jpg); }
.slp-crumb { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.slp-crumb li { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.7); }
.slp-crumb li + li::before { content: ""; width: 7px; height: 8px; clip-path: var(--hex); background: var(--slp-gold); }
.slp-crumb a { color: #fff; }
.slp-crumb a:hover { color: var(--slp-gold); }
.slp-phero-ic { width: 70px; height: 80px; margin-bottom: 22px; }
.slp-phero-ic svg { width: 32px; height: 32px; }
.slp-phero h1 { color: #fff; font-size: clamp(38px, 5vw, 48px); font-weight: 700; line-height: 1.08; margin: 0 0 16px; max-width: 820px; }
.slp-phero p { color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.7; max-width: 620px; margin: 0; }

/* Smaller section titles for inner pages */
.section-title.sm h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }
.section-title.sm p { font-size: 17px; line-height: 1.75; color: var(--slp-muted); margin: 16px 0 0; }
.slp-band--navy .section-title.sm p { color: rgba(255,255,255,.75); }
.slp-band--navy .section-title h2 { color: #fff; }
.slp-band.last { padding-bottom: 130px; }
.slp-band--white { background: #fff; }
.slp-band--sand { background: linear-gradient(180deg, #F7F3EA 0%, #FBF9F4 100%); }
.slp-band--sand::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31z M28 63v34' fill='none' stroke='%23C9A24A' stroke-opacity='.16' stroke-width='1.2'/%3E%3C/svg%3E"); }

/* ---------- Prose ---------- */
.slp-prose p { font-size: 16.5px; line-height: 1.8; color: var(--slp-muted); margin: 0 0 18px; }
.slp-prose p.lead2 { font-size: 19px; line-height: 1.7; color: var(--slp-ink); }

/* ---------- Generic cards ---------- */
.slp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.slp-cards.c2 { grid-template-columns: repeat(2, 1fr); }
.slp-cards.c4 { grid-template-columns: repeat(4, 1fr); }
.slp-card { position: relative; background: #fff; border: 1px solid #e3e8ec; padding: 30px 26px; box-shadow: 0 18px 44px rgba(0,65,94,.06); display: flex; flex-direction: column; transition: border-color .25s, transform .25s; }
.slp-card:hover { border-color: var(--slp-gold); transform: translateY(-3px); }
.slp-card .slp-hexic { margin-bottom: 18px; }
.slp-card h3 { font-size: 21px; font-weight: 800; color: var(--slp-navy); margin: 0 0 10px; line-height: 1.25; }
.slp-card p { font-size: 15.5px; line-height: 1.7; color: var(--slp-muted); margin: 0 0 14px; }
.slp-card .slp-tag { align-self: flex-start; margin-top: auto; }
.slp-card .num { position: absolute; right: 22px; top: 18px; font-size: 42px; font-weight: 800; color: rgba(0,65,94,.07); line-height: 1; }
.slp-band--navy .slp-card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); box-shadow: none; }
.slp-band--navy .slp-card h3 { color: #fff; }
.slp-band--navy .slp-card p { color: rgba(255,255,255,.7); }

/* Yarn detail cards */
.slp-ycard { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid #e3e8ec; border-top: 3px solid var(--slp-navy); padding: 26px 24px; box-shadow: 0 18px 44px rgba(0,65,94,.06); scroll-margin-top: 110px; transition: border-color .25s; }
.slp-ycard:target { border-color: var(--slp-gold); box-shadow: 0 0 0 3px rgba(249,178,45,.35), 0 18px 44px rgba(0,65,94,.08); }
.slp-ycard.gold { border-top-color: var(--slp-gold); }
.slp-ycard .slp-hexic { width: 56px; height: 64px; }
.slp-ycard .slp-hexic svg { width: 26px; height: 26px; }
.slp-ycard h3 { font-size: 21px; font-weight: 800; color: var(--slp-navy); margin: 2px 0 8px; }
.slp-ycard p { font-size: 15.5px; line-height: 1.7; color: var(--slp-muted); margin: 0 0 14px; }
.slp-ymeta { display: flex; flex-wrap: wrap; gap: 8px; }
.slp-ymeta span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--slp-navy); background: var(--slp-grey); padding: 5px 10px; }
.slp-ymeta span.gold { background: var(--slp-gold-soft); }
.slp-ymeta svg { width: 13px; height: 13px; fill: none; stroke: var(--slp-navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slp-ycard .slp-yask { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: 14.5px; color: var(--slp-navy); border-bottom: 2px solid var(--slp-gold); padding-bottom: 2px; }
.slp-ycard .slp-yask:hover { color: var(--slp-gold); }

/* ---------- Simple table ---------- */
.slp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; border: 1px solid #e3e8ec; box-shadow: 0 18px 44px rgba(0,65,94,.06); }
.slp-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.slp-table th, .slp-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #edf0f3; }
.slp-table thead th { background: var(--slp-navy); color: #fff; font-weight: 700; font-size: 14px; }
.slp-table tbody th { color: var(--slp-navy); font-weight: 700; }
.slp-table td { color: var(--slp-muted); }
.slp-table tbody tr:hover td, .slp-table tbody tr:hover th { background: #fff9ec; }

/* ---------- Timeline ---------- */
.slp-tl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.slp-tl::before { content: ""; position: absolute; left: 5%; right: 5%; top: 40px; height: 2px; background: repeating-linear-gradient(90deg, rgba(249,178,45,.7) 0 8px, transparent 8px 14px); }
.slp-tl li { position: relative; padding: 0 16px; text-align: center; }
.slp-tl .slp-hexic { width: 70px; height: 80px; margin: 0 auto 18px; position: relative; }
.slp-tl .slp-hexic svg { width: 30px; height: 30px; }
.slp-tl b { display: block; font-size: 26px; font-weight: 800; color: var(--slp-gold); line-height: 1.1; }
.slp-tl h3 { font-size: 19px; font-weight: 800; color: #fff; margin: 6px 0 8px; }
.slp-tl p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.7); margin: 0; }

/* ---------- Group companies ---------- */
.slp-co { background: #fff; border: 1px solid #e3e8ec; box-shadow: 0 18px 44px rgba(0,65,94,.06); padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; }
.slp-co-logo { height: 70px; display: flex; align-items: center; }
.slp-co-logo img { max-height: 64px; width: auto; }
.slp-co h3 { font-size: 22px; font-weight: 800; color: var(--slp-navy); margin: 0; }
.slp-co p { font-size: 15.5px; line-height: 1.7; color: var(--slp-muted); margin: 0; }

/* ---------- Line cards (infrastructure) ---------- */
.slp-line { background: #fff; border: 1px solid #e3e8ec; box-shadow: 0 18px 44px rgba(0,65,94,.07); display: flex; flex-direction: column; }
.slp-line-img { position: relative; height: 200px; overflow: hidden; }
.slp-line-img img { width: 100%; height: 100%; object-fit: cover; }
.slp-line-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,32,48,.85), transparent 60%); }
.slp-line-img small { position: absolute; left: 18px; top: 16px; z-index: 1; background: var(--slp-gold); color: var(--slp-navy); font-weight: 800; font-size: 12.5px; padding: 4px 10px; }
.slp-line-img h3 { position: absolute; left: 18px; bottom: 14px; z-index: 1; color: #fff; font-size: 22px; font-weight: 800; margin: 0; }
.slp-line-body { padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.slp-line-big { display: flex; align-items: baseline; gap: 8px; }
.slp-line-big b { font-size: 34px; font-weight: 800; color: var(--slp-navy); line-height: 1; }
.slp-line-big span { font-size: 14px; color: var(--slp-muted); font-weight: 600; }
.slp-line ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.slp-line li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--slp-ink); line-height: 1.45; }
.slp-line li svg { flex: none; width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--slp-gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Stats strip ---------- */
.slp-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 3px solid var(--slp-gold); box-shadow: 0 24px 60px rgba(0,65,94,.1); }
.slp-stats > div { display: flex; align-items: center; gap: 14px; padding: 26px 24px; border-right: 1px solid #e3e8ec; }
.slp-stats > div:last-child { border-right: 0; }
.slp-stats b { display: block; font-size: 26px; font-weight: 800; color: var(--slp-navy); line-height: 1.1; }
.slp-stats span { font-size: 14px; color: var(--slp-muted); }

/* ---------- Stage cards (quality) ---------- */
.slp-stage2 { position: relative; background: #fff; border: 1px solid #e3e8ec; padding: 30px 26px 26px; box-shadow: 0 18px 44px rgba(0,65,94,.06); }
.slp-stage2 small { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--slp-gold); margin-bottom: 8px; }
.slp-stage2 h3 { font-size: 21px; font-weight: 800; color: var(--slp-navy); margin: 0 0 10px; }
.slp-stage2 p { font-size: 15.5px; line-height: 1.7; color: var(--slp-muted); margin: 0; }
.slp-stage2 .slp-hexic { margin-bottom: 18px; }

/* ---------- CTA band ---------- */
.slp-cta3 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; background: var(--slp-navy); color: #fff; padding: 34px 40px; margin-top: 64px; position: relative; overflow: hidden; border-left: 6px solid var(--slp-gold); }
.slp-cta3::after { content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 196px; clip-path: var(--hex); background: rgba(255,255,255,.06); }
.slp-cta3 h3 { color: #fff; font-size: 25px; font-weight: 800; margin: 0 0 4px; }
.slp-cta3 p { margin: 0; color: rgba(255,255,255,.75); }
.slp-cta3 .slp-btn { position: relative; z-index: 1; }

/* ---------- Contact ---------- */
.slp-cinfo2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -70px; position: relative; z-index: 3; }
.slp-cinfo2 .slp-card { padding: 26px 22px; }
.slp-cinfo2 .slp-card a, .slp-cinfo2 .slp-card p { font-size: 15px; color: var(--slp-muted); margin: 0; line-height: 1.65; word-break: break-word; }
.slp-cinfo2 .slp-card a:hover { color: var(--slp-navy); }
.slp-cinfo2 .slp-card h3 { font-size: 18px; }
.slp-form select { appearance: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .slp-cards.c4, .slp-cinfo2 { grid-template-columns: repeat(2, 1fr); }
  .slp-stats { grid-template-columns: repeat(2, 1fr); }
  .slp-stats > div:nth-child(2) { border-right: 0; }
  .slp-stats > div:nth-child(-n+2) { border-bottom: 1px solid #e3e8ec; }
  .slp-tl { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .slp-tl::before { display: none; }
}
@media (max-width: 991px) {
  .slp-phero { padding: 120px 0 90px; }
  .slp-cards, .slp-cards.c2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .slp-phero { margin: 0; padding: 90px 0 80px; }
  .slp-phero h1 { font-size: 34px; }
  .slp-phero p { font-size: 16px; }
  .slp-cards, .slp-cards.c2, .slp-cards.c4, .slp-cinfo2 { grid-template-columns: 1fr; }
  .slp-cinfo2 { margin-top: -50px; }
  .slp-stats { grid-template-columns: 1fr 1fr; }
  .slp-stats > div { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 16px; }
  .slp-stats b { font-size: 21px; }
  .slp-tl { grid-template-columns: 1fr; }
  .slp-tl li { display: grid; grid-template-columns: 70px 1fr; gap: 0 16px; text-align: left; padding: 0; }
  .slp-tl .slp-hexic { margin: 0; grid-row: span 3; }
  .slp-ycard { grid-template-columns: 1fr; gap: 12px; padding: 22px 18px; }
  .slp-cta3 { padding: 28px 22px; }
  .slp-cta3 .slp-btn { width: 100%; justify-content: center; }
  .section-title.sm h2 { font-size: 30px; }
  .slp-band.last { padding-bottom: 90px; }
}

/* Leadership block as its own section (About page) */
.slp-lead-sec .slp-leader { margin-top: 0; }
/* Customer logo tiles outside the homepage */
.slp-band--sand .slp-logos { grid-template-columns: repeat(5, 1fr); max-width: 1140px; margin: 0 auto; gap: 16px; }
.slp-band--sand .slp-logos figure { height: 110px; background: #fff; border: 1px solid #ece4d3; box-shadow: 0 12px 30px rgba(0,65,94,.07); }
.slp-band--sand .slp-logos figure img { filter: none; opacity: 1; }
@media (max-width: 767px) { .slp-band--sand .slp-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .slp-band--sand .slp-logos { gap: 10px; } .slp-band--sand .slp-logos figure { height: 78px; padding: 8px; } }
@media (max-width: 575px) {
  .slp-phero .slp-hex-big, .slp-contact-info .slp-hex-deco.b { display: none; }
}

/* ---------- Contact panel, light version ---------- */
.slp-contact-info.light { background: linear-gradient(160deg, #FFF9EC 0%, #FCEBC4 100%); color: var(--slp-ink); }
.slp-contact-info.light h3 { color: var(--slp-navy); }
.slp-contact-info.light > p { color: var(--slp-muted); }
.slp-contact-info.light .slp-hex-deco.a { background: rgba(0,65,94,.06); }
.slp-contact-info.light .slp-hex-deco.b { display: none; }
.slp-contact-info.light .slp-cinfo li { border-top-color: rgba(0,65,94,.12); }
.slp-contact-info.light .slp-cinfo .slp-ic { color: var(--slp-navy); }
.slp-contact-info.light .slp-cinfo span { color: #b07800; }
.slp-contact-info.light .slp-cinfo p, .slp-contact-info.light .slp-cinfo a { color: var(--slp-ink); }
.slp-contact-info.light .slp-cinfo a:hover { color: var(--slp-navy); }
.slp-contact-info.light .slp-dir { color: var(--slp-navy) !important; text-decoration-color: var(--slp-gold); }
.slp-contact { border: 1px solid #ece4d3; }

/* ---------- Quality: 3-stage flow ---------- */
.slp-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: f; }
.slp-flow-step { position: relative; background: #fff; border: 1px solid #e3e8ec; padding: 0 28px 30px; box-shadow: 0 20px 50px rgba(0,65,94,.08); transition: transform .25s, box-shadow .25s; }
.slp-flow-step:hover { transform: translateY(-4px); box-shadow: 0 28px 60px rgba(0,65,94,.12); }
.slp-flow-step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--slp-gold); }
.slp-flow-step:not(:last-child)::after { content: ""; position: absolute; right: -27px; top: 74px; width: 20px; height: 20px; border-top: 3px solid var(--slp-gold); border-right: 3px solid var(--slp-gold); transform: rotate(45deg); }
.slp-flow-top { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 22px; }
.slp-flow-ic { width: 80px; height: 80px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #0b5578, var(--slp-navy)); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px #FFF3D6; }
.slp-flow-ic svg { width: 38px; height: 38px; fill: none; stroke: var(--slp-gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.slp-flow-n { font-size: 58px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(0,65,94,.18); }
.slp-flow-step small { display: inline-block; font-size: 13px; font-weight: 700; color: #b07800; background: #FFF3D6; padding: 4px 10px; margin-bottom: 12px; }
.slp-flow-step h3 { font-size: 22px; font-weight: 800; color: var(--slp-navy); margin: 0 0 10px; }
.slp-flow-step p { font-size: 15.5px; line-height: 1.7; color: var(--slp-muted); margin: 0; }
@media (max-width: 991px) {
  .slp-flow { grid-template-columns: 1fr; gap: 30px; max-width: 620px; margin: 0 auto; }
  .slp-flow-step:not(:last-child)::after { right: 50%; top: auto; bottom: -24px; transform: translateX(50%) rotate(135deg); }
}
@media (max-width: 575px) {
  .slp-flow-step { padding: 0 20px 24px; }
  .slp-flow-ic { width: 64px; height: 64px; }
  .slp-flow-ic svg { width: 30px; height: 30px; }
  .slp-flow-n { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) { .slp-flow-step { transition: none; } }
