/* ====================================================================
   Parohia Precista – Târgu Ocna
   Paletă: bordo (turle) · piatră/crem · auriu
   ==================================================================== */

:root{
  --burgundy:      #7a1f24;
  --burgundy-dark: #561418;
  --burgundy-soft: #9a3a3f;
  --gold:          #c19a3e;
  --gold-light:    #d8b85f;
  --cream:         #faf6ee;
  --stone:         #efe7d6;
  --stone-line:    #e2d6bd;
  --ink:           #2a2420;
  --muted:         #6f655a;
  --white:         #ffffff;

  --maxw: 1140px;
  --radius: 6px;
  --shadow-sm: 0 2px 10px rgba(42,36,32,.08);
  --shadow-md: 0 12px 34px rgba(42,36,32,.14);
  --ff-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-sans:  "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:84px; overflow-x:hidden; }
body{
  margin:0;
  overflow-x:hidden;
  font-family:var(--ff-sans);
  color:var(--ink);
  background:var(--cream);
  line-height:1.65;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--burgundy); text-decoration:none; }
h1,h2,h3{ font-family:var(--ff-serif); font-weight:600; line-height:1.2; color:var(--ink); margin:0 0 .5em; }

.container{ width:min(100% - 2.4rem, var(--maxw)); margin-inline:auto; }

.section{ padding:5.5rem 0; }
.section-alt{ background:var(--stone); }
.section-dark{ background:var(--burgundy-dark); color:#f3e7d9; }

.section-head{ text-align:center; max-width:720px; margin:0 auto 3rem; }
.section-head h2{ font-size:clamp(1.8rem,3.4vw,2.6rem); }
.section-sub{ color:var(--muted); margin-top:.4rem; }
.eyebrow{
  text-transform:uppercase; letter-spacing:.18em; font-size:.78rem; font-weight:700;
  color:var(--gold); margin:0 0 .6rem;
}
.eyebrow-light{ color:var(--gold-light); }

/* ---------- Butoane ---------- */
.btn{
  display:inline-block; padding:.8rem 1.6rem; border-radius:var(--radius);
  font-weight:600; font-size:.98rem; cursor:pointer; border:2px solid transparent;
  transition:transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--gold); color:#3a2c08; }
.btn-primary:hover{ background:var(--gold-light); }
.btn-ghost{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.6); }
.btn-ghost:hover{ background:rgba(255,255,255,.12); }
.btn-outline{ background:transparent; color:var(--burgundy); border-color:var(--burgundy); }
.btn-outline:hover{ background:var(--burgundy); color:var(--white); }
.btn-more{ margin-top:1.4rem; }

/* ====================================================================
   HEADER
   ==================================================================== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,246,238,.95); backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--stone-line);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; min-height:72px; gap:1rem; }
.brand{ display:flex; align-items:center; gap:.7rem; color:var(--ink); }
.brand-mark{ display:grid; place-items:center; flex:0 0 auto; }
.brand-mark img{
  width:54px; height:54px; border-radius:50%; object-fit:cover;
  border:2px solid var(--gold); box-shadow:var(--shadow-sm); background:var(--stone);
}
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-text strong{ font-family:var(--ff-serif); font-size:1.5rem; line-height:1.12; color:var(--burgundy); }
.brand-text small{ color:#5d5349; font-size:1rem; letter-spacing:.01em; }

.nav-desktop{ display:flex; align-items:center; gap:1.6rem; }
.nav-desktop a{ color:var(--ink); font-weight:600; font-size:.96rem; position:relative; }
.nav-desktop a:not(.nav-cta)::after{
  content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0; background:var(--gold);
  transition:width .2s ease;
}
.nav-desktop a:not(.nav-cta):hover::after{ width:100%; }
.nav-cta{ background:var(--burgundy); color:var(--white)!important; padding:.5rem 1.1rem; border-radius:var(--radius); }
.nav-cta:hover{ background:var(--burgundy-dark); }

/* hamburger */
.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer;
  padding:.4rem; margin:-.4rem;
}
.nav-toggle span{ width:26px; height:2.5px; background:var(--ink); border-radius:2px; transition:.25s; }

