/* PCS design override layer: sits on top of the compiled bundle CSS.
   Goal: drop the generic "template" look (system font, gradients, blur, pill cards). */

:root {
  --pcs-olive-900: #2f3318;
  --pcs-olive-800: #4d5326;
  --pcs-olive-700: #636a2f;
  --pcs-paper: #f6f4ee;
  --pcs-ink: #1f2214;
  --pcs-line: rgba(31, 34, 20, 0.12);
}

/* ---------- Type ---------- */
body {
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color: var(--pcs-ink);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .font-bold, button, nav a {
  font-family: "Archivo", "Source Sans 3", system-ui, sans-serif;
}
h1, h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h3, h4 { font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Flatten every gradient to its first colour ---------- */
[class*="bg-gradient-to"] {
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-from) !important;
}
/* Buttons/cards that went light-olive → dark-olive: use the stronger dark tone */
[class*="from-olive-600"],
[class*="from-olive-500"] {
  --tw-gradient-stops: var(--pcs-olive-700), var(--pcs-olive-700) !important;
}
a[class*="from-olive-600"]:hover,
button[class*="from-olive-600"]:hover {
  --tw-gradient-stops: var(--pcs-olive-800), var(--pcs-olive-800) !important;
}
/* Keep the dark photo fades so caption text stays readable */
[class*="from-black"] {
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

/* Soft olive-50 sections → warm paper colour, so sections alternate paper / white */
section[class*="from-olive-50"],
section[class*="to-olive-50"] {
  --tw-gradient-stops: var(--pcs-paper), var(--pcs-paper) !important;
}

/* ---------- No frosted glass ---------- */
[class*="backdrop-blur"] {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.14) !important; }

/* ---------- Tighter corners ---------- */
.rounded-3xl, .rounded-2xl, .rounded-xl { border-radius: 6px !important; }
.rounded-lg { border-radius: 4px !important; }

/* ---------- Shadows: hairline + hard offset on hover instead of soft glow ---------- */
.shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl {
  box-shadow: 0 0 0 1px var(--pcs-line) !important;
}
.hover\:shadow-xl:hover, .hover\:shadow-2xl:hover, .group:hover .group-hover\:shadow-xl {
  box-shadow: 4px 4px 0 var(--pcs-olive-700) !important;
}
.hover\:-translate-y-1:hover, .hover\:-translate-y-2:hover { transform: translate(-2px, -2px) !important; }

/* Primary buttons: solid, square-ish, a bit more weight */
a[class*="from-olive-600"], button[class*="from-olive-600"] {
  letter-spacing: 0.01em;
}

/* ---------- Phosphor icons that replace Lucide ---------- */
svg.lucide.pcs-swapped { display: none !important; }
i.pcs-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ---------- Mobile call / WhatsApp bar ---------- */
.pcs-callbar { display: none; }
@media (max-width: 767px) {
  .pcs-callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
  }
  .pcs-callbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 0.5rem;
    font-family: "Archivo", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
  }
  .pcs-callbar a i { font-size: 1.35rem; }
  .pcs-callbar .pcs-call { background: var(--pcs-olive-800); }
  .pcs-callbar .pcs-wa { background: #1f8f4e; }
  body { padding-bottom: calc(3.4rem + env(safe-area-inset-bottom)); }
}

/* ---------- Hero certification logos (moved from inline index.html style) ---------- */
.hero-certification-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  width: auto;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.hero-certification-logos > a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: transparent !important;
  box-shadow: none !important;
}
.hero-certification-logos > a > img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}
.hero-certification-logos > .sapca-logo-link { width: 10.5rem; }
.hero-certification-logos > .sapca-logo-link > img { width: 100%; }
.hero-certification-logos > a:last-child > img { width: 3.5rem; height: 3.5rem; }

