/*
Theme Name: Emprime AE
Theme URI: https://example.com/
Author: Emprime
Description: Custom theme for Emprime AE (Emaar-inspired layout).
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: emprimeae
*/

:root {
  --em-color-bg: #0b1220;
  --em-color-text: #ffffff;
  --em-color-muted: rgba(255, 255, 255, 0.75);
  --em-color-surface: rgba(0, 0, 0, 0.28);
  --em-color-surface-strong: rgba(0, 0, 0, 0.55);
  --em-color-accent: #0b2a4b;
  --em-color-accent-2: #0f3b6a;
  --em-radius-lg: 999px;
  --em-radius-md: 14px;
  --em-shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.35);
  --em-container: 1240px;
  --em-header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--em-color-text);
  background: var(--em-color-bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue",
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--em-container), calc(100% - 48px));
  margin-inline: auto;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  padding: 12px 16px;
  position: absolute;
  left: 16px;
  top: 16px;
  background: #fff;
  color: #000;
  z-index: 9999;
  border-radius: 10px;
}

/* Header */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: var(--em-header-h);
  display: flex;
  align-items: center;
  color: #fff;
  transition: background-color 180ms ease, backdrop-filter 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header--scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(11, 18, 32, 0.12);
  color: #0b1220;
}

body:not(.home) .site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(11, 18, 32, 0.12);
  color: #0b1220;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}

.site-branding a {
  display: inline-flex;
  align-items: center;
}

.site-branding img {
  height: 34px;
  width: auto;
}

.site-title {
  font-size: 22px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}

.primary-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.primary-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.primary-navigation a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 2px;
  white-space: nowrap;
  transition: color 160ms ease;
}