/* ---------- Meniu mobil off-canvas ---------- */
.nav-overlay{
  position:fixed; inset:0; background:rgba(20,12,10,.5); z-index:60; opacity:0;
  animation:fade .25s forwards;
}
@keyframes fade{ to{ opacity:1; } }
.nav-mobile{
  position:fixed; top:0; right:0; height:100%; width:min(82vw,320px); z-index:70;
  background:var(--cream); box-shadow:var(--shadow-md);
  padding:0 0 2rem; flex-direction:column; display:none;
}
.nav-mobile.open{ display:flex; animation:navIn .28s ease; }
@keyframes navIn{ from{ transform:translateX(100%); } to{ transform:translateX(0); } }
.nav-mobile-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:1.1rem 1.4rem; border-bottom:1px solid var(--stone-line);
  font-family:var(--ff-serif); font-size:1.1rem; color:var(--burgundy);
}
.nav-close{ background:none; border:0; font-size:2rem; line-height:1; color:var(--ink); cursor:pointer; }
.nav-mobile nav{ display:flex; flex-direction:column; padding:.6rem 0; }
.nav-mobile nav a{
  padding:.9rem 1.4rem; color:var(--ink); font-weight:600; border-bottom:1px solid var(--stone-line);
}
.nav-mobile nav a:hover{ background:var(--stone); color:var(--burgundy); }

/* ====================================================================
   HERO
   ==================================================================== */
