/*
Theme Name: Enfold Child – Ania Jackowska
Description: Motyw potomny Enfold do strony ofert i pól ACF.
Template: enfold
Version: 1.1.0
Text Domain: enfold-child
*/

#top .aj-offers { --aj-blue:#0055a0; --aj-gold:#9b8053; color:#171717; background:#fff; font:16px/1.65 Arial,sans-serif; }
#top .aj-offers *, #top .aj-offers *::before, #top .aj-offers *::after { box-sizing:border-box; }
#top .aj-hero { position:relative; min-height:clamp(300px,30vw,460px); padding:64px 24px; display:flex; align-items:center; justify-content:center; text-align:center; overflow:hidden; isolation:isolate; }
#top .aj-hero-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:-2; }
#top .aj-hero::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.24),rgba(0,0,0,.64)); z-index:-1; }
#top .aj-hero-content { max-width:1320px; }
#top .aj-hero h1 { font:400 clamp(36px,4.5vw,80px)/1.15 Georgia,serif; color:#fff; letter-spacing:1px; text-transform:uppercase; margin:0 0 22px; }
#top .aj-hero p { font:italic clamp(21px,2vw,32px)/1.4 Georgia,serif; color:#dbc08e; margin:0; }
#top .aj-wrap { max-width:1320px; margin:0 auto; padding:70px 30px 80px; }
#top .aj-cards { display:flex; flex-wrap:wrap; align-items:stretch; gap:26px; }
#top .aj-offers .aj-cards > .aj-card { display:flex; flex:0 0 calc(50% - 13px); width:calc(50% - 13px); max-width:calc(50% - 13px); min-width:0; margin:0; float:none; border:1px solid #e3e3e3; background:#fff; transition:border-color .2s ease; }
#top .aj-card-link { display:flex; flex-direction:column; width:100%; color:inherit; text-decoration:none; }
#top .aj-card:hover { border-color:#cfc7b9; }
#top .aj-card-link:hover, #top .aj-card-link:focus { color:inherit; text-decoration:none; box-shadow:none; background:transparent; }
/* Disable Enfold's image hover overlay only inside offer cards. */
#top .aj-offers .aj-card-link .image-overlay { display:none !important; opacity:0 !important; }
#top .aj-offers .aj-card-link, #top .aj-offers .aj-card-link:hover,
#top .aj-offers .aj-card-link .aj-cover, #top .aj-offers .aj-card-link:hover .aj-cover { opacity:1 !important; }
#top .aj-card-link:hover .aj-cta, #top .aj-card-link:focus-visible .aj-cta { text-decoration:underline; text-underline-offset:4px; }
#top .aj-card-link:focus-visible { outline:3px solid var(--aj-blue); outline-offset:4px; }
#top .aj-photo { position:relative; aspect-ratio:16/10; display:flex; align-items:center; justify-content:center; overflow:hidden; background:linear-gradient(135deg,#dce5e6,#9aa9a2); }
#top .aj-cover { display:block; width:100%; height:100%; position:absolute; inset:0; object-fit:cover; }
#top .aj-no-photo { font-size:13px; color:#34484b; letter-spacing:1px; }
#top .aj-status { position:absolute; left:15px; top:15px; right:auto; max-width:calc(100% - 30px); background:#fff; color:#35623c; padding:7px 12px; font-size:12px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; }
#top .aj-status-coming_soon .aj-status, #top .aj-status-last_places .aj-status { color:#755b2d; }
#top .aj-status-sold_out .aj-status { color:#8a3333; }
#top .aj-status-finished .aj-status { color:#555; }
#top .aj-card-body { padding:25px; flex:1; display:flex; flex-direction:column; }
#top .aj-card h3 { font:400 30px/1.2 Georgia,serif; color:#171717; text-transform:none; letter-spacing:0; margin:0 0 22px; overflow-wrap:anywhere; }
#top .aj-excerpt { margin:0 0 24px; color:#555; font-size:16px; line-height:1.65; }
#top .aj-facts { display:flex; flex-wrap:wrap; gap:20px 12px; margin:0 0 26px; padding:0; }
#top .aj-fact { display:flex; align-items:flex-start; flex:0 0 calc((100% - 12px)/2); min-width:0; gap:10px; }
#top .aj-fact > div { min-width:0; }
#top .aj-icon { display:block; width:23px; height:23px; flex-shrink:0; }
#top .aj-fact .aj-icon { filter:invert(51%) sepia(23%) saturate(671%) hue-rotate(359deg) brightness(96%) contrast(88%); }
#top .aj-fact dt { font:400 12px/1.4 Arial,sans-serif; text-transform:uppercase; letter-spacing:.4px; margin:0 0 5px; color:#666; }
#top .aj-fact dd { font:700 14px/1.45 Arial,sans-serif; margin:0; padding:0; overflow-wrap:anywhere; }
#top .aj-cta { margin-top:auto; border-top:1px solid #e5e5e5; padding-top:18px; color:var(--aj-blue); font-size:14px; letter-spacing:.5px; font-weight:700; text-transform:uppercase; display:flex; justify-content:space-between; align-items:center; gap:12px; }
#top .aj-cta .aj-icon { width:20px; height:20px; filter:invert(22%) sepia(81%) saturate(2087%) hue-rotate(191deg) brightness(87%) contrast(103%); }
#top .aj-finished { margin-top:60px; }
#top .aj-finished h2 { font:400 34px/1.25 Georgia,serif; text-transform:none; letter-spacing:0; margin:0 0 26px; }
#top .aj-status-finished .aj-photo { filter:grayscale(1); }
#top .aj-status-finished .aj-card-body { background:#f6f6f6; }
#top .aj-status-finished .aj-cta { color:#555; }
#top .aj-status-finished .aj-icon { filter:invert(40%); }
#top .aj-empty { text-align:center; padding:24px; background:#f6f6f6; }
@media (max-width:650px) { #top .aj-offers .aj-cards > .aj-card { flex-basis:100%; width:100%; max-width:100%; } #top .aj-wrap { padding:45px 20px 55px; } #top .aj-hero { min-height:310px; padding:50px 20px; } #top .aj-card-body { padding:22px; } }
@media (prefers-reduced-motion:reduce) { #top .aj-card, #top .aj-card-link { transition:none; } }
