/*
Theme Name:  New Harbor DWC LLC — Luxury Dubai Real Estate
Theme URI:   https://newharbordwc.com
Author:      New Harbor DWC LLC
Author URI:  https://newharbordwc.com
Description: A modern luxury WordPress real estate theme for a Dubai broker company. Includes property CPT, community/property-type taxonomies, advanced filters, Web3Forms contact form integration, and Stripe subscription checkout (AED, monthly/yearly). Fully responsive, high-conversion layout with sticky booking sidebar and floating WhatsApp widget.
Version:     1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License:     GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newharbor
Tags:        real-estate, dubai, luxury, rental, stripe, web3forms, custom-post-type, responsive, three-columns, right-sidebar, custom-menu, featured-images, translation-ready
*/

/* ================================================================
   1. Design Tokens
=================================================================*/
:root {
  --nh-navy:       #0A1836;
  --nh-navy-light: #142451;
  --nh-navy-dark:  #060F26;
  --nh-gold:       #C9A15A;
  --nh-gold-light: #E0BE7C;
  --nh-gold-dark:  #A8823F;
  --nh-slate:      #64748B;
  --nh-mist:       #E7ECF3;
  --nh-cream:      #FAF7F2;
  --nh-white:      #ffffff;
  --nh-whatsapp:   #25D366;
}

/* ================================================================
   2. Reset & Base
=================================================================*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--nh-navy);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--nh-navy); text-decoration: none; transition: color .3s; }
a:hover { color: var(--nh-gold); }
h1, h2, h3, h4, h5, .nh-serif { font-family: 'Playfair Display', Georgia, serif; margin: 0 0 .5em; }

.nh-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nh-container-lg { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ================================================================
   3. Buttons
=================================================================*/
.nh-btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, #D4AF6A, #C9A15A 50%, #A8823F);
  color: var(--nh-navy) !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(201,161,90,.5);
  transition: transform .3s, box-shadow .3s;
  text-align: center;
}
.nh-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(201,161,90,.7); }

.nh-btn-outline {
  display: inline-block;
  padding: 12px 26px;
  border: 1.5px solid var(--nh-gold);
  color: var(--nh-gold) !important;
  border-radius: 999px;
  font-weight: 600;
  transition: all .3s;
}
.nh-btn-outline:hover { background: var(--nh-gold); color: var(--nh-navy) !important; }

.nh-whatsapp-btn {
  display: inline-block;
  background: var(--nh-whatsapp);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: filter .3s;
}
.nh-whatsapp-btn:hover { filter: brightness(1.1); }

/* ================================================================
   4. Top Bar & Header
=================================================================*/
.nh-topbar {
  background: var(--nh-navy);
  color: var(--nh-mist);
  font-size: 12px;
  padding: 8px 0;
}
.nh-topbar__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.nh-topbar a { color: var(--nh-gold-light); }
.nh-topbar a:hover { color: var(--nh-white); }

.nh-header {
  background: #fff;
  border-bottom: 1px solid var(--nh-mist);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 20px -10px rgba(10,24,54,.15);
}
.nh-header__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nh-logo { display: flex; align-items: center; gap: 12px; }
.nh-logo__mark {
  width: 44px; height: 44px; border-radius: 8px;
  background: linear-gradient(135deg, var(--nh-navy), var(--nh-navy-light));
  border: 1px solid rgba(201,161,90,.4);
  color: var(--nh-gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
}
.nh-logo__text .name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--nh-navy); line-height: 1; }
.nh-logo__text .tag  { font-size: 10px; letter-spacing: 4px; color: var(--nh-gold); margin-top: 4px; }

.nh-menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nh-menu a { font-size: 14px; font-weight: 500; letter-spacing: .5px; color: var(--nh-navy); }
.nh-menu .current-menu-item > a { color: var(--nh-gold); }

.nh-header__cta { display: flex; align-items: center; gap: 12px; }
.nh-mobile-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }

/* ================================================================
   5. Hero
=================================================================*/
.nh-hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
}
.nh-hero__bg { position: absolute; inset: 0; }
.nh-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.nh-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,24,54,.85) 0%, rgba(10,24,54,.55) 50%, rgba(10,24,54,.8) 100%);
}
.nh-hero__content { position: relative; padding: 80px 0; max-width: 800px; }
.nh-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(201,161,90,.5);
  border-radius: 999px;
  color: var(--nh-gold);
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
}
.nh-eyebrow::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: var(--nh-gold); }
.nh-hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  color: #fff; margin: 24px 0 20px; line-height: 1.05;
}
.nh-hero h1 em { font-style: italic; background: linear-gradient(135deg, #E0BE7C, #C9A15A, #A8823F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nh-hero p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 560px; margin: 0 0 32px; }

.nh-hero__stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 32px; color: rgba(255,255,255,.8); }
.nh-hero__stats .num { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: var(--nh-gold); }
.nh-hero__stats .lbl { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }

/* ================================================================
   6. Search Widget
=================================================================*/
.nh-search {
  position: relative;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.35);
  margin-top: 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.nh-search label { display: block; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--nh-slate); font-weight: 600; margin-bottom: 6px; }
.nh-search select, .nh-search input {
  width: 100%; padding: 12px; border: 1px solid var(--nh-mist);
  border-radius: 8px; font-size: 14px; background: #fff;
  color: var(--nh-navy);
}
.nh-search select:focus, .nh-search input:focus { outline: none; border-color: var(--nh-gold); }
.nh-search__btn { align-self: end; }

/* ================================================================
   7. Sections / Utility
=================================================================*/
.nh-section { padding: 80px 0; }
.nh-section--dark { background: var(--nh-navy); color: #fff; position: relative; overflow: hidden; }
.nh-section--dark h2 { color: #fff; }
.nh-section--cream { background: var(--nh-cream); }

.nh-section-head { text-align: center; margin-bottom: 56px; }
.nh-section-head .eyebrow { color: var(--nh-gold); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; font-weight: 600; }
.nh-section-head h2 { font-size: clamp(28px, 4vw, 48px); color: var(--nh-navy); margin: 12px 0 20px; }
.nh-section--dark .nh-section-head h2 { color: #fff; }
.nh-divider-gold {
  height: 2px; width: 60px;
  background: linear-gradient(90deg, var(--nh-gold), transparent);
  margin: 20px auto;
}

/* ================================================================
   8. Grids: Properties, Communities, Tiers
=================================================================*/
.nh-grid { display: grid; gap: 24px; }
.nh-grid--4 { grid-template-columns: repeat(4, 1fr); }
.nh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nh-grid--2 { grid-template-columns: repeat(2, 1fr); }

.nh-card {
  background: #fff;
  border: 1px solid rgba(231,236,243,.7);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
  box-shadow: 0 4px 12px rgba(10,24,54,.06);
}
.nh-card:hover { transform: translateY(-6px); box-shadow: 0 25px 50px -20px rgba(10,24,54,.35); }
.nh-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--nh-mist); }
.nh-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.nh-card:hover .nh-card__media img { transform: scale(1.08); }
.nh-card__badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; }
.nh-badge { padding: 4px 12px; border-radius: 999px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.nh-badge--dark { background: rgba(10,24,54,.9); color: #fff; }
.nh-badge--gold { background: var(--nh-gold); color: var(--nh-navy); }
.nh-card__body { padding: 20px; }
.nh-card__title { font-size: 18px; font-weight: 700; color: var(--nh-navy); min-height: 3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-card__price { font-size: 24px; font-weight: 700; color: var(--nh-gold); margin-top: 12px; }
.nh-card__price small { font-size: 12px; color: var(--nh-slate); font-weight: 400; }
.nh-card__meta { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--nh-mist); font-size: 13px; color: var(--nh-slate); }
.nh-card__meta b { color: var(--nh-navy); }

/* Community */
.nh-community {
  position: relative; aspect-ratio: 3/4; border-radius: 16px; overflow: hidden;
  display: block; color: #fff;
}
.nh-community img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.nh-community:hover img { transform: scale(1.1); }
.nh-community::after { content:''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,15,38,.9), transparent 50%); }
.nh-community__label { position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 2; }
.nh-community__label h3 { color: #fff; font-size: 22px; margin: 0; }
.nh-community__label .count { color: var(--nh-gold); font-size: 14px; margin-top: 4px; }

/* Price tier */
.nh-tier { background: #fff; border: 1px solid var(--nh-mist); border-radius: 16px; padding: 32px; position: relative; box-shadow: 0 8px 20px rgba(10,24,54,.06); transition: transform .4s; }
.nh-tier:hover { transform: translateY(-6px); }
.nh-tier--featured { background: var(--nh-navy); color: #fff; border-color: var(--nh-gold); }
.nh-tier__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--nh-gold); color: var(--nh-navy); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.nh-tier__label { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--nh-slate); }
.nh-tier--featured .nh-tier__label { color: var(--nh-gold); }
.nh-tier__price { font-family: 'Playfair Display', serif; font-size: 36px; font-weight: 700; color: var(--nh-gold); margin: 16px 0 4px; }
.nh-tier__meta { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--nh-mist); font-size: 14px; }
.nh-tier--featured .nh-tier__meta { border-color: rgba(255,255,255,.2); }
.nh-tier__meta .row { display: flex; justify-content: space-between; padding: 4px 0; }

