/* Styling for Pomisna Church — Храм Святителя Миколая */
@import url('https://fonts.googleapis.com/css2?family=Philosopher:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --primary: #2d3748;
  --primary-dark: #1a202c;
  --primary-light: #4a5568;
  --accent: #c09440;
  --accent-light: #d6af68;
  --accent-hover: #a37c35;
  --text-main: #333333;
  --text-muted: #555555;
  --text-light: #999999;
  --bg-main: #ffffff;
  --bg-alt: #f7f7f5;
  --bg-card: #ffffff;
  --border: #e8e8e4;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.11);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.13);
  --radius: 6px;
  --font-serif: 'Philosopher', Georgia, serif;
  --font-sans: 'Philosopher', 'Segoe UI', sans-serif;
  --transition: 0.24s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Top Bar ─── */
.top-banner {
  background: var(--primary-dark);
  color: #c0c8d0;
  font-size: 0.85rem;
  padding: 7px 0;
}
.top-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-banner a { color: #dde0e6; }
.top-banner a:hover { color: var(--accent-light); }
.badge-np {
  background: var(--accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-right: 8px;
}

/* ─── Header & Nav ─── */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 2.5px solid var(--accent);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
}
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-icon img {
  height: 56px;
  width: auto;
  transition: transform var(--transition);
}
.logo-icon img:hover { transform: scale(1.04); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}
.nav-link {
  display: block;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 4px;
  position: relative;
  transition: color var(--transition), background var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10px; right: 10px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
  border-radius: 1px;
}
.nav-link:hover { color: var(--accent); background: rgba(192,148,64,0.07); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--primary-dark);
  padding: 4px 8px;
  line-height: 1;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark); color: #fff !important; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff !important; }
.btn-accent:hover { background: var(--accent-hover); color: #fff !important; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--accent); color: var(--accent) !important; background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff !important; transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ─── Hero ─── */
.hero {
  position: relative;
  background: url('https://static.wixstatic.com/media/9e7bb4_cfc012e223c741c393e187a7d0f5ee9a~mv2.jpg') center/cover no-repeat;
  color: #fff;
  padding: 120px 0 100px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 1px 2px 10px rgba(0,0,0,0.55);
  letter-spacing: 0.02em;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 720px;
  margin: 0 auto 34px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0.92;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── Page Header (inner pages) ─── */
.page-header {
  background: var(--primary-dark);
  color: #fff;
  padding: 52px 0 42px;
  text-align: center;
  border-bottom: 3px solid var(--accent);
}
.page-header h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}
.page-header p { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin-bottom: 14px; }
.breadcrumbs { font-size: 0.84rem; color: rgba(255,255,255,0.5); }
.breadcrumbs a { color: var(--accent-light); }
.breadcrumbs a:hover { color: #fff; }

/* ─── Section Tag ─── */
.section-tag {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

/* ─── Sections ─── */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 14px;
  color: var(--primary);
}
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); }

/* ─── Grids ─── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 44px; }

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card > img {
  width: calc(100% + 56px);
  height: 220px;
  object-fit: cover;
  margin: -28px -28px 24px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); margin-bottom: 18px; flex-grow: 1; font-size: 0.95rem; }

/* ─── Clergy Card ─── */
.clergy-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.clergy-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.clergy-avatar {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 0;
}
.clergy-card-body { padding: 20px 20px 24px; }
.clergy-title {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
  font-size: 0.8rem;
}
.clergy-name { font-size: 1.35rem; margin-bottom: 10px; }
.clergy-bio { font-size: 0.9rem; color: var(--text-muted); text-align: left; line-height: 1.6; }

/* ─── News Items ─── */
.news-item {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-item:hover { transform: translateX(5px); box-shadow: var(--shadow-md); }
.news-date {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.news-title { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 8px; }
.news-item p { font-size: 0.94rem; color: var(--text-muted); }

/* ─── Forms ─── */
.form-box {
  background: #fff;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-dark);
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.97rem;
  color: var(--text-main);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,148,64,0.14);
}
textarea.form-control { min-height: 140px; resize: vertical; }
.form-help { font-size: 0.82rem; color: var(--text-light); margin-top: 5px; }

/* ─── Alert Boxes ─── */
.alert-box {
  padding: 15px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.94rem;
}
.alert-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }
.alert-info { background: #eff6ff; border: 1.5px solid #93c5fd; color: #1e40af; }

/* ─── Footer ─── */
.footer {
  background: var(--primary-dark);
  color: #a8b0bc;
  padding: 60px 0 28px;
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: #a8b0bc; font-size: 0.93rem; }
.footer-links a:hover { color: var(--accent-light); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer p { font-size: 0.9rem; line-height: 1.75; margin-bottom: 8px; }
.footer a { color: var(--accent-light); }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  text-align: center;
  font-size: 0.84rem;
  color: #6b7588;
}
.footer-bottom a { color: #6b7588; }
.footer-bottom a:hover { color: var(--accent-light); }

/* ─── Back to Top Button ─── */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 999;
}
#backToTop.visible { opacity: 1; visibility: visible; }
#backToTop:hover { background: var(--accent-hover); transform: translateY(-3px); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav-menu { gap: 1px; }
  .nav-link { font-size: 0.82rem; padding: 5px 7px; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26,32,44,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    display: none;
    z-index: 9999;
  }
  .nav-menu.open { display: flex; }
  .nav-link { color: #e0e4ec; font-size: 1.2rem; padding: 12px 20px; width: 100%; text-align: center; }
  .nav-link:hover, .nav-link.active { color: var(--accent-light); background: rgba(255,255,255,0.06); }
  .nav-link::after { display: none; }
  .hero { padding: 80px 0 65px; }
  .section { padding: 50px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .card > img { width: calc(100% + 56px); }
  .page-header { padding: 36px 0 28px; }
  .form-box { padding: 22px 18px; }
  #backToTop { bottom: 18px; right: 18px; }
}

@media (max-width: 480px) {
  .top-banner .container { flex-direction: column; align-items: flex-start; gap: 4px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}

/* ─── Requisites Box (About / Donate pages) ─── */
.requisites-box {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-top: 4px solid var(--accent);
  padding: 22px 24px;
  border-radius: var(--radius);
  margin-top: 10px;
}
.requisites-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.requisites-item:last-child { border-bottom: none; }
.requisites-label { color: var(--text-muted); flex-shrink: 0; min-width: 130px; font-weight: 600; }
.requisites-value { font-weight: 700; color: var(--primary-dark); }

/* ─── Card Icon ─── */
.card-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1;
}

/* ─── Nonprofit Highlight Banner ─── */
.nonprofit-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2d4a6d 100%);
  color: #fff;
  padding: 28px 32px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  border-left: 6px solid var(--accent);
}
.nonprofit-banner h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.nonprofit-banner p { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin: 0; }
.nonprofit-banner .np-code {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 3px 12px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 8px;
  letter-spacing: 0.06em;
}

/* ─── Skip to content link (accessibility) ─── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; color: #fff; }

