/* Family Car blog (templates "Blog - Single Post" 3485 + "Blog - Archive" 3494).
   Enqueued only on blog pages by the "blog" module of Family Car Core (module.php).
   Layout, colours, typography, card/TOC/pagination boxes live in the widgets' own Elementor
   controls. This file holds only what those controls cannot express: pseudo-elements, :hover
   lifts, :has() states, sticky/scroll-driven effects, markup the widgets do not style
   (Rank Math breadcrumbs, the_content headings/tables, TOC list internals) and the effects.
   Excluded from Perfmatters "Remove unused CSS": the road/lens markup only exists after JS. */
/* .e-con.fc-blog / .fc-blog .x: one class more than Elementor's own .e-con rules (overflow, position) */
.e-con.fc-blog{--fc-o:#F6A117;--fc-o2:#EA571C;--fc-navy:#1A1A2E;--fc-ink:#333;--fc-line:#EEEEEE;--fc-soft:#F5F5F5;
  overflow:clip;position:relative; /* clip: the road leaves the page; the column halo stays above the footer */
  --art:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 450' preserveAspectRatio='xMidYMid slice'%3E %3Cg fill='none' stroke-linecap='round'%3E %3Cpath d='M-30 410 C 170 370 250 255 420 262 S 690 170 830 115' stroke='%23fff' stroke-width='50'/%3E %3Cpath d='M-30 410 C 170 370 250 255 420 262 S 690 170 830 115' stroke='%233a3a3a' stroke-width='42'/%3E %3Cpath d='M-30 410 C 170 370 250 255 420 262 S 690 170 830 115' stroke='%23F6A117' stroke-width='4' stroke-dasharray='22 16'/%3E %3Ccircle cx='640' cy='88' r='38' stroke='%23FFB347' stroke-width='4'/%3E %3Cpath d='M640 30v-14M640 160v-14M582 88h-14M712 88h-14M600 48l-10-10M690 138l-10-10M680 48l10-10M590 138l10-10' stroke='%23FFB347' stroke-width='4'/%3E %3Cpath d='M120 330c6-50 2-90-10-125M110 205c-30-10-52 0-66 18M110 205c-12-26-34-36-58-34M110 205c18-22 42-26 62-16M110 205c24 2 40 18 46 38M110 205c-26 12-36 32-34 54' stroke='%23F6A117' stroke-width='6'/%3E %3Cpath d='M700 400c4-40 0-70-8-98M692 302c-24-8-42 0-52 14M692 302c-10-20-28-28-46-26M692 302c14-18 34-20 50-12M692 302c20 2 32 14 36 30' stroke='%23F6A117' stroke-width='5'/%3E %3Cpath d='M300 200m-46 0' stroke='none'/%3E %3C/g%3E %3Cg fill='%23EA571C'%3E%3Cpath d='M262 286c0-14 11-24 24-24s24 10 24 24c0 18-24 40-24 40s-24-22-24-40z'/%3E%3Cpath d='M548 188c0-12 10-21 21-21s21 9 21 21c0 16-21 35-21 35s-21-19-21-35z'/%3E%3C/g%3E %3Cg fill='%23fff'%3E%3Ccircle cx='286' cy='286' r='8'/%3E%3Ccircle cx='569' cy='188' r='7'/%3E%3C/g%3E %3C/svg%3E")}

/* hero: clips the mobile palm/road layers; orange line along the bottom edge */
.fc-blog .fc-hero{overflow:hidden}
.fc-hero::after{z-index:1;content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(90deg,var(--fc-o),var(--fc-o2))}
.fc-hero>.e-con-inner{position:relative;z-index:1}

/* Rank Math breadcrumbs (shortcode output, no widget controls) */
.fc-crumbs .rank-math-breadcrumb p{margin:0;font-family:"IBM Plex Sans",sans-serif;font-size:.875rem;line-height:1.4;color:rgba(255,255,255,.7)}
.fc-crumbs .rank-math-breadcrumb a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(246,161,23,.6)}
.fc-crumbs .rank-math-breadcrumb a:hover,.fc-crumbs .rank-math-breadcrumb a:focus-visible{color:var(--fc-o)}
.fc-crumbs .rank-math-breadcrumb .separator{margin:0 .4rem;color:var(--fc-o)}
.fc-crumbs .rank-math-breadcrumb .last{color:rgba(255,255,255,.7)}