/* ================================================================
   9. Property Archive / Filters Sidebar
=================================================================*/
.nh-archive { display: grid; grid-template-columns: 320px 1fr; gap: 32px; padding: 48px 0; }
.nh-sidebar {
  background: #fff; border: 1px solid var(--nh-mist);
  border-radius: 16px; padding: 24px;
  position: sticky; top: 100px; align-self: start;
  box-shadow: 0 4px 12px rgba(10,24,54,.05);
}
.nh-sidebar h3 { font-size: 20px; color: var(--nh-navy); margin: 0 0 20px; }
.nh-filter { margin-bottom: 20px; }
.nh-filter label { display: block; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--nh-slate); font-weight: 600; margin-bottom: 6px; }
.nh-filter select, .nh-filter input[type="number"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--nh-mist);
  border-radius: 8px; font-size: 14px; background: #fff;
}
.nh-bed-toggle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.nh-bed-toggle button { padding: 8px; border: 1px solid var(--nh-mist); background: #fff; border-radius: 8px; font-size: 12px; cursor: pointer; color: var(--nh-slate); transition: all .2s; }
.nh-bed-toggle button:hover { border-color: var(--nh-gold); }
.nh-bed-toggle button.is-active { background: var(--nh-navy); color: #fff; border-color: var(--nh-navy); }

.nh-term-toggle { display: flex; background: rgba(231,236,243,.6); padding: 4px; border-radius: 999px; margin-bottom: 20px; }
.nh-term-toggle button { flex: 1; padding: 8px; background: transparent; border: 0; border-radius: 999px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; cursor: pointer; color: var(--nh-slate); }
.nh-term-toggle button.is-active { background: var(--nh-navy); color: #fff; }

/* ================================================================
   10. Single Property
=================================================================*/
.nh-single { display: grid; grid-template-columns: 1fr 400px; gap: 32px; padding: 40px 0 80px; }
.nh-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nh-gallery__main { grid-column: 1 / -1; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: var(--nh-mist); }
.nh-gallery__thumb { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.nh-gallery__thumb.is-active { border-color: var(--nh-gold); }

.nh-specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--nh-cream); border: 1px solid var(--nh-mist);
  border-radius: 12px; padding: 20px; margin: 24px 0;
  text-align: center;
}
.nh-specs .icon { font-size: 24px; }
.nh-specs .lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--nh-slate); margin: 4px 0; }
.nh-specs .val { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--nh-navy); }

