/* ==========================================================================
   rnp-templates.css — Shared styles for all 4 Rose n Petals SEO page templates
   Import once in your app: <link rel="stylesheet" href="/rnp-templates.css" />
   ========================================================================== */

/* ── DESIGN TOKENS ──────────────────────────────────────────────────────────── */
:root {
  /* Brand colors — adjust to match your actual brand */
  --rnp-pink:          #C8365A;   /* Primary rose red  */
  --rnp-pink-light:    #F8E8EC;   /* Tinted backgrounds */
  --rnp-pink-hover:    #A82848;   /* Hover state        */
  --rnp-wa-green:      #25D366;   /* WhatsApp green CTA */
  --rnp-wa-hover:      #1DA851;
  --rnp-text:          #1C1C1C;
  --rnp-text-muted:    #666666;
  --rnp-bg:            #FFFAF9;   /* Warm off-white page bg */
  --rnp-surface:       #FFFFFF;
  --rnp-border:        #EFD8DC;

  /* Spacing */
  --rnp-section-py:    4rem;
  --rnp-gap:           1.5rem;

  /* Type */
  --rnp-font-body:     system-ui, -apple-system, sans-serif;

  /* Layout */
  --rnp-max:           1100px;
  --rnp-radius:        12px;
  --rnp-radius-sm:     6px;
}

/* ── RESET / BASE ───────────────────────────────────────────────────────────── */
.rnp-page,
.rnp-page *,
.rnp-page *::before,
.rnp-page *::after {
  box-sizing: border-box;
}

.rnp-hero *,
.rnp-hero *::before,
.rnp-hero *::after,
.rnp-trust-bar *,
.rnp-trust-bar *::before,
.rnp-trust-bar *::after,
.rnp-section *,
.rnp-section *::before,
.rnp-section *::after {
  margin: 0;
  padding: 0;
}

.rnp-page {
  background: var(--rnp-bg);
  color: var(--rnp-text);
  font-family: var(--rnp-font-body);
  line-height: 1.6;
}

/* ── SECTION WRAPPER ────────────────────────────────────────────────────────── */
.rnp-section {
  max-width: var(--rnp-max);
  margin: 0 auto;
  padding: var(--rnp-section-py) 1.25rem;
}

.rnp-section__h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--rnp-text);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.rnp-section__footer {
  margin-top: 2rem;
  text-align: center;
}

/* ── HERO ───────────────────────────────────────────────────────────────────── */
.rnp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--rnp-max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

@media (max-width: 680px) {
  .rnp-hero { grid-template-columns: 1fr; }
  .rnp-hero__media { display: none; } /* hide on mobile if needed */
}

.rnp-hero__h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--rnp-text);
  margin-bottom: 0.75rem;
}

.rnp-hero__sub {
  font-size: 1.05rem;
  color: var(--rnp-text-muted);
  margin-bottom: 0.75rem;
}

.rnp-hero__price {
  font-size: 1rem;
  color: var(--rnp-text-muted);
  margin-bottom: 1.5rem;
}

.rnp-hero__price strong { color: var(--rnp-pink); font-size: 1.1rem; }

