/* =========================================================================
   theme_v1.css — layout sekcí homepage dle prototypu (predloha_v1).
   Paleta a fonty jsou definované v main_tinymce.css (:root, teplá cocoa/sand/cream).
   Tento soubor se načítá ZA main.css a řeší strukturu/vzhled nových sekcí.
   ========================================================================= */

/* ---------- Tělo / typografie ---------- */
body { background-color: var(--color-bg-5); color: var(--color-fg-2); font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; }
.section-v1 h1, .section-v1 h2, .section-v1 h3,
.hero-v1 .hero-v1__title, .section-v1__title, .cta-band__title, .service-card__title {
    font-family: "Cormorant Garamond", ui-serif, Georgia, serif; font-weight: 500; letter-spacing: -.01em; line-height: 1.08;
}

/* ---------- Eyebrow (nadřazený štítek) ---------- */
.eyebrow { font-family: "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .26em; font-size: .72rem; font-weight: 600; color: var(--color-fg-4); margin: 0 0 .5rem; }
.eyebrow--light { color: var(--color-bg-1); }

/* ---------- Tlačítka (pill) ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.75rem; border-radius: var(--radius-pill); font-size: .9rem; font-weight: 500; text-decoration: none; transition: opacity .2s, background-color .2s, color .2s, transform .1s; cursor: pointer; border: 1px solid transparent; line-height: 1; }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--color-cta); color: #fff; }
.btn--primary:hover { background: var(--color-cta-hover); opacity: 1; }
.btn--secondary { background: var(--color-bg-1); color: var(--color-fg-2); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Podtržený odkaz ---------- */
.link-underline { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; color: var(--color-fg-2); font-size: .9rem; white-space: nowrap; }
.link-underline:hover { color: var(--color-fg-4); }

/* ---------- Zvětšené logo ---------- */
.head-logo__img { height: 44px; width: auto; }
@media (max-width: 600px) { .head-logo__img { height: 38px; } }

/* ---------- CTA v menu jako pill ---------- */
.head-menu__button-cta.button,
.head-menu__button-cta { background: var(--color-cta); color: #fff; border-radius: var(--radius-pill); padding: .7rem 1.4rem; display: inline-flex; align-items: center; text-decoration: none; transition: background-color .2s; }
.head-menu__button-cta.button:hover { background: var(--color-cta-hover); color: #fff; }

/* =========================================================================
   HERO (úvodní slider / video)
   ========================================================================= */
.hero-v1 { padding: 0; }
.hero-v1__slide { position: relative; min-height: clamp(520px, 100svh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-v1__slide > .wrap2 { width: 100%; position: relative; z-index: 2; }
.hero-v1 .slider1 { position: relative; }
.hero-v1 .swiper, .hero-v1 .swiper-wrapper, .hero-v1 .swiper-slide { height: auto; }
.hero-v1__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-v1__media img { width: 100%; height: 100%; object-fit: cover; }
.hero-v1__gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(43,35,32,.97) 0%, rgba(43,35,32,.88) 34%, rgba(43,35,32,.55) 62%, rgba(43,35,32,.15) 100%); }
.hero-v1__gradient {background: linear-gradient(to top, rgba(43, 35, 32, .87) 0%, transparent 100%);}
.hero-v1__content { position: relative; z-index: 2; width: 100%; color: #fff; padding-bottom: 5rem; padding-top: 9rem; padding-left: 1.5rem; padding-right: 1.5rem; text-shadow: 0 1px 24px rgba(43,35,32,.5); box-sizing: border-box; }
.hero-v1__box { max-width: 46rem; }
.hero-v1__title { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.08; color: #fff; }
/* Nadpis zadaný přes WYSIWYG (Text slideru) → velký hero titulek */
.hero-v1__box h1, .hero-v1__box h2, .hero-v1__box h3 { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.08; color: #fff; margin: 0 0 1.1rem; }
.hero-v1__box p { margin: 0 0 1rem; font-size: 1.05rem; color: rgba(255,255,255,.92); max-width: 40rem; }
.hero-v1__box p:last-child { margin-bottom: 0; }
.hero-v1 .eyebrow--light, .hero-v1 .eyebrow { color: var(--color-bg-1); margin-bottom: 0; }
/* Řádek tlačítek zadaný přímo v sl_text_* (odstavec s odkazy .btn) */
.hero-v1__box p:has(.btn) { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: .5rem; }
.hero-v1__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-v1 .slider1__arrow { color: #fff; }
.hero-v1 .swiper-pagination { z-index: 3; }

/* =========================================================================
   Obecné sekce
   ========================================================================= */
.section-v1 { background: var(--color-bg-5); }
/* .section-v1 .content-padding-y { padding-top: clamp(4rem, 7vw, 7.5rem); padding-bottom: clamp(4rem, 7vw, 7.5rem); } */
.section-v1__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 3.5rem; }
.section-v1__head-link { margin-bottom: .5rem; }

/* ---------- O nás ---------- */
/* Celý blok je v te_perex_*. Sloupce (dle předlohy: 1. sloupec = eyebrow + nadpis,
   další sloupce = text) si uživatel řeší přímo v TinyMCE tabulkou s třídou
   .content-table-3 (viz main_tinymce.css) – responsivita (3 → 1 sloupec) je
   součástí té třídy. */
.onas-grid__body { color: rgba(70,56,49,.85); line-height: 1.75; }
.onas-grid__more { margin-top: 1.5rem; }

/* ---------- Vybrané nemovitosti (statický grid) ---------- */
.section--nabidka { background: var(--color-bg-6); }
.section--nabidka .property-offers-list__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.section--nabidka .property-offers-list__item { background: var(--color-bg-3); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow .4s, transform .4s; display: flex; flex-direction: column; }
.section--nabidka .property-offers-list__item:hover { box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.section--nabidka .property-offers-list__item-top { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.section--nabidka .property-offers-list__picture { position: absolute; inset: 0; }
.section--nabidka .property-offers-list__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s ease; }
.section--nabidka .property-offers-list__item:hover .property-offers-list__img { transform: scale(1.06); }
/* .section--nabidka .property-offers-list__item[data-stav_prodeje] .property-offers-list__item-top::after { content: attr(data-stav_prodeje); position: absolute; top: 1rem; left: 1rem; background: rgba(249,245,239,.92); color: var(--color-fg-2); padding: .35rem .8rem; border-radius: var(--radius-pill); font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; } */
.section--nabidka .property-offers-list__item-body { display: flex; flex-direction: column; flex: 1; }
.section--nabidka .property-offers-list__item-middle { display: block; text-decoration: none; padding: 1.5rem 1.5rem 0; }
.section--nabidka .property-offers-list__location { display: block; font-family: "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; font-weight: 600; color: var(--color-fg-4); margin-bottom: .6rem; }
.section--nabidka .property-offers-list__item-title { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.7rem; margin: 0; line-height: 1.15; color: var(--color-fg-2); }
.section--nabidka .property-offers-list__meta { display: flex; flex-wrap: wrap; align-items: center; margin-top: .85rem; font-size: .9rem; color: rgba(70,56,49,.72); }
.section--nabidka .property-offers-list__meta > span:not(:first-child)::before { content: "\2022"; margin: 0 .55rem; color: rgba(70,56,49,.4); }
.section--nabidka .property-offers-list__item-bottom { margin: 1rem 1.5rem 0; padding: 1.15rem 0 1.5rem; border-top: 1px solid var(--color-border); display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section--nabidka .property-offers-list__price { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.4rem; line-height: 1.1; color: var(--color-fg-2); }
.section--nabidka .property-offers-list__detail { font-family: "Manrope", sans-serif; font-size: .85rem; font-weight: 500; color: var(--color-fg-2); text-decoration: none; white-space: nowrap; transition: color .2s; }
.section--nabidka .property-offers-list__detail:hover { color: var(--color-fg-4); }
@media (max-width: 900px) { .section--nabidka .property-offers-list__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .section--nabidka .property-offers-list__list { grid-template-columns: 1fr; } }

/* ---------- Nabídka – závěrečná CTA (text + tlačítko, odkaz #cf) ---------- */
.section--offers-cta { background: var(--color-bg-5); }
.offers-cta { text-align: center; margin: 0 auto; }
.offers-cta__text { font-size: 1rem; line-height: 1.6; color: rgba(70,56,49,.75); margin: 0 0 1.5rem; }
.offers-cta__text strong { color: var(--color-fg-2); font-weight: 600; }

/* ---------- O mně (obrázek + text) ---------- */
.omne-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: center; }
.omne-grid__media { position: relative; }
/* .omne-grid__media-accent { position: absolute; inset: -1rem; background: var(--color-bg-1); border-radius: var(--radius-lg); transform: translate(1.5rem, 1.5rem); z-index: 0; } */
.omne-grid__media picture, .omne-grid__img { position: relative; z-index: 1; display: block; width: 100%; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 3/4; }
.omne-grid__body .section-v1__title { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.omne-grid__text { margin-top: 1.5rem; color: rgba(70,56,49,.85); line-height: 1.75; }
.omne-grid__more { margin-top: 2rem; }
@media (max-width: 600px) { .omne-grid { grid-template-columns: 1fr; gap: 2.5rem; } .omne-grid__media { order: 2; } .omne-grid__media-accent { transform: translate(1rem, 1rem); } }

/* ---------- Sekce Služby (tmavá, ikony) ---------- */
.section--dark { background: var(--color-cta); color: #fff; }
/* Nadpis sekce pochází z te_perex_* jako vnořený <h2> (má vlastní tmavou barvu z
   main_tinymce.css) – na tmavém pozadí ho proto obarvíme bíle i uvnitř wrapperu. */
.section--dark .section-v1__title,
.section--dark .section-v1__title h1, .section--dark .section-v1__title h2, .section--dark .section-v1__title h3,
.section--dark .section-v1__title .h1, .section--dark .section-v1__title .h2, .section--dark .section-v1__title .h3 { color: #fff; }
/* Eyebrow v tmavé sekci = světlá varianta (bez nutnosti psát .eyebrow--light v perexu) */
.section--dark .eyebrow { color: var(--color-bg-1); }
.sluzby-head { margin-bottom: 3.5rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); border-radius: var(--radius-lg); overflow: hidden; }
.service-card { background: var(--color-cta); padding: 2.5rem 2rem; transition: background-color .3s; }
.service-card:hover { background: var(--color-cta-hover); }
.service-card__icon { display: inline-flex; font-size: 2rem; color: var(--color-bg-1); margin-bottom: 1.1rem; }
.service-card__title { color: #fff; font-size: 1.6rem; margin: 0 0 .75rem; }
.service-card__text { color: rgba(255,255,255,.78); font-size: .92rem; line-height: 1.7; }
.service-card__text p { margin: 0; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- CTA pruh ---------- */
/* Celý obsah je v te_perex_* (eyebrow + nadpis + text + tlačítko), vykreslený raw.
   Styly proto cílí na obecné elementy uvnitř .cta-band. */
.section--cta { background: var(--color-bg-7); }
.cta-band { text-align: center; max-width: 48rem; margin: 0 auto; }
.cta-band > *:first-child { margin-top: 0; }
.cta-band h1, .cta-band h2, .cta-band .h1, .cta-band .h2, .cta-band__title { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin: 0; line-height: 1.1; }
.cta-band p { margin: 1.1rem 0 0; color: rgba(70,56,49,.8); line-height: 1.7; }
.cta-band p:has(.btn) { margin-top: 2.25rem; }
.cta-band .btn { margin: 0; }
.cta-band__perex { margin-top: 1.25rem; color: rgba(70,56,49,.8); line-height: 1.7; }

/* ---------- Blog na HP ---------- */
.section--blog { background: var(--color-bg-5); }

/* ---------- Blog – rozcestník článků (dle prototypu /blog) ---------- */
.section--blog-list { background: var(--color-bg-5); }
.blog-list-head p { color: rgba(70,56,49,.78); line-height: 1.6; font-size: 1.05rem; margin: 0; }

.blog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 3vw, 2.75rem); }
.blog-card { display: flex; flex-direction: column; }
.blog-card__media { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.blog-card__media picture { position: absolute; inset: 0; }
.blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s ease; }
.blog-card:hover .blog-card__img { transform: scale(1.06); }
.blog-card__meta { display: flex; align-items: center; gap: .55rem; margin: 1.25rem 0 .5rem; font-family: "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; font-weight: 600; color: var(--color-fg-4); }
.blog-card__cat { position: relative; padding-left: .8rem; }
.blog-card__cat::before { content: "\2022"; position: absolute; left: 0; }
.blog-card__title { font-size: clamp(1.4rem, 1.7vw, 1.7rem); line-height: 1.15; margin: 0 0 .6rem; }
.blog-card__title a { color: inherit; text-decoration: none; transition: color .2s; }
.blog-card__title a:hover { color: var(--color-fg-4); }
.blog-card__excerpt { color: rgba(70,56,49,.72); line-height: 1.6; font-size: .92rem; margin: 0 0 1.1rem; }
.blog-card__more { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .blog-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-cards { grid-template-columns: 1fr; } }

/* ---------- Nabídka – stránka s filtrem (dle prototypu /nabidka) ---------- */
/* Přebíjí bg-6 z .section--nabidka – samostatná stránka má krémové pozadí. */
.section--offers-page { background: var(--color-bg-5); }
.section--offers-page .blog-list-head { margin-bottom: 0; }

/* Filtr = řádky klikacích pilulek (jednovýběr, s „Vše"), bez resetu a počtů. */
.offers-filter { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); border: none; padding: 0; background: transparent; }
.offers-filter__row { display: flex; flex-wrap: wrap; gap: .75rem; }
.filter-pill { display: inline-flex; align-items: center; padding: .6rem 1.4rem; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: transparent; color: var(--color-fg-2); font-family: "Manrope", sans-serif; font-size: .9rem; font-weight: 500; line-height: 1; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; user-select: none; }
.filter-pill:hover { border-color: var(--color-fg-4); color: var(--color-fg-4); }
.filter-pill.is-active { background: var(--color-cta); border-color: var(--color-cta); color: #fff; }
.filter-pill.is-active:hover { background: var(--color-cta-hover); border-color: var(--color-cta-hover); color: #fff; }
.filter-pill__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.filter-pill__input:focus-visible + span { outline: 2px solid var(--color-fg-4); outline-offset: 4px; border-radius: 2px; }

/* ---------- Patička (dle předlohy: 3 sloupce + spodní lišta) ---------- */
/* Sloupec 1 = logo + te_footer perex, sloupec 2 = navigace (příznak foot),
   sloupec 3 = te_footer text. Spodní lišta = © Kangaroo + tagline. */
.wrap1--foot-1 { background: var(--color-cta); color: rgba(255,255,255,.72); }
.foot-1 { grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem 4rem; font-size: 15px; line-height: 1.7; }
.foot-1__col:not(:first-child) { padding-left: 0; }
.foot-1__logo-wrap { margin-bottom: 1.75rem; }
.foot-1__logo-img { height: 70px; width: auto; }
.foot-1__about { color: rgba(255,255,255,.66); line-height: 1.75; max-width: 34ch; }
.foot-1__about p { margin: 0 0 .5rem; }
/* Sociální ikony (modul „Sociální sítě a kontakty", type 5) – ovládané příznakem */
.foot-1__col--1 .foot-1__social { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; }
.foot-1__col--1 .foot-1-social__item { display: inline-flex; color: rgba(255,255,255,.7); transition: color .2s, transform .2s; }
.foot-1__col--1 .foot-1-social__item:hover { color: #fff; transform: translateY(-2px); }
.foot-1__col--1 .foot-1-social__icon { font-size: 1.5rem; width: auto; height: auto; margin: 0; }
.foot-1__title { color: var(--color-bg-1); margin: 0 0 1.35rem; }
.foot-1__menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.foot-1__menu li::before { content: none; }
.foot-1__menu a { color: rgba(255,255,255,.82); text-decoration: none; transition: color .2s; }
.foot-1__menu a:hover, .foot-1__menu li.active > a { color: #fff; text-decoration: none; }
.foot-1__contact { color: rgba(255,255,255,.72); line-height: 1.6; }
.foot-1__contact a { color: inherit; text-decoration: none; }
.foot-1__contact a:hover { color: #fff; }
/* Spodní lišta */
.foot-1__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; margin-top: 4.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; color: rgba(255,255,255,.5); }
.foot-1__bottom a { color: inherit; text-decoration: none; }
.foot-1__bottom a:hover { color: rgba(255,255,255,.9); }
.foot-1__copyright { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.1rem; }
.foot-1__legal { display: inline-flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.foot-1__tagline { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--color-bg-1); }
.foot2-menu__link { text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.foot2-menu__link:hover { opacity: 1; }
@media (max-width: 850px) {
    .foot-1 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .foot-1 { grid-template-columns: 1fr; }
    .foot-1__bottom { flex-direction: column; align-items: flex-start; }
}
