/* ==========================================================================
   Parroquia Jesús Caído — Itagüí, Antioquia
   Design tokens: brick facade + Passion/Via Crucis palette
   ========================================================================== */

:root {
  /* Color — pulled from the church's actual brick facade + liturgical Passion tones */
  --wine:        #4A1A20;   /* deep burgundy — Passion, primary dark */
  --wine-deep:   #341015;   /* near-black wine, footer/overlay */
  --brick:       #A6512F;   /* terracotta brick, from the facade itself */
  --brick-light: #C97142;
  --gold:        #C49A3D;   /* aged gold accent */
  --gold-light:  #D6B262;
  --cream:       #F3ECDE;   /* warm stone/parchment background */
  --stone:       #FAF7F0;   /* lightest background */
  --ink:         #2B211C;   /* warm near-black text */
  --ink-soft:    #5B4E44;   /* secondary text */
  --line:        #E1D5BE;   /* hairline borders on cream */

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: var(--font-body);
  background: var(--stone);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--wine);
  line-height: 1.15;
}

em { font-style: italic; color: var(--brick); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------
   Signature device: Via Crucis station numerals
   III · VII · IX are the three stations where Christ falls beneath
   the cross — the parish's own namesake. Used as section eyebrows,
   not decoration for decoration's sake.
   -------------------------------------------------------------------- */
.station-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--brick);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.station-mark::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

/* --------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(52, 16, 21, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(196, 154, 61, 0.25);
  transition: background 0.3s ease;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--stone);
  letter-spacing: 0.01em;
}
.brand img { width: 30px; height: 30px; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  color: var(--stone);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  opacity: 0.88;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}
.nav-links a:hover { opacity: 1; color: var(--gold-light); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  display: flex;
  border: 1px solid rgba(196, 154, 61, 0.4);
  border-radius: 20px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle button.active {
  background: var(--gold);
  color: var(--wine-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--stone);
  border-radius: 1px;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: var(--wine-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 26px;
    gap: 16px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(196,154,61,0.25);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(52,16,21,0.35) 0%, rgba(52,16,21,0.55) 55%, rgba(52,16,21,0.96) 100%), var(--wine-deep);
  background-size: cover;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 30%;
  z-index: -1;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px 76px;
  width: 100%;
}
.hero .station-mark { color: var(--gold-light); }
.hero .station-mark::before { background: var(--gold-light); }

.hero h1 {
  color: var(--stone);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  max-width: 14ch;
}
.hero h1 em { color: var(--gold-light); font-style: italic; }

.hero-sub {
  margin-top: 18px;
  color: rgba(243, 236, 222, 0.82);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--wine-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border-color: rgba(243,236,222,0.5); color: var(--stone); }
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* --------------------------------------------------------------------
   Section framework
   -------------------------------------------------------------------- */
section { padding: 108px 0; }
.section-alt { background: var(--cream); }
.section-wine { background: var(--wine); color: var(--stone); }
.section-wine h2 { color: var(--stone); }
.section-wine .station-mark { color: var(--gold-light); }
.section-wine .station-mark::before { background: var(--gold-light); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }
.section-wine .section-head p { color: rgba(243,236,222,0.78); }