.primary-navigation a::after {
  content: "";
  position: absolute;
  inset-inline: 2px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.45;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease, opacity 220ms ease;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a,
.primary-navigation .current-menu-ancestor > a,
.primary-navigation .current-menu-parent > a,
.primary-navigation .current_page_ancestor > a,
.primary-navigation .current_page_parent > a {
  color: #fff;
}

.primary-navigation a:hover::after,
.primary-navigation .current-menu-item > a::after,
.primary-navigation .current_page_item > a::after,
.primary-navigation .current-menu-ancestor > a::after,
.primary-navigation .current-menu-parent > a::after,
.primary-navigation .current_page_ancestor > a::after,
.primary-navigation .current_page_parent > a::after {
  transform: scaleX(1);
  opacity: 0.95;
}

.site-header--scrolled .primary-navigation a,
body:not(.home) .site-header .primary-navigation a {
  color: rgba(11, 18, 32, 0.78);
}

.site-header--scrolled .primary-navigation a:hover,
.site-header--scrolled .primary-navigation .current-menu-item > a,
.site-header--scrolled .primary-navigation .current_page_item > a,
.site-header--scrolled .primary-navigation .current-menu-ancestor > a,
.site-header--scrolled .primary-navigation .current-menu-parent > a,
.site-header--scrolled .primary-navigation .current_page_ancestor > a,
.site-header--scrolled .primary-navigation .current_page_parent > a,
body:not(.home) .site-header .primary-navigation a:hover,
body:not(.home) .site-header .primary-navigation .current-menu-item > a,
body:not(.home) .site-header .primary-navigation .current_page_item > a,
body:not(.home) .site-header .primary-navigation .current-menu-ancestor > a,
body:not(.home) .site-header .primary-navigation .current-menu-parent > a,
body:not(.home) .site-header .primary-navigation .current_page_ancestor > a,
body:not(.home) .site-header .primary-navigation .current_page_parent > a {
  color: rgba(11, 18, 32, 0.98);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 220px;
  justify-content: flex-end;
}

.icon-link {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  opacity: 0.92;
  transition: opacity 160ms ease, transform 120ms ease;
}

.icon-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.icon-link svg {
  width: 18px;
  height: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 6px;
  background: var(--em-color-accent);
  border: 0;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  transition: transform 120ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: var(--em-color-accent-2);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.button:active {
  transform: translateY(1px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: inherit;
  align-items: center;
  justify-content: center;
}

.site-header--scrolled .menu-toggle,
body:not(.home) .site-header .menu-toggle {
  background: rgba(11, 18, 32, 0.06);
  border-color: rgba(11, 18, 32, 0.12);
}

.site-header--scrolled .menu-toggle:hover,
body:not(.home) .site-header .menu-toggle:hover {
  background: rgba(11, 18, 32, 0.1);
  border-color: rgba(11, 18, 32, 0.18);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Language */
.site-lang {
  position: relative;
}

.site-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.92;
  transition: opacity 160ms ease, transform 120ms ease;
}

.site-lang__toggle:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.site-lang__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.site-lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(11, 18, 32, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 60px rgba(11, 18, 32, 0.18);
  padding: 8px;
  min-width: 140px;
}

.site-lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: rgba(11, 18, 32, 0.88);
}

.site-lang__menu a:hover {
  background: rgba(11, 18, 32, 0.06);
  color: rgba(11, 18, 32, 0.98);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--em-header-h);
  overflow: visible;
}

.hero__media {
  overflow: hidden;
}

.hero__media,
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media video,
.hero__media img {
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 90px 0 170px;
}

.hero__title {
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.1;
  font-size: clamp(32px, 4.6vw, 68px);
  text-shadow: 0 14px 50px rgba(0, 0, 0, 0.55);
}

.hero__title--rotating,
.hero__subtitle--rotating {
  display: grid;
  place-items: center;
}

.hero__title-variant,
.hero__subtitle-variant {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.hero__title-variant {
  text-shadow: 0 14px 50px rgba(0, 0, 0, 0.55);
}

.hero__title-variant.is-active,
.hero__subtitle-variant.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero__subtitle {
  margin: 20px auto 0;
  max-width: 720px;
  color: var(--em-color-muted);
  font-size: 16px;
}

.hero__search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 46px;
  width: min(var(--em-container), calc(100% - 48px));
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--em-radius-lg);
  box-shadow: var(--em-shadow-lg);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  color: #0b1220;
  z-index: 20;
}

.hero__field {
  position: relative;
  padding: 0;
  border-inline-end: 1px solid rgba(11, 18, 32, 0.12);
  min-height: 44px;
}

.hero__field:last-of-type {
  border-inline-end: 0;
}

.hero__trigger {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.hero__trigger-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.68);
  white-space: nowrap;
}

.hero__trigger-value {
  flex: 1;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(11, 18, 32, 0.92);
}

.hero__trigger:focus-visible {
  outline: 2px solid rgba(11, 42, 75, 0.5);
  outline-offset: 2px;
  border-radius: 10px;
}

.hero__trigger .select-caret {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero__field.is-open .hero__trigger .select-caret {
  transform: rotate(180deg);
  opacity: 0.9;
}

.hero__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(11, 18, 32, 0.12);
  border-radius: 16px;
  box-shadow: 0 22px 70px rgba(11, 18, 32, 0.18);
  padding: 18px;
  z-index: 40;
  color: #0b1220;
}

.hero__dropdown--compact {
  width: 340px;
}

.hero__dropdown--price {
  width: 520px;
}

.hero__field--community .hero__dropdown--community {
  left: calc(-300% - 30px);
  width: calc(400% + 30px);
  min-width: 720px;
}

.hero__dropdown-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.68);
  margin: 0 0 12px;
}

.hero__dropdown-grid {
  display: grid;
  gap: 12px 18px;
}

.hero__dropdown-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero__dropdown-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero__dropdown-grid--scroll {
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.hero__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(11, 18, 32, 0.88);
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}

.hero__check:hover {
  background: rgba(11, 18, 32, 0.06);
}

.hero__check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--em-color-accent);
}

