/* ==========================================================================
   W-Plastic Distributors — site stylesheet
   Brand colours live in :root. Change them here and the whole site follows.
   ========================================================================== */

:root {
  --ink: #0c1a21;
  --ink-soft: #43606c;
  --line: #dfe7ea;
  --line-strong: #c3d2d8;

  --brand-900: #052733;
  --brand-800: #073446;
  --brand-700: #0b4a63;
  --brand-500: #12718f;
  --brand-300: #6fb2c6;
  --brand-50: #eef6f9;

  --accent: #1fa971;
  --accent-dark: #16815a;
  --accent-50: #e9f8f1;

  --amber: #f0a13a;
  --amber-50: #fdf4e6;

  --paper: #ffffff;
  --shell: #f4f7f8;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(5, 39, 51, .06), 0 2px 8px rgba(5, 39, 51, .05);
  --shadow-md: 0 10px 30px rgba(5, 39, 51, .09);
  --shadow-lg: 0 24px 60px rgba(5, 39, 51, .14);

  --wrap: 1160px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
/* height:auto matters — without it an image with a height attribute keeps that
   height when max-width shrinks it, and the artwork letterboxes inside. */
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-500); }
/* An email address is one long unbreakable word — let it wrap rather than
   push the page sideways in a narrow footer column. */