.hero{
  position:relative; min-height:82vh; display:flex; align-items:center;
  color:var(--white); text-align:center; overflow:hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(154,58,63,.35), transparent 60%),
    linear-gradient(160deg, #5a1418 0%, #7a1f24 45%, #3c0e11 100%);
}
/* dacă există assets/hero.jpg, decomentează în main.js logica de fundal */
.hero::before{
  content:""; position:absolute; inset:0;
  background-image:url("../assets/hero.jpg");
  background-size:cover; background-position:center;
  opacity:0; /* devine 1 dacă imaginea există (vezi main.js) */
  transition:opacity .6s ease;
}
.hero-overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(40,12,14,.35), rgba(40,12,14,.72)); z-index:1; }
.hero-content{ position:relative; z-index:2; width:100%; max-width:760px; min-width:0; }
.hero-kicker{ text-transform:uppercase; letter-spacing:.2em; font-size:.8rem; color:var(--gold-light); font-weight:700; }
.hero h1{ color:#fff; font-size:clamp(2rem,5.2vw,3.6rem); margin:.5rem 0 1rem; overflow-wrap:break-word; }
.hero h1 span{ display:block; font-size:.5em; font-weight:500; color:var(--gold-light); margin-top:.5rem; letter-spacing:.02em; }
.hero-lead{ font-size:clamp(1.05rem,2.2vw,1.3rem); color:#f2e7da; max-width:640px; margin:0 auto 2rem; }
.hero-actions{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.hero-scroll{
  position:absolute; bottom:1.4rem; left:50%; transform:translateX(-50%); z-index:2;
  color:#fff; font-size:1.5rem; opacity:.85; animation:bounce 2s infinite;
}
@keyframes bounce{ 0%,100%{ transform:translate(-50%,0); } 50%{ transform:translate(-50%,8px); } }

/* ====================================================================
   INTRO (cifre)
   ==================================================================== */
.intro{ padding:4rem 0; }
.intro-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.4rem; }
.intro-item{
  background:var(--white); border:1px solid var(--stone-line); border-radius:var(--radius);
  padding:1.8rem 1.4rem; text-align:center; box-shadow:var(--shadow-sm);
  border-top:3px solid var(--burgundy);
}
.intro-year{ font-family:var(--ff-serif); font-size:2.2rem; color:var(--burgundy); display:block; }
.intro-item h3{ font-size:1.1rem; margin:.3rem 0 .4rem; }
.intro-item p{ color:var(--muted); font-size:.92rem; margin:0; }

/* ====================================================================
   ISTORIC
   ==================================================================== */
.istoric-layout{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:3rem; align-items:start; }
.istoric-figure{ position:sticky; top:96px; }
.istoric-figure img{ width:100%; border-radius:var(--radius); box-shadow:var(--shadow-md); background:var(--stone); }
.istoric-figure figcaption{ font-size:.82rem; color:var(--muted); margin-top:.6rem; font-style:italic; text-align:center; }
.istoric-text p{ margin:0 0 1.1rem; }
.istoric-text h3{ font-size:1.3rem; color:var(--burgundy); margin-top:1.8rem; }
.istoric-text blockquote{
  margin:1.4rem 0; padding:1.1rem 1.4rem; background:var(--stone);
  border-left:4px solid var(--gold); border-radius:0 var(--radius) var(--radius) 0;
  font-style:italic; color:#4a3f36;
}

/* ====================================================================
   PROGRAM SLUJBE
   ==================================================================== */
.program-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.4rem; }
.program-card{
  background:var(--white); border:1px solid var(--stone-line); border-radius:var(--radius);
  padding:1.6rem; box-shadow:var(--shadow-sm);
}
.program-card--accent{ background:var(--burgundy); color:#f3e7d9; border-color:var(--burgundy); }
.program-day{
  font-family:var(--ff-serif); font-size:1.25rem; color:var(--burgundy);
  border-bottom:2px solid var(--stone-line); padding-bottom:.6rem; margin-bottom:.9rem;
}
.program-card--accent .program-day{ color:var(--gold-light); border-color:rgba(255,255,255,.25); }
.program-card ul{ list-style:none; margin:0; padding:0; }
.program-card li{ display:flex; justify-content:space-between; gap:1rem; padding:.35rem 0; font-size:.96rem; }
.program-card .time{ font-weight:700; color:var(--gold); white-space:nowrap; }
.program-card--accent .time{ color:var(--gold-light); }
.program-note{ text-align:center; color:var(--muted); font-size:.85rem; margin-top:1.6rem; }

/* ====================================================================
   ANUNTURI
   ==================================================================== */
.news-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem; }
.news-card{
  background:var(--white); border:1px solid var(--stone-line); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow-sm); transition:transform .18s ease, box-shadow .18s ease;
  display:flex; flex-direction:column;
}
.news-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.news-body{ padding:1.5rem; display:flex; flex-direction:column; gap:.5rem; flex:1; }
.news-tag{
  align-self:flex-start; background:var(--stone); color:var(--burgundy);
  font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em;
  padding:.25rem .6rem; border-radius:999px;
}
.news-body h3{ font-size:1.18rem; margin:.2rem 0; }
.news-body p{ color:var(--muted); font-size:.95rem; margin:0; flex:1; }
.news-body a{ font-weight:700; margin-top:.6rem; }

/* ---------- Callout restaurare (featured) ---------- */
.featured{
  display:flex; align-items:center; gap:1.3rem; flex-wrap:wrap;
  background:var(--white); border:1px solid var(--stone-line); border-left:5px solid var(--gold);
  border-radius:var(--radius); padding:1.4rem 1.6rem; margin-bottom:2.4rem; box-shadow:var(--shadow-sm);
}
.featured-badge{
  background:var(--gold); color:#3a2c08; font-weight:700; font-size:.72rem;
  text-transform:uppercase; letter-spacing:.08em; padding:.32rem .8rem; border-radius:999px; white-space:nowrap;
}
.featured-text{ flex:1; min-width:240px; }
.featured-text h3{ margin:.1rem 0 .3rem; font-size:1.18rem; color:var(--burgundy); }
.featured-text p{ margin:0; color:var(--muted); font-size:.95rem; }
.featured-link{ font-weight:700; white-space:nowrap; }

/* ====================================================================
   DONATII
   ==================================================================== */
