/* POPI Manufacturing LLC — site styles
   Palette derived from the POPI logo: lavender #bea5e3 on #fdfdfd */

:root {
  --brand: #bea5e3;          /* logo lavender — accents, decorative */
  --brand-strong: #5d4a8c;   /* darker derivative — buttons, links (AA on white) */
  --brand-deep: #463670;     /* hover state */
  --ink-dark: #2b2440;       /* dark sections */
  --tint-50: #f8f5fd;
  --tint-100: #f1ecf9;
  --bg: #fdfdfd;             /* logo background color */
  --text: #26232f;
  --text-soft: #5a5566;
  --text-on-dark: #e9e4f4;
  --line: #e6e0f0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(70, 54, 112, 0.08);
  --shadow-lift: 0 12px 32px rgba(70, 54, 112, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--brand-deep); }

:focus-visible {
  outline: 3px solid var(--brand-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-strong); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 253, 253, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px 0; flex-wrap: wrap;
}

.logo-link { display: inline-flex; align-items: center; }
.logo-link img { width: 172px; height: auto; }

.site-nav ul {
  display: flex; align-items: center; gap: 28px; list-style: none; flex-wrap: wrap;
}
.site-nav a {
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
  color: var(--text); padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brand-strong); border-bottom-color: var(--brand); }
.site-nav a.nav-cta {
  background: var(--brand-strong); color: #fff;
  padding: 10px 20px; border-radius: 999px; border-bottom: none;
}
.site-nav a.nav-cta:hover { background: var(--brand-deep); color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; font-weight: 600; letter-spacing: 0.02em;
  padding: 14px 30px; border-radius: 999px; font-size: 1rem;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.btn-primary { background: var(--brand-strong); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--brand-strong); color: var(--brand-strong); padding: 12px 28px; }
.btn-outline:hover { background: var(--tint-100); color: var(--brand-deep); }
.btn-light { background: #fff; color: var(--brand-strong); box-shadow: var(--shadow); }
.btn-light:hover { background: var(--tint-50); color: var(--brand-deep); box-shadow: var(--shadow-lift); transform: translateY(-1px); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(190, 165, 227, 0.28), transparent 65%),
    radial-gradient(900px 480px at -10% 110%, rgba(190, 165, 227, 0.18), transparent 60%),
    var(--bg);
  padding: 92px 0 100px;
}
.hero::after {
  /* echo of the logo's O ring */
  content: ""; position: absolute; right: -140px; top: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 44px solid rgba(190, 165, 227, 0.16); pointer-events: none;
}

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 64px; align-items: center;
}

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-strong); background: var(--tint-100);
  border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.14; font-weight: 700; letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--brand-strong); }

.hero-sub {
  font-size: 1.13rem; color: var(--text-soft);
  max-width: 34em; margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-brandcard {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lift); padding: 56px 44px;
  display: flex; align-items: center; justify-content: center;
}
.hero-brandcard img { width: 100%; max-width: 380px; }

/* ---------- Sections ---------- */

.section { padding: 92px 0; }
.section.tinted { background: linear-gradient(180deg, var(--tint-50), var(--bg)); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 14px;
}
.section-head p { color: var(--text-soft); font-size: 1.06rem; }

.kicker {
  display: block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-strong); margin-bottom: 12px;
}

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.intro-grid h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 18px; letter-spacing: -0.01em; }
.intro-grid p { color: var(--text-soft); margin-bottom: 16px; }

.intro-points { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.intro-points li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.intro-points .dot {
  flex: none; width: 26px; height: 26px; margin-top: 3px; border-radius: 50%;
  border: 7px solid var(--brand); background: transparent;
}

/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: var(--brand); }

.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--tint-100); color: var(--brand-strong);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.97rem; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }

.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px 30px; box-shadow: var(--shadow);
}
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-strong); color: #fff;
  font-weight: 700; font-size: 1.05rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.95rem; }

