/* ========== Silver Rock Sanitary — FINAL styles.css ========== */
/* Mobile-first, single file. Includes: layout, cards, header/tagline fix,
   button no-wrap on mobile, and safe desktop grid alignment. */

:root{
  --green:#12491d;
  --green-ink:#0f3c18;
  --text:#0b0f14;
  --muted:#5b6674;
  --ring:#e8edf3;
  --bg:#ffffff;
  --shadow:0 6px 24px rgba(6,24,44,.08);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;text-size-adjust:100%}
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font:16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--green);text-decoration:underline;text-underline-offset:2px}
a:hover{opacity:.9}
h1,h2,h3{margin:0 0 .5rem 0;line-height:1.25}
h1{font-size:clamp(1.6rem,2.4vw+1rem,2.4rem)}
h2{font-size:clamp(1.25rem,1.2vw+1rem,1.6rem)}
h3{font-size:1.125rem}
p{margin:.5rem 0 1rem 0;color:#10151b}

/* --- Container (matches .wrap in HTML) --- */
.wrap{width:min(1120px,92vw);margin-inline:auto;padding-inline:16px}
@media (min-width:960px){.wrap{padding-inline:24px}}

/* ---------- Header / Hero ---------- */
.site-header,.header{background:var(--green);color:#fff;padding:20px 0 24px}
.site-header .wrap,.header .wrap{display:flex;flex-direction:column;align-items:center}
.logo{width:min(540px,88vw);height:auto;filter:drop-shadow(0 2px 0 rgba(0,0,0,.18))}

/* Bulletproof: keep tagline white even if older CSS loads later */
.tagline,
header.site-header .wrap > .tagline{
  color:#fff !important;
  margin:8px 0 0;
  text-align:center;
  font-weight:600;
  letter-spacing:.2px;
  opacity:.98;
  text-shadow:0 1px 0 rgba(0,0,0,.25);
}

/* ---------- Sections ---------- */
.section{padding:28px 0}

/* ---------- Catalogs CTA text ---------- */
.catalogs .intro{
  text-align:center;
  margin:28px auto 10px;
  font-weight:800;
  font-size:clamp(1.1rem,1.2vw+1rem,1.5rem);
  color:#10151b;
}

/* ---------- Catalog Cards ---------- */
.catalogs .grid{display:grid;grid-template-columns:1fr;gap:24px}
@media (min-width:700px){.catalogs .grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1024px){.catalogs .grid{grid-template-columns:repeat(3,1fr)}}

.cat-card{
  background:#fff;border:1px solid var(--ring);border-radius:18px;
  overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;
  min-height:100%;
}
.cat-card .thumb{aspect-ratio:16/9;background:#eef3f7;overflow:hidden}
.cat-card .thumb img{width:100%;height:100%;object-fit:cover;object-position:center}
.cat-card .meta{
  display:grid;grid-template-columns:auto 1fr max-content;
  gap:14px;align-items:center;padding:18px;
}
.cat-card .icon{
  width:36px;height:36px;border-radius:50%;padding:8px;
  background:#f3f7f4;border:1px solid var(--ring)
}
.cat-card .txt{display:grid;gap:2px}
.cat-card h3{margin:0 0 2px;font-weight:800}
.cat-card p{margin:0;color:var(--muted)}
.cat-card .txt p:empty{display:none}

.btn{
  display:inline-block;align-self:flex-start;background:var(--green);
  color:#fff;border:none;border-radius:999px;padding:12px 18px;
  font-weight:700;text-decoration:none;transition:transform .06s ease,opacity .2s ease;
  white-space:nowrap; /* keep "Download PDF" on one line on iOS */
}
.btn:focus-visible{outline:2px solid #c7e1d2;outline-offset:2px}
.btn:active{transform:translateY(1px)}

/* ---------- About split section ---------- */
.about .about-grid{display:grid;gap:32px;align-items:start}
@media (min-width:960px){
  .about .about-grid{
    grid-template-columns:minmax(46ch,1fr) minmax(420px,520px);
  }
}
.about .about-text h2{margin:0 0 .6rem}
.about .about-text p{max-width:68ch}
.about .about-media{border:1px solid var(--ring);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}
.about .about-media img{width:100%;height:100%;object-fit:cover}

/* ---------- Contact / Footer ---------- */
.contact{padding:14px 0 6px}
.site-footer{background:#fff;border-top:1px solid var(--ring);padding:26px 0 34px}
.footer-flex{display:flex;flex-direction:column;align-items:center;gap:8px}
.footer-mark{width:min(540px,90vw);height:auto;display:block}
.copy{color:var(--muted);margin:0}

/* ---------- Utilities ---------- */
.center{text-align:center}
.m-0{margin:0}
.mt-0{margin-top:0}
.mt-2{margin-top:.5rem}
.mt-4{margin-top:1rem}
.mt-6{margin-top:1.5rem}

/* ---------- Defensive overrides ---------- */
.section.about > *{min-width:0} /* avoid overflow from long text */