.hero__dropdown-clear {
  margin-top: 18px;
  padding-top: 14px;
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(11, 18, 32, 0.12);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.45);
  cursor: pointer;
  text-align: left;
}

.hero__dropdown-clear:hover {
  color: rgba(11, 18, 32, 0.72);
}

.hero__price-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: end;
}

.hero__price-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.68);
  margin-bottom: 10px;
}

.hero__price-label span {
  opacity: 0.8;
}

.hero__price-col select {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(11, 18, 32, 0.22);
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(11, 18, 32, 0.92);
  background: #fff;
}

.hero__price-col select:focus-visible {
  outline: 2px solid rgba(11, 42, 75, 0.5);
  outline-offset: 2px;
}

.hero__price-sep {
  padding-bottom: 10px;
  color: rgba(11, 18, 32, 0.62);
  font-size: 13px;
}

.hero__community-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.hero__dropdown-list {
  display: grid;
  gap: 10px;
}

.hero__submit {
  border-radius: var(--em-radius-lg);
  padding: 14px 18px;
  border: 0;
  background: var(--em-color-accent);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  height: 54px;
  min-width: 220px;
  transition: background-color 160ms ease, transform 120ms ease;
}

.hero__submit:hover {
  background: var(--em-color-accent-2);
}

.hero__submit:active {
  transform: translateY(1px);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 6px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero__scroll svg {
  width: 22px;
  height: 22px;
}

/* Content */
.site-content {
  padding: 70px 0;
  color: #0b1220;
  background: #fff;
}

body:not(.home) .site-content {
  padding-top: calc(var(--em-header-h) + 40px);
}

.site-content h2 {
  font-size: 34px;
  margin: 0 0 16px;
}

.site-content p {
  margin: 0 0 16px;
  color: rgba(11, 18, 32, 0.78);
}

/* Pages / Posts */
.page-header {
  padding: 10px 0 26px;
}

.page-title {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(34px, 3.6vw, 58px);
  color: rgba(11, 18, 32, 0.92);
}

.page-content {
  max-width: 920px;
}

.page-content > *:first-child {
  margin-top: 0;
}

.page-content p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(11, 18, 32, 0.78);
}

.page-content a {
  color: rgba(11, 42, 75, 0.98);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: rgba(15, 59, 106, 0.98);
}

.page-content h2,
.page-content h3,
.page-content h4 {
  margin: 34px 0 12px;
  color: rgba(11, 18, 32, 0.92);
}

.page-content h2 {
  font-size: 28px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-content ul,
.page-content ol {
  margin: 0 0 18px 22px;
  color: rgba(11, 18, 32, 0.78);
}

.page-content li {
  margin: 6px 0;
}

.single-featured {
  margin: 0 0 22px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
}

.single-featured img {
  width: 100%;
  height: auto;
  display: block;
}

/* Homepage blocks */
.home-intro {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
  align-items: center;
  padding: 30px 0 70px;
}

.home-intro__kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.62);
}

.home-intro__title {
  margin: 14px 0 0;
  font-weight: 500;
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 1.1;
  color: rgba(11, 18, 32, 0.92);
}

.home-intro__text {
  margin-top: 18px;
  color: rgba(11, 18, 32, 0.72);
  max-width: 520px;
}

.home-intro__text p {
  margin: 0 0 12px;
  color: inherit;
}

.home-intro__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.28);
  color: rgba(11, 18, 32, 0.88);
  background: transparent;
  transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease;
}

.home-intro__button:hover {
  background: rgba(11, 18, 32, 0.04);
  border-color: rgba(11, 18, 32, 0.38);
}

.home-intro__button:active {
  transform: translateY(1px);
}

.home-intro__cards {
  min-width: 0;
}

.home-intro__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 2px 12px;
}

.home-intro__cards-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 2px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 18, 32, 0.22) transparent;
}

.home-intro__cards-track::-webkit-scrollbar {
  height: 8px;
}

