/* ============================================
   Casa de Maquir - Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --black: #0b0a08;
  --near-black: #141210;
  --gold: #99802f;
  --gold-hover: #b3963e;
  --gold-light: #c9a24d;
  --gold-pale: #e6d39a;
  --cream: #faf6ee;
  --cream-2: #f1ead9;
  --text-dark: #201d17;
  --text-muted-dark: #6b6455;
  --text-light: #f6f1e6;
  --text-muted-light: #a89f8b;
  --border-dark: rgba(230, 211, 154, 0.16);
  --border-light: rgba(32, 29, 23, 0.1);

  --font-serif: 'Marcellus', 'Georgia', serif;
  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

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

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}
section.dark .eyebrow, .dark .eyebrow { color: var(--gold-pale); }

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

section { padding: 96px 0; position: relative; }
@media (max-width: 640px) { section { padding: 64px 0; } }

.dark { background: var(--black); color: var(--text-light); }
.cream2 { background: var(--cream-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: var(--cream);
}
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-2px); }
.btn-outline {
  border-color: var(--gold-pale);
  color: var(--text-light);
}
.btn-outline:hover { background: rgba(230,211,154,0.1); transform: translateY(-2px); }
.btn-outline-dark {
  border-color: var(--gold);
  color: var(--text-dark);
}
.btn-outline-dark:hover { background: rgba(153,128,47,0.08); transform: translateY(-2px); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: rgba(11,10,8,0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom-color: var(--border-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand .full-logo { height: 72px; width: auto; }
.brand-text { font-family: var(--font-serif); color: var(--text-light); font-size: 1.05rem; letter-spacing: 0.04em; line-height: 1.15; }
.brand-text small { display: block; font-family: var(--font-sans); font-size: 0.62rem; letter-spacing: 0.18em; color: var(--gold-pale); margin-top: 2px; }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  color: var(--text-light);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}
.nav-links a.active, .nav-links a:hover { color: var(--gold-pale); }
.nav-links a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold-pale);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: var(--cream) !important;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 0.85rem !important;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover { background: var(--gold-hover); transform: translateY(-2px); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span { width: 24px; height: 1.5px; background: var(--text-light); }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 0; right: -100%; height: 100vh; width: min(78vw, 320px);
    background: var(--black); flex-direction: column; justify-content: center; gap: 30px;
    transition: right 0.35s ease; border-left: 1px solid var(--border-dark); }
  .nav-links.open { right: 0; }
  .menu-toggle { display: flex; z-index: 210; }
  .nav-links a { font-size: 1.1rem; }
}

/* Hero */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  background: var(--black);
  color: var(--text-light);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,8,0.35) 0%, rgba(11,10,8,0.55) 55%, rgba(11,10,8,0.96) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 80px; width: 100%; }
.hero .eyebrow { color: var(--gold-pale); }
.hero p.lead { max-width: 560px; font-size: 1.08rem; color: var(--text-muted-light); margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Cards */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(32,29,23,0.08); }
.dark .card {
  background: var(--near-black);
  border-color: var(--border-dark);
}
.card .num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted-dark); font-size: 0.95rem; }
.dark .card p { color: var(--text-muted-light); }

/* Section heading block */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted-dark); margin-top: 16px; font-size: 1.02rem; }
.dark .section-head p { color: var(--text-muted-light); }

/* Quote */
.quote-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.quote-block blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.5;
  color: var(--text-light);
}
.quote-block cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  color: var(--gold-pale);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Schedule */
.schedule-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-dark);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-day {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-pale);
  width: 130px;
  flex-shrink: 0;
}
.schedule-info h4 { font-family: var(--font-sans); font-weight: 500; font-size: 1.05rem; margin-bottom: 4px; }
.schedule-info span { color: var(--text-muted-light); font-size: 0.9rem; }
.schedule-time {
  margin-left: auto;
  font-family: var(--font-serif);
  color: var(--text-light);
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* Ministry cards */
.min-card {
  padding: 34px 28px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}
.min-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(32,29,23,0.08); border-color: var(--gold-light); }
.icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(153,128,47,0.1);
  color: var(--gold);
  margin-bottom: 18px;
}
.min-card .icon { width: 52px; height: 52px; margin-bottom: 20px; }
.icon svg { width: 22px; height: 22px; }
.min-card p { color: var(--text-muted-dark); font-size: 0.92rem; }

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--text-muted-light);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--font-sans);
  color: var(--text-light);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-grid ul li { margin-bottom: 11px; font-size: 0.92rem; }
.footer-grid ul li a:hover { color: var(--gold-pale); }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: 0.8rem; flex-wrap: wrap; gap: 12px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.social-row a:hover { border-color: var(--gold-pale); color: var(--gold-pale); }
.social-row svg { width: 16px; height: 16px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* Page hero (inner pages, shorter) */
.page-hero {
  background: var(--black);
  color: var(--text-light);
  padding: 168px 0 72px;
  text-align: center;
}
.page-hero .eyebrow { color: var(--gold-pale); }
.page-hero p { color: var(--text-muted-light); max-width: 560px; margin: 18px auto 0; }

/* Breadcrumb-ish divider line */
.divider {
  width: 60px; height: 2px; background: var(--gold);
  margin: 0 auto 20px;
}
.section-head:not(.center) .divider { margin-left: 0; }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { align-items: center; }
  .hero-inner { padding-bottom: 0; text-align: left; }
}