.nh-amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.nh-amenity { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.nh-amenity::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(201,161,90,.2); color: var(--nh-gold); font-size: 12px; font-weight: 700; }

.nh-sidebar-booking { background: #fff; border: 1px solid var(--nh-mist); border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px -10px rgba(10,24,54,.15); }
.nh-sidebar-booking input, .nh-sidebar-booking select { width: 100%; padding: 12px; border: 1px solid var(--nh-mist); border-radius: 8px; font-size: 14px; margin-bottom: 10px; }
.nh-sidebar-booking .price { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; color: var(--nh-gold); }

/* ================================================================
   11. Contact Page
=================================================================*/
.nh-contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.nh-contact-card { background: #fff; border: 1px solid var(--nh-mist); border-radius: 16px; padding: 28px; text-align: left; }
.nh-contact-card .icon-circle { width: 56px; height: 56px; border-radius: 50%; background: rgba(201,161,90,.15); color: var(--nh-gold); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.nh-form input, .nh-form select, .nh-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--nh-mist); border-radius: 8px; font-size: 14px; font-family: inherit; margin-bottom: 12px; }
.nh-form textarea { min-height: 130px; resize: vertical; }
.nh-map iframe { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: 16px; }

/* ================================================================
   12. Footer
=================================================================*/
.nh-footer { background: var(--nh-navy-dark); color: var(--nh-mist); padding: 70px 0 20px; margin-top: 60px; }
.nh-footer h4 { color: #fff; margin-bottom: 16px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.nh-footer a { color: var(--nh-mist); font-size: 14px; }
.nh-footer a:hover { color: var(--nh-gold); }
.nh-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.nh-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; font-size: 12px; opacity: .6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ================================================================
   13. Floating WhatsApp
=================================================================*/
.nh-fab-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--nh-whatsapp);
  display: flex; align-items: center; justify-content: center;
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(37,211,102,.5);
  transition: transform .3s;
  animation: nhPulse 2s infinite;
}
.nh-fab-whatsapp:hover { transform: scale(1.1); }
@keyframes nhPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ================================================================
   14. Pagination
=================================================================*/
.nh-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.nh-pagination a, .nh-pagination span {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--nh-mist);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--nh-navy);
}
.nh-pagination .current { background: var(--nh-navy); color: #fff; border-color: var(--nh-navy); }
.nh-pagination a:hover { border-color: var(--nh-gold); color: var(--nh-gold); }

/* ================================================================
   15. Legal Pages
=================================================================*/
.nh-legal { background: #fff; border: 1px solid var(--nh-mist); border-radius: 16px; padding: 48px; color: var(--nh-slate); }
.nh-legal h2 { color: var(--nh-navy); font-size: 24px; margin: 32px 0 12px; }
.nh-legal ul, .nh-legal ol { padding-left: 24px; }
.nh-legal li { margin: 4px 0; }

/* ================================================================
   16. Responsive
=================================================================*/
@media (max-width: 1024px) {
  .nh-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nh-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .nh-archive { grid-template-columns: 1fr; }
  .nh-single { grid-template-columns: 1fr; }
  .nh-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nh-menu { display: none; }
  .nh-mobile-toggle { display: block; }
  .nh-menu.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; border-top: 1px solid var(--nh-mist); }
  .nh-search { grid-template-columns: 1fr; }
  .nh-grid--4, .nh-grid--3, .nh-grid--2 { grid-template-columns: 1fr; }
  .nh-specs { grid-template-columns: repeat(2, 1fr); }
  .nh-amenities { grid-template-columns: repeat(2, 1fr); }
  .nh-gallery { grid-template-columns: repeat(3, 1fr); }
  .nh-contact-cards { grid-template-columns: 1fr; }
  .nh-footer__grid { grid-template-columns: 1fr; }
}