.home-intro__cards-track::-webkit-scrollbar-thumb {
  background: rgba(11, 18, 32, 0.22);
  border-radius: 999px;
}

.home-intro__cards-track::-webkit-scrollbar-track {
  background: transparent;
}

.intro-card {
  position: relative;
  flex: 0 0 clamp(280px, 22vw, 420px);
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 18px 60px rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.06);
}

.intro-card__media,
.intro-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-card__media img {
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 380ms ease;
}

.intro-card:hover .intro-card__media img {
  transform: scale(1.06);
}

.intro-card__overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(11, 18, 32, 0.82) 100%);
  color: #fff;
}

.intro-card__title {
  font-size: 34px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.intro-card__desc {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 320px;
}

.home-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}

.home-kicker-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.home-kicker {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.62);
  white-space: nowrap;
}

.home-kicker-line {
  height: 1px;
  flex: 1;
  background: rgba(11, 18, 32, 0.18);
}

.site-content .home-title {
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(26px, 2.6vw, 44px);
  color: rgba(11, 18, 32, 0.92);
}

.site-content .home-subtitle {
  margin: 10px 0 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.55);
  max-width: 520px;
}

.home-feature {
  display: block;
  color: inherit;
}

.home-media {
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
}

.home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-feature__media {
  margin-top: 18px;
  aspect-ratio: 16 / 9;
}

.home-feature__media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.site-content .home-feature__desc {
  margin: 14px 0 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.68);
  max-width: 740px;
}

.home-blogs__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.home-viewall {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.62);
  white-space: nowrap;
}

.home-viewall:hover {
  color: rgba(11, 18, 32, 0.98);
}

.home-blogs__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 18px;
}

.home-post-card {
  display: block;
  color: inherit;
}

.home-post-card__media {
  aspect-ratio: 16 / 9;
}

.home-post-card__title {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.82);
}

.home-post-card:hover .home-post-card__title {
  color: rgba(11, 18, 32, 0.98);
}

.home-communities {
  padding-top: 64px;
}

.home-communities__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.home-communities__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-slider__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.18);
  background: transparent;
  color: rgba(11, 18, 32, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.home-arrow:hover {
  background: rgba(11, 18, 32, 0.05);
  border-color: rgba(11, 18, 32, 0.24);
}

.home-arrow:active {
  transform: translateY(1px);
}

.home-arrow svg {
  width: 20px;
  height: 20px;
}

.home-slider__track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 22px 0 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-slider__track::-webkit-scrollbar {
  display: none;
}

.home-community-card {
  flex: 0 0 clamp(240px, 26vw, 340px);
  scroll-snap-align: start;
  color: inherit;
}

.home-community-card__media {
  aspect-ratio: 4 / 3;
}

.home-community-card__body {
  text-align: center;
  padding: 14px 8px 0;
}

.home-community-card__title {
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.92);
}

.home-community-card__tagline {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.62);
}

.home-community-card__details {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(11, 18, 32, 0.72);
}

.home-empty {
  padding: 18px 0;
  color: rgba(11, 18, 32, 0.6);
}

/* Articles */
.home-articles {
  padding-top: 84px;
}

.home-articles__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
}

.home-articles__kicker {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.62);
  margin-bottom: 14px;
}

.home-articles__title {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(34px, 3.2vw, 54px);
  color: rgba(11, 18, 32, 0.92);
}

.home-articles__subtitle {
  margin: 14px 0 0;
  max-width: 720px;
  color: rgba(11, 18, 32, 0.72);
}

.home-articles__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.22);
  color: rgba(11, 18, 32, 0.82);
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.home-articles__button:hover {
  background: rgba(11, 18, 32, 0.04);
  border-color: rgba(11, 18, 32, 0.28);
  color: rgba(11, 18, 32, 0.98);
}

.home-articles__button:active {
  transform: translateY(1px);
}