/* --------------------------------------------------------------------
   Mass schedule
   -------------------------------------------------------------------- */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.schedule-card {
  background: var(--stone);
  padding: 28px 26px;
}
.schedule-card h3 {
  font-size: 1.05rem;
  color: var(--brick);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.schedule-card ul { list-style: none; }
.schedule-card li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.schedule-card li span:last-child {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
}
.schedule-card .no-mass { font-style: italic; color: var(--ink-soft); opacity: 0.7; }

.office-note {
  margin-top: 40px;
  padding: 22px 26px;
  background: rgba(196,154,61,0.1);
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.office-note strong { color: var(--ink); }

/* --------------------------------------------------------------------
   History / two column
   -------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
}
.split-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
}
.split-text p { margin-top: 16px; color: var(--ink-soft); }
.split-text p:first-of-type { margin-top: 20px; }

.timeline {
  margin-top: 30px;
  border-left: 2px solid var(--gold);
  padding-left: 24px;
}
.timeline-item { margin-bottom: 22px; }
.timeline-item .year {
  font-family: var(--font-display);
  color: var(--brick);
  font-weight: 600;
  font-size: 1.1rem;
}
.timeline-item p { color: var(--ink-soft); margin-top: 4px; font-size: 0.95rem; }

/* --------------------------------------------------------------------
   Sacraments
   -------------------------------------------------------------------- */
.sac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.sac-card {
  background: var(--stone);
  border: 1px solid var(--line);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.sac-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.sac-card .roman {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.sac-card h3 { margin-top: 10px; font-size: 1.3rem; }
.sac-card p { margin-top: 12px; color: var(--ink-soft); font-size: 0.93rem; }
.sac-card a.more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brick);
  border-bottom: 1px solid var(--brick);
}

/* --------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 10px;
}
.gallery-grid a { grid-column: span 2; grid-row: span 1; overflow: hidden; position: relative; }
.gallery-grid a:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.gallery-grid a:nth-child(4) { grid-row: span 2; }
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-grid a, .gallery-grid a:nth-child(1), .gallery-grid a:nth-child(4) { grid-column: span 1; grid-row: span 1; }
}

/* --------------------------------------------------------------------
   Location / community
   -------------------------------------------------------------------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .location-grid { grid-template-columns: 1fr; } }
.map-embed {
  width: 100%; height: 420px; border: 0; border-radius: 2px;
  filter: sepia(12%) saturate(85%);
}
.info-list { list-style: none; }
.info-list li {
  display: flex; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: none; }
.info-list .label {
  min-width: 110px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brick);
  font-weight: 700;
  padding-top: 2px;
}
.info-list .value { color: var(--ink); }
.info-list .value a { color: var(--wine); border-bottom: 1px solid var(--gold); }

.social-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.social-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}
.social-pill:hover { border-color: var(--gold); color: var(--brick); }
.social-pill svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------
   Community / ministries
   -------------------------------------------------------------------- */
.min-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 10px;
}
.min-card {
  padding: 26px 24px;
  background: rgba(243,236,222,0.06);
  border: 1px solid rgba(196,154,61,0.25);
}
.min-card h4 { color: var(--gold-light); font-size: 1.05rem; }
.min-card p { color: rgba(243,236,222,0.75); font-size: 0.9rem; margin-top: 8px; }

/* --------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------- */
.cta-band {
  background: var(--brick);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--stone); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(250,247,240,0.85); margin-top: 12px; }
.cta-band .btn-gold { margin-top: 26px; }

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
footer {
  background: var(--wine-deep);
  color: rgba(243,236,222,0.7);
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(196,154,61,0.2);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
footer h4 {
  color: var(--gold-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
footer .brand { color: var(--stone); margin-bottom: 12px; }
footer p { font-size: 0.9rem; line-height: 1.7; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; font-size: 0.9rem; }
footer a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px;
  font-size: 0.8rem;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { opacity: 0.75; }
.footer-bottom a:hover { opacity: 1; }

/* --------------------------------------------------------------------
   Inner pages (historia / sacramentos / contact / etc.)
   -------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%);
  padding: 168px 0 80px;
  color: var(--stone);
}
.page-hero h1 { color: var(--stone); font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.page-hero p { margin-top: 14px; color: rgba(243,236,222,0.78); max-width: 60ch; }
.breadcrumb { font-size: 0.82rem; color: var(--gold-light); margin-bottom: 18px; }
.breadcrumb a { opacity: 0.85; } .breadcrumb a:hover { opacity: 1; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 44px; margin-bottom: 14px; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin-bottom: 16px; }
.prose ul { margin: 16px 0 16px 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }

.req-card {
  background: var(--stone);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brick);
  padding: 26px 28px;
  margin-bottom: 20px;
}
.req-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.req-card ul { margin-left: 20px; color: var(--ink-soft); font-size: 0.94rem; }
.req-card li { margin-bottom: 6px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brick); margin-bottom: 8px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--stone);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  border-radius: 2px;
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--gold);
  outline: none;
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }

/* 404 */
.error-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%);
  color: var(--stone);
  padding: 40px 24px;
}
.error-page .roman-big {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(4rem, 14vw, 8rem);
  color: var(--gold);
  line-height: 1;
}
.error-page h1 { color: var(--stone); margin-top: 16px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.error-page p { color: rgba(243,236,222,0.75); margin-top: 14px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.error-page .btn { margin-top: 30px; }

/* Utility */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-lg { margin-top: 48px; }
