/* ============================================================
   Biserica Tabernacolul — Style Sheet (premium, glassmorphism)
   ============================================================ */

:root {
  --navy: #0f1e3d;
  --navy-light: #1a2f5a;
  --gold: #c9a45c;
  --gold-light: #e0c88f;
  --cream: #faf7f0;
  --white: #ffffff;
  --ink: #22303f;
  --muted: #5a6a7c;
  --grad-navy: linear-gradient(135deg, #0f1e3d 0%, #1a2f5a 55%, #2b4680 100%);
  --grad-gold: linear-gradient(135deg, #d4af6a, #c9a45c);
  --shadow: 0 20px 60px rgba(15, 30, 61, 0.14);
  --shadow-soft: 0 12px 40px rgba(15, 30, 61, 0.10);
  --radius: 20px;
  --radius-sm: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; }
h3 { font-size: 1.35rem; margin-bottom: 8px; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 50px;
  font-weight: 600; font-size: 0.98rem;
  transition: transform .25s, box-shadow .25s, background .25s;
  cursor: pointer; border: none; line-height: 1;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary { background: var(--grad-gold); color: #3a2a08; box-shadow: 0 10px 26px rgba(201,164,92,.35); }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(201,164,92,.5); }

.btn-light { background: var(--white); color: var(--navy); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.btn-light:hover { box-shadow: 0 16px 40px rgba(0,0,0,.28); }

.btn-ghost { border: 2px solid rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 3px;
  font-size: 0.78rem; font-weight: 600; color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow.light { color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15, 30, 61, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.logo { display: flex; align-items: center; gap: 12px; font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--white); }
.logo-icon { color: var(--gold); font-size: 1.5rem; }
.logo-text { letter-spacing: .5px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-list { display: flex; gap: 28px; }
.nav-list a {
  color: rgba(255,255,255,.85); font-weight: 500; font-size: .96rem;
  position: relative; padding: 4px 0; transition: color .2s;
}
.nav-list a:hover { color: var(--gold-light); }
.nav-list a.active { color: var(--gold-light); }
.nav-list a.active::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: var(--grad-gold); border-radius: 2px;
}
.nav-cta { padding: 11px 22px; font-size: .9rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--white); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--grad-navy);
  overflow: hidden;
  padding: 140px 0 80px;
}
.hero::before {
  content: ''; position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,164,92,.25), transparent 65%);
  top: -200px; right: -200px;
}
.hero::after {
  content: ''; position: absolute;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
  bottom: -180px; left: -140px;
}
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 20%, rgba(15,30,61,.2), transparent 70%); }
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.text-accent { color: var(--gold-light); font-style: italic; }
.hero-sub { color: rgba(255,255,255,.82); font-size: 1.16rem; max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--gold-light); animation: bounce 2s infinite; z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,12px)} }

