/*
Theme Name: Rezerwacje Hulakula
Theme URI: https://moderncreative.pl/
Author: Modern Creative
Author URI: https://moderncreative.pl/
Description: Motyw oparty na szablonie Hulakula – wierny nagłówek (ciemny pasek, białe menu Poppins, pomarańczowy przycisk rezerwacji), zachowana kolorystyka, czcionki i detale Hulakula. Baza pod dalsze podstrony.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rezerwacje-hulakula
*/

/* ==========================================================================
   Zmienne (paleta i czcionki z Hulakula)
   ========================================================================== */
:root {
    --hk-ink: #111111;               /* tło nagłówka / główny ciemny */
    --hk-bg: #fefefe;                /* jasne tło strony */
    --hk-text: #16130f;             /* tekst na jasnym */
    --hk-white: #fefefe;            /* tekst menu na ciemnym */
    --hk-accent: #f09c1d;           /* pomarańcz Hulakula */
    --hk-accent-dark: #d9860f;
    --hk-content-width: 1240px;

    --hk-font-heading: "Zalando Sans SemiExpanded", "Poppins", Arial, sans-serif;
    --hk-font-body: "Poppins", "Inter", Arial, sans-serif;
}

/* ==========================================================================
   Baza
   ========================================================================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--hk-bg);
    color: var(--hk-text);
    font-family: var(--hk-font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden; /* brak poziomego przewijania na mobile */
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--hk-accent-dark);
}

/* ==========================================================================
   Nagłówek – 2 rzędy jak hulakula.com.pl (góra: logo + social, dół: menu)
   ========================================================================== */
.rh-header {
    width: 100%;
    background: var(--hk-ink);
}

.rh-header__inner {
    width: 100%;
    max-width: var(--hk-content-width);
    margin: 0 auto;
    padding: 0 32px;
}

.rh-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding-top: 14px;
}

.rh-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

.rh-logo img {
    display: block;
    height: 32px;
    width: auto;
}

.rh-header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Ikony social (kółka) */
.rh-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rh-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.rh-social__link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.rh-social__link:hover,
.rh-social__link:focus-visible {
    color: #111;
    background: var(--hk-accent);
    border-color: var(--hk-accent);
}

/* Dolny rząd = pełne menu */
.rh-header__bottom {
    padding: 6px 0 16px;
}

.rh-nav-wrap {
    width: 100%;
}

.rh-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rh-nav li {
    position: relative;
    margin: 0;
}

.rh-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    color: var(--hk-white);
    font-family: var(--hk-font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.18s ease;
}

.rh-nav a:hover,
.rh-nav a:focus-visible {
    color: var(--hk-accent);
}

/* Chevron dla pozycji z podmenu */
.rh-nav .has-dropdown > a::after,
.rh-nav .menu-item-has-children > a::after {
    content: "";
    width: 8px;
    height: 5px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Rozwijane podmenu */
.rh-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 230px;
    margin: 8px 0 0;
    padding: 8px 0;
    list-style: none;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.rh-nav .menu-item-has-children:hover > .sub-menu,
.rh-nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rh-nav .sub-menu li {
    position: relative;
}

.rh-nav .sub-menu a {
    display: block;
    padding: 9px 18px;
    font-size: 14px;
}

.rh-nav .sub-menu a::after {
    display: none;
}

/* Przełącznik menu (mobile) */
.rh-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.rh-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
}

