/*
Theme Name: 360 Real Estate Namibia
Theme URI: https://360realestatenamibia.com
Author: Codex
Description: A warm coastal desert WooCommerce real estate theme for 360 Real Estate Namibia.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: estate360
*/

:root {
  --black: #12100d;
  --black-soft: #211914;
  --ink: #22170f;
  --muted: #756454;
  --sand: #f6ead7;
  --sand-deep: #e4c69c;
  --paper: #fffaf0;
  --orange: #dd681f;
  --orange-deep: #a84113;
  --yellow: #f6c343;
  --line: rgba(34, 23, 15, 0.14);
  --shadow: 0 22px 50px rgba(33, 25, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(246, 195, 67, 0.18), transparent 34rem),
    linear-gradient(180deg, #fff4df 0%, var(--sand) 42%, #f1dbc1 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

body.reduce-motion * {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.top-strip {
  background: var(--black);
  color: #fff7e8;
  font-size: 13px;
}

.top-strip__inner,
.site-header__inner,
.nav-bar__inner,
.section-inner,
.site-footer__inner,
.content-area {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.top-strip__items {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand img {
  width: 58px;
  height: 58px;
}

.brand__name {
  display: block;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.brand__tag {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.header-search input,
.hero-search input,
.hero-search select,
.filter-panel input,
.filter-panel select,
.estate360-enquiry input,
.estate360-enquiry select,
.estate360-enquiry textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: #fffaf2;
  color: var(--ink);
  font: inherit;
}

.estate360-enquiry textarea {
  min-height: 120px;
  padding-top: 10px;
}

.header-actions,
.cta-row,
.property-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.estate360-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  box-shadow: 0 8px 20px rgba(221, 104, 31, 0.25);
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
button:hover,
.woocommerce a.button:hover,
.estate360-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(221, 104, 31, 0.38);
}

.button--dark {
  background: var(--black);
}

.button--outline,
.estate360-button--outline {
  color: var(--black);
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(18, 16, 13, 0.25);
  box-shadow: none;
}

.nav-bar {
  background: linear-gradient(90deg, var(--black), #2b1b10);
  color: #fff4df;
}

.nav-bar__inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.primary-menu,
.primary-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.primary-menu a,
.nav-call {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-menu a:hover,
.nav-call {
  background: rgba(246, 195, 67, 0.14);
  color: var(--yellow);
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff8e8;
  background: var(--black);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -5%;
  background-image:
    linear-gradient(90deg, rgba(18, 16, 13, 0.86), rgba(18, 16, 13, 0.55), rgba(18, 16, 13, 0.22)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  animation: slow-drift 24s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(246, 195, 67, 0.22), transparent 22rem),
    linear-gradient(180deg, transparent 68%, rgba(246, 234, 215, 0.98) 100%);
  pointer-events: none;
}

@keyframes slow-drift {
  from {
    transform: scale(1.04) translate3d(-1.2%, -0.5%, 0);
  }
  to {
    transform: scale(1.1) translate3d(1.2%, 0.5%, 0);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0 130px;
}

.eyebrow {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(18, 16, 13, 0.5);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 16px 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #fff0d6;
  font-size: 18px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr auto;
  gap: 10px;
  width: min(1050px, 100%);
  padding: 12px;
  border: 1px solid rgba(246, 195, 67, 0.34);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: var(--shadow);
}

.section {
  padding: 64px 0;
}

.section--dark {
  color: #fff4df;
  background: linear-gradient(135deg, var(--black), #3b2112);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.section-heading p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section--dark .section-heading p {
  color: #e9d1ae;
}

.trust-grid,
.type-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-item,
.type-card,
.feature-card,
.estate360-enquiry,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 12px 28px rgba(33, 25, 20, 0.08);
}

.trust-item,
.feature-card {
  padding: 18px;
}

.trust-item strong,
.feature-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  text-transform: uppercase;
}

.trust-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 6px;
  background: var(--black);
  color: var(--yellow);
  font-weight: 900;
}

.type-card {
  min-height: 170px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff8e8;
  background: linear-gradient(135deg, #2a160c, #9b3d13 68%, #d96b20);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.type-card::after {
  content: "";
  position: absolute;
  inset: auto -32px -42px auto;
  width: 130px;
  height: 130px;
  border: 18px solid rgba(246, 195, 67, 0.18);
  border-radius: 50%;
}

.type-card:hover,
.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 38px rgba(33, 25, 20, 0.16);
}

.type-card strong {
  position: relative;
  z-index: 1;
  font-size: 22px;
}

.type-card span {
  position: relative;
  z-index: 1;
  color: #ffe8bc;
}

.woocommerce ul.products,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.woocommerce ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(33, 25, 20, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
}

.woocommerce-loop-product__title {
  min-height: 52px;
  padding: 14px 14px 4px;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.property-location,
.property-status {
  display: block;
  padding: 0 14px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.property-status {
  color: var(--orange-deep);
  text-transform: uppercase;
}

.woocommerce ul.products li.product .price,
.price {
  display: block;
  padding: 0 14px 10px;
  color: var(--black);
  font-size: 22px;
  font-weight: 900;
}

.property-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 14px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.property-meta span {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff3df;
  font-size: 12px;
  font-weight: 900;
}

.property-actions {
  padding: 0 14px 14px;
}

.property-actions .estate360-button {
  flex: 1 1 auto;
}

.archive-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 42px 0 64px;
}

.filter-panel,
.estate360-enquiry {
  padding: 20px;
}

.filter-panel h2,
.estate360-enquiry h2 {
  margin-top: 0;
}

.filter-panel label,
.estate360-enquiry label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-main {
  padding: 46px 0 70px;
}

.entry-content {
  max-width: 900px;
}

.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 36px;
}

.single-product .summary {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.single-product .product_title {
  margin-top: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
}

.property-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.property-fact {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff3df;
}

.property-fact span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.property-fact strong {
  display: block;
  margin-top: 3px;
}

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  color: #fff4df;
  background: var(--black);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 28px;
  padding: 44px 0;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
}

.site-footer p,
.site-footer li {
  color: #e8cfaa;
  font-size: 14px;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #d8bd91;
  font-size: 13px;
}

.woocommerce-info,
.estate360-notice {
  padding: 14px;
  border-left: 4px solid var(--orange);
  background: #fff3df;
}

@media (max-width: 1040px) {
  .site-header__inner,
  .archive-shell,
  .single-product div.product,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .hero-search {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid,
  .type-grid,
  .feature-grid,
  .woocommerce ul.products,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .top-strip__inner,
  .nav-bar__inner,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 700px;
  }

  .hero-search,
  .trust-grid,
  .type-grid,
  .feature-grid,
  .woocommerce ul.products,
  .product-grid,
  .property-facts {
    grid-template-columns: 1fr;
  }

  .header-actions {
    width: 100%;
  }

  .button,
  .estate360-button {
    width: 100%;
  }
}
