/* Iron Republic PH: service pages (hot-dip galvanizing, coating and finishing, threading and machining) at
   /products/<slug>.html. Template scripts/pdp-service.mjs; FAQ and hook styles come from css/pdp.css. */

/* ---------- Hero: copy left, model photo card + cutout (galvanizing) or the cutout alone right ---------- */
.sv-hero { padding-bottom: 0; }
.sv-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: end; }
.sv-copy { align-self: center; padding-bottom: clamp(36px, 5vw, 64px); }
.sv-copy { container-type: inline-size; }
/* Capped to the column width so the longest word (GALVANIZING, 11 letters) never splits */
.sv-hero h1 { margin-top: 16px; font-size: min(clamp(2.4rem, 5.2vw, 4.6rem), 10.6cqi); overflow-wrap: break-word; }
.sv-hero .lead { max-width: 52ch; }
.sv-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(280px, 30vw, 420px); padding-bottom: clamp(24px, 3vw, 40px); }
.sv-art .xmarks { position: absolute; right: 0; top: 8%; z-index: 3; }
.sv-cut { width: min(100%, 520px); height: auto; aspect-ratio: auto; filter: drop-shadow(0 26px 22px rgba(0,0,0,.32)); }
.sv-art.has-model { justify-content: flex-end; align-items: flex-end; padding-bottom: 0; }
.sv-model { position: relative; width: min(100%, 340px); margin: 0; }
.sv-model img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 14px 14px 0 0; background: var(--g); box-shadow: 0 18px 30px -20px rgba(0,0,0,.55); }
.sv-art.has-model .sv-cut { position: absolute; left: 0; bottom: 24px; z-index: 2; width: 52%; }

/* ---------- Your steel or ours ---------- */
.sv-yo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.sv-yo-grid > div { padding: clamp(18px, 2.4vw, 28px); border: 2px solid var(--k); border-radius: var(--r); }
.sv-yo-grid h3 { margin-bottom: 8px; font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
.sv-yo-grid .on-k h3 { color: var(--y); }
.sv-yo-grid p { max-width: 46ch; }
.sv-yo-grid .on-k p { color: var(--on-k-2); }

/* ---------- What we coat (product thumbs) / What we do (service tiles) ---------- */
.sv-what { padding-top: 0; }
.sv-coat, .sv-tiles { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.sv-coat { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sv-coat a { display: grid; gap: 8px; justify-items: center; height: 100%; padding: 12px 10px 14px; border-radius: 12px; background: var(--g); color: var(--k); text-decoration: none; text-align: center; font: 800 .74rem var(--f-display); font-stretch: 108%; text-transform: uppercase; transition: transform .18s var(--ease), box-shadow .18s; }
.sv-coat a:hover { transform: translateY(-3px); box-shadow: 0 12px 20px -14px rgba(0,0,0,.5); }
.sv-coat img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.sv-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sv-tile { display: grid; align-content: start; gap: 8px; padding: 14px 14px 18px; border-radius: var(--r); background: var(--y); }
.sv-tile img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0,0,0,.28)); }
.sv-tile h3 { font-size: 1rem; font-stretch: 112%; }
.sv-tile p { font-size: .9rem; }

/* ---------- Galvanizing process strip ---------- */
.sv-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; }
.sv-steps li { position: relative; padding: 18px 16px 20px; counter-increment: s; }
.sv-steps li + li { border-left: 1px solid var(--k-3); }
.sv-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: var(--y); color: var(--k); font: 900 .95rem var(--f-display); }
.sv-steps i { position: absolute; right: 14px; top: 20px; font-size: 24px; color: var(--y); }
.sv-steps h3 { margin-bottom: 6px; color: var(--w); font-size: .9rem; font-stretch: 112%; }
.sv-steps p { color: var(--on-k-2); font-size: .9rem; }

/* ---------- Before and after ---------- */
.sv-ba-fig { position: relative; margin: 24px 0 0; }
.sv-ba-fig img { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--g); }

/* ---------- How to order ---------- */
.sv-how-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 32px); margin: 24px 0 0; padding: 0; list-style: none; }
.sv-how-cols li { display: grid; gap: 10px; align-content: start; }
.sv-how-cols i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--y); font-size: 26px; }
.sv-how-cols h3 { font-size: clamp(1rem, 1.5vw, 1.2rem); font-stretch: 112%; }
.sv-how-cols p { max-width: 36ch; color: var(--ink-2); }
.sv-how-cols a { color: var(--k); font-weight: 700; }
.sv-how-cols .num { font-size: 1.05em; }
.pdp-faq-i p a { color: var(--k); font-weight: 700; }
.sv-more .pgrid { margin-top: 24px; }
.sv-more-h p { margin-top: 10px; max-width: 34ch; color: var(--ink-2); }
/* Two other services: heading beside the cards so the row has no empty half */
@media (min-width: 1001px) {
  .sv-more .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
  .sv-more .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
}

@media (max-width: 1000px) {
  .sv-coat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sv-steps { grid-template-columns: minmax(0, 1fr); }
  .sv-steps li + li { border-left: 0; border-top: 1px solid var(--k-3); }
}
@media (max-width: 760px) {
  .sv-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .sv-copy { padding-bottom: 8px; }
  .sv-art { min-height: 0; }
  .sv-art:not(.has-model) .sv-cut { width: min(86%, 380px); }
  .sv-model { width: 68%; }
  .sv-art.has-model .sv-cut { width: 50%; bottom: 16px; }
  .sv-yo-grid, .sv-how-cols { grid-template-columns: minmax(0, 1fr); }
}
/* "Send your list on Viber" is 310 px wide in one line: let it wrap inside a 320 px screen */
@media (max-width: 380px) { .sv-hero .btn, .pp-cta-side .btn { max-width: 100%; padding-inline: 16px; white-space: normal; text-align: center; line-height: 1.15; } }
@media (max-width: 420px) { .sv-coat { gap: 8px; } .sv-coat a { padding: 8px 6px 10px; font-size: .64rem; } }
@media (prefers-reduced-motion: reduce) { .sv-coat a:hover { transform: none; } }
