:root {
  --red: #d40d0d;
  --red-deep: #a80808;
  --orange: #ff6a13;
  --yellow: #ffc800;
  --ink: #1a1412;
  --muted: #5d514b;
  --bg: #ffffff;
  --tint: #fff6ee;
  --line: #f1e2d6;
  --dark: #1c1210;
  --fire: linear-gradient(135deg, #d40d0d 0%, #ff6a13 55%, #ffc800 100%);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(120, 40, 10, 0.08);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--red-deep);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

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

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 16px;
}

.container.narrow {
  max-width: 48rem;
}

.center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.1;
}

.brand img {
  width: 44px;
  height: auto;
}

.brand-name strong {
  display: block;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:not(.btn):hover {
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle .bars {
  position: relative;
  margin: 0 auto;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle .bars::before {
  top: -6px;
}

.nav-toggle .bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--red);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-1px);
}

.btn-small {
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
}

.btn-ghost {
  background: transparent;
  color: var(--red-deep);
}

.btn-ghost:hover {
  background: var(--red-deep);
  color: #fff;
}

.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--red-deep);
}

.btn-light:hover {
  background: var(--tint);
  border-color: var(--tint);
}

.nav a.btn {
  color: #fff;
}

/* Hero */

.hero {
  background:
    radial-gradient(60rem 30rem at 85% 0%, rgba(255, 200, 0, 0.22), transparent 60%),
    radial-gradient(50rem 30rem at 0% 100%, rgba(212, 13, 13, 0.1), transparent 60%),
    var(--tint);
  padding: 3.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--red-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  font-weight: 800;
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.1em;
}

.lead {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  font-size: 1.2rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-facts li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  background: var(--orange);
  border-radius: 50%;
}

.hero-art {
  justify-self: center;
  width: min(100%, 26rem);
  padding: 1.25rem;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(160, 50, 10, 0.18);
}

.wide-photo {
  margin: 2.5rem 0 0;
}

.wide-photo img,
.card-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px;
}

.card-photo {
  margin-bottom: 1.25rem;
}

/* Holistic model */

.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 3.5rem;
  padding: 0;
  list-style: none;
}

.chips a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--red-deep);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chips a:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

.steps {
  display: grid;
  gap: 4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.step-media {
  position: relative;
  isolation: isolate;
  margin: 0;
}

.step-media::before {
  content: "";
  position: absolute;
  inset: 14px -12px -14px 12px;
  z-index: -1;
  background: var(--fire);
  border-radius: 28px 28px 28px 96px;
}

.step-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px 28px 28px 96px;
}

.step-n {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-body h3 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
}

.step-body p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.media-note {
  margin: 3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Philosophy */

.prose p {
  font-size: 1.15rem;
}

.prose .pull {
  padding-left: 1.25rem;
  border-left: 5px solid;
  border-image: var(--fire) 1;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Values */

.values {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: value;
}

.values .card {
  counter-increment: value;
}

.values .card::before {
  content: counter(value, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Therapeutic community */

.timeline .card:nth-child(1) {
  border-top: 6px solid var(--red);
}

.timeline .card:nth-child(2) {
  border-top: 6px solid var(--orange);
}

.timeline .card:nth-child(3) {
  border-top: 6px solid var(--yellow);
}

.closing {
  margin: 2rem 0 0;
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  color: var(--red-deep);
}

/* Support */

.section-fire {
  background: linear-gradient(135deg, #8f0606 0%, #c2410c 100%);
  color: #fff;
}

.section-fire .eyebrow {
  color: #ffe38a;
}

.section-fire .section-intro {
  margin-bottom: 2rem;
  color: #fff;
}

/* Contact */

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(160, 50, 10, 0.16);
}

.contact-label {
  color: var(--red-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-value {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
}

.contact-email {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.contact-hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.location {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--muted);
  font-weight: 500;
}

/* Footer */

.site-footer {
  padding: 3rem 0 4.5rem;
  background: var(--dark);
  color: #e8d9cf;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-inner img {
  width: 56px;
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}

.footer-name {
  margin: 0;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.footer-quote {
  margin: 0 0 0 auto;
  color: var(--yellow);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #fff;
}

/* Floating WhatsApp CTA */

.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem;
  background: #0f7d41;
  color: #fff;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  animation: whatsapp-pulse 2.8s ease-out infinite;
  transition: transform 0.2s, background 0.2s;
}

.whatsapp-float:hover {
  background: #0b6334;
  transform: translateY(-2px);
}

.whatsapp-float svg {
  flex: none;
}

.whatsapp-label {
  display: none;
  padding-right: 0.4rem;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(15, 125, 65, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 16px rgba(15, 125, 65, 0);
  }
}

@media (min-width: 640px) {
  .whatsapp-float {
    right: 24px;
    bottom: 24px;
  }

  .whatsapp-label {
    display: inline;
  }
}

/* Reveal on scroll (only when JS is running) */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 800px) {
  .step {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }

  .step:nth-child(even) .step-media {
    order: 2;
  }

  .step:nth-child(even) .step-media::before {
    inset: 14px 12px -14px -12px;
    border-radius: 28px 28px 96px 28px;
  }

  .step:nth-child(even) .step-media img {
    border-radius: 28px 28px 96px 28px;
  }
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding: 6rem 0;
  }
}

@media (max-width: 959px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 1rem 16px 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav li a:not(.btn) {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav li:last-child {
    margin-top: 1rem;
  }

  .nav a.btn {
    display: block;
    text-align: center;
  }

  .footer-quote {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
