/* =========================================================
   REUSABLE COMPONENT LIBRARY - Website Agency Playbook
   Friendly & approachable palette. No build step, no framework.
   Copy the blocks you need from components.html into a new
   client project, then swap the design tokens below to match
   THAT client's brand (colours, fonts). Everything else -
   layout, spacing, responsive behaviour - carries over free.
   ========================================================= */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/nunito-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/poppins-800.woff2') format('woff2');
}

:root {
  /* ---- design tokens: change these per client ---- */
  --coral: #C8102E;
  --coral-deep: #A6082A;
  --teal: #5C1421;
  --teal-deep: #40101B;
  --cream: #FAFAFA;
  --white: #FFFFFF;
  --ink: #262223;
  --ink-soft: #5B5556;
  --line: #E5E5E5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(36, 48, 46, 0.08);
  --shadow-hover: 0 14px 32px rgba(36, 48, 46, 0.14);
  --font-head: 'Poppins', Arial, sans-serif;
  --font-body: 'Nunito', Arial, sans-serif;
  --maxw: 1140px;
}

/* ---- reset & base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-soft); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 44px 0; }
.section--alt { background: var(--white); }
main > .section:not(:first-child) {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--coral-deep); background: rgba(200,16,46,0.1);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--coral); color: var(--white); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--coral-deep); box-shadow: var(--shadow-hover); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--whatsapp { background: #0F7A3D; color: var(--white); }
.btn--whatsapp:hover { background: #0C6530; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---- nav ---- */
.site-nav {
  position: sticky; top: 0; z-index: 50; background: rgba(250,250,250,0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--maxw); margin: 0 auto; }
.site-nav__logo { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; }
.site-nav__logo span { color: var(--coral); }
.site-nav__logo img { height: 60px; width: auto; display: block; }
.site-nav__links { display: flex; gap: 28px; list-style: none; }
.site-nav__links a { font-family: var(--font-head); font-weight: 600; font-size: 0.92rem; }
.site-nav__links a:hover { color: var(--coral); }
.site-nav__toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; }
@media (max-width: 420px) {
  .site-nav__logo img { height: 42px; }
}
@media (max-width: 820px) {
  .site-nav__links { position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); display: none; }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links a { display: block; padding: 16px 24px; border-top: 1px solid var(--line); }
  .site-nav__toggle { display: block; }
}

/* ---- sticky mobile CTA bar (mirrors PrettyLittleCarts pattern) ---- */
.mobile-cta-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 12px 16px; box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
}
@media (max-width: 640px) { .mobile-cta-bar { display: flex; gap: 10px; } .mobile-cta-bar .btn { flex: 1; } }

/* ---- desktop scroll-triggered re-engagement bar (pricing page only) ---- */
.desktop-cta-bar {
  display: none; position: fixed; bottom: 100px; right: 24px; z-index: 60;
  align-items: center; gap: 14px; max-width: 420px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow), 0 20px 40px -12px rgba(38,34,35,0.25);
  opacity: 0; transform: translateY(12px); transition: opacity .25s ease, transform .25s ease; pointer-events: none;
}
.desktop-cta-bar.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.desktop-cta-bar__text { font-size: .92rem; color: var(--ink); flex: 1; }
.desktop-cta-bar__close {
  position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: white; border: none; font-size: 1rem; line-height: 1; cursor: pointer;
}
@media (min-width: 641px) { .desktop-cta-bar.is-visible { display: flex; } }
@media (max-width: 640px) { .desktop-cta-bar { display: none !important; } }