.home-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.article-card {
  border-radius: 18px;
  border: 1px solid rgba(11, 18, 32, 0.1);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 70px rgba(11, 18, 32, 0.08);
}

.article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.article-card__media {
  aspect-ratio: 16 / 9;
  background: rgba(11, 18, 32, 0.06);
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 380ms ease;
}

.article-card__body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, 0.62);
}

.article-card__sep {
  opacity: 0.5;
}

.article-card__title {
  margin: 14px 0 0;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: rgba(11, 18, 32, 0.92);
}

.article-card__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(11, 18, 32, 0.18);
  background: transparent;
  color: rgba(11, 18, 32, 0.78);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.article-card__link:hover .article-card__media img {
  transform: scale(1.06);
}

.article-card__link:hover .article-card__cta {
  background: rgba(11, 18, 32, 0.04);
  border-color: rgba(11, 18, 32, 0.26);
  color: rgba(11, 18, 32, 0.98);
}

/* Footer */
.site-footer {
  /* background: radial-gradient(1200px 320px at 20% 0%, rgba(255, 255, 255, 0.08), transparent 60%), #000; */
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a {
  color: inherit;
}

.site-footer__top {
  padding: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
}

.site-footer__brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-footer__brand .custom-logo {
  width: auto;
  height: 46px;
  filter: brightness(0) invert(1);
}

.site-footer__brand-text {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 18px;
}

.site-footer__newsletter {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-footer__newsletter-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.site-footer__newsletter-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 6px;
  min-width: 420px;
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.35);
}

.site-footer__newsletter-field:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.site-footer__newsletter-field input {
  border: 0;
  background: transparent;
  padding: 12px 14px;
  flex: 1;
  font-size: 13px;
  color: #0b1220;
  min-width: 0;
}

.site-footer__newsletter-field input::placeholder {
  color: rgba(11, 18, 32, 0.55);
}

.site-footer__newsletter-field input:focus-visible {
  outline: none;
}

.site-footer__newsletter-field button {
  border: 0;
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 160ms ease, transform 120ms ease;
}

.site-footer__newsletter-field button:hover {
  background: #111;
}

.site-footer__newsletter-field button:active {
  transform: translateY(1px);
}

.site-footer__newsletter-note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__newsletter-note--error {
  color: rgba(255, 170, 170, 0.95);
}

.site-footer__main {
  padding: 46px 0 62px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr 1.05fr 0.85fr;
  gap: 64px;
}

.site-footer__section + .site-footer__section {
  margin-top: 34px;
}

.site-footer__heading {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.site-footer__list a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 140ms ease;
}

.site-footer__list a:hover {
  color: #fff;
}

.site-footer__list--arrow a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__list--arrow a::after {
  content: "→";
  opacity: 0.8;
  transition: transform 140ms ease, opacity 140ms ease;
}

.site-footer__list--arrow a:hover::after {
  transform: translateX(2px);
  opacity: 1;
}

.site-footer__bottom {
  padding: 18px 0;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__legal-links li {
  margin: 0;
  padding: 0;
}

.site-footer__legal-links a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 140ms ease;
}

.site-footer__legal-links a:hover {
  color: #fff;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background-color 160ms ease, transform 120ms ease;
}

.site-footer__social-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.site-footer__social-link:active {
  transform: translateY(0);
}

.site-footer__social-link svg {
  width: 18px;
  height: 18px;
}

/* Fixed Social Links */
.fixed-social-links {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.fixed-social-links__item {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background-color 160ms ease, transform 120ms ease;
  text-decoration: none;
}

.fixed-social-links__item:last-child {
  border-bottom: 0;
}

.fixed-social-links__item:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateX(-2px);
}

.fixed-social-links__item:active {
  transform: translateX(0);
}

.fixed-social-links__item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.fixed-social-links__item svg[fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}

.fixed-social-links__item svg path[fill] {
  fill: currentColor;
  stroke: none;
}

