/*
Theme Name:  Zanzibar Property Hub
Theme URI:   https://zanzibarpropertyhub.com
Author:      Zanzibar Property Hub
Author URI:  https://zanzibarpropertyhub.com
Description: Official theme for Zanzibar Property Hub — Zanzibar's dedicated property resale platform.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: zph
Tags:        real-estate, property, custom-menu, featured-images, responsive-layout
*/

/* ═══════════════════════════════════════════
   ZANZIBAR PROPERTY HUB — Master Stylesheet
   zanzibarpropertyhub.com
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --ocean:  #0D4F6C;
  --gold:   #C8A96E;
  --coral:  #E8725A;
  --cream:  #FAF7F2;
  --dark:   #0A1A22;
  --mist:   #E2EDF1;
  --grey:   #8A9EA8;
  --lgrey:  #D6E2E8;
  --light:  #F5F0E8;
  --serif:  'Cormorant Garamond', Georgia, serif;
  --sans:   'Jost', sans-serif;
  --shadow: 0 4px 24px rgba(13,79,108,0.10);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.7;
}

/* ── WordPress Core Fixes ── */
img { max-width: 100%; height: auto; display: block; }
.wp-block-image { margin: 1.5rem 0; }
.alignleft  { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { margin: 0 auto; text-align: center; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--grey); text-align: center; margin-top: 0.5rem; }
a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--gold); }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--serif); font-weight: 400; line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(2rem,5vw,3.8rem); }
h2 { font-size: clamp(1.6rem,3.5vw,2.8rem); }
h3 { font-size: clamp(1.2rem,2.5vw,1.8rem); }
h4 { font-size: 1.2rem; }
p  { line-height: 1.8; color: #3a4a54; margin-bottom: 1rem; }

.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* ── Layout ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: rgba(10,26,34,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,110,0.15);
  transition: all 0.3s ease;
}
.nav.scrolled { padding: 0.8rem 2.5rem; }
.nav-logo { display: flex; align-items: center; gap: 12px; color: white; }
.nav-logo-text { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.1em; color: white; }
.nav-logo-text span { color: var(--gold); }
.nav-logo-sub { font-size: 0.6rem; letter-spacing: 0.3em; color: rgba(255,255,255,0.35); text-transform: uppercase; }

/* WordPress nav menu */
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links li { position: relative; }
.nav-links a {
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--gold); }
.nav-links .menu-item-has-children > ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--dark); border: 1px solid rgba(200,169,110,0.15);
  border-radius: 6px; min-width: 180px; padding: 0.5rem 0;
}
.nav-links .menu-item-has-children:hover > ul { display: block; }
.nav-links .menu-item-has-children > ul li a {
  display: block; padding: 0.5rem 1rem; font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
}
.nav-links .menu-item-has-children > ul li a:hover { color: var(--gold); background: rgba(255,255,255,0.05); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
  font-weight: 500 !important;
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-toggle span { width: 22px; height: 1.5px; background: white; display: block; }

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 0.85rem 2rem;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 3px; cursor: pointer; transition: all 0.25s; border: none;
}
.btn-primary { background: var(--ocean); color: white; }
.btn-primary:hover { background: #0f5f82; transform: translateY(-1px); color: white; }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: #d4b478; color: var(--dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-dark { background: transparent; color: var(--ocean); border: 1px solid var(--ocean); }
.btn-outline-dark:hover { background: var(--ocean); color: white; }

/* ── Property Cards ── */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 1.75rem; }
.card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(13,79,108,0.15); }
.card-img { height: 220px; background: var(--mist); position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-badge { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 3px; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.badge-resale  { background: var(--coral); color: white; }
.badge-invest  { background: var(--ocean); color: white; }
.badge-luxury  { background: var(--gold);  color: var(--dark); }
.badge-new     { background: var(--dark);  color: var(--gold); }
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-price    { font-family: var(--serif); font-size: 1.5rem; color: var(--ocean); margin-bottom: 0.25rem; }
.card-title    { font-family: var(--serif); font-size: 1.05rem; color: var(--dark); margin-bottom: 0.25rem; }
.card-location { font-size: 0.78rem; color: var(--grey); margin-bottom: 1rem; }
.card-specs    { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--grey); margin-bottom: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--lgrey); }

/* ── Hero ── */
.hero { min-height: 100vh; background: var(--dark); position: relative; display: flex; align-items: center; padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg,rgba(10,26,34,0.92) 0%,rgba(13,79,108,0.7) 100%); z-index: 1; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-content { position: relative; z-index: 2; }