/* ---- hero ---- */
.hero { padding: 88px 0 64px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; text-align: center; } }
.hero h1 { margin-bottom: 18px; }
.hero p.lead { font-size: 1.1rem; margin-bottom: 28px; max-width: 46ch; }
@media (max-width: 900px) { .hero p.lead { margin-left: auto; margin-right: auto; } }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero__actions { justify-content: center; } }
.hero__art {
  border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 24px 48px -16px rgba(38,34,35,0.25);
}
.hero__browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #EDEDED; border-bottom: 1px solid var(--line); }
.hero__browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.hero__browser-dot.dot--red { background: #FF5F57; }
.hero__browser-dot.dot--yellow { background: #FEBC2E; }
.hero__browser-dot.dot--green { background: #28C840; }
.hero__browser-url { flex: 1; margin-left: 8px; background: white; border-radius: 6px; padding: 4px 10px; font-size: 0.78rem; color: var(--ink-soft); text-align: center; border: 1px solid var(--line); }
.hero__art img { display: block; width: 100%; height: auto; }

/* ---- cards (services / steps) ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; background: rgba(200,16,46,0.12);
  color: var(--coral-deep); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--font-head); margin-bottom: 16px; font-size: 1.2rem;
}
.card h3 { margin-bottom: 8px; }

/* ---- numbered process steps ---- */
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: white;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700;
}
.step h3 { margin-bottom: 4px; }

/* ---- pricing table ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.price-card--featured { border: 2px solid var(--coral); position: relative; transform: scale(1.03); }
.price-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--coral); color: white; font-family: var(--font-head); font-weight: 700;
  font-size: 0.75rem; padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.price-card__price { font-family: var(--font-head); font-size: 2rem; font-weight: 800; margin: 10px 0; color: var(--ink); }
.price-card__price span { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.price-card ul { list-style: none; margin: 18px 0; flex: 1; }
.price-card li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-soft); }
.price-card li:first-child { border-top: none; }

/* ---- testimonial ---- */
.testimonial {
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  border-left: 4px solid var(--coral);
}
.testimonial p { font-style: italic; color: var(--ink); margin-bottom: 14px; }
.testimonial__author { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--teal-deep); }

/* ---- FAQ accordion (no JS needed) ---- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary {
  font-family: var(--font-head); font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--coral); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 12px; }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep)); color: white; border-radius: var(--radius);
  padding: 52px 40px; text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.90); margin-bottom: 26px; }
.cta-banner .btn--primary { background: white; color: var(--coral-deep); }
.cta-banner .btn--primary:hover { background: var(--cream); box-shadow: var(--shadow-hover); }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: var(--coral); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
.site-footer h3 { color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.site-footer p { color: rgba(255,255,255,0.75); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; font-size: 0.92rem; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer__social { display: flex; gap: 12px; margin-top: 16px; }
.site-footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); transition: background .15s, color .15s; }
.site-footer__social a:hover { background: var(--coral); color: white; }
.site-footer__social svg { width: 18px; height: 18px; fill: currentColor; }

/* ---- badges / pills ---- */
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; font-family: var(--font-head); }
.pill--teal { background: rgba(92,20,33,0.12); color: var(--teal-deep); }
.pill--coral { background: rgba(200,16,46,0.12); color: var(--coral-deep); }

/* ---- utility ---- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.mt-lg { margin-top: 48px; }
.mb-lg { margin-bottom: 48px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- thank-you modal ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(38,34,35,0.6);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: modalFadeIn 0.2s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--white); border-radius: var(--radius); padding: 40px 32px 32px;
  max-width: 420px; width: 100%; text-align: center; box-shadow: var(--shadow-hover);
  position: relative; animation: modalPop 0.25s ease;
}
.modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft);
  padding: 4px 8px;
}
.modal-icon { display: block; margin: 0 auto 18px; }
.modal-check-path {
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: modalCheckDraw 0.4s 0.15s ease forwards;
}
.modal-box h2 { margin-bottom: 10px; }
.modal-box p { color: var(--ink-soft); margin-bottom: 20px; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes modalCheckDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-box, .modal-check-path { animation: none; }
  .modal-check-path { stroke-dashoffset: 0; }
}

/* ---- cookie consent banner ---- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.1); padding: 18px 24px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-banner__inner p { margin: 0; font-size: 0.85rem; flex: 1; min-width: 240px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__actions #cookieAccept { background: #157347; }
.cookie-banner__actions #cookieAccept:hover { background: #10603A; }
@media (max-width: 640px) {
  .cookie-banner { bottom: 78px; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner__actions .btn { flex: 1; }
}