a[href^="mailto:"] { overflow-wrap: anywhere; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--shell { background: var(--shell); border-block: 1px solid var(--line); }
.section--ink { background: var(--brand-900); color: #dcecf2; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .8rem;
}
.section--ink .eyebrow { color: var(--brand-300); }
.lede { font-size: 1.09rem; color: var(--ink-soft); }
.section--ink .lede { color: #a9cbd6; }

/* min() on the track minimum stops the columns forcing the page wider than
   the screen on very narrow phones. */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: .97rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(31, 169, 113, .3); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: var(--line-strong); color: var(--brand-800); background: #fff; }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-700); }
.btn--light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.btn--light:hover { background: #fff; color: var(--brand-900); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--brand-900);
  color: #b7d4dd;
  font-size: .82rem;
}
.topbar .wrap { display: flex; gap: 1.4rem; justify-content: flex-end; padding: .45rem 0; flex-wrap: wrap; }
.topbar a { color: #d7ebf1; }
.topbar a:hover { color: #fff; }

/* On phones the bar wraps onto two or three lines and pushes the logo down,
   so hide it — the number and email are still in the menu, the contact page
   and the footer. */
@media (max-width: 700px) { .topbar { display: none; } }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand__name { font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; color: var(--brand-900); line-height: 1.1; }
.brand__tag { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-soft); }

.nav__links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  padding: .55rem .85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--brand-800);
}
.nav__links a:hover { background: var(--brand-50); }
.nav__links a[aria-current="page"] { color: var(--accent-dark); background: var(--accent-50); }
.nav__cta { margin-left: .6rem; }

/* Tap-to-call and WhatsApp, drawer only — the desktop header already shows
   the number in the top bar, and WhatsApp has the floating button. */
.nav__phone, .nav__whatsapp { display: none; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; height: 2px; width: 20px; background: var(--brand-900); border-radius: 2px;
  position: relative; margin-inline: auto; content: "";
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .6rem 1.25rem 1.1rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .75rem .4rem; }
  .nav__cta { margin: .5rem 0 0; justify-content: center; }

  .nav__phone { display: block; border-top: 1px solid var(--line); margin-top: .45rem; padding-top: .3rem; }
  .nav__phone a {
    display: flex; align-items: center; gap: .6rem;
    font-size: 1.06rem; font-weight: 700; color: var(--accent-dark);
  }
  .nav__phone a:hover { background: var(--accent-50); }
  .nav__phone svg { width: 19px; height: 19px; flex: 0 0 auto; }

  .nav__whatsapp { display: block; }
  .nav__whatsapp a {
    display: flex; align-items: center; gap: .6rem;
    font-size: 1.06rem; font-weight: 700; color: #128c3e;
  }
  .nav__whatsapp a:hover { background: #e8f9ee; }
  .nav__whatsapp svg { width: 19px; height: 19px; flex: 0 0 auto; }
}

/* ---------- floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .78rem 1.15rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 10px 26px rgba(18, 140, 62, .38);
  transition: transform .15s ease, background .2s ease;
}
.wa-float:hover { background: #1eb857; color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; flex: 0 0 auto; }
/* Icon only on phones, so it never covers the content it floats over. */
@media (max-width: 700px) {
  .wa-float { padding: .85rem; right: 14px; bottom: 14px; }
  .wa-float span { display: none; }
  .wa-float svg { width: 27px; height: 27px; }
}
@media print { .wa-float { display: none; } }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(31,169,113,.16), transparent 60%),
    linear-gradient(165deg, var(--brand-900), var(--brand-700) 62%, #0d5a74);
  color: #dceff5;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: #fff; }
.hero p.lede { color: #b4d6e1; font-size: 1.14rem; max-width: 52ch; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.7rem; }
.hero__pills { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2.2rem; }
.pill {
  font-size: .8rem; font-weight: 650; padding: .38rem .8rem;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #cfe8f0;
}
.hero__art { position: relative; }
.hero__art img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- trust strip ---------- */
.strip { background: var(--brand-800); color: #cfe6ee; }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; padding: 1.5rem 0; }
.strip__item { display: flex; gap: .8rem; align-items: flex-start; font-size: .93rem; }
.strip__item strong { display: block; color: #fff; font-size: 1.05rem; }
.strip__icon { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 2px; }

/* ---------- cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__media { background: var(--brand-50); border-bottom: 1px solid var(--line); }
.card__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .35rem; }
.card__body p { color: var(--ink-soft); font-size: .95rem; }
.card__meta { margin-top: auto; padding-top: .9rem; font-size: .84rem; color: var(--ink-soft); border-top: 1px dashed var(--line); }
.card__link { font-weight: 650; font-size: .93rem; color: var(--accent-dark); }
.card__link::after { content: " →"; }

.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .1rem 0 .9rem; padding: 0; list-style: none; }
.tags li {
  margin: 0; font-size: .74rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-50); color: var(--accent-dark); padding: .22rem .55rem; border-radius: 6px;
}
.tags li.alt { background: var(--amber-50); color: #a4650f; }
.tags li.neutral { background: var(--brand-50); color: var(--brand-700); }

/* ---------- feature rows (products page) ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.4rem, 5vw, 3.6rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.feature:first-of-type { border-top: 0; }
.feature__art img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: var(--brand-50); }
.feature--flip .feature__art { order: 2; }
@media (max-width: 860px) {
  /* minmax(0,1fr), not 1fr — a plain 1fr track refuses to shrink below its
     content's minimum width, and the spec tables carry a 520px min-width.
     That pushed the whole page sideways on phones instead of letting the
     table scroll inside .table-wrap. */
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature__art { order: 0; }
}

/* ---------- spec table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 520px; }
caption { text-align: left; padding: .9rem 1rem .2rem; font-weight: 700; color: var(--brand-800); }
th, td { padding: .72rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--brand-50); color: var(--brand-800); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfd; }

/* ---------- format split (roll vs flatpack) ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; color: var(--ink-soft); }
.checklist li::before {
  content: "✓"; flex: 0 0 auto;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-50); color: var(--accent-dark);
  font-size: .8rem; font-weight: 800;
  display: grid; place-items: center; margin-top: 3px;
}
.section--ink .checklist li { color: #b9d7e0; }
.section--ink .checklist li::before { background: rgba(31,169,113,.2); color: #6fe0b1; }

/* ---------- materials ---------- */
.material-card { text-align: left; }
.material-card .card__media { background: #fff; }
.material-card .card__media img { aspect-ratio: 1 / 1; }
.material-card dl { margin: .8rem 0 0; font-size: .88rem; }
.material-card dt { font-weight: 700; color: var(--brand-800); }
.material-card dd { margin: 0 0 .55rem; color: var(--ink-soft); }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: .9rem; }
.swatch { text-align: center; font-size: .82rem; color: var(--ink-soft); }
.swatch span {
  display: block; height: 76px; border-radius: var(--radius);
  border: 1px solid rgba(5,39,51,.12); margin-bottom: .45rem;
  box-shadow: inset 0 -10px 22px rgba(0,0,0,.09), inset 0 8px 14px rgba(255,255,255,.35);
}

/* ---------- stats ---------- */
.stat { padding: 1.4rem 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.stat strong { display: block; font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat span { font-size: .9rem; color: #a9cbd6; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-800), var(--brand-500));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { margin-bottom: .35rem; }
.cta-band p { color: #cbe6ef; margin: 0; }
.cta-band .hero__actions { margin: 0; }
@media (max-width: 780px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
label { font-weight: 650; font-size: .88rem; color: var(--brand-800); display: block; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%;
  padding: .72rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-300); outline-offset: 1px; border-color: var(--brand-500); }
textarea { min-height: 130px; resize: vertical; }
.form__hint { font-size: .82rem; color: var(--ink-soft); margin: 0; }
.form__status { font-size: .9rem; font-weight: 650; color: var(--accent-dark); min-height: 1.3em; margin: 0; }

fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.2rem; margin: 0; }
legend { font-weight: 700; font-size: .88rem; color: var(--brand-800); padding-inline: .4rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .45rem .9rem; }
.check-grid label { display: flex; gap: .5rem; align-items: center; font-weight: 500; font-size: .92rem; color: var(--ink); margin: 0; }
.check-grid input { width: auto; }

/* ---------- info panel ---------- */
.panel {
  background: var(--brand-50);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.panel strong { color: var(--brand-800); }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-900); color: #9fc2ce; padding: 3.5rem 0 2rem; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer a { color: #cbe4ec; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer__grid > div { min-width: 0; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.footer__bottom {
  margin-top: 2.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.13);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem;
}
.footer__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__tag { color: #8fb4c1; }

/* ---------- page header ---------- */
.page-head {
  background: linear-gradient(150deg, var(--brand-900), var(--brand-700));
  color: #cfe6ee;
  padding: clamp(2.6rem, 5vw, 4.2rem) 0;
}
.page-head h1 { color: #fff; margin-bottom: .4rem; }
.page-head p { color: #a9cbd6; max-width: 62ch; margin: 0; font-size: 1.05rem; }
.crumbs { font-size: .82rem; color: #85b0c0; margin-bottom: .9rem; }
.crumbs a { color: #b8d9e3; }

/* ---------- anchor nav ---------- */
.anchor-nav { display: flex; gap: .5rem; flex-wrap: wrap; padding: 1rem 0; border-bottom: 1px solid var(--line); background: #fff; }
.anchor-nav a {
  font-size: .85rem; font-weight: 650; padding: .4rem .85rem;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--brand-800);
}
.anchor-nav a:hover { background: var(--brand-50); border-color: var(--brand-500); }

.muted { color: var(--ink-soft); }
.mt-2 { margin-top: 1.6rem; }
.mb-0 { margin-bottom: 0; }
