/* =========================================================
   Biserica Ortodoxă Română "Sfântul Ierarh Nicolae", Guildford
   Stylesheet — warm, airy, icon-inspired palette
   ========================================================= */

:root {
  /* Palette */
  --cream: #faf6ef;
  --cream-deep: #f3ead9;
  --surface: #ffffff;
  --ink: #2b241d;
  --ink-soft: #5c5248;
  --muted: #8a7f72;
  --border: #e8ddca;

  --burgundy: #6d1f2b;
  --burgundy-dark: #4a1420;
  --burgundy-tint: #f7e9ea;
  --gold: #b3872f;
  --gold-light: #d9b25e;
  --gold-tint: #fbf1dd;

  --shadow-sm: 0 1px 3px rgba(43, 36, 29, 0.08);
  --shadow-md: 0 8px 24px rgba(43, 36, 29, 0.10);
  --shadow-lg: 0 20px 48px rgba(43, 36, 29, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --font-serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1120px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--burgundy-dark);
}
p { margin: 0 0 1em; }
button { font-family: inherit; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6em;
}

.section {
  padding: 72px 0;
}
.section--tight { padding: 48px 0; }
.section--alt { background: var(--surface); }
.section--band {
  background: var(--cream-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.divider-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  margin-bottom: 14px;
}
.divider-mark::before,
.divider-mark::after {
  content: "";
  height: 1px;
  width: 28px;
  background: var(--gold-light);
}
.section-head.center .divider-mark { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--burgundy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--burgundy-dark); box-shadow: var(--shadow-md); }
.btn-gold {
  background: var(--gold);
  color: #2b2010;
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { background: var(--gold-light); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); }
.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}
.btn-outline:hover { background: var(--burgundy-tint); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--burgundy-dark);
  white-space: nowrap;
}
.brand-text span {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--burgundy-tint); color: var(--burgundy); }
.main-nav a.active { background: var(--burgundy); color: #fff; }
.main-nav .nav-donate {
  background: var(--gold);
  color: #2b2010;
  margin-left: 6px;
}
.main-nav .nav-donate:hover { background: var(--gold-light); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--burgundy-dark);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background-size: cover;
  background-position: center 30%;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30,16,14,0.35) 0%, rgba(24,12,10,0.55) 55%, rgba(18,9,8,0.86) 100%);
  z-index: -1;
}
.hero-inner { padding-top: 64px; padding-bottom: 56px; max-width: 760px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 0.35em;
}
.hero-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: #f2e6d8;
  max-width: 620px;
  margin-bottom: 1.6em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  color: #fff;
  padding: 150px 0 64px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24,12,10,0.72), rgba(24,12,10,0.72));
  z-index: -1;
}
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.3em; }
.page-hero p { color: #f0e4d6; max-width: 620px; font-size: 1.05rem; margin-bottom: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 28px; }

/* ---------- Schedule ---------- */
.schedule-list { display: flex; flex-direction: column; gap: 12px; }
.schedule-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.schedule-item.is-feast {
  border-color: var(--gold-light);
  background: linear-gradient(180deg, var(--gold-tint), var(--surface) 70%);
}
.schedule-date {
  font-family: var(--font-serif);
  color: var(--burgundy);
}
.schedule-date .dow { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-family: var(--font-sans); font-weight: 700; }
.schedule-date .dom { display: block; font-size: 1.7rem; line-height: 1.1; }
.schedule-title { font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.schedule-events { display: flex; flex-direction: column; gap: 3px; color: var(--ink-soft); font-size: 0.95rem; }
.schedule-events b { color: var(--burgundy); font-weight: 700; }
.schedule-note {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--burgundy-tint);
  color: var(--burgundy-dark);
  font-size: 0.92rem;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.donate-grid { grid-template-columns: 1fr 1.5fr; gap: 32px; align-items: start; }

/* ---------- Info tiles (home quick links) ---------- */
.tile {
  padding: 30px 26px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.tile .tile-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--burgundy-tint);
  color: var(--burgundy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.tile h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tile p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }
.tile .tile-link { font-weight: 700; color: var(--burgundy); font-size: 0.9rem; }
.tile .tile-link::after { content: " →"; }
.tile .tile-link.external::after { content: none; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a, .gallery figure { display: block; margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery .span-2 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* ---------- Facebook / embed panel ---------- */
.embed-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.embed-panel .embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.embed-panel .embed-head h3 { margin: 0; font-size: 1.05rem; }
.embed-body { min-height: 220px; }
.embed-body iframe { min-height: 220px; }
.embed-fallback {
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Accordion (announcements) ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.accordion-trigger .meta { display: flex; flex-direction: column; gap: 4px; }
.accordion-trigger .date-tag {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.accordion-trigger h3 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.accordion-trigger .chevron {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
  color: var(--burgundy);
}
.accordion-item.open .chevron { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.accordion-panel-inner { padding: 0 24px 22px; color: var(--ink-soft); }
.accordion-item.open .accordion-panel { max-height: 600px; }

/* ---------- Council / people ---------- */
.person-card { text-align: center; padding: 26px 20px; }
.person-avatar {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--burgundy-tint);
  color: var(--burgundy);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.person-card h3 { font-size: 1.02rem; margin-bottom: 2px; }
.person-card .role { color: var(--gold); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.person-card .contact { font-size: 0.88rem; color: var(--ink-soft); word-break: break-word; }

/* ---------- Steps / service detail ---------- */
.service-block { padding: 44px 0; border-top: 1px solid var(--border); }
.service-block:first-of-type { border-top: none; }
.service-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.service-head h2 { margin: 0; }
.service-head .service-icon { font-size: 1.6rem; }
.service-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.service-body .note-box {
  background: var(--cream-deep);
  border-radius: var(--radius-md);
  padding: 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.service-body .note-box strong { color: var(--burgundy); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.form-row input,
.form-row textarea,
.form-row select {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 2px solid var(--gold-light);
  outline-offset: 1px;
}
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--ink-soft); }
.checkbox-row input { margin-top: 3px; }
.form-hint { font-size: 0.82rem; color: var(--muted); }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align: center; }
.stat-strip .stat b { display: block; font-family: var(--font-serif); font-size: 2rem; color: var(--burgundy); }
.stat-strip .stat span { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #f0e2df; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--burgundy-dark);
  color: #f0e6dc;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { display: flex; gap: 14px; margin-bottom: 14px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand strong { font-family: var(--font-serif); font-size: 1.1rem; color: #fff; display: block; }
.footer-brand span { font-size: 0.82rem; color: #cbb9a8; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer p { color: #d9c8b8; font-size: 0.92rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #d9c8b8; font-size: 0.92rem; }
.footer-links a:hover { color: #fff; }
.footer-charity { font-size: 0.82rem; color: #b8a591; line-height: 1.6; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.social-row a:hover { background: rgba(255,255,255,0.12); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 0.82rem;
  color: #b8a591;
  flex-wrap: wrap;
}
.footer-bottom img { height: 40px; width: auto; opacity: 0.9; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: #b8a591; }
.footer-bottom-links a:hover { color: #fff; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: #8a6a1e;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Breadcrumb-ish page intro on interior pages ---------- */
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 720px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .donate-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-body { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stat-strip { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .site-header.nav-open .main-nav a { padding: 12px 14px; }
  .site-header.nav-open .main-nav .nav-donate { margin-left: 0; text-align: center; }

  .hero { min-height: 78vh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .span-2 { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; }
  .schedule-item { grid-template-columns: 90px 1fr; padding: 16px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
  .section { padding: 52px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
