/*
Theme Name: Scelio nemovitosti
Theme URI: https://www.scelio.cz
Author: Scelio nemovitosti s.r.o.
Description: Samostatná produkční šablona Scelio nemovitosti. Výkup nemovitostí, výpis nemovitostí z Poskireal XML feedu, plně responzivní.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: scelio-nemovitosti
*/

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  background: #143a2e;          
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }

body p, body li, body a, body input, body textarea, body button, body select {
  font-family: inherit;
}

body a { color: inherit; text-decoration: none; }
body img, body svg { max-width: 100%; }

section[id], [id^="kontakt"] { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { padding-top: 80px; }
body.home,
body.page-template-front-page { padding-top: 0; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 44px);
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #143a2e;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  border-radius: 0 0 18px 18px;
  transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(10, 31, 25, 0.94);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; color: #fff; }
.logo-img { height: 44px; width: auto; display: block; }
.footer-logo-img { height: 38px; width: auto; display: block; }
@media (max-width: 767px) { .logo-img { height: 36px; } }
.logo-text { font-size: 18px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.logo-accent { color: #fff; }
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  color: rgba(255,255,255,0.9); font-size: 15px; font-weight: 600;
  border-radius: 8px; white-space: nowrap; text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.main-nav a:hover { color: var(--orange-text, #e9511b); }
.nav-home-icon { width: 42px; height: 42px; justify-content: center; border-radius: 999px; border: 1px solid rgba(107,162,151,0.30); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 39px; height: 39px; border-radius: 12px; border: none;
  background: #e9511b; color: #fff; text-decoration: none;
  transition: background .18s ease, transform .18s ease; flex-shrink: 0;
}
.header-icon-btn:hover { background: #c64312; transform: scale(1.05); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
  font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none;
  cursor: pointer; border: none;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.btn-orange { background: #e9511b; color: #fff; }
.btn-orange:hover { background: #c64312; transform: scale(1.05); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.10); border-color: #fff; transform: scale(1.05); }
.btn-pill { border-radius: 999px; }
.header-cta { font-size: 15px; font-weight: 700; padding: 12px 20px; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 0; background: none; border: none;
  cursor: pointer; margin-left: auto;
}
.hamburger span { display: block; width: 20px; height: 2px; background: #e9511b; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; max-height: 0; overflow: hidden; transition: max-height .4s ease; background: rgba(9, 28, 22,0.97); backdrop-filter: blur(18px); }
.mobile-menu nav, .mobile-menu-social { padding-inline: clamp(18px, 4vw, 44px); }
.mobile-menu nav { padding-top: 14px; padding-bottom: 18px; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 0;
  font-size: 16px; font-weight: 600; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08); text-decoration: none; transition: color .18s ease;
}
.mobile-menu nav a::after { content: '›'; font-size: 22px; line-height: 1; color: var(--orange-text, #e9511b); flex-shrink: 0; }
.mobile-menu nav a:hover { color: var(--orange-text, #e9511b); }
.mobile-menu-cta { margin: 0 clamp(18px, 4vw, 44px) 18px; width: calc(100% - (2 * clamp(18px, 4vw, 44px))); justify-content: center; }
.mobile-menu-social { padding-bottom: 24px; text-align: center; }
.mobile-social-label { margin: 0 0 12px; color: rgba(255,255,255,0.7); font-size: 13px; }
.mobile-social-icons { display: flex; justify-content: center; gap: 10px; }
.mobile-social-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid #e9511b; transition: background .18s ease; }
.mobile-social-btn:hover { background: rgba(233,81,27,0.15); }

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .header-icon-btn { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .mobile-menu.is-open { max-height: 700px; }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none !important; }
}

.site-footer { background: #143a2e; border-top: 1px solid rgba(107,162,151,0.30); color: #fff; font-family: inherit; }
.site-footer .container { max-width: 1180px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.footer-col-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange-text, #e9511b); margin: 0 0 18px; }
.footer-address, .footer-links a { font-size: 14px; line-height: 1.85; color: rgba(255,255,255,0.7); transition: color 0.18s ease; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--orange-text, #e9511b); }
.footer-links li { margin-bottom: 4px; }
.footer-address { font-style: normal; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; text-decoration: none; color: #fff; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(107,162,151,0.30); display: flex; align-items: center; justify-content: center; transition: border-color 0.18s ease; }
.social-btn:hover { border-color: #e9511b; }
.footer-bottom { text-align: center; padding-bottom: 24px; }
.footer-btns { display: flex; justify-content: center; gap: 14px; margin-bottom: 12px; }
.footer-contact-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #e9511b; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background 0.18s ease; }
.footer-contact-btn:hover { background: #c64312; }
.footer-copy { color: rgba(255,255,255,0.5); font-size: 13px; margin: 0; }

@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-block: 48px 40px; } }
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 40px 32px; }
  .footer-links a { display: inline-block; padding-block: 5px; }
  .footer-links li { margin-bottom: 0; }
  .footer-btns { flex-direction: column; align-items: stretch; }
  .footer-contact-btn { justify-content: center; }
  .footer-col-brand { text-align: center; }
  .footer-col-brand .footer-logo,
  .footer-col-brand .footer-social { justify-content: center; }
}

.text-orange { color: var(--orange-text, #e9511b); }
.text-white { color: #fff; }
.skip-to-content {
  position: absolute; left: -9999px; top: 12px; z-index: 1100;
  padding: 10px 18px; background: #e9511b; color: #fff; font-weight: 700;
  border-radius: 10px; text-decoration: none;
}
.skip-to-content:focus { left: 16px; }
*:focus-visible { outline: 2px solid #e9511b; outline-offset: 2px; }
