/* =========================================================
   Thassos.sk - layout.css
   Header, footer, top bar, mobile menu
   ========================================================= */

/* =========================================================
   Top bar
   ========================================================= */

.topbar {
  background: var(--c-aegean-deep);
  color: var(--c-bg-warm);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: var(--sp-6);
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.topbar a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  opacity: 0.9;
}

.topbar a:hover { color: var(--c-gold-soft); opacity: 1; }

.topbar__motto {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: var(--fs-sm);
  letter-spacing: 0;
  color: var(--c-gold-soft);
  text-transform: none;
}

@media (max-width: 760px) {
  .topbar__motto, .topbar__hours { display: none; }
}

/* =========================================================
   Header
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}

.header.is-scrolled {
  background: rgba(250, 247, 242, 0.98);
  border-bottom-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  height: 86px;
}

/* Brand */
.brand {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--ff-serif);
  color: var(--c-aegean-deep);
  line-height: 1;
}
.brand:hover { color: var(--c-aegean); }

.brand__name {
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}

.brand__tagline {
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--c-terracotta);
  margin-top: 4px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__list {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
}

.nav__link {
  position: relative;
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  padding: var(--sp-2) 0;
  transition: color var(--t-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--c-terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--c-aegean);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

/* Has-submenu */
.nav__item--has-sub {
  position: relative;
}

.nav__item--has-sub > .nav__link::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-right: 6px;
  transition: transform var(--t-fast) var(--ease-out);
}

.nav__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--sp-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast) var(--ease-out),
              transform var(--t-fast) var(--ease-out),
              visibility var(--t-fast) var(--ease-out);
}

.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__sub a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-ink);
  border-radius: var(--radius-sm);
}

.nav__sub a:hover {
  background: var(--c-bg-warm);
  color: var(--c-aegean);
}

/* CTA cluster */
.header__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-aegean);
  white-space: nowrap;
}
.header__phone svg { width: 16px; height: 16px; }

/* Mobile burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--c-aegean);
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform var(--t-base) var(--ease-out),
              background var(--t-fast) var(--ease-out);
}
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease-out);
}
.burger span::before { top: -7px; }
.burger span::after  { top:  7px; }

.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.burger.is-open span::after  { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 92vw);
  background: var(--c-bg);
  z-index: var(--z-overlay);
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease-out);
  padding: var(--sp-20) var(--sp-8) var(--sp-8);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mobile-nav__list a {
  display: block;
  padding: var(--sp-3) 0;
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-line);
}

.mobile-nav__sub {
  padding-left: var(--sp-4);
  margin-top: var(--sp-1);
}
.mobile-nav__sub a {
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  padding: var(--sp-2) 0;
  color: var(--c-ink-soft);
  border: 0;
}

.mobile-nav__cta {
  margin-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.mobile-nav__contact {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-sm);
  color: var(--c-text-soft);
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 44, 64, 0.4);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}
.scrim.is-open { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .nav__list, .header__phone-label { display: none; }
  .burger { display: inline-flex; }
}

/* On phones, hide phone & "Objednať pobyt" button completely from the header.
   Both are accessible from the mobile drawer instead. */
@media (max-width: 760px) {
  .header__inner { height: 64px; gap: var(--sp-2); }
  .header__phone,
  .header__cta .btn { display: none; }
  .header__cta { gap: 0; }
  .brand__name { font-size: 1.35rem; }
  .brand__tagline { font-size: 0.62rem; margin-top: 2px; }
}

@media (max-width: 380px) {
  .brand__tagline { display: none; }
  .brand__name { font-size: 1.25rem; }
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--c-aegean-deep);
  color: var(--c-bg-warm);
  padding-top: var(--sp-20);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold) 30%, var(--c-gold) 70%, transparent);
  opacity: 0.4;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-16);
}

.footer h4 {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--c-gold-soft);
  margin-bottom: var(--sp-5);
}

.footer__brand .brand__name { color: var(--c-bg-warm); font-size: 2rem; }
.footer__brand .brand__tagline { color: var(--c-gold-soft); }

.footer__motto {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--c-gold-soft);
  margin-top: var(--sp-5);
  max-width: 32ch;
  line-height: var(--lh-snug);
}

.footer__list { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__list a { color: var(--c-bg-warm); opacity: 0.8; font-size: var(--fs-sm); }
.footer__list a:hover { color: var(--c-gold-soft); opacity: 1; }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-bg-warm);
  opacity: 0.85;
}
.footer__contact a { color: inherit; }
.footer__contact a:hover { color: var(--c-gold-soft); }
.footer__contact strong { color: var(--c-paper); font-weight: 600; }

.footer__newsletter p {
  font-size: var(--fs-sm);
  opacity: 0.8;
  margin-bottom: var(--sp-4);
}

.footer__form {
  display: flex;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
}
.footer__form input {
  flex: 1;
  padding: 0 var(--sp-5);
  height: 46px;
  background: transparent;
  border: 0;
  color: var(--c-paper);
  font-size: var(--fs-sm);
}
.footer__form input::placeholder { color: rgba(255,255,255,0.5); }
.footer__form button {
  padding: 0 var(--sp-5);
  background: var(--c-terracotta);
  color: var(--c-paper);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-weight: 600;
  transition: background var(--t-fast);
}
.footer__form button:hover { background: var(--c-terracotta-d); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--sp-6) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: rgba(250, 247, 242, 0.6);
  letter-spacing: 0.02em;
}

.footer__legal {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.footer__legal a { color: inherit; }
.footer__legal a:hover { color: var(--c-gold-soft); }

@media (max-width: 960px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   Cookie banner
   ========================================================= */

.cookie {
  position: fixed;
  bottom: var(--sp-4);
  left: var(--sp-4);
  right: var(--sp-4);
  max-width: 480px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  font-size: var(--fs-sm);
  display: none;
}
.cookie.is-visible { display: block; }
.cookie p { margin-bottom: var(--sp-3); color: var(--c-text-soft); }
.cookie__actions {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