/* Occasion hero badge */
.rnp-hero__occasion-badge {
  display: inline-block;
  background: var(--rnp-pink-light);
  color: var(--rnp-pink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

/* Local hero badge */
.rnp-hero__local-badge {
  display: inline-block;
  background: var(--rnp-pink-light);
  color: var(--rnp-pink);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

/* Urgency promise badge */
.rnp-hero__promise-badge {
  display: inline-block;
  background: #FFF3CD;
  color: #7B5C00;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--rnp-radius-sm);
  margin-bottom: 1rem;
  border: 1px solid #F5DC85;
}

.rnp-hero__delivery-note,
.rnp-hero__cutoff {
  font-size: 0.85rem;
  color: var(--rnp-text-muted);
  margin-top: 0.75rem;
}

.rnp-hero__media {
  border-radius: var(--rnp-radius);
  overflow: hidden;
  background: var(--rnp-pink-light);
}

.rnp-hero__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── BUTTONS ────────────────────────────────────────────────────────────────── */
.rnp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--rnp-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  border: none;
}

.rnp-btn:active { transform: scale(0.98); }

/* Primary WhatsApp green CTA */
.rnp-btn--wa {
  background: var(--rnp-wa-green);
  color: #fff;
}
.rnp-btn--wa:hover { background: var(--rnp-wa-hover); }

/* Ghost / outlined button */
.rnp-btn--ghost {
  background: transparent;
  color: var(--rnp-pink);
  border: 1.5px solid var(--rnp-pink);
}
.rnp-btn--ghost:hover { background: var(--rnp-pink-light); }

/* Size modifiers */
.rnp-btn--lg { padding: 0.9rem 2rem; font-size: 1.1rem; }
.rnp-btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ── TRUST BAR ──────────────────────────────────────────────────────────────── */
.rnp-trust-bar {
  background: var(--rnp-pink-light);
  padding: 1.5rem 1.25rem;
}

.rnp-trust-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  list-style: none;
  max-width: var(--rnp-max);
  margin: 0 auto;
}

.rnp-trust-bar__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 220px;
}

.rnp-trust-bar__icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.rnp-trust-bar__title { display: block; font-weight: 700; font-size: 0.9rem; }
.rnp-trust-bar__text { display: block; font-size: 0.8rem; color: var(--rnp-text-muted); }

/* ── PRODUCTS ───────────────────────────────────────────────────────────────── */
.rnp-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--rnp-gap);
}

/* ── AREAS ──────────────────────────────────────────────────────────────────── */
.rnp-areas__intro {
  color: var(--rnp-text-muted);
  margin-bottom: 1rem;
}

.rnp-areas__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
}

.rnp-areas__pill {
  background: var(--rnp-pink-light);
  color: var(--rnp-pink);
  padding: 0.4rem 0.85rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 500;
}

.rnp-areas__pill a {
  color: inherit;
  text-decoration: none;
}
.rnp-areas__pill a:hover { text-decoration: underline; }

/* ── HOW IT WORKS / STEPS ───────────────────────────────────────────────────── */
.rnp-steps__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--rnp-gap);
  list-style: none;
  padding: 0;
}

.rnp-steps__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--rnp-surface);
  border: 1px solid var(--rnp-border);
  border-radius: var(--rnp-radius);
  padding: 1.25rem;
}

.rnp-steps__num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--rnp-pink);
  line-height: 1;
  flex-shrink: 0;
}

.rnp-steps__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.rnp-steps__text { font-size: 0.9rem; color: var(--rnp-text-muted); }

/* Urgency time badge on steps */
.rnp-steps__time-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rnp-wa-green);
  margin-top: 0.4rem;
  background: #E8FBF1;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ── FAQs ───────────────────────────────────────────────────────────────────── */
.rnp-faqs__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 720px;
}

.rnp-faqs__item {
  background: var(--rnp-surface);
  border: 1px solid var(--rnp-border);
  border-radius: var(--rnp-radius-sm);
  overflow: hidden;
}

.rnp-faqs__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none; /* remove <summary> triangle in some browsers */
}

.rnp-faqs__q::-webkit-details-marker { display: none; } /* Chrome/Safari */
.rnp-faqs__q::after { content: '+'; font-size: 1.2rem; color: var(--rnp-pink); }
details[open] .rnp-faqs__q::after { content: '−'; }

.rnp-faqs__a {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--rnp-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── OCCASION BLOCK ─────────────────────────────────────────────────────────── */
.rnp-occasion-block__text {
  font-size: 1rem;
  color: var(--rnp-text-muted);
  max-width: 620px;
  margin-bottom: 1rem;
}

.rnp-occasion-block__callout {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rnp-pink);
  padding-left: 1rem;
  border-left: 3px solid var(--rnp-pink);
}