/* cover: 16:9 crop (the image widget has no aspect-ratio control) */
.fc-cover img{aspect-ratio:16/9;object-fit:cover}

/* wow 03 (owner's pick): the hero sticks and recedes while the article slides over it as a
   rounded card (radius, shadow, overlap = native controls on .fc-body) */
.fc-blog>.fc-hero{position:sticky;top:0;z-index:0}
.fc-blog>.fc-hero~*{position:relative;z-index:auto}  /* no z-index: the card covers the hero by DOM order, the road (z 1) runs over it, the TOC (z 2) over the road */
/* Hero effects. Mouse devices: scrubbed by scroll (scroll-timeline), with movement.
   Touch screens: no scroll-timeline at all - a short opacity transition when the reader leaves /
   returns to the top (blog.js sets data-fc-away on .fc-blog). 10.10 on the owner's Android
   (DuckDuckGo, system WebView) scrolling down stuttered with any scroll-linked hero animation -
   first the moving ones (Chrome trace: a whole-page repaint per frame), then even opacity-only. */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:scroll()){@media (hover:hover) and (pointer:fine){
    .fc-blog>.fc-hero>.e-con-inner{animation:fc-recede linear both;animation-timeline:scroll(root);animation-range:0 55vh}
  }}
  @media (hover:none),(pointer:coarse){
    .fc-blog>.fc-hero>.e-con-inner,.fc-hero .fc-hero-fx{transition:opacity .5s ease}
    .fc-blog[data-fc-away]>.fc-hero>.e-con-inner{opacity:.25}
    .fc-blog[data-fc-away]>.fc-hero .fc-hero-fx{opacity:0}
  }
}
@keyframes fc-recede{to{transform:translateY(-2rem) scale(.95);opacity:.25}}

/* TOC */
/* minimized on tablet/mobile: closed from the first paint, otherwise its JS slides it shut
   after Perfmatters' delay (measured CLS 0.26); slideDown() writes an inline display on expand */
@media (max-width:1024px){.fc-toc .elementor-toc__body{display:none}}
/* article without H2/H3: no empty TOC box (server-rendered content, so :has() works at first paint) */
.fc-layout:not(:has(.fc-content :is(h2,h3))) .fc-aside{display:none}
@media (min-width:1025px){.fc-blog .fc-aside{position:sticky;top:6.5rem;align-self:flex-start;z-index:2}}
.fc-toc .elementor-toc__list-wrapper .elementor-toc__list-wrapper{border-left:2px solid var(--fc-line)}
.fc-toc .elementor-toc__list-item-text{text-decoration:none}
.fc-toc .elementor-toc__list-item-text-wrapper{align-items:flex-start}
.fc-toc .elementor-toc__list-item-text-wrapper svg{margin-top:.5em;flex-shrink:0}
.fc-toc .elementor-toc__spinner-container{display:none}

/* wide screens: the road (z 1) dives under the text column and resurfaces in the other gutter;
   the column sits above it with a soft same-colour halo so the road fades in and out of it */
