/*
Theme Name: ROOF21
Theme URI: https://roof21.local
Author: ROOF21
Version: 0.3.0
Text Domain: roof21
*/
:root {
  --roof21-bg: #f8fafc;
  --roof21-surface: #ffffff;
  --roof21-text: #0f172a;
  --roof21-muted: #64748b;
  --roof21-line: #e2e8f0;
  --roof21-accent: #0f766e;
  --roof21-dark: #0b1324;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body.roof21-body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--roof21-bg);
  color: var(--roof21-text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.roof21-container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.roof21-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--roof21-surface);
  border-bottom: 1px solid transparent;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.roof21-header--transparent {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.roof21-header.is-scrolled {
  border-color: var(--roof21-line);
}

.roof21-topbar {
  border-bottom: 1px solid var(--roof21-line);
  background: #f1f5f9;
  font-size: 13px;
}

.roof21-topbar__inner,
.roof21-nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.roof21-topbar__inner {
  min-height: 42px;
}
.roof21-topbar__contacts,
.roof21-topbar__selectors {
  display: flex;
  align-items: center;
  gap: 14px;
}

.roof21-topbar a:hover,
.roof21-logo:hover,
.roof21-menu a:hover,
.roof21-footer a:hover {
  color: var(--roof21-accent);
}

.roof21-dropdown-btn,
.roof21-currency-form select {
  border: 1px solid var(--roof21-line);
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  font-size: 12px;
}

.roof21-language {
  position: relative;
}
.roof21-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 120px;
  border: 1px solid var(--roof21-line);
  border-radius: 8px;
  background: #fff;
  display: none;
}

.roof21-dropdown-menu.is-open {
  display: block;
}
.roof21-dropdown-menu li a {
  display: block;
  padding: 6px;
  border-radius: 6px;
}
.roof21-dropdown-menu li a:hover {
  background: #f8fafc;
}

.roof21-nav-wrap {
  min-height: 72px;
}
.roof21-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.roof21-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.roof21-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
}
.roof21-contact-btn {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--roof21-accent);
  color: #fff;
  font-weight: 600;
}

.roof21-menu-toggle {
  display: none;
  border: 1px solid var(--roof21-line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
}

.roof21-main {
  min-height: 60vh;
}

.roof21-hero-section {
  background: linear-gradient(130deg, #0b1324 0%, #0f172a 50%, #155e75 100%);
  color: #fff;
  padding: 72px 0;
}

.roof21-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  opacity: 0.8;
}
.roof21-hero-inner h1 {
  font-size: clamp(34px, 6vw, 56px);
  margin: 8px 0;
  line-height: 1.05;
}
.roof21-hero-inner > p {
  max-width: 720px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.roof21-search-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 18px;
}

.roof21-mode-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.roof21-mode-btn {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 8px 16px;
  cursor: pointer;
}
.roof21-mode-btn.is-active {
  background: #fff;
  color: var(--roof21-dark);
}

.roof21-search-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.roof21-search-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.roof21-search-grid input,
.roof21-search-grid select {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  height: 40px;
  padding: 0 10px;
}

.roof21-search-submit {
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  height: 44px;
  padding: 0 18px;
  font-weight: 700;
  background: #14b8a6;
  color: #022c22;
  cursor: pointer;
}

.roof21-section {
  padding: 56px 0;
}
.roof21-section--alt {
  background: #f1f5f9;
}

.roof21-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.roof21-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.roof21-card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roof21-property-card,
.roof21-development-card {
  border: 1px solid var(--roof21-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.roof21-property-card:hover,
.roof21-development-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.roof21-property-card img,
.roof21-development-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.roof21-property-card__body,
.roof21-development-card a {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.roof21-price {
  font-size: 20px;
  font-weight: 700;
  color: #0f766e;
  margin: 0;
}

.roof21-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.roof21-split > div {
  background: #fff;
  border: 1px solid var(--roof21-line);
  border-radius: 14px;
  padding: 20px;
}

.roof21-link-btn {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--roof21-line);
  border-radius: 10px;
  font-weight: 600;
  margin-top: 8px;
}

.roof21-contact-strip {
  background: #0f172a;
  color: #fff;
}
.roof21-contact-strip a {
  color: #5eead4;
}

.roof21-footer {
  border-top: 1px solid var(--roof21-line);
  background: #fff;
}

.roof21-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 36px 0;
}

.roof21-footer-grid h3 {
  margin-top: 0;
}
.roof21-socials,
.roof21-contact-list,
.roof21-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.roof21-newsletter {
  display: grid;
  gap: 8px;
}

.roof21-newsletter input[type="email"],
.roof21-newsletter button {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--roof21-line);
  padding: 0 10px;
}

.roof21-newsletter button {
  background: var(--roof21-accent);
  color: #fff;
  border: 0;
}

.roof21-footer-bottom {
  border-top: 1px solid var(--roof21-line);
  padding: 14px 0;
  color: var(--roof21-muted);
}

@media (max-width: 1024px) {
  .roof21-search-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .roof21-card-grid,
  .roof21-card-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roof21-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .roof21-topbar__inner,
  .roof21-topbar__contacts,
  .roof21-topbar__selectors {
    flex-wrap: wrap;
  }

  .roof21-menu-toggle {
    display: block;
  }

  .roof21-nav {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border: 1px solid var(--roof21-line);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
  }

  .roof21-nav.is-open {
    display: flex;
  }
  .roof21-menu {
    flex-direction: column;
    gap: 10px;
  }
  .roof21-contact-btn {
    text-align: center;
  }

  .roof21-search-grid,
  .roof21-card-grid,
  .roof21-card-grid--3,
  .roof21-split,
  .roof21-footer-grid {
    grid-template-columns: 1fr;
  }
}