@media (max-width: 1023px) {
    .rh-header__inner {
        padding: 0 16px;
    }
    .rh-header__top {
        min-height: 60px;
        padding-top: 10px;
    }
    /* Na mobile ukrywamy ikony social z górnego paska (są w stopce) –
       inaczej pasek wychodzi poza szerokość ekranu. */
    .rh-social {
        display: none;
    }
    .rh-toggle {
        display: flex;
    }
    .rh-header__bottom {
        display: none;
        padding: 0 0 14px;
    }
    .rh-header.is-open .rh-header__bottom {
        display: block;
    }
    .rh-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .rh-nav a {
        display: flex; /* pełna szerokość -> separator na całą szerokość, nie na długość tekstu */
        width: 100%;
        padding: 12px 4px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .rh-nav .sub-menu {
        position: static;
        min-width: 0;
        margin: 0;
        padding: 0 0 0 14px;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

@media (max-width: 560px) {
    .rh-logo img {
        height: 26px;
    }
    .rh-social__link {
        width: 34px;
        height: 34px;
    }
}

/* ==========================================================================
   Stopka – wierna Hulakula (tło #111, nagłówki Zalando 20/700, linki Poppins 16)
   ========================================================================== */
.rh-footer {
    width: 100%;
    background: var(--hk-ink);
    color: var(--hk-white);
    font-family: var(--hk-font-body);
}

.rh-footer__inner {
    width: 100%;
    max-width: var(--hk-content-width);
    margin: 0 auto;
    padding: 72px 32px 28px;
}

.rh-footer__top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

/* Kolumna brandu */
.rh-footer__logo {
    display: inline-block;
    line-height: 0;
    margin-bottom: 20px;
}

.rh-footer__logo img {
    display: block;
    height: 30px;
    width: auto;
}

.rh-footer__desc {
    max-width: 420px;
    margin: 0 0 22px;
    color: rgba(254, 254, 254, 0.7);
    font-size: 15px;
    line-height: 1.7;
}

.rh-footer__social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rh-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--hk-white);
    transition: color 0.18s ease, transform 0.15s ease;
}

.rh-footer__social svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.rh-footer__social a:hover,
.rh-footer__social a:focus-visible {
    color: var(--hk-accent);
    transform: translateY(-1px);
}

/* Nagłówki kolumn */
.rh-footer__heading {
    margin: 0 0 18px;
    color: var(--hk-white);
    font-family: var(--hk-font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

/* Listy / linki kolumn */
.rh-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rh-footer__list li {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(254, 254, 254, 0.85);
}

.rh-footer__list a {
    color: rgba(254, 254, 254, 0.85);
    text-decoration: none;
    transition: color 0.18s ease;
}

.rh-footer__list a:hover,
.rh-footer__list a:focus-visible {
    color: var(--hk-accent);
}

.rh-footer__contact-line {
    display: flex;
    gap: 10px;
}

/* Belka dolna */
.rh-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rh-footer__copyright {
    margin: 0;
    color: rgba(254, 254, 254, 0.6);
    font-size: 12px;
    line-height: 1.5;
}

.rh-footer__legal {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rh-footer__legal a {
    color: rgba(254, 254, 254, 0.7);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.18s ease;
}

.rh-footer__legal a:hover,
.rh-footer__legal a:focus-visible {
    color: var(--hk-accent);
}

.rh-footer__realization {
    margin: 0;
    color: rgba(254, 254, 254, 0.5);
    font-size: 11px;
}

.rh-footer__realization a {
    color: rgba(254, 254, 254, 0.7);
    font-weight: 600;
    text-decoration: none;
}

.rh-footer__realization a:hover {
    color: var(--hk-accent);
}

@media (max-width: 1023px) {
    .rh-footer__inner {
        padding: 56px 16px 24px;
    }

    .rh-footer__top {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .rh-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .rh-footer__top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rh-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Strona główna – kafelki „Rezerwacje" (tekst rozwijany po najechaniu)
   ========================================================================== */
body.home {
    background: #111111;
}

.rt-home {
    background: #111111;
    color: #fefefe;
    font-family: var(--hk-font-body);
}

.rt-tiles-section {
    width: 100%;
    padding: 84px 24px 96px;
}

.rt-tiles-section__inner {
    width: 100%;
    max-width: var(--hk-content-width);
    margin: 0 auto;
}

.rt-tiles-section__head {
    max-width: 760px;
    margin-bottom: 40px;
}

.rt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--hk-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rt-eyebrow::before {
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--hk-accent);
    content: "";
}

.rt-tiles-section__title {
    margin: 0 0 12px;
    color: #fefefe;
    font-family: var(--hk-font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.rt-tiles-section__lead {
    margin: 0;
    color: rgba(254, 254, 254, 0.65);
    font-size: 16px;
}

.rt-tiles-empty {
    padding: 40px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: rgba(254, 254, 254, 0.65);
    text-align: center;
}

/* Siatka kafelków */
.rt-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 22px;
}

/* Kafelek */
.rt-tile {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    background: #111;
    box-shadow: 0 10px 30px rgba(20, 16, 10, 0.08);
}

.rt-tile__link {
    display: block;
    position: relative;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.rt-tile__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rt-tile:hover .rt-tile__media,
.rt-tile:focus-within .rt-tile__media {
    transform: scale(1.07);
}

.rt-tile__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 6, 3, 0.88) 0%, rgba(8, 6, 3, 0.35) 42%, rgba(8, 6, 3, 0) 72%);
    transition: background 0.35s ease;
}

.rt-tile:hover .rt-tile__shade,
.rt-tile:focus-within .rt-tile__shade {
    background: linear-gradient(to top, rgba(8, 6, 3, 0.94) 0%, rgba(8, 6, 3, 0.65) 55%, rgba(8, 6, 3, 0.2) 100%);
}

.rt-tile__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 24px 26px;
}

.rt-tile__title {
    margin: 0;
    font-family: var(--hk-font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

/* Rozwijana część (excerpt + CTA) – ukryta, pojawia się po najechaniu */
.rt-tile__reveal {
    display: block;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px);
    transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.45s ease, margin-top 0.45s ease;
}

.rt-tile:hover .rt-tile__reveal,
.rt-tile:focus-within .rt-tile__reveal {
    max-height: 320px;
    margin-top: 14px;
    opacity: 1;
    transform: translateY(0);
}

.rt-tile__excerpt {
    display: block;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.6;
}

.rt-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    border-radius: 25px;
    background: var(--hk-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.rt-tile:hover .rt-tile__cta {
    background: var(--hk-accent-dark);
}

/* Urządzenia dotykowe / mobile: brak hovera -> tekst widoczny od razu */
@media (hover: none), (max-width: 782px) {
    .rt-tile {
        height: auto;
        min-height: 380px;
    }
    .rt-tile__reveal {
        max-height: 320px;
        margin-top: 14px;
        opacity: 1;
        transform: none;
    }
    .rt-tile__shade {
        background: linear-gradient(to top, rgba(8, 6, 3, 0.92) 0%, rgba(8, 6, 3, 0.55) 55%, rgba(8, 6, 3, 0.15) 100%);
    }
}

@media (max-width: 560px) {
    .rt-tiles-section {
        padding: 60px 16px 72px;
    }
    .rt-tiles {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Pojedyncza Rezerwacja – ciemne tło (#111), sam widżet Going
   ========================================================================== */
/* Kolor tła dopasowany do formularza Going – zmień tu jedną wartość, jeśli
   odcień granatu Going będzie inny. */
body.single-rezerwacja {
    --rt-going-bg: #111827;
    background: var(--rt-going-bg);
}

.rt-single {
    background: var(--rt-going-bg);
    color: #fefefe;
    font-family: var(--hk-font-body);
}

.rt-single__inner {
    max-width: var(--hk-content-width);
    margin: 0 auto;
    padding: 26px 24px 64px;
}

.rt-single__title {
    margin: 0 0 14px;
    color: #fefefe;
    font-family: var(--hk-font-heading);
    font-size: clamp(20px, 2.4vw, 30px);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Widżet – bez karty, na tle dopasowanym do Going */
.rt-going {
    width: 100%;
    background: var(--rt-going-bg);
}

#going_frame {
    width: 100%;
    min-height: 500px;
    background: var(--rt-going-bg);
}

/* Iframe Going: jego treść jest cross-origin (nie da się nadpisać wnętrza),
   dlatego tło strony dopasowujemy do koloru formularza Going. */
#going_frame iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 1100px;
    border: 0;
    background: var(--rt-going-bg) !important;
}

#loading-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 32px 24px;
    color: rgba(254, 254, 254, 0.75);
    text-align: center;
}

#loading-element h2 {
    margin: 0;
    color: #fefefe;
    font-size: 20px;
    font-weight: 600;
}

.rt-single__notice {
    padding: 20px;
    border: 1px dashed rgba(240, 156, 29, 0.5);
    border-radius: 14px;
    background: rgba(240, 156, 29, 0.08);
    color: #f0c98a;
}

@media (max-width: 560px) {
    .rt-single__inner {
        padding: 40px 16px 64px;
    }
    #going_frame {
        min-height: 720px;
    }
    #going_frame iframe {
        min-height: 1350px;
    }
}
