/* Iglesia Anglo Universal Apostólica en Cuba */
:root {
  --wine: #8B2E3A;
  --wine-dark: #6B1F2C;
  --wine-soft: #A84555;
  --parchment: #F7F1E8;
  --parchment-warm: #EFE6D6;
  --ink: #1C1412;
  --muted: #5C4F4A;
  --subtle: #8A7B74;
  --surface: #FFFcf7;
  --sanctuary: #2A1A1C;
  --gold: #C4A35A;
  --border: rgba(139, 46, 58, 0.15);
  --shadow: 0 8px 30px rgba(28, 20, 18, 0.08);
  --radius: 12px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.65;
  font-size: 1.05rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration: none; }
a:hover { text-decoration: underline; }
button, [role="button"], .btn { cursor: pointer; }

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 241, 232, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-accent { height: 3px; background: var(--wine); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-desktop {
  display: none;
  gap: 0.15rem;
  align-items: center;
}
.nav-desktop a {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--wine);
  background: rgba(139, 46, 58, 0.06);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  transition: background 0.15s, transform 0.1s, color 0.15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: var(--parchment-warm); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 0.5rem;
  border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--parchment-warm); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
.btn-icon { width: 42px; height: 42px; padding: 0; }

.menu-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 0.75rem 0 1rem;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--ink);
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .btn { width: 100%; margin-top: 0.75rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(28, 20, 18, 0.88) 0%,
    rgba(28, 20, 18, 0.45) 45%,
    rgba(28, 20, 18, 0.25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0 3rem;
  max-width: 720px;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine-soft);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Sections */
section { padding: 3.5rem 0; }
.section-warm { background: var(--parchment-warm); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.section-intro {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}
.grid-2 {
  display: grid;
  gap: 2rem;
}
.grid-3 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .btn-desktop { display: inline-flex !important; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.card p { color: var(--muted); font-size: 0.98rem; }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(139, 46, 58, 0.1);
  color: var(--wine);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

/* Pastor block */
.pastor-photo {
  border-radius: var(--radius);
  object-fit: cover;
  object-position: top;
  width: 100%;
  max-height: 520px;
  box-shadow: var(--shadow);
}
.pastor-meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Clergy */
.clergy-list {
  display: grid;
  gap: 0.75rem;
}
.cleric {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.cleric-grade {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 0.15rem;
}
.cleric-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

/* Schedule */
.schedule-day {
  margin-bottom: 1.25rem;
}
.schedule-day h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--wine);
}
.schedule-item {
  display: flex;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.schedule-item:last-child { border-bottom: none; }
.schedule-time {
  font-weight: 700;
  min-width: 4.5rem;
  color: var(--ink);
}
.schedule-label { color: var(--muted); }

/* Page hero (inner pages) */
.page-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, var(--parchment-warm), var(--parchment));
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
}
.page-hero p {
  color: var(--muted);
  max-width: 36rem;
  margin-top: 0.75rem;
}

/* Quote */
.verse-block {
  border-left: 3px solid var(--wine);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.5rem 0;
}
.verse-block p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.4;
}
.verse-block cite {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--subtle);
}

/* Footer */
.site-footer {
  background: var(--sanctuary);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 0;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer .brand { color: #fff; margin-bottom: 0.75rem; }
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text span { color: rgba(255,255,255,0.55); }
.footer-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.85rem;
}
.site-footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.1rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(139, 46, 58, 0.35);
  border-color: var(--wine);
}
textarea { min-height: 120px; resize: vertical; }

.prose p { margin-bottom: 1rem; color: var(--muted); }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 1.75rem 0 0.6rem;
  color: var(--ink);
}
.prose ul { margin: 0 0 1rem 1.25rem; color: var(--muted); }
.prose li { margin-bottom: 0.35rem; }

.rounded-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine);
  background: rgba(139, 46, 58, 0.1);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.btn-desktop { display: none !important; }