/* Quality (dark) */
.quality { background: var(--ink-dark); color: var(--text-on-dark); position: relative; overflow: hidden; }
.quality::before {
  content: ""; position: absolute; left: -160px; bottom: -180px;
  width: 460px; height: 460px; border-radius: 50%;
  border: 48px solid rgba(190, 165, 227, 0.12); pointer-events: none;
}
.quality .section-head h2 { color: #fff; }
.quality .section-head p { color: var(--text-on-dark); }
.quality .kicker { color: var(--brand); }

.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }
.quality-item {
  background: rgba(253, 253, 253, 0.05);
  border: 1px solid rgba(190, 165, 227, 0.35);
  border-radius: var(--radius); padding: 30px 28px;
}
.quality-item h3 { color: var(--brand); font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.quality-item p { color: var(--text-on-dark); font-size: 0.96rem; }

/* Contact CTA */
.cta-band {
  background:
    radial-gradient(900px 400px at 15% -30%, rgba(190, 165, 227, 0.30), transparent 60%),
    linear-gradient(120deg, var(--tint-100), var(--tint-50));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center; padding: 88px 0;
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.01em; margin-bottom: 14px; }
.cta-band p { color: var(--text-soft); max-width: 38em; margin: 0 auto 32px; font-size: 1.06rem; }
.cta-band .email { font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink-dark); color: var(--text-on-dark); padding: 64px 0 36px; }

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px; padding-bottom: 44px;
  border-bottom: 1px solid rgba(190, 165, 227, 0.25);
}

.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.94rem; color: var(--text-on-dark); max-width: 30em; }

.site-footer h3 {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 16px;
}
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--text-on-dark); font-size: 0.96rem; }
.site-footer a:hover { color: var(--brand); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding-top: 26px;
  font-size: 0.88rem; color: #b6aecf;
}

/* ---------- Legal pages ---------- */

.legal-hero {
  background: linear-gradient(180deg, var(--tint-100), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px; text-align: center;
}
.legal-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; margin-bottom: 12px; }
.legal-hero .meta { color: var(--text-soft); font-size: 0.98rem; }

.legal-body { padding: 64px 0 96px; }
.legal-body .container { max-width: 820px; }
.legal-body h2 {
  font-size: 1.35rem; font-weight: 700; letter-spacing: -0.005em;
  margin: 44px 0 14px; padding-top: 8px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 16px; color: var(--text); }
.legal-body ul { margin: 0 0 16px 1.4em; }
.legal-body li { margin-bottom: 10px; }
.legal-body .notice {
  background: var(--tint-50); border: 1px solid var(--line);
  border-left: 5px solid var(--brand); border-radius: 10px;
  padding: 22px 26px; margin: 26px 0;
}
.legal-body .notice p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-brandcard { max-width: 440px; margin: 0 auto; }
  .intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .quality-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .header-inner { justify-content: center; text-align: center; }
  .site-nav ul { justify-content: center; gap: 18px; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 68px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- SMS enrollment form (additive; matches existing design tokens) ---------- */

.enroll-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 30px; margin: 26px 0;
}
.enroll-form .field { margin-bottom: 24px; }
.enroll-form .field-label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.enroll-form input[type="tel"] {
  width: 100%; max-width: 420px; padding: 13px 16px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
}
.enroll-form input[type="tel"]:focus {
  outline: 3px solid var(--brand-strong); outline-offset: 1px; border-color: var(--brand-strong);
}
.consent-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--tint-50); border: 1px solid var(--line);
  border-left: 5px solid var(--brand); border-radius: 10px;
  padding: 20px 22px; margin-bottom: 24px;
}
.consent-box input[type="checkbox"] {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  accent-color: var(--brand-strong);
}
.consent-box label { font-size: 0.95rem; line-height: 1.65; }
.consent-links { margin-top: 12px; font-weight: 600; }
.consent-links a { text-decoration: underline; }
.hidden-field { display: none; }
