/*
Theme Name: Cameo One Homes
Theme URI: https://cameo1homes.com
Description: Premium Real Estate WordPress Theme - Cameo One Homes Ghana
Version: 1.0
Author: Cameo One Homes
Author URI: https://cameo1homes.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --red: #0d2a47;
  --red-dark: #0d2a47;
  --red-light: #e8f1f7;
  --dark: #1a1a1a;
  --mid: #4a4a4a;
  --muted: #888;
  --subtle: #aaaaaa;
  --line: #e8e8e8;
  --bg: #f7f6f4;
  --white: #ffffff;
  --ays-bg: #0b0b0b;
  --ays-gold: #F23801;
  --ays-gold-dim: rgba(242, 56, 1, 0.15);
  --ays-gold-text: #D1AD61;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'DM Sans', sans-serif;
  --nav-h: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
  font-family: var(--sans);
}

/* ===== WORDPRESS SPECIFICS ===== */
.wp-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Hide admin bar from affecting layout */
body.admin-bar {
  padding-top: 0;
}

/* ===== NAV ===== */
#main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}

.nav-logo img {
  height: 38px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--mid);
  font-weight: 400;
  padding: 8px 14px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links a.active {
  color: var(--red);
  font-weight: 500;
}

.nav-ays {
  background: var(--ays-bg);
  color: var(--ays-gold) !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
  padding: 9px 18px !important;
  font-weight: 500 !important;
  border: 1px solid var(--ays-gold-dim);
  transition: all 0.2s !important;
}

.nav-ays:hover {
  background: var(--ays-gold) !important;
  color: #000 !important;
}

.nav-contact-btn {
  background: var(--red);
  color: #fff !important;
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
  padding: 9px 20px !important;
  transition: background 0.2s !important;
}

.nav-contact-btn:hover {
  background: var(--red-dark) !important;
}

/* ===== PAGE SYSTEM ===== */
.page {
  display: none;
  padding-top: var(--nav-h);
}

.page.active {
  display: block;
}

/* ===== SHARED COMPONENTS ===== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 56px 0;
}

.bg-white {
  background: var(--white);
}

.bg-dark {
  background: var(--dark);
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.15;
}

.section-title em {
  font-style: italic;
  color: var(--red);
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.75;
  max-width: 520px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--dark);
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red);
}

.btn-ghost:hover {
  background: var(--red);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--red);
}

.btn-white:hover {
  background: var(--red-light);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}

/* ===== PROPERTY CARDS ===== */
.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.prop-card {
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  border-bottom: 3px solid transparent;
}

.prop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
  border-bottom-color: var(--red);
}

.prop-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #E0DBD6;
}

.prop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.prop-card:hover .prop-img img {
  transform: scale(1.04);
}

.prop-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
}

.badge-sale {
  background: var(--red);
  color: #fff;
}

.badge-rent {
  background: var(--dark);
  color: #fff;
}

.badge-new {
  background: var(--ays-gold);
  color: #000;
}

.prop-price-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--white);
  padding: 10px 16px;
}

.prop-price-tag span {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
}

.prop-price-tag small {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--muted);
  display: block;
  line-height: 1;
}

.prop-info {
  padding: 20px 22px;
}

.prop-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 5px;
  line-height: 1.3;
}

.prop-loc {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
}

.prop-loc svg {
  flex-shrink: 0;
}

.prop-meta {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.prop-meta span {
  font-size: 12px;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 400;
}

.prop-meta svg {
  color: var(--muted);
}

/* ===== FILTERS ===== */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.filter-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 18px;
  font-size: 12px;
  letter-spacing: 0.3px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mid);
  transition: all 0.2s;
  font-family: var(--sans);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.filter-select {
  padding: 7px 14px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mid);
  font-family: var(--sans);
  outline: none;
  cursor: pointer;
}

.results-bar {
  background: var(--bg);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.results-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.results-count {
  font-size: 13px;
  color: var(--muted);
}

.results-count strong {
  color: var(--dark);
  font-weight: 500;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 48px;
  justify-content: center;
}

.page-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 13px;
  color: var(--mid);
  transition: all 0.2s;
  cursor: pointer;
  font-family: var(--sans);
}

.page-btn.active,
.page-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.page-btn.arrow {
  font-size: 16px;
  color: var(--muted);
}

/* ===== HOME PAGE HERO ===== */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-h));
  min-height: 600px;
  overflow: hidden;
  margin-top: var(--nav-h);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  max-width: 1320px;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
  font-weight: 400;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 80px);
  font-weight: 300;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 22px;
  max-width: 640px;
}

.hero-title em {
  color: var(--red);
  font-style: italic;
}

.hero-tagline {
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 32px;
  font-style: italic;
  font-family: var(--serif);
}

.hero-tagline em {
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
}

.stat-item {
  flex: 1;
  padding: 22px 32px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.slide-dots {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  transition: all 0.3s;
  cursor: pointer;
}

.slide-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 3px;
}

/* SEARCH STRIP */
.search-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.search-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--line);
}

.search-inner select,
.search-inner input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-right: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--dark);
  background: transparent;
  outline: none;
  min-width: 0;
}

.search-inner input {
  border-right: none;
}

.search-inner select {
  cursor: pointer;
  min-width: 170px;
}

.search-inner .btn {
  padding: 14px 32px;
  border-radius: 0;
  flex-shrink: 0;
}

/* FEATURED STRIP */
.category-strip {
  background: #0b0b0b;
  padding: 0;
}

.category-items {
  display: flex;
}

.category-item {
  flex: 1;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 0.2s;
}

.category-item:last-child {
  border-right: none;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.category-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(21, 66, 115, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon svg {
  width: 18px;
  height: 18px;
  color: #154273;
}

.category-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-top {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--red);
}

.footer-col a.gold {
  color: var(--ays-gold);
}

.ays-footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 20px;
  }

  .container {
    padding: 0 20px;
  }

  .search-inner {
    padding: 0 20px;
  }

  .search-inner select,
  .search-inner input {
    font-size: 13px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .category-items {
    flex-wrap: wrap;
  }

  .category-item {
    flex: 0 0 50%;
    padding: 20px 16px;
  }

  .stat-item {
    padding: 16px 20px;
  }

  .stat-num {
    font-size: 24px;
  }

  .slide-dots {
    bottom: 60px;
  }

  .ays-footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: clamp(32px, 6vw, 48px);
  }

  .category-item {
    flex: 0 0 100%;
  }

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

  .section {
    padding: 40px 0;
  }
}
