/* ===================================================================
   Emaús Pennsylvania — hoja de estilos
   =================================================================== */

:root {
  --navy: #16233f;
  --navy-light: #22335a;
  --gold: #c8a24d;
  --gold-light: #e4c887;
  --cream: #faf6ee;
  --cream-dark: #f0e9d8;
  --text: #2c2a26;
  --text-soft: #5a5650;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(22, 35, 63, 0.12);
  --radius: 14px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: "Trajan Pro", "Optima", "Palatino Linotype", Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

/* Texto justificado (ambos márgenes alineados) en los párrafos de contenido */
.block p,
.contact-wrap > div > p,
form .form-note {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Excepciones: bloques que deben permanecer centrados */
.section-head p,
.callout p,
.hero-sub {
  text-align: center;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text {
  font-family: "Trajan Pro", "Optima", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.brand-text small {
  display: block;
  font-family: Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  font-weight: normal;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(200, 162, 77, 0.18);
  color: var(--gold-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(250, 246, 238, 0.4);
  border-radius: 6px;
  color: var(--cream);
  font-size: 1.1rem;
  padding: 6px 10px;
  cursor: pointer;
}

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

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,35,63,0.55) 0%, rgba(22,35,63,0.78) 100%);
  z-index: -1;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  width: 100%;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.3em;
}

.hero .hero-sub {
  color: var(--cream);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto 1.6em;
}

.hero-small {
  min-height: 34vh;
}

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

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  font-weight: bold;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200,162,77,0.4); }

.btn-outline {
  border-color: var(--cream);
  color: var(--white);
}

.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover { background: rgba(22,35,63,0.06); }

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

section.block {
  padding: 72px 0;
}

section.block.alt {
  background: var(--cream-dark);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: bold;
  margin-bottom: 10px;
}

.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.two-col.reverse .img-col { order: 2; }

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 18px auto;
  border: none;
}

.divider.left { margin: 18px 0; }

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

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  height: 190px;
  object-fit: cover;
}

.card-body {
  padding: 24px 26px 28px;
}

.card-body h3 { font-size: 1.2rem; margin-bottom: 0.4em; }

.tag {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--navy);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.tag.soon {
  background: rgba(200,162,77,0.18);
  color: #8a6a1f;
}

.card-meta {
  font-size: 0.92rem;
  color: var(--text-soft);
  margin: 4px 0;
  display: flex;
  gap: 8px;
}

/* ---------- Retreats page ---------- */

.retreat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
  align-items: center;
}

.retreat-card + .retreat-card { margin-top: 24px; }

.retreat-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.retreat-icon svg { width: 48px; height: 48px; }

.callout {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.callout h3 { color: var(--white); }
.callout p { color: rgba(250,246,238,0.85); }
.callout p a { color: var(--gold-light); }

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

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.info-list .icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}
.info-list a { color: var(--navy); }

form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.form-row { margin-bottom: 18px; }

label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd4bf;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  color: var(--text);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

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

.form-note {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 10px;
}

button[type="submit"] {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

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

.site-footer {
  background: var(--navy);
  color: rgba(250,246,238,0.8);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(250,246,238,0.15);
}

.footer-grid h4 {
  color: var(--gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(250,246,238,0.8); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-light); }

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(250,246,238,0.55);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .two-col, .contact-wrap { grid-template-columns: 1fr; }
  .two-col .img-col, .two-col.reverse .img-col { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .retreat-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    flex-direction: column;
    padding: 10px 24px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-block; }
}