/* ---------- Section ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* ---------- Welcome ---------- */
.welcome { background: var(--cream); }
.welcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.welcome-card {
  background: var(--white); border-radius: var(--radius);
  padding: 40px 30px; box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15,30,61,.05);
  transition: transform .3s, box-shadow .3s;
}
.welcome-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.welcome-icon { font-size: 2.2rem; color: var(--gold); margin-bottom: 20px; background: linear-gradient(135deg,#fff8ec,#f3e7cf); width: 68px; height: 68px; display: grid; place-items: center; border-radius: 18px; }

/* ---------- Next service ---------- */
.next-service { background: var(--navy); position: relative; overflow: hidden; }
.next-service::before { content:''; position:absolute; width:400px; height:400px; border-radius:50%; background:radial-gradient(circle,rgba(201,164,92,.2),transparent 65%); bottom:-180px; left:-100px; }
.next-service-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.next-service-text { max-width: 460px; }
.next-service-text h2 { color: var(--white); }
.next-service-text p { color: rgba(255,255,255,.78); }
.next-service-time { display: flex; align-items: center; gap: 22px; color: var(--white); }
.next-service-time > i { font-size: 2.2rem; color: var(--gold); }
.next-service-time span { display:block; color: rgba(255,255,255,.6); font-size:.85rem; text-transform:uppercase; letter-spacing:1px; }
.next-service-time strong { font-size: 2rem; font-family: 'Cormorant Garamond', serif; }
.time-sep { color: var(--gold); font-size:1.4rem; }

/* ---------- Quote ---------- */
.quote-section { background: var(--cream); }
.big-quote { max-width: 760px; margin-inline: auto; text-align: center; position: relative; padding: 20px 0; }
.quote-mark { font-size: 3rem; color: var(--gold); opacity:.4; margin-bottom: 16px; }
.big-quote p { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 600; color: var(--navy); line-height: 1.3; }
.big-quote cite { font-style: normal; color: var(--gold); font-size: 1.05rem; letter-spacing: 1px; }

/* ---------- CTA ---------- */
.cta-section { background: var(--grad-navy); color: var(--white); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,.8); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1428; color: rgba(255,255,255,.72); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { color: var(--white); font-size: 1.4rem; margin-bottom: 14px; }
.footer-brand p { font-size: .94rem; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.07); display: grid; place-items: center;
  color: rgba(255,255,255,.8); transition: .25s;
}
.footer-social a:hover { background: var(--gold); color: #3a2a08; transform: translateY(-3px); }
.footer-col h4 { color: var(--white); font-size: 1.1rem; margin-bottom: 18px; }
.footer-links li { font-size: .94rem; margin-bottom: 12px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-links i { margin-right: 9px; color: var(--gold); width: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: .88rem; }
.footer-bottom p { margin: 0; text-align: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 170px 0 80px;
  background: var(--grad-navy); color: var(--white); text-align: center;
  position: relative; overflow: hidden;
}
.page-hero::before { content:''; position:absolute; width:500px; height:500px; border-radius:50%; background:radial-gradient(circle,rgba(201,164,92,.2),transparent 65%); top:-200px; left:-150px; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; position: relative; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.1rem; position: relative; }

/* ---------- Two col (despre) ---------- */
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.two-col-text h2 { margin: 10px 0 18px; }
.about-card {
  background: var(--white); border-radius: var(--radius-sm);
  padding: 26px; box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--gold); margin-bottom: 18px;
}
.about-icon { color: var(--gold); font-size: 1.5rem; margin-bottom: 10px; }

/* ---------- Values ---------- */
.values-section { background: var(--white); }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.value-item { text-align: center; padding: 32px 20px; background: var(--cream); border-radius: var(--radius-sm); border: 1px solid rgba(15,30,61,.05); transition: .3s; }
.value-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.value-item i { font-size: 2rem; color: var(--gold); margin-bottom: 14px; }

/* ---------- Schedule ---------- */
.schedule-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.schedule-card { background: var(--white); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-soft); border: 1px solid rgba(15,30,61,.05); transition: .3s; position: relative; }
.schedule-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.schedule-card.featured { border: 2px solid var(--gold); }
.schedule-day { font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-size: .85rem; }
.schedule-time { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 700; color: var(--navy); margin: 6px 0 14px; }
.schedule-tag { display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(135deg,#fff8ec,#f3e7cf); color:#8a6d2f; padding: 7px 14px; border-radius: 30px; font-size: .82rem; font-weight: 600; margin-top: 12px; }

/* ---------- Events ---------- */
.events-section { background: var(--cream); }
.events-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.event-card { text-align: center; padding: 40px 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.event-icon { font-size: 2rem; color: var(--gold); width: 76px; height: 76px; display:grid; place-items:center; margin: 0 auto 18px; background: linear-gradient(135deg,#fff8ec,#f3e7cf); border-radius: 20px; }

/* ---------- Community ---------- */
.community-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.community-card { background: var(--white); border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow-soft); text-align: center; border: 1px solid rgba(15,30,61,.05); transition: .3s; }
.community-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.community-icon { font-size: 2.1rem; color: var(--gold); margin-bottom: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-list { margin-top: 28px; }
.contact-list li { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.contact-list i { font-size: 1.3rem; color: var(--gold); background: linear-gradient(135deg,#fff8ec,#f3e7cf); width: 50px; height: 50px; display:grid; place-items:center; border-radius: 14px; flex-shrink: 0; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list span { color: var(--muted); font-size:.96rem; }
.contact-social { margin-top: 26px; }
.contact-social a { background: var(--navy); color: var(--white); }
.contact-social a:hover { background: var(--gold); color:#3a2a08; }

.contact-form-wrap { background: var(--white); border-radius: var(--radius); padding: 42px; box-shadow: var(--shadow); }
.contact-form-wrap h2 { margin-bottom: 26px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 8px; font-size: .92rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid #e2e8f0;
  border-radius: 12px; font-family: inherit; font-size: .98rem;
  background: var(--cream); transition: border .2s, box-shadow .2s; color: var(--ink);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,92,.15); background: var(--white);
}
.form-status { margin-top: 16px; font-weight: 600; display: none; padding: 12px 16px; border-radius: 10px; }
.form-status.success { display:block; background:#ecfdf5; color:#047857; border:1px solid #a7f3d0; }
.form-status.error { display:block; background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; text-align: center; padding-top: 120px; }
.notfound-inner { max-width: 600px; margin-inline: auto; }
.notfound-code { font-family: 'Cormorant Garamond', serif; font-size: 7rem; font-weight: 700; color: var(--gold); line-height: 1; }
.notfound h1 { margin: 10px 0 14px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .community-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 72px; right: -100%; width: min(320px, 82%);
    height: calc(100vh - 72px); background: var(--navy);
    flex-direction: column; align-items: flex-start; padding: 40px 30px;
    gap: 30px; transition: right .35s ease; box-shadow: -20px 0 60px rgba(0,0,0,.3);
  }
  .main-nav.open { right: 0; }
  .nav-list { flex-direction: column; gap: 22px; }
  .nav-list a { font-size: 1.15rem; }
  .nav-cta { align-self: flex-start; }
  .welcome-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .next-service-time { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
}
