/* PlasticPro — 2026 redesign. Simplist, generous whitespace, single accent. */

:root {
  --ink: #12151a;
  --ink-soft: #4a5160;
  --paper: #ffffff;
  --mist: #f4f5f7;
  --line: #e5e7eb;
  --accent: #dc2a1c;
  --accent-ink: #ffffff;
  --radius: 14px;
  --container: 1180px;
  --shadow: 0 8px 30px rgba(18, 21, 26, 0.06);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink-soft); margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(220, 42, 28, .28); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }

/* #mainNav lives as a direct child of <body> (see includes/header.php) so its
   mobile fullscreen panel isn't collapsed by the sticky header's containing
   block. On desktop it's pulled back visually into the header bar. */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}
.main-nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  transition: color .15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 16px; }

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    height: auto;
    z-index: 99;
    background: var(--paper);
    align-items: flex-start;
    justify-content: flex-start;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    overflow-y: auto;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 12px 24px 32px;
  }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 16px 4px; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 85% -10%, rgba(220, 42, 28, .12), transparent 55%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-inner { max-width: 560px; }
.hero p.lead { font-size: 1.15rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 16/10; }
}

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 620px; margin-bottom: 48px; }

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(220, 42, 28, .1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; }

/* Services page — full service sections */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.service-block:last-child { border-bottom: none; }
.service-block:nth-child(even) .service-media { order: 2; }
.service-media {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fbdcd9, #fdeeec);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.service-media img { width: 100%; height: 100%; object-fit: cover; }
.service-media .ph-icon { width: 64px; height: 64px; color: var(--accent); opacity: .5; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: .92rem;
}
.price-table caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.price-table th, .price-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.price-table th { color: var(--ink-soft); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.price-note {
  font-size: .85rem;
  color: var(--ink-soft);
  background: var(--mist);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 16px;
}

.service-list {
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}
.service-list li {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.service-list li::before {
  content: "—";
  margin-right: 8px;
  color: var(--accent);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--mist);
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item .tag {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(18, 21, 26, .72);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.portfolio-item { cursor: zoom-in; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10, 11, 13, .94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox.is-visible { display: flex; }

.lightbox-stage {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: scale(.98);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.lightbox-stage img.is-loaded { opacity: 1; transform: scale(1); }

.lightbox-caption {
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  margin-top: 16px;
}
.lightbox-counter {
  color: rgba(255, 255, 255, .5);
  font-size: .8rem;
  margin-top: 4px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, .08);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, .18); }

.lightbox-close {
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  z-index: 2;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 720px) {
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.5rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
}
.contact-info-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  background: rgba(220, 42, 28, .1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-list .icon svg { width: 20px; height: 20px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); margin-bottom: 20px; }
.form-consent input { margin-top: 4px; }
.form-msg { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: .9rem; display: none; }
.form-msg.success { display: block; background: #e8f7ee; color: #1a7d3f; }
.form-msg.error { display: block; background: #fdecec; color: #c62828; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 32px;
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255,255,255,.7); }

/* Funding notice */
.funding-notice { padding: 40px 0 0; }
.funding-notice a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: .85rem;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .15s, color .15s;
}
.funding-notice a:hover { border-color: var(--accent); color: var(--ink); }
.funding-notice svg { width: 20px; height: 20px; flex: none; color: var(--accent); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.65);
  padding: 64px 0 28px;
  margin-top: 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: .9rem; transition: color .15s; }
.footer-grid a:hover { color: #fff; }
.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  line-height: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: .82rem;
}
.footer-bottom a:hover { color: #fff; }

/* Legal pages */
.legal-content h2 { margin-top: 2em; }
.legal-content ul { color: var(--ink-soft); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(18,21,26,.18);
  padding: 24px;
  z-index: 999;
  transform: translateY(140%);
  transition: transform .4s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { font-size: .88rem; margin-bottom: 16px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 18px; font-size: .85rem; }

.cookie-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(18,21,26,.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal-overlay.is-visible { display: flex; }
.cookie-modal {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  max-height: 85vh;
  overflow-y: auto;
}
.cookie-modal h3 { margin-bottom: 20px; }
.cookie-cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cookie-cat:last-of-type { border-bottom: none; }
.cookie-cat-label { font-weight: 600; font-size: .92rem; }
.cookie-cat-desc { font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }

.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0;
  background: var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.switch .slider::before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }

.cookie-modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .service-block, .contact-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-media { order: 0; }
  .cta-band { padding: 40px 28px; margin: 0 16px; }
}
