:root {
  --ink: #172421;
  --muted: #5f6f69;
  --green: #527c66;
  --green-dark: #2f5949;
  --mint: #dbe8d7;
  --sand: #f4ecdf;
  --cream: #fffaf2;
  --gold: #c7953e;
  --teal: #123f46;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(23, 36, 33, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, Arial, sans-serif; line-height: 1.6; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
.topbar { display: flex; justify-content: center; gap: 32px; padding: 10px 20px; color: var(--white); background: var(--green-dark); font-size: 0.83rem; }
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 14px clamp(20px, 6vw, 72px); background: rgba(255, 250, 242, 0.94); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(82, 124, 102, 0.15); }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { width: 64px; height: 64px; flex: 0 0 auto; object-fit: contain; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand strong { display: block; font-size: 1.7rem; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.brand small { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; color: #243530; font-weight: 700; font-size: 0.93rem; }
.nav-links a:hover, .footer a:hover { color: var(--gold); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(47, 89, 73, 0.25); border-radius: 8px; background: var(--white); }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: var(--green-dark); }
.hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 620px; background: var(--mint); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 7vw, 90px); background: linear-gradient(rgba(47, 89, 73, 0.9), rgba(47, 89, 73, 0.88)), radial-gradient(circle at 25% 20%, rgba(199, 149, 62, 0.32), transparent 34%); color: var(--white); }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
.hero-copy .eyebrow { color: #f1d597; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 11ch; margin: 0; font-size: clamp(2.35rem, 6vw, 4.7rem); line-height: 0.98; letter-spacing: 0; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: 0; }
h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.28; }
.hero-copy p:not(.eyebrow) { max-width: 650px; margin: 24px 0 0; color: rgba(255, 255, 255, 0.88); font-size: 1.08rem; }
.hero-image { min-height: 420px; background: linear-gradient(90deg, rgba(23, 36, 33, 0.15), transparent 45%), var(--hero-image) center / cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border: 1px solid currentColor; border-radius: 8px; font-weight: 800; font-size: 0.82rem; text-transform: uppercase; cursor: pointer; }
.button.primary { color: var(--white); background: var(--green); border-color: var(--green); }
.button.secondary { color: var(--green-dark); background: transparent; border-color: rgba(47, 89, 73, 0.4); }
.section { padding: clamp(56px, 9vw, 108px) clamp(20px, 6vw, 72px); }
.intro { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; background: var(--cream); }
.intro p:last-child, .section-heading p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.section-heading { max-width: 770px; margin: 0 auto 34px; text-align: center; }
.section-heading h2 { margin-bottom: 16px; }
.stories { background: var(--white); }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story-card { overflow: hidden; background: #f7f7f4; border: 1px solid rgba(82, 124, 102, 0.16); border-radius: 8px; box-shadow: 0 10px 30px rgba(23, 36, 33, 0.07); }
.story-gallery {
  display: grid;
  grid-template-columns: 1fr;
}
.story-gallery.has-multiple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.story-gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.story-content { padding: 24px; }
.story-content p { color: var(--muted); margin: 0 0 16px; }
details { border-top: 1px solid rgba(82, 124, 102, 0.18); padding-top: 14px; }
summary { cursor: pointer; color: var(--green-dark); font-weight: 800; }
details p { margin-top: 12px; }
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: linear-gradient(135deg, var(--cream), #eef5ea);
}
.about-copy p:last-child,
.about-panel p {
  color: var(--muted);
  font-size: 1.02rem;
}
.about-panel {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(82, 124, 102, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(23, 36, 33, 0.08);
}
.about-panel p:last-child {
  margin-bottom: 0;
}
.process { background: var(--sand); }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.process-grid div { padding: 28px; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(82, 124, 102, 0.15); border-radius: 8px; }
.process-grid span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 18px; color: var(--white); background: var(--green-dark); border-radius: 50%; font-weight: 800; }
.process-grid p { margin: 0; color: var(--muted); }
/* ── CTA banner ───────────────────────────────────────────────────────────── */

.cta-banner {
  background: linear-gradient(135deg, var(--green-dark) 0%, #1a3d30 60%, var(--teal) 100%);
  color: var(--white);
  padding: clamp(56px, 8vw, 96px) clamp(20px, 6vw, 72px);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cta-copy .eyebrow { color: #f1d597; }

.cta-copy h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--white);
}

.cta-copy p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}

.cta-btn:hover { opacity: 0.88; transform: translateY(-1px); }

.cta-btn--call {
  background: var(--gold);
  color: #1a1a0e;
  border: none;
}

.cta-btn--whatsapp {
  background: #25d366;
  color: #0a2e14;
  border: none;
}

@media (max-width: 860px) {
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .cta-actions { flex-direction: column; }
  .cta-btn { width: 100%; justify-content: center; }
}
.footer { display: grid; grid-template-columns: 1.1fr 0.9fr 1fr 1fr; gap: 32px; padding: 58px clamp(20px, 6vw, 72px); color: rgba(255, 255, 255, 0.82); background: #15201d; }
.footer h2 { margin-bottom: 14px; color: var(--white); font-size: 1rem; }
.footer a, .footer p { display: block; margin: 0 0 8px; font-size: 0.9rem; }
.footer .brand strong { color: var(--white); }
.footer .brand small { color: rgba(255,255,255,0.65); }
.footer input { margin-bottom: 12px; padding: 12px; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.22); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.footer-bottom {
  display: flex;
  justify-content: center;
  padding: 18px clamp(20px, 6vw, 72px) 28px;
  background: #15201d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-membership {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-membership img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-membership:hover { color: var(--gold); }
@media (max-width: 860px) {
  .topbar { display: none; }
  .nav { min-height: 68px; padding: 12px 18px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; inset: 68px 18px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: var(--white); border: 1px solid rgba(82, 124, 102, 0.18); border-radius: 8px; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .hero, .intro, .about, .contact { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-copy { min-height: 480px; padding: 52px 22px; }
  .hero-image { min-height: 330px; }
  h1 { max-width: 12ch; }
  .story-grid, .process-grid, .footer { grid-template-columns: 1fr; }
  .section-heading { text-align: left; }
}
@media (max-width: 560px) {
  .brand-logo { width: 48px; height: 48px; }
  .brand strong { font-size: 1.25rem; }
  .brand small { font-size: 0.78rem; max-width: 160px; }
  .hero-copy { min-height: 430px; }
  h1 { font-size: 2.55rem; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-card, .story-content, .process-grid div { padding: 22px; }
}

/* ── Admin modal ──────────────────────────────────────────────────────────── */

.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 60px;
  background: rgba(18, 28, 24, 0.72);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}

.admin-panel {
  width: 100%;
  max-width: 700px;
  background: var(--cream);
  border-radius: 12px;
  box-shadow: 0 28px 64px rgba(18, 28, 24, 0.32);
  padding: clamp(24px, 5vw, 44px);
}

.admin-screen { }
.admin-screen[hidden] { display: none; }

.admin-panel h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.admin-panel p {
  color: var(--muted);
  margin: 0 0 20px;
}

.admin-error {
  padding: 10px 14px;
  margin-bottom: 18px;
  background: #fdecea;
  border: 1px solid #f5c2be;
  border-radius: 6px;
  color: #8b1a14;
  font-size: 0.9rem;
}

.admin-label {
  display: grid;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 700;
  color: #394b45;
  margin-bottom: 18px;
}

.admin-label input,
.admin-label textarea {
  border: 1px solid rgba(47, 89, 73, 0.3);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.admin-label input:focus,
.admin-label textarea:focus {
  outline: 2px solid rgba(82, 124, 102, 0.35);
  outline-offset: 2px;
  border-color: var(--green);
}

.admin-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.admin-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.admin-manager-header h2 {
  margin: 0;
}

.admin-manager-actions {
  display: flex;
  gap: 10px;
}

.admin-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px !important;
}

.admin-hint-inline {
  font-weight: 400;
  color: var(--muted);
}

/* Story list rows */
.admin-story-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-story-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid rgba(82, 124, 102, 0.18);
  border-radius: 8px;
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.15s;
}

.admin-story-row:active { cursor: grabbing; }

.admin-story-row.drag-over {
  box-shadow: 0 0 0 2px var(--green);
}

.admin-story-row.dragging {
  opacity: 0.45;
}

.drag-handle {
  color: var(--muted);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.admin-story-row-thumb {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.admin-story-row-title {
  flex: 1;
  font-weight: 700;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-story-row-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
}

.admin-btn-small.edit { color: var(--green-dark); border-color: rgba(47, 89, 73, 0.4); }
.admin-btn-small.delete { color: #c0392b; border-color: rgba(192, 57, 43, 0.4); }
.admin-btn-small:hover { opacity: 0.75; }

/* Editor */
.admin-fieldset {
  border: 1px solid rgba(82, 124, 102, 0.2);
  border-radius: 8px;
  padding: 18px 18px 14px;
  margin: 0 0 20px;
}

.admin-fieldset legend {
  font-weight: 700;
  font-size: 0.83rem;
  padding: 0 6px;
  color: #394b45;
}

/* Paragraph rows */
.para-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.para-row textarea {
  flex: 1;
  border: 1px solid rgba(47, 89, 73, 0.3);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 72px;
  color: var(--ink);
  background: var(--white);
}

.para-row textarea:focus {
  outline: 2px solid rgba(82, 124, 102, 0.3);
  border-color: var(--green);
}

.para-remove {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-radius: 6px;
  background: transparent;
  color: #c0392b;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.admin-add-para {
  margin-top: 4px;
  font-size: 0.8rem;
}

/* Image slots */
.editor-image-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}

.image-slot {
  border: 1px dashed rgba(82, 124, 102, 0.35);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,0.6);
}

.image-slot-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #394b45;
  margin-bottom: 8px;
}

.image-slot-preview {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
  display: none;
}

.image-slot-preview.visible { display: block; }

.image-slot input[type="file"] {
  border: none;
  padding: 0;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.image-slot input[type="text"] {
  border: 1px solid rgba(47, 89, 73, 0.3);
  border-radius: 6px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.82rem;
  background: var(--white);
}

.image-slot-remove {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 5px;
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-radius: 6px;
  background: transparent;
  color: #c0392b;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .admin-overlay { padding: 16px 10px 40px; }
  .editor-image-slots { grid-template-columns: 1fr; }
  .admin-manager-header { flex-direction: column; align-items: flex-start; }
}

/* ── Stories page hero ────────────────────────────────────────────────────── */

.page-hero {
  display: flex;
  align-items: center;
  min-height: 280px;
  padding: clamp(44px, 7vw, 88px) clamp(20px, 6vw, 72px);
  background:
    linear-gradient(rgba(47, 89, 73, 0.92), rgba(47, 89, 73, 0.88)),
    radial-gradient(circle at 20% 50%, rgba(199, 149, 62, 0.28), transparent 50%);
  color: var(--white);
}

.page-hero-copy { max-width: 680px; }

.page-hero-copy .eyebrow { color: #f1d597; }

.page-hero-copy h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin: 0 0 16px;
}

.page-hero-copy p {
  margin: 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
}

/* ── Stories page grid section ───────────────────────────────────────────── */

.stories-page { background: var(--white); }

.stories-empty {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  padding: 48px 0;
}

/* ── "View all recoveries" button below index grid ───────────────────────── */

.stories-more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ── Active nav link ──────────────────────────────────────────────────────── */

.nav-links a[aria-current="page"] {
  color: var(--green-dark);
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
}

/* ── Legal page ───────────────────────────────────────────────────────────── */

.legal-page { background: var(--cream); }

.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.legal-toc {
  margin-bottom: 48px;
  padding: 24px 28px;
  background: var(--mint);
  border-radius: 8px;
  border: 1px solid rgba(82, 124, 102, 0.18);
}

.legal-toc h2 {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  margin: 0 0 12px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
}

.legal-toc li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.legal-toc a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-toc a:hover { color: var(--gold); }

.legal-section {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(82, 124, 102, 0.15);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 6px;
  color: var(--green-dark);
}

.legal-intro {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(82, 124, 102, 0.12);
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 24px 0 8px;
  color: var(--ink);
}

.legal-section p {
  color: #374740;
  font-size: 0.97rem;
  margin: 0 0 14px;
  line-height: 1.7;
}

.legal-section ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-section li {
  color: #374740;
  font-size: 0.97rem;
  margin-bottom: 8px;
  line-height: 1.65;
}

.legal-section a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover { color: var(--gold); }

.legal-updated {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(82, 124, 102, 0.12);
}

/* ── Contact form legal line ──────────────────────────────────────────────── */

.form-legal {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.form-legal a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-legal a:hover { color: var(--gold); }