/* Strana.ee homepage shell overrides. Keep these scoped to front page only. */

body.home .site-header,
body.home header.site-header,
body.home .header-area,
body.home .header-style-1,
body.home .header-style-2,
body.home .rt-header-menu,
body.home .rtin-header-area,
body.home .entry-banner,
body.home .entry-banner-area,
body.home .page-title-wrap,
body.home .page-title-area,
body.home .breadcrumb-area,
body.home .rtin-breadcrumb-area,
body.home .inner-page-banner,
body.home .banner-area {
  display: none !important;
}

.strana-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e3e9ee;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.admin-bar .strana-site-header { top: 32px; }

.strana-site-header__inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.strana-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #0f1720 !important;
  text-decoration: none !important;
}

.strana-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg,#0f79c9,#7f42bb 52%,#ef4d31);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.strana-brand__word {
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
}
.strana-brand__word span { color: #1169b2; }

.strana-brand__image .custom-logo-link { display: flex; align-items: center; }
.strana-brand__image img { width: auto; max-width: 150px; max-height: 58px; object-fit: contain; }

.strana-desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  white-space: nowrap;
}
.strana-desktop-nav a,
.strana-header-account {
  color: #334454 !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
  white-space: nowrap;
}
.strana-desktop-nav a:hover,
.strana-header-account:hover { color: #1169b2 !important; }

.strana-header-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.strana-header-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  background: #1169b2;
  color: #fff !important;
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(17,105,178,.14);
}
.strana-header-post:hover { background:#0b4f8a; }

.strana-mobile-menu { display: none; position: relative; margin-left: auto; }
.strana-mobile-menu > summary {
  display: grid;
  gap: 4px;
  width: 42px;
  height: 42px;
  place-content: center;
  border: 1px solid #dce5eb;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  list-style: none;
}
.strana-mobile-menu > summary::-webkit-details-marker { display:none; }
.strana-mobile-menu > summary > span {
  display:block;
  width:20px;
  height:2px;
  border-radius:9px;
  background:#1f3343;
}
.strana-mobile-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid #dfe7ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15,23,32,.16);
}
.strana-mobile-menu__panel a {
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  color:#203343 !important;
  font-weight:750;
  text-decoration:none !important;
}
.strana-mobile-menu__panel a:hover { background:#edf6fc; color:#1169b2 !important; }
.strana-mobile-menu__panel .strana-mobile-menu__post { background:#1169b2; color:#fff !important; margin-bottom:5px; }

/* The city selector lives inside the mobile menu. Keep it a normal row, not a second hamburger icon. */
.strana-mobile-menu__panel .strana-region-switcher--mobile > summary {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  width:100%;
  min-height:44px;
  height:auto;
  padding:0 13px;
  margin:0 0 6px;
  border:0;
  border-radius:10px;
  background:#f1f7fb;
  color:#203343;
  font-size:14px;
  font-weight:850;
  cursor:pointer;
  list-style:none;
  place-content:unset;
}
.strana-mobile-menu__panel .strana-region-switcher--mobile > summary > span {
  display:inline;
  width:auto;
  height:auto;
  border-radius:0;
  background:transparent;
}
.strana-mobile-menu__panel .strana-region-switcher--mobile > summary .strana-region-switcher__pin { display:none; }
.strana-mobile-menu__panel .strana-region-switcher--mobile > summary .strana-region-switcher__arrow {
  margin-left:auto;
  color:#6d7d8a;
  font-size:15px;
}
.strana-mobile-menu__panel .strana-region-switcher--mobile[open] > summary {
  background:#e7f2fa;
  color:#0b5f9f;
}
.strana-mobile-menu__panel .strana-region-switcher--mobile .strana-region-switcher__menu {
  margin:0 0 7px;
  padding:7px;
  border:1px solid #e1e9ef;
  border-radius:11px;
  background:#fff;
}
.strana-mobile-menu__panel .strana-region-switcher--mobile .strana-region-switcher__menu small {
  padding:5px 8px 4px;
  font-size:9px;
}
.strana-mobile-menu__panel .strana-region-switcher--mobile .strana-region-switcher__menu a {
  padding:9px 10px;
  font-size:13px;
}

/* Make the custom portal start immediately under our header. */
body.home .strana-home { margin-top: 0 !important; }
body.home .strana-hero { padding-top: 58px; }

/* Parent theme typography can be very aggressive on small screens. */
body.home .strana-hero h1 {
  font-family: inherit;
  font-weight: 850;
  letter-spacing: -.04em;
}

@media (max-width: 1080px) {
  .strana-site-header__inner { gap: 15px; }
  .strana-desktop-nav { gap: 14px; }
  .strana-desktop-nav a,
  .strana-header-account { font-size:13px; }
  .strana-header-post { min-height:34px; padding-inline:11px; font-size:12px; }
}

@media (max-width: 860px) {
  .strana-desktop-nav,
  .strana-header-actions { display:none; }
  .strana-mobile-menu { display:block; }
  .strana-site-header__inner { min-height:64px; }
}

@media (max-width: 782px) {
  .admin-bar .strana-site-header { top:46px; }
}

@media (max-width: 640px) {
  .strana-site-header__inner { min-height:60px; }
  .strana-brand__mark { width:34px; height:34px; border-radius:10px; font-size:19px; }
  .strana-brand__word { font-size:22px; }
  .strana-brand__image img { max-width:122px; max-height:48px; }
  body.home .strana-hero { padding-top:32px; }
  body.home .strana-hero h1 { font-size: clamp(34px, 9.8vw, 43px); line-height:1.02; }
  body.home .strana-eyebrow { font-size:12px; }
  body.home .strana-search input[type='search'] { min-height:48px; font-size:16px; }
  body.home .strana-hero__panel { display:none; }
}
