/*
Theme Name: Vila Florilor Blog (Hello Elementor Child)
Theme URI: https://vilaflorilorbusteni.ro
Description: Child theme of Hello Elementor. Adds bespoke, editorial single-post and post-archive templates for the Vila Florilor Bușteni blog, aligned with the villa's airy, mountain-nature aesthetic. Single/archive rendering is handled here in code; the rest of the site (Elementor header, footer, homepage, popups) is untouched.
Author: Vila Florilor
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* =============================================================================
   SPECIFICITY NOTE — read before adding rules
   The active Elementor kit (post 9) prints site-wide rules like
   `.elementor-kit-9 h1..h6 { font-family/color/... }` and `.elementor-kit-9 a`
   at specificity (0,1,1). A bare `.vf-x h2` (0,1,1) only TIES that, so the
   winner is decided by stylesheet load order — fragile, and worse with the
   Cloudflare page-cache in the stack.
   RULE: every selector that sets typography/color on a heading, link or button
   is prefixed with the wrapper class `.vf-blog` (present on <main> in every
   template) AND contains a component class, giving (0,2,x)+ so it beats the kit
   deterministically. Keep new heading/link/button rules the same way.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root{
  --vf-green:#61CE70;        /* brand accent — forest/nature green (from the live site) */
  --vf-green-ink:#2f8f43;    /* AA-readable green for text/links on white */
  --vf-green-deep:#247a35;   /* hover */
  --vf-green-wash:#eaf7ec;   /* pale green tint for chips/quote bg */

  --vf-ink:#2b2b2b;          /* headings */
  --vf-body:#4a4a4a;         /* body copy */
  --vf-muted:#8a8f98;        /* meta / secondary */

  --vf-cream:#faf9f6;        /* warm off-white canvas */
  --vf-cream-2:#f3efe8;      /* deeper warm band */
  --vf-line:#e9e6e0;         /* warm hairline */
  --vf-white:#ffffff;

  --vf-shadow-sm:0 4px 16px rgba(43,43,43,.06);
  --vf-shadow:0 18px 44px rgba(43,43,43,.12);
  --vf-shadow-img:0 22px 50px rgba(43,43,43,.18);

  --vf-r:16px;
  --vf-r-sm:12px;
  --vf-pill:999px;

  --vf-head:'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --vf-body-font:'Roboto', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --vf-measure:720px;        /* article reading measure */
  --vf-wide:1180px;          /* wide container */
  --vf-gutter:clamp(20px,5vw,40px);
}

/* ---------- Base / layout ---------- */
.vf-blog{
  font-family:var(--vf-body-font);
  color:var(--vf-body);
  background:var(--vf-white);
  font-size:18px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
}
.vf-blog *,
.vf-blog *::before,
.vf-blog *::after{ box-sizing:border-box; }

.vf-blog .vf-wrap{
  width:100%;
  max-width:var(--vf-wide);
  margin-inline:auto;
  padding-inline:var(--vf-gutter);
}
.vf-blog .vf-narrow{ max-width:calc(var(--vf-measure) + 2*var(--vf-gutter)); }

/* Every themed heading is styled through a component class at (0,2,0)+, which
   deterministically beats the Elementor kit's `.elementor-kit-9 h*` (0,1,1) —
   a bare `.vf-blog h2` would only TIE (0,1,1) and lose on load order. This
   consolidated rule is placed BEFORE the component rules below, so per-heading
   overrides (hero white text, card line-height 1.3, prose margins) still win. */
.vf-blog .vf-hero__title,
.vf-blog .vf-archead__title,
.vf-blog .vf-card__title,
.vf-blog .vf-related__head h2,
.vf-blog .vf-cta h2,
.vf-blog .vf-empty h2,
.vf-blog .vf-article__body h1,
.vf-blog .vf-article__body h2,
.vf-blog .vf-article__body h3,
.vf-blog .vf-article__body h4,
.vf-blog .vf-article__body h5,
.vf-blog .vf-article__body h6{
  font-family:var(--vf-head);
  color:var(--vf-ink);
  line-height:1.2;
  letter-spacing:-.01em;
  margin:0;
}

/* eyebrow / small caps label */
.vf-blog .vf-eyebrow{
  font-family:var(--vf-head);
  font-weight:600;
  font-size:.72rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--vf-green-ink);
  margin:0;
}