@media (min-width:1400px){
  .fc-blog .fc-body>.e-con-inner,.fc-blog .fc-related>.e-con-inner{position:relative;z-index:2;background-color:#F5F5F5;box-shadow:0 0 32px 22px #F5F5F5;clip-path:inset(0 -80px)}
}

/* article body (the_content markup; the widget only sets the base font) */
.fc-blog .fc-content h2{position:relative;padding-left:1rem;font-family:"Rubik",sans-serif;font-weight:600;font-size:clamp(1.5rem,3vw,1.875rem);line-height:1.25;color:var(--fc-navy);margin:2.5rem 0 .75rem}
.fc-blog .fc-content h2::before{content:"";position:absolute;left:0;top:.2em;bottom:.2em;width:4px;border-radius:4px;background:linear-gradient(180deg,var(--fc-o),var(--fc-o2))}
.fc-blog .fc-content h3{font-family:"Rubik",sans-serif;font-weight:600;font-size:1.25rem;line-height:1.3;color:var(--fc-navy);margin:2rem 0 .5rem}
.fc-blog .fc-content :is(h2,h3){scroll-margin-top:7rem}
/* the TOC jumps to its own <span class="elementor-menu-anchor"> inserted before each heading */
.fc-blog .fc-content .elementor-menu-anchor{display:block;scroll-margin-top:7rem}
.fc-blog .fc-content p{margin:0 0 1rem}
.fc-blog .fc-content :is(ul,ol){margin:0 0 1.25rem;padding-left:1.25rem}
.fc-blog .fc-content ul{list-style:disc outside}
.fc-blog .fc-content ol{list-style:decimal outside}
.fc-blog .fc-content li{margin:0 0 .4rem}
.fc-blog .fc-content li::marker{color:var(--fc-o2)}
.fc-blog .fc-content a{color:#B54412;text-decoration:underline;text-underline-offset:2px;transition:color .2s}
.fc-blog .fc-content a:hover{color:var(--fc-navy)}
.fc-blog .fc-content figure.wp-block-table{margin:1.5rem 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px;box-shadow:0 2px 4px rgba(0,0,0,.05)}
.fc-blog .fc-content table{width:100%;min-width:32rem;border-collapse:collapse;font-size:.9375rem;line-height:1.45}
.fc-blog .fc-content :is(th,td){border:1px solid var(--fc-line);padding:.6rem .75rem;text-align:left;vertical-align:top}
/* phones: fit all columns instead of hiding the last one behind an unhinted inner scroll */
@media (max-width:600px){.fc-blog .fc-content table{min-width:0;font-size:.875rem;line-height:1.35}.fc-blog .fc-content :is(th,td){padding:.5rem .45rem;overflow-wrap:break-word}}
@media (max-width:359px){.fc-blog .fc-content table{font-size:.8125rem}}
.fc-blog .fc-content thead th{background:var(--fc-soft);font-weight:600;color:var(--fc-navy);border-bottom:2px solid #E5E7EB}

/* section heading underline (homepage .section-header) */
.fc-sec-title .elementor-heading-title::after{content:"";display:block;width:3.75rem;height:3px;margin:.75rem auto 0;border-radius:3px;background:linear-gradient(90deg,var(--fc-o),var(--fc-o2))}
.fc-sec-title.fill-on-scroll[style*="--fill-percent"] .elementor-heading-title{background-position:calc(100% - var(--fill-percent,0%)) 0}
.fc-sec-title.fill-on-scroll .elementor-heading-title::after{-webkit-text-fill-color:initial}

/* related block hides itself when the query is empty */
.fc-related:not(:has(.elementor-post)){display:none}

/* post cards (Posts + Archive Posts, Cards skin): shadow (the skin has only a fixed preset),
   hover lift, whole-card link, footer pinned */
.fc-cards .elementor-post__card{box-shadow:0 8px 16px rgba(0,0,0,.08);position:relative;display:flex;flex-direction:column;height:100%;transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s,border-color .3s}
.fc-cards .elementor-post:is(:hover,:focus-within) .elementor-post__card{transform:translateY(-8px);border-color:rgba(246,161,23,.6);box-shadow:0 16px 32px rgba(0,0,0,.12),0 10px 20px rgba(246,161,23,.18)}
.fc-cards .elementor-post__thumbnail{position:relative;overflow:hidden}
/* photo covers: Elementor's own placement (widget-posts.min.css + the .elementor-has-item-ratio class
   its JS adds), both delayed by Perfmatters to the first touch. Without it the <img> sat in the flow
   under the ratio box the template CSS already reserves, every photo card was ~200px taller and
   collapsed on the first scroll (10.10, Codex; appeared with the first covers). Same values as
   Elementor's, so nothing moves when its rules arrive. */
.fc-cards .elementor-post__thumbnail__link{display:block;position:relative;width:100%}
.fc-cards .elementor-post__thumbnail img{display:block;position:absolute;left:calc(50% + 1px);top:calc(50% + 1px);
  transform:scale(1.01) translate(-50%,-50%);width:calc(100% + 1px);height:auto;max-width:none;max-height:none}
.fc-cards .elementor-post__excerpt p{margin:0}
.fc-cards .elementor-post__meta-data{margin-top:auto}
.fc-cards .elementor-post__title a{transition:color .2s;pointer-events:auto}
.fc-cards .elementor-post__title a::after{content:"";position:absolute;inset:0}
.fc-cards .elementor-post__text,.fc-cards .elementor-post__meta-data{position:relative;pointer-events:none}
/* no featured image: a calm brand placeholder */
.fc-cards .elementor-post__card:not(:has(.elementor-post__thumbnail__link))::before{content:"";display:block;aspect-ratio:16/9;
  background:url(https://familycar.rentals/wp-content/uploads/2026/01/LOGO-05-cropped.avif) 50% 55%/38% auto no-repeat,
    radial-gradient(circle at 78% 30%,rgba(246,161,23,.28) 0,transparent 45%),linear-gradient(150deg,#1A1A2E 0%,#2B2238 55%,#3A2433 100%)}

/* archive: first card of page 1 spans the row */
@media (min-width:1025px){
  body:not(.paged) .fc-archive-list .elementor-posts-container>.elementor-post:first-child:not(:only-child){grid-column:1/-1}
  body:not(.paged) .fc-archive-list .elementor-posts-container>.elementor-post:first-child:not(:only-child) .elementor-post__card{display:grid;grid-template-columns:1.15fr 1fr;grid-template-rows:1fr auto}
  body:not(.paged) .fc-archive-list .elementor-posts-container>.elementor-post:first-child:not(:only-child) .elementor-post__thumbnail__link{grid-row:1/3;margin:0;height:100%}
  body:not(.paged) .fc-archive-list .elementor-posts-container>.elementor-post:first-child:not(:only-child) .elementor-post__card::before{grid-row:1/3;height:100%;aspect-ratio:auto;min-height:18rem}
  body:not(.paged) .fc-archive-list .elementor-posts-container>.elementor-post:first-child:not(:only-child) .fc-lens{right:auto;bottom:0;width:53.5%;aspect-ratio:auto;border-radius:16px 0 0 16px}
  body:not(.paged) .fc-archive-list .elementor-posts-container>.elementor-post:first-child:not(:only-child) .elementor-post__thumbnail{height:100%;padding-bottom:0}
  body:not(.paged) .fc-archive-list .elementor-posts-container>.elementor-post:first-child:not(:only-child) .elementor-post__text{padding:2.5rem 2.5rem 1rem;align-self:center}
  body:not(.paged) .fc-archive-list .elementor-posts-container>.elementor-post:first-child:not(:only-child) .elementor-post__title{font-size:1.75rem}
}

/* pagination pills (colours/typography/spacing are native) */
.fc-archive-list .elementor-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}
.fc-archive-list .elementor-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:2.75rem;height:2.75rem;padding:0 .75rem;margin:0;border-radius:50px;border:1px solid var(--fc-line);background:#fff;text-decoration:none;transition:all .2s}
.fc-archive-list .elementor-pagination a.page-numbers:is(:hover,:focus-visible){border-color:var(--fc-o)}
.fc-archive-list .elementor-pagination .page-numbers.current{background:linear-gradient(135deg,var(--fc-o),var(--fc-o2));border-color:transparent}

/* blog intro + empty state (printed by the [fc_blog_intro] / [fc_blog_empty] shortcodes) */
.fc-intro{margin:0;max-width:40rem;color:rgba(255,255,255,.8);font:500 1.0625rem/1.6 "Montserrat",sans-serif}
.fc-intro p{margin:0}
.fc-archive-body .elementor-posts-nothing-found{display:none}
.fc-empty-card{max-width:36rem;margin:0 auto;padding:3rem 2rem;text-align:center;border-radius:16px;background:#fff;box-shadow:0 8px 16px rgba(0,0,0,.08)}
.fc-empty-card img{width:7.5rem;height:auto;margin:0 auto 1rem;animation:fc-float 3s ease-in-out infinite}
@keyframes fc-float{50%{transform:translateY(-8px)}}
.fc-empty-card p{margin:0 0 1.5rem;font:500 1.0625rem/1.6 "Montserrat",sans-serif;color:var(--fc-ink)}
.fc-btn{display:inline-flex;align-items:center;min-height:2.75rem;padding:.75rem 1.75rem;border-radius:50px;background:linear-gradient(135deg,var(--fc-o),var(--fc-o2));color:#fff;font:700 .9375rem/1 "IBM Plex Sans",sans-serif;text-decoration:none;box-shadow:0 10px 20px rgba(246,161,23,.3);transition:transform .3s cubic-bezier(.34,1.56,.64,1),box-shadow .3s}
.fc-btn:hover,.fc-btn:focus-visible{color:#fff;transform:translateY(-3px);box-shadow:0 14px 28px rgba(234,87,28,.35)}
.fc-btn:focus-visible{outline:3px solid var(--fc-navy);outline-offset:3px}

/* ---- effects ---- */
/* reveal lens (blog.js): under the pointer a circle uncovers one universal brand layer -
   road with the orange centre line, palms, route pins, sun - over any cover */
@property --r{syntax:'<length>';inherits:false;initial-value:0px}
.fc-lens{position:absolute;left:0;right:0;top:0;aspect-ratio:16/9;z-index:2;pointer-events:none;border-radius:16px 16px 0 0;
  background:var(--art) center/cover no-repeat,rgba(26,26,46,.62);
  /* soft edge: solid core, feathered rim - no visible border */
  -webkit-mask-image:radial-gradient(circle at var(--mx,50%) var(--my,50%),#000 0,#000 calc(var(--r) * .45),transparent var(--r));
  mask-image:radial-gradient(circle at var(--mx,50%) var(--my,50%),#000 0,#000 calc(var(--r) * .45),transparent var(--r));
  transition:--r .35s cubic-bezier(.2,.8,.2,1)}
/* hero: the same layer, tiled, under the title */
.fc-lens.fc-lens-hero{inset:0;aspect-ratio:auto;z-index:0;border-radius:0;background:var(--art) 0 0/640px 360px repeat;opacity:.85}
/* touch (no lens): the same hidden road layer surfaces in the hero corner on load and fades with
   the palm when the reader scrolls away (see the hero rule; until 10.10 it grew through its mask
   with scroll); reduced motion gets the still frame */
.fc-hero .fc-hero-fx{position:absolute;inset:0;z-index:-1;margin:0;pointer-events:none;display:none}
/* the masked art and its one-off appearance (--r) live on ::before: an element running any
   non-compositor animation drags its other animations onto the main thread too */
.fc-hero-reveal{position:absolute;inset:-1.5rem -1rem;opacity:.4}
.fc-hero-reveal::before{content:"";position:absolute;inset:0;--r:170px;
  background:var(--art) calc(100% + 150px) calc(100% + 40px)/600px 338px no-repeat;
  -webkit-mask-image:radial-gradient(circle at 84% 78%,#000 0,#000 calc(var(--r) * .4),transparent var(--r));
  mask-image:radial-gradient(circle at 84% 78%,#000 0,#000 calc(var(--r) * .4),transparent var(--r))}
@media (hover:none),(pointer:coarse){.fc-hero .fc-hero-fx{display:block}}
@media (prefers-reduced-motion:no-preference){
  .fc-hero-reveal::before{animation:fc-reveal-in 1.6s cubic-bezier(.2,.8,.2,1) .3s both}
}
@keyframes fc-reveal-in{from{--r:0px}}
/* the palm in the foreground (owner, 08.10): in front of the pale road, clearer, larger; rises in
   on load and fades with the hero (it rose and grew with scroll until 10.10 - a repaint every frame) */
.fc-hero-palm{position:absolute;z-index:1;right:2%;bottom:-1.5rem;width:9.5rem;height:12.5rem;opacity:.72;
  background:url(https://familycar.rentals/wp-content/uploads/2026/01/palm_2.avif) 50% 100%/contain no-repeat;
  transform-origin:50% 100%;filter:saturate(.85)}
/* no endless sway (10.10): with the hero sticky it never leaves the page, so on phones it
   restyled the hero on every frame for the whole read and made scrolling stutter */
@media (prefers-reduced-motion:no-preference){
  .fc-hero-palm{animation:fc-palm-in 1.4s ease-out .6s both}
}
@keyframes fc-palm-in{from{opacity:0;translate:0 1.5rem}}

/* road container (blog.js creates and fills it) */
.fc-road{display:none;z-index:1;pointer-events:none;transition:opacity .3s}
.fc-road svg{display:block;overflow:visible}
.fc-road .c image{filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff) drop-shadow(2px 3px 5px rgba(0,0,0,.35))}

@media (prefers-reduced-motion:reduce){
  .fc-empty-card img{animation:none}
  .fc-cards .elementor-post__card,.fc-btn{transition:none}
  .fc-cards .elementor-post:hover .elementor-post__card{transform:none}
}