/* ── LOCAL PROOF ────────────────────────────────────────────────────────────── */
.rnp-local-proof__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.rnp-local-proof__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.rnp-local-proof__icon { font-size: 1.2rem; flex-shrink: 0; }
.rnp-local-proof__text { font-size: 0.95rem; }

.rnp-placeholder--map {
  height: 200px;
  background: var(--rnp-pink-light);
  border-radius: var(--rnp-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rnp-text-muted);
  font-size: 0.85rem;
  border: 1.5px dashed var(--rnp-border);
}

/* ── NEARBY AREAS ───────────────────────────────────────────────────────────── */
.rnp-nearby__list,
.rnp-related__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

/* ── SPEED PROOF STRIP ──────────────────────────────────────────────────────── */
.rnp-speed-proof {
  background: var(--rnp-text);
  color: #fff;
  padding: 2rem 1.25rem;
}

.rnp-speed-proof__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
  list-style: none;
  max-width: var(--rnp-max);
  margin: 0 auto 1rem;
  text-align: center;
}

.rnp-speed-proof__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.rnp-speed-proof__icon { font-size: 1.5rem; }
.rnp-speed-proof__stat { font-size: 1.75rem; font-weight: 800; color: var(--rnp-wa-green); }
.rnp-speed-proof__label { font-size: 0.85rem; font-weight: 600; }
.rnp-speed-proof__note { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

.rnp-speed-proof__guarantee {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  max-width: var(--rnp-max);
  margin: 0 auto;
}

/* ── BOTTOM CTA BLOCK ───────────────────────────────────────────────────────── */
.rnp-cta-block {
  text-align: center;
  background: var(--rnp-pink-light);
  border-radius: var(--rnp-radius);
}

.rnp-cta-block--urgency { background: #FFF9EC; }

.rnp-cta-block__promise {
  font-size: 1rem;
  font-weight: 700;
  color: #7B5C00;
  margin-bottom: 0.75rem;
}

.rnp-cta-block__h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.rnp-cta-block__sub {
  color: var(--rnp-text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* ── DEV PLACEHOLDERS (remove in production) ────────────────────────────────── */
.rnp-placeholder {
  background: #f0f0f0;
  border: 2px dashed #ccc;
  border-radius: var(--rnp-radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  font-family: monospace;
}

.rnp-placeholder--hero {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── TEMPLATE 4 — URGENCY PAGE MODIFIERS ───────────────────────────────────── */

/* Page modifier — sets a slightly warmer urgency tone */
.rnp-page--urgency {
  --rnp-bg: #FFFDF9;
}

/* Hero modifier — deeper gradient for urgency pages */
.rnp-hero--urgency {
  background: linear-gradient(135deg, #1a0a10 0%, #3b0f1e 50%, #5c1a30 100%);
}

/* White text overrides for dark urgency hero */
.rnp-hero--urgency .rnp-hero__h1,
.rnp-hero--urgency .rnp-hero__sub,
.rnp-hero--urgency .rnp-hero__price {
  color: #ffffff;
}

.rnp-hero--urgency .rnp-hero__price strong {
  color: #FFD700;
}

.rnp-hero--urgency .rnp-hero__cutoff {
  color: rgba(255, 255, 255, 0.75);
}

/* Time badge shown under each step */
.rnp-steps__time-badge {
  display: inline-block;
  margin-top: 0.5rem;
  background: #fff3e0;
  color: #7b4e00;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid #ffd08a;
  letter-spacing: 0.02em;
}

/* Related urgency cross-links strip */
.rnp-related__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
}

.rnp-related__list a.rnp-btn--ghost {
  border-color: var(--rnp-border);
  color: var(--rnp-pink);
  font-weight: 600;
}

.rnp-related__list a.rnp-btn--ghost:hover {
  background: var(--rnp-pink-light);
  border-color: var(--rnp-pink);
}