.donatii-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1.6rem; max-width:920px; margin-inline:auto; }
.donatie-card{
  background:var(--white); border:1px solid var(--stone-line); border-radius:var(--radius);
  padding:2rem; box-shadow:var(--shadow-sm);
}
.donatie-card h3{ font-size:1.35rem; color:var(--burgundy); margin-bottom:1.1rem; }
.donatie-list{ list-style:none; margin:0; padding:0; }
.donatie-list li{ display:flex; flex-direction:column; gap:.1rem; padding:.6rem 0; border-bottom:1px solid var(--stone-line); }
.donatie-list li:last-child{ border-bottom:0; }
.donatie-list span{ font-size:.74rem; text-transform:uppercase; letter-spacing:.09em; color:var(--muted); }
.donatie-list strong{ font-size:1.05rem; }
.donatie-card--accent{ background:var(--burgundy); color:#f3e7d9; border-color:var(--burgundy); }
.donatie-card--accent h3{ color:var(--gold-light); }
.donatie-card--accent p{ margin:0 0 1rem; }
.donatie-mention{ font-style:italic; color:#ecdccb; border-left:3px solid var(--gold); padding-left:1rem; }
.donatie-small{ font-size:.84rem; color:#e0cdb9; margin:.9rem 0 0; }

/* ====================================================================
   GALERIE
   ==================================================================== */
.gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.gallery-item{ margin:0; border-radius:var(--radius); overflow:hidden; aspect-ratio:4/3; background:var(--stone); box-shadow:var(--shadow-sm); }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.gallery-item:hover img{ transform:scale(1.06); }

/* ====================================================================
   CONTACT
   ==================================================================== */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; }
.contact-info h2{ color:#fff; font-size:clamp(1.8rem,3.4vw,2.4rem); }
.contact-list{ list-style:none; padding:0; margin:1.2rem 0 0; }
.contact-list li{ padding:.55rem 0; border-bottom:1px solid rgba(255,255,255,.12); }
.contact-list strong{ color:var(--gold-light); display:inline-block; min-width:90px; }
.contact-list a{ color:#f3e7d9; }
.contact-map{ aspect-ratio:4/3; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-md); }
.contact-map iframe{ width:100%; height:100%; border:0; }

/* ====================================================================
   FOOTER
   ==================================================================== */
.site-footer{ background:#1f0f0d; color:#d9c9b8; }
.footer-inner{ display:flex; justify-content:space-between; align-items:flex-start; gap:2rem; padding:3rem 0 2rem; flex-wrap:wrap; }
.footer-brand strong{ font-family:var(--ff-serif); font-size:1.3rem; color:#fff; }
.footer-brand p{ color:#b8a795; font-size:.92rem; margin:.5rem 0 0; }
.footer-nav{ display:flex; gap:1.4rem; flex-wrap:wrap; }
.footer-nav a{ color:#d9c9b8; font-weight:600; font-size:.95rem; }
.footer-nav a:hover{ color:var(--gold-light); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.08); padding:1.2rem 0; }
.footer-bottom p{ margin:0; font-size:.85rem; color:#9a8a7a; text-align:center; }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width:980px){
  .istoric-layout{ grid-template-columns:1fr; gap:2rem; }
  .istoric-figure{ position:static; max-width:520px; margin-inline:auto; }
  .intro-grid{ grid-template-columns:repeat(2,1fr); }
  .program-grid{ grid-template-columns:repeat(2,1fr); }
  .news-grid{ grid-template-columns:1fr 1fr; }
  .contact-grid{ grid-template-columns:1fr; gap:2rem; }
}
@media (max-width:760px){
  .nav-desktop{ display:none; }
  .nav-toggle{ display:flex; }
  .section{ padding:4rem 0; }
  .news-grid{ grid-template-columns:1fr; }
  .donatii-grid{ grid-template-columns:1fr; }
  .featured{ flex-direction:column; align-items:flex-start; }
  .gallery{ grid-template-columns:repeat(2,1fr); }
  .footer-inner{ flex-direction:column; }
}
@media (max-width:460px){
  .intro-grid{ grid-template-columns:1fr; }
  .program-grid{ grid-template-columns:1fr; }
  .gallery{ grid-template-columns:1fr; }
  .brand-text strong{ font-size:1.25rem; }
  .brand-text small{ font-size:.9rem; }
  .hero h1{ font-size:1.8rem; }
  .hero-kicker{ letter-spacing:.1em; font-size:.72rem; }
}
