/* =========================================================
   HK Estates — style.css
   Base styles, layout, and components
   ========================================================= */

:root {
  --color-dark: #1c1f26;
  --color-text: #3a3f47;
  --color-muted: #737880;
  --color-accent: #b8925a;       /* warm gold, common in real-estate themes */
  --color-accent-dark: #96723f;
  --color-light-bg: #f6f5f2;
  --color-white: #ffffff;
  --border-radius: 4px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.12);
  --container-width: 1200px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
  background: var(--color-white);
}

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 16px;
  line-height: 1.25;
}

h2 { font-size: 2rem; letter-spacing: 0.5px; }
h3 { font-size: 1.25rem; }

.section-divider {
  width: 70px;
  height: 3px;
  background: var(--color-accent);
  border: none;
  margin: 0 auto 28px;
}

.section {
  padding: 72px 0;
}

.section--muted {
  background: var(--color-light-bg);
}

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 2px solid var(--color-accent);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn:hover {
  background: transparent;
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.site-logo img {
  height: 56px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-dark);
  padding: 8px 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-cart {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  cursor: default;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-dark);
}

/* ---------- Hero / Slider ---------- */
.hero-slider {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: var(--color-dark);
}

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

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

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

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 18%;
  text-align: center;
  color: var(--color-white);
  padding: 0 20px;
}

.hero-caption .eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.hero-caption h1 {
  color: var(--color-white);
  font-size: 2.75rem;
  margin-bottom: 12px;
}

.hero-caption p {
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 26px;
  color: rgba(255,255,255,0.9);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--color-white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover { background: rgba(255,255,255,0.35); }
.hero-arrow--prev { left: 24px; }
.hero-arrow--next { right: 24px; }

.hero-dots {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero-dots button.is-active {
  background: var(--color-white);
}

/* ---------- Page (non-hero) header ---------- */
.page-banner {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 90px 0 50px;
  text-align: center;
}

.page-banner h1 { color: var(--color-white); margin-bottom: 10px; }

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a { color: var(--color-accent); }

/* ---------- Content blocks ---------- */
.lede {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.image-grid figure {
  margin: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-grid figure:hover img {
  transform: scale(1.06);
}

.phase-block {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Benefits / process columns ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.benefit-card {
  text-align: center;
}

.benefit-card .step-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-accent);
  opacity: 0.4;
  margin-bottom: 10px;
}

.benefit-card img {
  height: 64px;
  margin: 0 auto 18px;
}

.benefit-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.benefit-card li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
}

.benefit-card li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ---------- Map ---------- */
.map-wrap {
  width: 100%;
  height: 420px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Financing / banner strip ---------- */
.finance-strip {
  text-align: center;
}

.finance-strip img {
  max-width: 360px;
  margin: 0 auto;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}

.form-grid .full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-dark);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcdcdc;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 10px;
}

/* ---------- Accordion (bookings steps) ---------- */
.accordion-item {
  border: 1px solid #e6e4df;
  border-radius: var(--border-radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: var(--color-light-bg);
  border: none;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header .icon { transition: transform 0.25s ease; }
.accordion-header[aria-expanded="true"] .icon { transform: rotate(45deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 20px;
}

.accordion-panel.is-open {
  padding: 18px 20px;
  max-height: 2000px;
}

.plot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.plot-table th, .plot-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 26px 0;
  font-size: 0.85rem;
}

.site-footer a { color: var(--color-accent); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal-overlay.is-open { display: flex; }

.modal-box {
  background: var(--color-white);
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: var(--border-radius);
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-muted);
}
