/* ============================================================
   CRESCPEL — Global Stylesheet
   Design system: white background, green accent, clean type.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand colors */
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;   /* primary accent */
  --green-700: #15803d;   /* hover / dark accent */
  --green-800: #166534;

  /* Neutrals */
  --white:   #ffffff;
  --ink:     #0f172a;     /* headings */
  --body:    #334155;     /* body text */
  --muted:   #64748b;     /* secondary text */
  --line:    #e2e8f0;     /* borders */
  --surface: #f8fafc;     /* subtle section bg */

  /* Brand partners */
  --amazon:  #ff9900;
  --amazon-dark: #e88b00;
  --walmart: #0071dc;
  --walmart-dark: #005cb8;

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing & shape */
  --container: 1180px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow:    0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);

  --transition: 0.2s ease;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { color: var(--body); }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--surface { background: var(--surface); }
.section--tint { background: var(--green-50); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.section-head .eyebrow { margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); margin-top: 0.75rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--green-600); color: #fff; }
.btn--primary:hover { background: var(--green-700); box-shadow: var(--shadow); }

.btn--ghost {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-200);
}
.btn--ghost:hover { background: var(--green-50); border-color: var(--green-600); }

.btn--light { background: #fff; color: var(--green-700); }
.btn--light:hover { background: var(--green-50); box-shadow: var(--shadow); }

.btn--amazon { background: var(--amazon); color: #1a1a1a; }
.btn--amazon:hover { background: var(--amazon-dark); box-shadow: var(--shadow); }

.btn--walmart { background: var(--walmart); color: #fff; }
.btn--walmart:hover { background: var(--walmart-dark); box-shadow: var(--shadow); }

.btn--block { width: 100%; }
.btn--sm { padding: 0.65rem 1rem; font-size: 0.875rem; }

.btn svg { width: 18px; height: 18px; }

/* Buy button group */
.buy-group { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.buy-group .btn { flex: 1 1 140px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', cursive;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0;
  color: var(--ink);
}
.brand img { height: 34px; width: auto; margin-right: 0.55rem; }
.brand span { color: var(--green-600); }

/* Header brand: PEL same color as CRESC, no gap before it */
.site-header .brand span { color: inherit; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--body);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--green-700); background: var(--green-50); }
.nav-links a.active { color: var(--green-700); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, var(--green-100), transparent 60%),
    linear-gradient(180deg, var(--green-50), #fff 70%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--green-600); }
.hero-lead {
  font-size: 1.15rem;
  color: var(--body);
  max-width: 540px;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem; }
.hero-trust {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-trust div strong {
  display: block;
  font-size: 1.6rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-trust div span { font-size: 0.9rem; color: var(--muted); }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-500); }

/* ---------- Retailer strip ---------- */
.retailers {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.retailers-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  padding: 1.5rem 0;
}
.retailers-inner span { color: var(--muted); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.retailer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.retailer-pill .badge-amazon { color: var(--amazon-dark); }
.retailer-pill .badge-walmart { color: var(--walmart); }

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-200);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--green-50);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green-600);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  flex: 1;
}
.product-body h3 { font-size: 1.15rem; }
.product-body p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.product-body .buy-group { margin-top: 0.5rem; }

.product-features { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.product-features li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ---------- Feature / Why-us grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-100);
  color: var(--green-700);
  margin-bottom: 1rem;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Customer-focused banner ---------- */
.cta-banner {
  background:
    radial-gradient(800px 400px at 100% 0%, var(--green-700), transparent 60%),
    linear-gradient(135deg, var(--green-600), var(--green-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.cta-banner h2 { color: #fff; max-width: 720px; margin: 0 auto 1rem; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 620px; margin: 0 auto 1.75rem; }
.cta-banner .hero-actions { justify-content: center; }

/* ---------- Steps / value list ---------- */
.value-list { display: grid; gap: 1rem; }
.value-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.value-list .check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
}
.value-list .check svg { width: 15px; height: 15px; }
.value-list strong { color: var(--ink); }

/* ---------- About page ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split img, .split .media-box {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.media-box {
  aspect-ratio: 4 / 3;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  display: grid;
  place-items: center;
}
.lead { font-size: 1.15rem; color: var(--body); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  text-align: center;
}
.stat-grid div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
}
.stat-grid strong { display: block; font-size: 2rem; color: var(--green-600); font-weight: 800; }
.stat-grid span { color: var(--muted); font-size: 0.9rem; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 0.85rem; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.open { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem 1.4rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.faq-question .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  transition: transform var(--transition), background var(--transition);
  font-size: 1.2rem;
  line-height: 1;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); background: var(--green-600); color: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-info { display: grid; gap: 1.25rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.contact-item .feature-icon { margin-bottom: 0; }
.contact-item h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.contact-item p, .contact-item a { color: var(--muted); font-size: 0.95rem; }
.contact-item a:hover { color: var(--green-700); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.95rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green-500);
  background: #fff;
  box-shadow: 0 0 0 4px var(--green-100);
}
.field .error-msg {
  display: none;
  color: #dc2626;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}
.field.invalid input,
.field.invalid textarea { border-color: #dc2626; background: #fef2f2; }
.field.invalid .error-msg { display: block; }

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  border: 1px solid var(--green-200);
  color: var(--green-800);
  font-weight: 600;
  font-size: 0.95rem;
}
.form-status.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .brand { color: #fff; margin-bottom: 0.85rem; }
.footer-brand .brand span { color: var(--green-500); }
.footer-brand p { color: #94a3b8; font-size: 0.92rem; max-width: 320px; }
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-grid ul { display: grid; gap: 0.6rem; }
.footer-grid a { color: #94a3b8; font-size: 0.92rem; transition: color var(--transition); }
.footer-grid a:hover { color: var(--green-500); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid #334155;
  border-radius: 50%;
  color: #cbd5e1;
}
.footer-social a:hover { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--green-50), #fff);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 1rem auto 0; font-size: 1.1rem; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; order: -1; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: #fff;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links a { padding: 0.85rem 1rem; }
  .nav-cta .btn { display: none; }
  .nav-links .btn { display: inline-flex; margin-top: 0.5rem; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-trust { gap: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