/* Mobile */
@media (max-width: 1024px) {
  :root {
    --em-header-h: 74px;
  }

  .site-header__inner {
    gap: 12px;
    justify-content: space-between;
  }

  .site-branding {
    min-width: 0;
  }

  .site-branding img {
    height: 28px;
  }

  .site-title {
    font-size: 18px;
    letter-spacing: 0.16em;
  }

  .header-actions {
    min-width: 0;
    gap: 12px;
  }

  .site-lang__toggle {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .site-header .button {
    padding: 10px 14px;
    font-size: 11px;
    letter-spacing: 0.12em;
    white-space: nowrap;
    line-height: 1;
  }

  .primary-navigation {
    position: fixed;
    top: var(--em-header-h);
    inset-inline: 0;
    bottom: 0;
    background: rgba(11, 18, 32, 0.96);
    backdrop-filter: blur(10px);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    justify-content: flex-start;
    padding: 22px 0;
  }

  body.is-menu-open .primary-navigation {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  body.is-menu-open .site-header {
    background: rgba(11, 18, 32, 0.96);
    color: #fff;
    backdrop-filter: none;
    box-shadow: none;
  }

  body.is-menu-open .menu-toggle {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
  }

  body.is-menu-open .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.24);
  }

  body.is-menu-open .primary-navigation a {
    color: rgba(255, 255, 255, 0.92);
  }

  body.is-menu-open .primary-navigation a:hover,
  body.is-menu-open .primary-navigation .current-menu-item > a {
    color: #fff;
  }

  .primary-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(var(--em-container), calc(100% - 48px));
    margin-inline: auto;
  }

  .primary-navigation a {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    white-space: normal;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero__content {
    padding: 74px 0 210px;
  }

  .hero__search {
    grid-template-columns: 1fr;
    border-radius: 26px;
    bottom: 24px;
  }

  .hero__field {
    border-inline-end: 0;
    border-bottom: 1px solid rgba(11, 18, 32, 0.12);
  }

  .hero__field:last-of-type {
    border-bottom: 0;
  }

  .hero__trigger {
    padding: 10px 14px;
  }

  .hero__dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 10px;
  }

  .hero__dropdown--compact,
  .hero__dropdown--price {
    width: 100%;
  }

  .hero__field--community .hero__dropdown--community {
    left: 0;
    width: 100%;
    min-width: 0;
  }

  .hero__community-grid {
    grid-template-columns: 1fr;
  }

  .hero__dropdown-grid--two,
  .hero__dropdown-grid--three {
    grid-template-columns: 1fr;
  }

  .hero__submit {
    width: 100%;
    min-width: 0;
  }

  .home-top-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .page-header {
    padding: 0 0 18px;
  }

  .page-content p {
    font-size: 15px;
  }

  .home-intro {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 10px 0 54px;
  }

  .home-intro__controls {
    margin-top: 16px;
    justify-content: flex-start;
  }

  .home-intro__text {
    max-width: none;
  }

  .home-blogs__grid {
    grid-template-columns: 1fr;
  }

  .home-communities__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .home-communities__actions {
    width: 100%;
    justify-content: space-between;
  }

  .home-articles__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .home-articles__button {
    width: 100%;
    justify-content: center;
  }

  .home-articles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__top-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__newsletter {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-footer__newsletter-field {
    width: 100%;
    min-width: 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

@media (max-width: 480px) {
  :root {
    --em-header-h: 64px;
  }

  .container {
    width: min(var(--em-container), calc(100% - 32px));
  }

  .site-header__inner {
    gap: 10px;
  }

  .site-branding img {
    height: 24px;
  }

  .site-title {
    font-size: 15px;
    letter-spacing: 0.1em;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 10px;
  }

  .header-actions .icon-link {
    display: none;
  }

  .fixed-social-links {
    display: none;
  }

  .site-lang__toggle {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .site-header .button {
    padding: 9px 10px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .home-articles__grid {
    grid-template-columns: 1fr;
  }
}