/* ── Page Hero ── */
.page-hero { padding: 8rem 0 4rem; background: var(--dark); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(10,26,34,0.95) 0%,rgba(13,79,108,0.6) 100%); }
.page-hero-content { position: relative; z-index: 1; }

/* ── Stats Strip ── */
.stats-strip { background: var(--ocean); padding: 3rem 0; }
.stats-grid  { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
.stat-num   { font-family: var(--serif); font-size: 2.8rem; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 0.4rem; }

/* ── Search Bar ── */
.search-bar { display: flex; background: white; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,0.2); overflow: hidden; }
.search-bar select, .search-bar input { flex: 1; padding: 1rem 1.25rem; border: none; outline: none; font-family: var(--sans); font-size: 0.9rem; border-right: 1px solid var(--lgrey); color: var(--dark); }
.search-bar .search-btn { padding: 1rem 2rem; background: var(--gold); border: none; font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dark); cursor: pointer; }
.search-bar .search-btn:hover { background: #d4b478; }

/* ── Testimonials ── */
.testimonial { border-left: 3px solid var(--gold); padding: 1.5rem 2rem; background: white; border-radius: 0 var(--radius) var(--radius) 0; }
.testimonial-text   { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--dark); margin-bottom: 1rem; }
.testimonial-author { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; color: var(--ocean); text-transform: uppercase; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); display: block; margin-bottom: 0.4rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--lgrey);
  border-radius: 4px; font-family: var(--sans); font-size: 0.9rem; font-weight: 300;
  color: var(--dark); background: white; transition: border-color 0.2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--ocean); }
.form-textarea { min-height: 130px; resize: vertical; }

/* ── Utility ── */
.text-gold   { color: var(--gold); }
.text-ocean  { color: var(--ocean); }
.text-white  { color: white; }
.text-grey   { color: var(--grey); }
.text-center { text-align: center; }
.bg-dark   { background: var(--dark); }
.bg-ocean  { background: var(--ocean); }
.bg-cream  { background: var(--cream); }
.bg-light  { background: var(--light); }
.bg-white  { background: white; }
.divider   { width: 48px; height: 2px; background: var(--gold); margin: 1rem 0 1.5rem; }
.divider-center { margin: 1rem auto 1.5rem; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-name { font-family: var(--serif); font-size: 1.3rem; color: white; margin-bottom: 0.5rem; }
.footer-brand-name span { color: var(--gold); }
.footer-desc { font-size: 0.85rem; line-height: 1.8; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }
.footer h4 { font-family: var(--sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; padding: 0; }
.footer ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin: 0; }

/* ── WordPress Blog / Single ── */
.entry-content { max-width: 740px; margin: 0 auto; }
.entry-content h2 { margin: 2rem 0 1rem; }
.entry-content h3 { margin: 1.5rem 0 0.75rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content li { margin-bottom: 0.4rem; color: #3a4a54; }
.entry-content blockquote { border-left: 3px solid var(--gold); padding: 1rem 1.5rem; background: var(--light); margin: 1.5rem 0; }
.entry-content blockquote p { font-family: var(--serif); font-size: 1.1rem; font-style: italic; margin: 0; }
.wp-post-image { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }

/* ── WordPress Comment ── */
.comments-area { max-width: 740px; margin: 3rem auto 0; padding-top: 3rem; border-top: 1px solid var(--lgrey); }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: white; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.comment-author .fn { font-weight: 500; color: var(--ocean); }
.comment-metadata { font-size: 0.78rem; color: var(--grey); margin-bottom: 0.75rem; }
.comment-form input, .comment-form textarea { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--lgrey); border-radius: 4px; font-family: var(--sans); margin-bottom: 1rem; }
.comment-form input[type="submit"] { background: var(--ocean); color: white; border: none; cursor: pointer; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }

/* ── Responsive ── */
@media(max-width: 900px) {
  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .property-grid { grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); }
  .nav-links     { display: none; }
  .nav-toggle    { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--dark);
    padding: 1.5rem 2.5rem; gap: 1.2rem;
    border-top: 1px solid rgba(200,169,110,0.15);
  }
  .search-bar { flex-direction: column; }
  .search-bar select, .search-bar input { border-right: none; border-bottom: 1px solid var(--lgrey); }
}
@media(max-width: 600px) {
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: 1fr; }
}
