/* Habitar el Camino
   Palette from "HEC Color Chart.pdf" (HEC Entrega de Marca). */
:root {
  --rust: #c7714d;
  --ochre: #d8a961;
  --ivory: #f3eadd;
  --sage: #94a38d;
  --teal: #20586a;

  /* Tints derived from the chart for the "nude / beige / light terracotta" roles */
  --terracotta-light: #e3a88b;
  --nude: #e8d3c1;
  --beige: #ead9c0;
  --sage-light: #d5ddd0;
  --paper: #faf6ef;
  --ink: #2f2a26;
  --ink-soft: #5c534b;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --gutter: clamp(16px, 5vw, 48px);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--teal);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.15;
  color: var(--teal);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0 0 1.1em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(250 246 239 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--teal);
}

.brand img {
  width: auto;
}

.brand .mark {
  height: 46px;
}

.brand .wordmark {
  height: 38px;
}

.site-footer .brand .mark {
  height: 56px;
}

.site-footer .brand .wordmark {
  height: 46px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--beige);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--teal);
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--teal);
  border-color: var(--rust);
}

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--beige);
    display: none;
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--beige);
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--rust);
  color: #fff;
}

.btn-primary:hover {
  background: #b15f3d;
}

.btn-ghost {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-ghost:hover {
  background: var(--teal);
  color: var(--ivory);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ---------- Sections ---------- */

section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.bg-ivory {
  background: var(--ivory);
}

.bg-sage {
  background: var(--sage-light);
}

.bg-teal {
  background: var(--teal);
  color: var(--ivory);
}

.bg-teal h2,
.bg-teal h3 {
  color: var(--ivory);
}

.bg-teal .eyebrow {
  color: var(--ochre);
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 38em;
}

.center {
  text-align: center;
}

.center .lede {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 em {
  font-style: italic;
  color: var(--rust);
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

/* Image slots. Each shows a soft palette gradient until a photo is set. */
.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, var(--ochre) 0, transparent 55%),
    radial-gradient(circle at 75% 80%, var(--sage) 0, transparent 60%),
    linear-gradient(160deg, var(--terracotta-light), var(--nude));
  aspect-ratio: 4 / 5;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo.arch {
  border-radius: 999px 999px var(--radius) var(--radius);
}

.photo.wide {
  aspect-ratio: 16 / 10;
}

.photo-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgb(47 42 38 / 0.6);
}

/* ---------- Cards / grids ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.4rem;
}

.card p {
  color: var(--ink-soft);
}

.card .more {
  margin-top: auto;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--rust);
}

.i-rust {
  background: var(--rust);
}

.i-sage {
  background: var(--sage);
}

.i-ochre {
  background: var(--ochre);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.split.reverse > :first-child {
  order: 2;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split.reverse > :first-child {
    order: 0;
  }
}

.values {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.values li {
  padding-left: 1.75rem;
  position: relative;
}

.values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.9rem;
  height: 1px;
  background: var(--rust);
}

blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-style: italic;
  line-height: 1.35;
  max-width: 28em;
  margin: 0 auto;
}

/* ---------- Offerings page ---------- */

.offering {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--beige);
}

.offering:first-child {
  border-top: 0;
}

.offering .num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--rust);
  letter-spacing: 0.1em;
}

.offering dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.5rem;
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
}

.offering dt {
  color: var(--rust);
  font-weight: 400;
}

.offering dd {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .offering {
    grid-template-columns: 1fr;
  }
}

/* ---------- About ---------- */

.prose {
  max-width: 40em;
  margin: 0 auto;
}

.prose p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 4.2rem;
  line-height: 0.85;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--rust);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.timeline li {
  border-top: 2px solid var(--ochre);
  padding-top: 1rem;
}

.timeline strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ivory);
}

@media (max-width: 860px) {
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.channels {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}

.channels a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s;
}

.channels a:hover {
  border-color: var(--rust);
}

.channels small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

form {
  background: var(--paper);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

input,
select,
textarea {
  font: inherit;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--beige);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
  border-color: var(--sage);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal);
  color: var(--ivory);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.site-footer a {
  color: var(--ivory);
  text-decoration: none;
  opacity: 0.85;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer .brand {
  color: var(--ivory);
}

.site-footer h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 0.9rem;
}

.site-footer .legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgb(243 234 221 / 0.2);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

@media (max-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Additions ---------- */

.stats {
  list-style: none;
  padding: 0;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--rust);
  line-height: 1.2;
}

@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.channels .icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
}

.photo-band {
  padding: 0;
  height: clamp(220px, 35vw, 420px);
}

.photo-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-intro {
  padding-bottom: clamp(3rem, 6vw, 4rem);
}

.offering .photo {
  max-width: 420px;
}

.timeline {
  margin-top: 2.5rem;
  color: rgb(243 234 221 / 0.85);
  font-size: 0.95rem;
}

.timeline strong {
  margin-bottom: 0.4rem;
}

.site-header .brand .wordmark {
  display: block;
}

@media (max-width: 420px) {
  .site-header .brand .wordmark {
    height: 30px;
  }

  .site-header .brand .mark {
    height: 38px;
  }
}

/* ---------- Language switcher ---------- */

.header-tools {
  order: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-header .site-nav {
  order: 2;
  margin-left: auto;
}

.lang-switch {
  display: inline-grid;
  place-items: center;
  min-width: 2.6rem;
  height: 2.2rem;
  padding: 0 0.7rem;
  border: 1px solid var(--beige);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.lang-switch:hover {
  border-color: var(--rust);
  background: var(--ivory);
}

@media (min-width: 761px) {
  .header-tools {
    margin-left: 1.75rem;
  }
}
