/* ============================================================
   custom-overrides.css — finishing touches on top of styles.css
   Loaded AFTER styles.css so these rules win on specificity ties.
   ============================================================ */

:root {
  --brand-gold: #d4af37;
  --brand-gold-dark: #b8941f;
  --brand-gold-light: #e8c553;
  /* Real gold texture as background; gradient is fallback if the image fails. */
  --gold-texture: url('/assets/img/textures/gold.jpg') center/cover, linear-gradient(135deg, #f4d676 0%, #d4af37 45%, #b8941f 100%);
  --gold-gradient: linear-gradient(135deg, #f4d676 0%, #d4af37 45%, #b8941f 100%);
  --gold-gradient-hover: linear-gradient(135deg, #f9e08a 0%, #e0bb45 45%, #c89f25 100%);
  --brand-dark: #1a1a1a;
  --brand-accent: #2D3954;
  --shadow-card: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.15);
}

/* ---- Dark-section heading legibility ---- */
.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4,
.dark-section p, .dark-section li {
  color: #fff !important;
}
.dark-section .subtle { color: #bbb !important; }
.dark-section a { color: var(--brand-gold); }

/* ---- Featured-project banner (homepage, below hero) ---- */
.featured-banner {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.featured-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}
.featured-banner .inner {
  position: relative;
  z-index: 1;
  padding: 56px 0;
  max-width: 640px;
}
.featured-banner .label {
  display: inline-block;
  background-image: url('/assets/img/textures/gold.jpg');
  background-size: cover;
  background-color: #d4af37;
  color: #1a1a1a;
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(184,148,31,0.45), inset 0 1px 0 rgba(255,255,255,0.45);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.featured-banner h2 {
  color: #fff !important;
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.featured-banner p.sub {
  color: #e5e7eb !important;
  font-size: 17px;
  margin: 0 0 28px;
  line-height: 1.5;
}
.featured-banner .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.featured-banner .actions a.outline {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff !important;
  padding: 14px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.featured-banner .actions a.outline:hover { background: rgba(255,255,255,0.18); }
@media (max-width: 768px) {
  .featured-banner h2 { font-size: 26px; }
  .featured-banner .inner { padding: 40px 0; }
}

/* ---- Hero (homepage) ---- */
.hero {
  background: linear-gradient(135deg, #0f0f0f 0%, #1f2937 100%);
  color: #fff;
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(200,164,90,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(45,57,84,0.3) 0%, transparent 50%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  color: #fff !important;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.1;
}
.hero p.lead {
  font-size: 20px;
  color: #d1d5db !important;
  margin: 0 auto 36px;
  max-width: 680px;
  line-height: 1.5;
}
.hero-search {
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  display: inline-flex;
  gap: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 600px;
  width: 100%;
}
.hero-search a {
  flex: 1;
  padding: 16px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-search a:hover { transform: translateY(-2px); }
.hero-search .btn-gold {
  background-image: url('/assets/img/textures/gold.jpg');
  background-size: 200% auto;
  background-position: center;
  background-color: #d4af37;
  color: #1a1a1a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  transition: all .25s ease, background-position .6s ease;
}
.hero-search .btn-gold:hover { background-position: right center; }
.hero-search .btn-dark { background: #1f2937; color: #fff; }

/* ---- Section titles ---- */
.section-title {
  text-align: center;
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
}
.section-subtitle {
  text-align: center;
  color: #6b7280;
  margin: 0 0 40px;
  font-size: 16px;
}
section { padding: 64px 0; }
section.muted { background: #fafafa; }

/* ---- Property cards (used on home, listings) ---- */
.property-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(0,0,0,0.04);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.property-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg,#eaeaea 0%, #d4d4d4 100%);
  overflow: hidden;
}
.property-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.property-card:hover .thumb img { transform: scale(1.05); }
.property-card .badge-status {
  position: absolute; top: 12px; left: 12px;
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.property-card .badge-soon {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
}
.property-card .body { padding: 20px; }
.property-card .body h4 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937 !important;
  line-height: 1.3;
}
.property-card .body h4 a { color: inherit; text-decoration: none; }
.property-card .body h4 a:hover { color: var(--brand-gold) !important; }
.property-card .location {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
}
.property-card .location i { margin-right: 6px; color: #9ca3af; }
.property-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f3f4f6;
  padding-top: 14px;
  margin-top: 6px;
}
.property-card .price {
  color: var(--brand-gold);
  font-weight: 700;
  font-size: 16px;
}
.property-card .view-more {
  color: var(--brand-gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.property-card .view-more:hover { text-decoration: underline; }

/* ---- Builder pills (homepage) ---- */
.builder-grid a {
  display: block;
  padding: 22px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: #1f2937;
  font-weight: 600;
  text-align: center;
  transition: all .2s ease;
  margin-bottom: 16px;
}
.builder-grid a:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200,164,90,0.15);
}

/* ---- Buttons ---- */
.btn-primary-gold {
  background-image: url('/assets/img/textures/gold.jpg');
  background-size: 200% auto;
  background-position: center;
  background-color: #d4af37;
  color: #1a1a1a !important;
  border: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-block;
  text-decoration: none;
  transition: all .25s ease, background-position .6s ease;
  box-shadow: 0 2px 8px rgba(184,148,31,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}
.btn-primary-gold:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184,148,31,0.55), inset 0 1px 0 rgba(255,255,255,0.5);
  color: #1a1a1a !important;
}

/* ---- Forms ---- */
.enquiry-form {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid #f3f4f6;
}
.enquiry-form h3 {
  margin: 0 0 20px;
  font-size: 20px;
  color: #1f2937 !important;
}
.enquiry-form .form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
  transition: border-color .2s ease;
}
.enquiry-form .form-control:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(200,164,90,0.1);
}

/* ---- CTA strip ---- */
.cta-strip {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 36px 0;
}
.cta-strip h3 {
  color: #fff !important;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.cta-strip .cta-btn {
  background-image: url('/assets/img/textures/gold.jpg');
  background-size: 200% auto;
  background-position: center;
  background-color: #d4af37;
  color: #1a1a1a !important;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(184,148,31,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  transition: all .25s ease, background-position .6s ease;
}
.cta-strip .cta-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(184,148,31,0.6), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ---- Footer ---- */
footer.site-footer {
  background: #0a0a0a;
  color: #9ca3af;
  padding: 56px 0 0;
}
footer.site-footer h4 {
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
footer.site-footer p, footer.site-footer li, footer.site-footer a {
  color: #9ca3af !important;
  line-height: 1.7;
  font-size: 14px;
}
footer.site-footer a:hover { color: var(--brand-gold) !important; }
footer.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer.site-footer ul li { margin-bottom: 6px; }
footer.site-footer .social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: #1f1f1f;
  border-radius: 50%;
  margin-right: 8px;
  color: #9ca3af !important;
  transition: all .2s ease;
}
footer.site-footer .social a:hover {
  background: var(--brand-gold);
  color: #fff !important;
}
footer.site-footer .copyright {
  background: #000;
  color: #6b7280;
  text-align: center;
  padding: 18px 0;
  margin-top: 40px;
  font-size: 13px;
}

/* ---- Property detail page ---- */
.property-hero-gallery {
  background: #111;
  padding: 0;
}
.property-hero-gallery .gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4px;
  height: 480px;
}
@media (max-width: 768px) {
  .property-hero-gallery .gallery-grid { grid-template-columns: 1fr; height: auto; }
}
.property-hero-gallery .gallery-grid > a {
  display: block;
  overflow: hidden;
  position: relative;
}
.property-hero-gallery .gallery-grid > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.property-hero-gallery .gallery-grid > a:hover img { transform: scale(1.03); }

.property-title-bar {
  background: #fff;
  padding: 28px 0;
  border-bottom: 1px solid #f3f4f6;
}
.property-title-bar h1 {
  margin: 0 0 6px;
  font-size: 30px;
  color: #1f2937 !important;
}
.property-title-bar .badge {
  background: #fef3c7;
  color: #92400e !important;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 12px;
}
.property-title-bar .price {
  color: var(--brand-gold);
  font-weight: 800;
  font-size: 26px;
}

.spec-card {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
  margin-bottom: 16px;
  height: 100%;
}
.spec-card .label {
  color: #9ca3af;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.spec-card .value {
  color: #1f2937 !important;
  font-weight: 700;
  font-size: 16px;
}

.amenity-pill {
  background: #f9fafb;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #374151;
}
.amenity-pill i { color: #10b981; margin-right: 8px; }

.gallery-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  transition: transform .25s ease;
}
.gallery-thumb:hover { transform: scale(1.03); }

/* ---- Listing pages ---- */
.listing-hero {
  background: #f9fafb;
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
}
.listing-hero h1 {
  margin: 0;
  color: #1f2937 !important;
  font-size: 32px;
}
.listing-hero p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 15px;
}

/* ---- Misc utilities ---- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: #9ca3af;
}
.empty-state h3 { color: #6b7280 !important; margin: 0 0 12px; }

/* Phone CTA in nav */
.nav-phone-cta {
  background: #10b981 !important;
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}
.nav-phone-cta:hover { background: #059669 !important; }
.nav-phone-cta i { margin-right: 6px; }

/* Smooth nav */
.header {
  background: #1a1a1a;
  padding: 12px 0;
}
.header .nav-brand img {
  height: 56px;
  width: auto;
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
}
.header .nav-menu > li > a {
  color: #fff !important;
  font-weight: 500;
  padding: 8px 16px;
}
.header .nav-menu > li > a:hover { color: var(--brand-gold) !important; }