@media (max-width: 767px) {
  html, body, #root { width: 100%; max-width: 100%; overflow-x: clip; }
  img, svg, video { max-width: 100%; }
  main .container { width: 100%; max-width: 100%; min-width: 0; }
  main > div > section:first-child > .container,
  main > div > section:first-child > .container > div,
  main > div > section:first-child > .container > div > div { min-width: 0; max-width: 100%; }
  main > div > section:first-child h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 7.2vw, 2.25rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }
  main > div > section:first-child p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  main > div > section:first-child .flex-col > a { width: 100%; max-width: 100%; min-width: 0; }
  .hero-certification-logos {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 15rem;
    gap: 0.5rem;
  }
  .hero-certification-logos > .sapca-logo-link { width: 11rem; }
  .hero-certification-logos > a:last-child > img { width: 3rem; height: 3rem; }
}
@media (min-width: 768px) {
  .hero-certification-logos { gap: 0.75rem; }
  .hero-certification-logos > .sapca-logo-link { width: 18rem; }
  .hero-certification-logos > a:last-child > img { width: 5rem; height: 5rem; }
}

/* ---------- Hero background slideshow ---------- */
.pcs-hero-slides { position: absolute; inset: 0; overflow: hidden; background: var(--pcs-olive-900); }
.pcs-hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 7s ease-out;
}
.pcs-hero-slide.is-active { opacity: 1; transform: scale(1); }
.pcs-hero-dots {
  position: absolute; z-index: 20;
  left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.pcs-hero-dots button {
  width: 28px; height: 4px; padding: 0; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s;
}
.pcs-hero-dots button[aria-current="true"] { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .pcs-hero-slide { transition: opacity 0.4s linear; transform: none !important; }
}

/* ---------- Why choose PCS ---------- */
.pcs-why { background: var(--pcs-paper); padding: 5.5rem 0; border-top: 1px solid var(--pcs-line); }
.pcs-why-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .pcs-why-grid { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
}
.pcs-eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--pcs-olive-700); margin-bottom: 1.25rem;
}
.pcs-eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--pcs-olive-700); }
.pcs-why-h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--pcs-olive-900); margin-bottom: 1.25rem; }
.pcs-why-lead { font-size: 1.15rem; line-height: 1.6; color: #4a4d3c; margin-bottom: 2rem; max-width: 34rem; }

.pcs-comply {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 1.25rem 1rem 1rem;
  background: #fff; border: 1px solid var(--pcs-line); border-left: 4px solid var(--pcs-olive-700);
  text-decoration: none; color: inherit; max-width: 30rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pcs-comply:hover { box-shadow: 4px 4px 0 var(--pcs-olive-700); transform: translate(-2px, -2px); }
.pcs-comply-logo { flex: none; width: 4.5rem; height: 4.5rem; display: grid; place-items: center; }
.pcs-comply-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pcs-comply-text { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.95rem; color: #4a4d3c; line-height: 1.4; }
.pcs-comply-text strong { font-family: "Archivo", system-ui, sans-serif; color: var(--pcs-olive-900); font-size: 1.02rem; }
.pcs-comply-cta { margin-top: 0.3rem; font-weight: 700; color: var(--pcs-olive-700); }

.pcs-why-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--pcs-olive-900); }
.pcs-why-item {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--pcs-line);
}
.pcs-why-num {
  font-family: "Archivo", system-ui, sans-serif; font-weight: 800;
  font-size: 2.5rem; line-height: 1; color: var(--pcs-olive-700); opacity: 0.55;
  letter-spacing: -0.03em;
}
.pcs-why-title { font-size: 1.4rem; color: var(--pcs-olive-900); margin-bottom: 0.4rem; }
.pcs-why-body { font-size: 1.05rem; line-height: 1.6; color: #4a4d3c; max-width: 36rem; }
@media (max-width: 767px) {
  .pcs-why { padding: 3.5rem 0; }
  .pcs-why-item { grid-template-columns: 3rem 1fr; padding: 1.35rem 0; }
  .pcs-why-num { font-size: 1.8rem; }
  .pcs-why-title { font-size: 1.2rem; }
}