/* category chip (an <a>) */
.vf-blog .vf-chip{
  display:inline-flex;
  align-items:center;
  gap:.4em;
  font-family:var(--vf-head);
  font-weight:600;
  font-size:.72rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#fff;
  background:var(--vf-green);
  padding:.42em .95em;
  border-radius:var(--vf-pill);
  text-decoration:none;
  line-height:1;
  box-shadow:0 6px 16px rgba(97,206,112,.35);
  transition:transform .25s ease, background .25s ease;
}
.vf-blog .vf-chip:hover{ background:var(--vf-green-deep); color:#fff; transform:translateY(-1px); }
.vf-blog .vf-chip--ghost{
  color:var(--vf-green-ink);
  background:var(--vf-green-wash);
  box-shadow:none;
}
.vf-blog .vf-chip--ghost:hover{ background:#dff0e2; color:var(--vf-green-deep); }

/* ===========================================================================
   SINGLE POST
   ========================================================================== */
.vf-hero{ position:relative; isolation:isolate; }

.vf-hero--image{
  min-height:clamp(440px,64vh,660px);
  display:flex;
  align-items:flex-end;
  color:#fff;
  overflow:hidden;
}
.vf-blog .vf-hero--image .vf-hero__img{
  position:absolute; inset:0; z-index:-2;
  width:100%; height:100%;
  object-fit:cover;
  transform:scale(1.03);
  animation:vf-kenburns 18s ease-out forwards;
}
@keyframes vf-kenburns{ to{ transform:scale(1.11); } }
.vf-hero--image::after{     /* legibility gradient */
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg,rgba(20,24,20,.05) 0%,rgba(20,24,20,.12) 40%,rgba(18,22,18,.78) 100%);
}
.vf-blog .vf-hero__inner{
  width:100%; max-width:var(--vf-wide);
  margin-inline:auto;
  padding:clamp(28px,6vw,72px) var(--vf-gutter);
}
.vf-blog .vf-hero__meta-row{
  display:flex; flex-wrap:wrap; align-items:center; gap:14px;
  margin-bottom:18px;
}
.vf-blog .vf-hero__title{ font-family:var(--vf-head); }
.vf-blog .vf-hero--image .vf-hero__title{
  color:#fff;
  font-weight:600;
  font-size:clamp(2rem,4.6vw,3.4rem);
  max-width:16ch;
  text-shadow:0 2px 30px rgba(0,0,0,.35);
}
.vf-blog .vf-hero--image .vf-hero__excerpt{
  margin-top:16px; max-width:56ch;
  font-size:clamp(1rem,1.6vw,1.2rem);
  color:rgba(255,255,255,.92);
  text-shadow:0 1px 16px rgba(0,0,0,.4);
}
.vf-hero__dot{ width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.5; }
.vf-blog .vf-hero__meta{
  font-family:var(--vf-head);
  font-size:.82rem; font-weight:500; letter-spacing:.02em;
  color:rgba(255,255,255,.9);
  display:inline-flex; align-items:center; gap:14px;
}

/* Hero variant with NO featured image */
.vf-hero--plain{
  background:
    radial-gradient(120% 90% at 88% -10%, var(--vf-green-wash) 0%, transparent 55%),
    var(--vf-cream);
  border-bottom:1px solid var(--vf-line);
  padding:clamp(56px,9vw,104px) 0 clamp(30px,5vw,54px);
  text-align:center;
}
.vf-blog .vf-hero--plain .vf-hero__title{
  color:var(--vf-ink);
  font-weight:600;
  font-size:clamp(2rem,4.4vw,3.2rem);
  max-width:20ch; margin:16px auto 0;
}
.vf-blog .vf-hero--plain .vf-hero__meta{ color:var(--vf-muted); justify-content:center; margin-top:20px; }
.vf-blog .vf-hero--plain .vf-hero__meta-row{ justify-content:center; }

/* --- Article body --- */
.vf-blog .vf-article{ margin:clamp(40px,7vw,76px) auto clamp(20px,4vw,40px); }
.vf-blog .vf-article__body{ font-size:1.125rem; color:var(--vf-body); }
.vf-blog .vf-article__body > *{ margin:0 0 1.35em; }
.vf-blog .vf-article__body p{ line-height:1.85; color:var(--vf-body); }
.vf-blog .vf-article__body :is(h2,h3,h4,h5,h6){ font-family:var(--vf-head); color:var(--vf-ink); }
.vf-blog .vf-article__body h2{
  font-size:clamp(1.5rem,3vw,2rem);
  margin:1.9em 0 .6em; padding-top:.2em;
}
.vf-blog .vf-article__body h3{ font-size:clamp(1.24rem,2.3vw,1.55rem); margin:1.6em 0 .5em; }
.vf-blog .vf-article__body h2 + p,.vf-blog .vf-article__body h3 + p{ margin-top:0; }
.vf-blog .vf-article__body a{
  color:var(--vf-green-ink);
  text-decoration:none;
  background-image:linear-gradient(var(--vf-green),var(--vf-green));
  background-size:100% 1.5px; background-repeat:no-repeat; background-position:0 100%;
  transition:color .2s ease, background-size .2s ease;
  word-break:break-word;
}
.vf-blog .vf-article__body a:hover{ color:var(--vf-green-deep); background-size:100% 100%; background-image:linear-gradient(var(--vf-green-wash),var(--vf-green-wash)); }
.vf-blog .vf-article__body strong{ color:var(--vf-ink); font-weight:600; }
.vf-blog .vf-article__body ul,.vf-blog .vf-article__body ol{ padding-left:1.3em; }
.vf-blog .vf-article__body li{ margin:.5em 0; padding-left:.2em; }
.vf-blog .vf-article__body ul li::marker{ color:var(--vf-green); }
.vf-blog .vf-article__body img{ border-radius:var(--vf-r); box-shadow:var(--vf-shadow-img); height:auto; max-width:100%; }
.vf-blog .vf-article__body figure{ margin-inline:0; }
.vf-blog .vf-article__body figcaption{ font-size:.85rem; color:var(--vf-muted); text-align:center; margin-top:.7em; }
.vf-blog .vf-article__body blockquote{
  margin:1.8em 0; padding:1.1em 1.4em;
  background:var(--vf-green-wash);
  border-left:4px solid var(--vf-green);
  border-radius:0 var(--vf-r-sm) var(--vf-r-sm) 0;
  font-family:var(--vf-head); font-size:1.18rem; font-weight:500; color:var(--vf-ink);
}
.vf-blog .vf-article__body blockquote p{ margin:0; }
.vf-blog .vf-article__body :is(h2,h3){ scroll-margin-top:90px; }
.vf-blog .vf-article__body hr{ border:0; height:1px; background:var(--vf-line); margin:2.4em 0; }

/* article footer: tags + share */
.vf-blog .vf-article__foot{
  margin-top:clamp(34px,5vw,54px); padding-top:26px;
  border-top:1px solid var(--vf-line);
  display:flex; flex-wrap:wrap; gap:18px; align-items:center; justify-content:space-between;
}
.vf-blog .vf-tags{ display:flex; flex-wrap:wrap; gap:9px; align-items:center; }
.vf-blog .vf-share{ display:flex; gap:10px; align-items:center; }
.vf-blog .vf-share__label{ font-family:var(--vf-head); font-size:.78rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--vf-muted); }
.vf-blog .vf-share a{
  width:38px;height:38px;border-radius:50%;
  display:grid;place-items:center;
  color:var(--vf-body); background:var(--vf-cream); border:1px solid var(--vf-line);
  transition:all .2s ease;
}
.vf-blog .vf-share a:hover{ color:#fff; background:var(--vf-green); border-color:var(--vf-green); transform:translateY(-2px); }
.vf-blog .vf-share svg{ width:17px;height:17px;fill:currentColor; }

/* prev / next post nav */
.vf-blog .vf-postnav{
  display:grid; grid-template-columns:1fr 1fr; gap:16px;
  margin:clamp(30px,5vw,50px) auto 0;
}
.vf-blog .vf-postnav a{
  display:block; padding:20px 22px;
  background:var(--vf-cream); border:1px solid var(--vf-line); border-radius:var(--vf-r);
  text-decoration:none; transition:all .25s ease;
}
.vf-blog .vf-postnav a:hover{ background:#fff; box-shadow:var(--vf-shadow); transform:translateY(-3px); border-color:transparent; }
.vf-blog .vf-postnav__dir{ display:block; font-family:var(--vf-head); font-size:.74rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--vf-green-ink); }
.vf-blog .vf-postnav__title{ display:block; font-family:var(--vf-head); font-weight:500; color:var(--vf-ink); margin-top:6px; line-height:1.35; }
.vf-blog .vf-postnav__next{ text-align:right; }

/* ===========================================================================
   POST CARD (archive / related — shared)
   ========================================================================== */
.vf-blog .vf-grid{
  display:grid; gap:clamp(22px,3vw,34px);
  grid-template-columns:repeat(3,1fr);
}
.vf-blog .vf-card{
  position:relative; display:flex; flex-direction:column;
  background:var(--vf-white);
  border:1px solid var(--vf-line);
  border-radius:var(--vf-r);
  overflow:hidden;
  transition:transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.vf-blog .vf-card:hover{ transform:translateY(-6px); box-shadow:var(--vf-shadow); border-color:transparent; }
.vf-blog .vf-card__media{ position:relative; aspect-ratio:16/10; overflow:hidden; background:var(--vf-cream-2); }
.vf-blog .vf-card__media img{ width:100%; height:100%; object-fit:cover; transition:transform .55s cubic-bezier(.2,.7,.3,1); }
.vf-blog .vf-card:hover .vf-card__media img{ transform:scale(1.06); }
.vf-blog .vf-card__media--empty{ display:grid;place-items:center; color:var(--vf-green); background:var(--vf-green-wash); }
.vf-blog .vf-card__media--empty svg{ width:46px;height:46px;opacity:.6; }
.vf-blog .vf-card__chip{ position:absolute; top:14px; left:14px; z-index:2; }
.vf-blog .vf-card__body{ display:flex; flex-direction:column; flex:1; padding:22px 22px 24px; }
.vf-blog .vf-card__title{
  font-family:var(--vf-head); font-weight:600; font-size:1.24rem; line-height:1.3;
  color:var(--vf-ink); margin:0 0 .5em;
}
.vf-blog .vf-card__title a{ color:var(--vf-ink); text-decoration:none; background-image:none; }
.vf-blog .vf-card:hover .vf-card__title a{ color:var(--vf-green-deep); }
.vf-blog .vf-card__excerpt{ font-size:.98rem; line-height:1.65; color:var(--vf-body); margin:0; }
.vf-blog .vf-card__foot{
  margin-top:auto; padding-top:18px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.vf-blog .vf-card__date{ font-family:var(--vf-head); font-size:.8rem; color:var(--vf-muted); display:inline-flex; align-items:center; gap:7px; }
.vf-blog .vf-card__more{ font-family:var(--vf-head); font-size:.82rem; font-weight:600; color:var(--vf-green-ink); display:inline-flex; align-items:center; gap:6px; }
.vf-blog .vf-card__more svg{ width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2; transition:transform .25s ease; }
.vf-blog .vf-card:hover .vf-card__more svg{ transform:translateX(4px); }
/* whole-card click target */
.vf-blog .vf-card__link{ position:absolute; inset:0; z-index:1; font-size:0; color:transparent; overflow:hidden; }

/* ===========================================================================
   ARCHIVE
   ========================================================================== */
.vf-archead{
  background:
    radial-gradient(120% 120% at 85% -30%, var(--vf-green-wash) 0%, transparent 52%),
    var(--vf-cream);
  border-bottom:1px solid var(--vf-line);
  padding:clamp(52px,8vw,94px) 0 clamp(38px,6vw,60px);
  text-align:center;
}
.vf-blog .vf-archead__title{
  font-family:var(--vf-head); color:var(--vf-ink);
  font-size:clamp(2.1rem,5vw,3.3rem); font-weight:600;
  margin:.32em auto 0; max-width:20ch;
}
.vf-blog .vf-archead__desc{ max-width:56ch; margin:18px auto 0; color:var(--vf-body); font-size:1.05rem; }
.vf-blog .vf-archead__count{ display:inline-block; margin-top:22px; font-family:var(--vf-head); font-size:.78rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--vf-muted); }
.vf-blog .vf-archead__deco{ display:flex; align-items:center; justify-content:center; gap:10px; margin-top:26px; }
.vf-blog .vf-archead__deco span{ height:1px; width:44px; background:var(--vf-line); }
.vf-blog .vf-archead__deco svg{ width:22px;height:22px;color:var(--vf-green); }

.vf-blog .vf-list{ padding:clamp(44px,7vw,80px) 0; }

/* category filter pills (links) */
.vf-blog .vf-filter{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:clamp(34px,5vw,52px); }
.vf-blog .vf-filter a{
  font-family:var(--vf-head); font-weight:500; font-size:.9rem;
  color:var(--vf-body); text-decoration:none;
  padding:.55em 1.15em; border-radius:var(--vf-pill);
  border:1px solid var(--vf-line); background:#fff;
  transition:all .22s ease;
}
.vf-blog .vf-filter a:hover{ border-color:var(--vf-green); color:var(--vf-green-deep); }
.vf-blog .vf-filter a.is-active{ background:var(--vf-green); border-color:var(--vf-green); color:#fff; box-shadow:0 8px 20px rgba(97,206,112,.32); }

/* empty state */
.vf-blog .vf-empty{ text-align:center; padding:60px 0; }
.vf-blog .vf-empty h2{ font-family:var(--vf-head); color:var(--vf-ink); font-size:1.5rem; margin-bottom:.4em; }
.vf-blog .vf-empty p{ color:var(--vf-muted); }

/* pagination */
.vf-blog .vf-pager{ margin-top:clamp(40px,6vw,64px); display:flex; justify-content:center; }
.vf-blog .vf-pager .page-numbers{
  font-family:var(--vf-head); font-weight:500;
  min-width:44px; height:44px; padding:0 14px;
  display:inline-flex; align-items:center; justify-content:center;
  margin:0 4px; border-radius:12px;
  border:1px solid var(--vf-line); background:#fff; color:var(--vf-body);
  text-decoration:none; transition:all .2s ease;
}
.vf-blog .vf-pager a.page-numbers:hover{ border-color:var(--vf-green); color:var(--vf-green-deep); transform:translateY(-2px); }
.vf-blog .vf-pager .page-numbers.current{ background:var(--vf-green); border-color:var(--vf-green); color:#fff; box-shadow:0 8px 20px rgba(97,206,112,.32); }
.vf-blog .vf-pager .page-numbers.dots{ border-color:transparent; background:transparent; }

/* ===========================================================================
   RELATED
   ========================================================================== */
.vf-related{ background:var(--vf-cream); border-top:1px solid var(--vf-line); padding:clamp(48px,7vw,84px) 0; }
.vf-blog .vf-related__head{ text-align:center; margin-bottom:clamp(30px,4vw,48px); }
.vf-blog .vf-related__head .vf-eyebrow{ margin-bottom:10px; }
.vf-blog .vf-related__head h2{ font-family:var(--vf-head); color:var(--vf-ink); font-size:clamp(1.6rem,3.2vw,2.3rem); font-weight:600; }

/* ===========================================================================
   BOOKING CTA BAND (the "flow" back to the villa)
   ========================================================================== */
.vf-cta{ position:relative; overflow:hidden; background:#14321d; color:#fff; isolation:isolate; }
.vf-blog .vf-cta__bg{ position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; opacity:.28; }
.vf-cta::after{ content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(120deg,rgba(20,50,29,.94) 0%,rgba(20,50,29,.72) 60%,rgba(47,143,67,.55) 100%); }
.vf-blog .vf-cta__inner{
  max-width:var(--vf-wide); margin-inline:auto; padding:clamp(46px,7vw,82px) var(--vf-gutter);
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:28px;
}
.vf-blog .vf-cta__text{ max-width:34ch; }
.vf-blog .vf-cta__text .vf-eyebrow{ color:#9fe4ac; }
.vf-blog .vf-cta h2{ font-family:var(--vf-head); color:#fff; font-size:clamp(1.7rem,3.4vw,2.5rem); font-weight:600; margin:.35em 0 0; }
.vf-blog .vf-cta p{ margin:.7em 0 0; color:rgba(255,255,255,.85); font-size:1.05rem; }
.vf-blog .vf-cta__actions{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.vf-blog .vf-cta__btn{
  display:inline-flex; align-items:center; gap:.6em;
  font-family:var(--vf-head); font-weight:600; font-size:1rem;
  color:#14321d; background:#fff; padding:.95em 1.8em; border-radius:var(--vf-pill);
  text-decoration:none; white-space:nowrap;
  box-shadow:0 16px 34px rgba(0,0,0,.28); transition:all .25s ease;
}
.vf-blog .vf-cta__btn:hover{ background:var(--vf-green); color:#fff; transform:translateY(-3px); }
.vf-blog .vf-cta__btn svg{ width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2; transition:transform .25s ease; }
.vf-blog .vf-cta__btn:hover svg{ transform:translateX(4px); }
.vf-blog .vf-cta__phone:hover{ color:var(--vf-green) !important; }

/* ---------- scroll reveal ---------- */
.vf-reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.vf-reveal.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .vf-reveal{ opacity:1; transform:none; transition:none; }
  .vf-blog .vf-hero--image .vf-hero__img{ animation:none; transform:none; }
}

/* ---------- responsive ---------- */
@media (max-width:1024px){
  .vf-blog .vf-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:680px){
  .vf-blog{ font-size:17px; }
  .vf-blog .vf-grid{ grid-template-columns:1fr; }
  .vf-blog .vf-postnav{ grid-template-columns:1fr; }
  .vf-blog .vf-postnav__next{ text-align:left; }
  .vf-blog .vf-article__foot{ flex-direction:column; align-items:flex-start; }
  .vf-blog .vf-cta__inner{ flex-direction:column; align-items:flex-start; text-align:left; }
}
