/* template/assets/site.css */

/* ── Brand Variables ─────────────────────────────────── */
:root {
  --navy:      #021029;
  --navy-mid:  #0E1F3D;
  --teal:      #13A7BB;
  --mint:      #6CCCBB;
  --gold:      #FEBF47;
  --gold-dark: #e9a508;
  --gray-light: #F3F6F9;
  --gray-mid:  #E0E5EB;
  --gray-text: #839DB3;
  --text:      #021029;
  --text-soft: #404042;
  --white:     #ffffff;
  --red:       #EE4A37;
  --red-light: #ff8a80;
  --red-dark:  #5B0127;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--white); font-size: 18px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Typography ─────────────────────────────────────── */
.label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.label--teal  { color: var(--teal); }
.label--gold  { color: var(--gold-dark); }
.label--navy  { color: var(--navy); }
.label--gray  { color: var(--gray-text); }

/* ── Buttons ─────────────────────────────────────────── */
.btn { display: inline-block; padding: 14px 30px; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; border: none; transition: opacity 0.2s; }
.btn:hover { opacity: 0.85; }
.btn--teal   { background: var(--teal); color: var(--white); }
.btn--gold   { background: var(--gold); color: var(--navy); }
.btn--outline { background: transparent; border: 1px solid rgba(255,255,255,0.6); color: var(--white); }
.btn--navy   { background: var(--navy); color: var(--white); }

/* ── Container (constrains content width on wide screens) */
.container { max-width: 960px; margin: 0 auto; }

/* ── Section base ────────────────────────────────────── */
.section { padding: 56px max(32px, calc((100% - 960px) / 2)); }
.section--white { background: var(--white); }
.section--gray  { background: var(--gray-light); }
.section__title { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; margin-bottom: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-mid); }
.section__title--teal { color: var(--teal); border-bottom-color: rgba(19,167,187,0.2); }
.section__title--gold { color: var(--gold-dark); border-bottom-color: rgba(254,191,71,0.3); }
.section__title--navy { color: var(--navy); border-bottom-color: var(--gray-mid); }

/* ── Navigation ──────────────────────────────────────── */
.site-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 20px max(32px, calc((100% - 960px) / 2)); display: flex; justify-content: space-between; align-items: center; }
.site-nav__logo { height: 36px; display: block; }
.site-nav__badge { font-size: 13px; font-weight: 700; letter-spacing: 2px; padding: 6px 16px; }
.site-nav__badge--sale    { background: var(--teal); color: var(--white); }
.site-nav__badge--auction { background: var(--red);  color: var(--white); }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px max(32px, calc((100% - 960px) / 2)); overflow: hidden; background: var(--navy); }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(2,16,41,0.05) 0%, rgba(2,16,41,0.80) 100%); }
.hero__content { position: relative; z-index: 1; max-width: 700px; }
.hero__type     { color: var(--mint); font-size: 16px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.hero__title    { color: var(--white); font-size: clamp(32px, 5vw, 60px); font-weight: 800; line-height: 1.1; margin-bottom: 10px; }
.hero__location { color: rgba(255,255,255,0.75); font-size: 20px; margin-bottom: 18px; }
.hero__price    { color: var(--gold); font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 28px; }
.hero__actions  { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Sticky Metrics Bar ──────────────────────────────── */
.metrics-bar { background: var(--white); border-bottom: 3px solid var(--teal); padding: 14px max(32px, calc((100% - 960px) / 2)); display: flex; justify-content: space-around; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(2,16,41,0.08); }
.metric { text-align: center; padding: 0 12px; }
.metric__value { font-size: 26px; font-weight: 800; color: var(--navy); }
.metric__value--gold { color: var(--gold-dark); }
.metric__value--teal { color: var(--teal); }
.metric__label { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-text); margin-top: 4px; }

/* ── Investment Highlights ───────────────────────────── */
.highlights { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.highlight { display: flex; gap: 14px; align-items: flex-start; }
.highlight__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.highlight__dot--teal { background: var(--teal); }
.highlight__dot--gold { background: var(--gold); }
.highlight__dot--mint { background: var(--mint); }
.highlight__text { font-size: 19px; color: var(--text-soft); line-height: 1.7; }

/* ── KPI Grid ────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi-card { background: var(--white); padding: 20px; border-top: 3px solid var(--teal); }
.kpi-card--gold  { border-top-color: var(--gold); }
.kpi-card--navy  { border-top-color: var(--navy); }
.kpi-card--mint  { border-top-color: var(--mint); }
.kpi-card__label { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-text); margin-bottom: 8px; }
.kpi-forecast { font-size: 9px; letter-spacing: 1px; background: var(--gold); color: var(--navy); padding: 2px 5px; font-weight: 700; vertical-align: middle; margin-left: 4px; }
.kpi-card__value { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--navy); }

/* ── Spec Grid ───────────────────────────────────────── */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.spec-item { background: var(--white); border: 1px solid var(--gray-mid); padding: 12px 14px; text-align: center; }
.spec-item__label { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-text); margin-bottom: 6px; }
.spec-item__value { font-size: 20px; font-weight: 700; color: var(--navy); }

/* ── Gallery ─────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery-grid__item { aspect-ratio: 4/3; overflow: hidden; cursor: pointer; }
.gallery-grid__item:first-child { grid-row: span 2; aspect-ratio: auto; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-grid__item:hover img { transform: scale(1.03); }
.gallery-more { text-align: center; margin-top: 16px; color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: 2px; cursor: pointer; }

/* ── Lightbox ────────────────────────────────────────── */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(2,16,41,0.96); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 28px; color: var(--white); font-size: 28px; cursor: pointer; opacity: 0.7; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); color: var(--white); font-size: 36px; cursor: pointer; opacity: 0.6; padding: 16px; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* ── Video ───────────────────────────────────────────── */
.video-embed { aspect-ratio: 16/9; background: var(--gray-light); }
.video-embed iframe { width: 100%; height: 100%; border: none; }
.video-embed img { width: 100%; height: 100%; object-fit: cover; }

/* ── Features ────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.feature-tag { background: var(--white); border: 1px solid var(--gray-mid); border-left: 3px solid var(--teal); color: var(--text-soft); padding: 14px 18px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.feature-tag__check { color: var(--teal); font-size: 18px; font-weight: 800; flex-shrink: 0; }
.feature-tag--highlight { border-left-color: var(--gold); color: var(--navy); }

/* ── Lead Qualifier Form ─────────────────────────────── */
.lead-form { display: flex; flex-direction: column; }
.lead-enquiry-header__label { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.lead-enquiry-header__name { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 20px; }
.lead-enquiry-btn { display: inline-block; background: var(--teal); color: #fff; border: none; padding: 14px 28px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background .15s; }
.lead-enquiry-btn:hover { background: #0e8fa0; }
.lead-step__label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-text); margin-bottom: 10px; font-weight: 700; }
.lead-step__question { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 16px; line-height: 1.3; }
.lead-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.lead-choice { background: var(--white); border: 2px solid var(--gray-mid); color: var(--text); padding: 14px 16px; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; transition: border-color 0.15s, background 0.15s; font-family: inherit; }
.lead-choice:hover { border-color: var(--teal); color: var(--navy); }
.lead-choice.is-selected { border-color: var(--teal); background: rgba(19,167,187,0.07); color: var(--navy); }
.lead-step--success { text-align: center; padding: 40px 20px; }
.lead-success__icon { font-size: 48px; color: var(--teal); margin-bottom: 12px; }
.lead-success__title { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.lead-success__msg { font-size: 16px; color: var(--gray-text); }

/* ── Map ─────────────────────────────────────────────── */
.map-embed { width: 100%; height: 400px; border: none; }

/* ── Auction Countdown ───────────────────────────────── */
.countdown { background: linear-gradient(135deg, var(--mint) 0%, var(--teal) 50%, var(--navy) 100%); padding: 40px max(32px, calc((100% - 960px) / 2)); text-align: center; }
.countdown__label { color: rgba(255,255,255,0.8); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px; }
.countdown__timer { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 28px; }
.countdown__unit { text-align: center; }
.countdown__number { font-size: clamp(36px, 6vw, 64px); font-weight: 800; color: var(--white); line-height: 1; }
.countdown__number--seconds { color: var(--gold); }
.countdown__sep { font-size: 48px; color: rgba(255,255,255,0.4); font-weight: 300; }
.countdown__unit-label { font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,0.6); margin-top: 6px; }
.countdown__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.countdown--urgent .countdown__number { color: var(--red); }
.countdown--urgent { background: linear-gradient(135deg, var(--red-light) 0%, var(--red) 50%, var(--red-dark) 100%); }

/* ── Viewings ────────────────────────────────────────── */
.viewings { display: flex; flex-direction: column; gap: 10px; }
.viewing-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--white); border: 1px solid var(--gray-mid); border-left: 3px solid var(--gold); }
.viewing-item__date { font-size: 20px; font-weight: 700; color: var(--navy); }
.viewing-item__time { font-size: 17px; color: var(--gray-text); margin-top: 4px; }

/* ── Broker Card ─────────────────────────────────────── */
.broker-section { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.broker-card { display: flex; flex-direction: column; gap: 16px; background: var(--white); padding: 24px; border: 1px solid var(--gray-mid); border-top: 3px solid var(--teal); }
.broker-card__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--teal), var(--mint)); flex-shrink: 0; }
.broker-card__name  { font-size: 22px; font-weight: 700; color: var(--navy); }
.broker-card__title { font-size: 15px; color: var(--gray-text); margin: 4px 0 10px; }
.broker-card__contact { font-size: 17px; color: var(--teal); display: flex; flex-direction: column; gap: 5px; }

/* ── Enquiry Form ────────────────────────────────────── */
.enquiry-form { display: flex; flex-direction: column; gap: 10px; }
.enquiry-form__field { background: var(--gray-light); border: 1px solid var(--gray-mid); padding: 16px 18px; font-size: 18px; color: var(--navy); font-family: inherit; outline: none; width: 100%; transition: border-color 0.2s; }
.enquiry-form__field:focus { border-color: var(--teal); }
.enquiry-form__textarea { min-height: 100px; resize: vertical; }
.enquiry-form__submit { background: var(--navy); color: var(--white); border: none; padding: 18px; font-size: 16px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: background 0.2s; }
.enquiry-form__submit:hover { background: var(--teal); }

/* ── Footer ──────────────────────────────────────────── */
.site-footer { background: var(--navy); padding: 32px max(32px, calc((100% - 960px) / 2)); text-align: center; }
.site-footer__logo { height: 48px; display: block; margin: 0 auto 12px; }
.site-footer__tagline { color: var(--gray-text); font-size: 14px; }
.site-footer__copy { color: #516A8D; font-size: 13px; margin-top: 8px; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 48px 20px 36px; }
  .site-nav { padding: 16px 20px; }
  .metrics-bar { overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px; gap: 0; justify-content: flex-start; }
  .metric { scroll-snap-align: start; min-width: 80px; padding: 0 10px; border-right: 1px solid var(--gray-mid); }
  .metric:last-child { border-right: none; }
  .metric__value { font-size: 16px; }
  .metric__label { font-size: 9px; }
  .section { padding: 32px 20px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: 1fr; }
  .broker-section { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid__item:first-child { grid-row: auto; }
  .lead-choices { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* ── Revenue History Chart ───────────────────────────────── */
.revenue-chart { overflow-x: auto; }
.rev-chart-inner { display: flex; align-items: flex-end; gap: 16px; height: 220px; }
.rev-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 6px; }
.rev-bars-group { width: 100%; display: flex; align-items: flex-end; height: 100%; }
.rev-bar { flex: 1; border-radius: 4px 4px 0 0; min-height: 4px; }
.rev-bar--revenue { background: var(--teal); }
.rev-amount { font-size: 14px; font-weight: 700; }
.rev-amount--revenue { color: var(--teal); }
.rev-year { font-size: 15px; font-weight: 700; color: var(--navy-mid); }
.rev-note { font-size: 13px; color: var(--gray-text); text-align: center; }


/* ── Sold / Closed page ──────────────────────────────────── */
.closed-page { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); overflow: hidden; }
.closed-page__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.35); }
.closed-page__overlay { position: absolute; inset: 0; background: rgba(2,16,41,0.55); }
.closed-page__content { position: relative; z-index: 1; text-align: center; color: #fff; padding: 40px 32px; max-width: 560px; }
.closed-page__logo { height: 48px; display: block; margin: 0 auto 28px; }
.closed-page__badge { display: inline-block; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: 4px; padding: 7px 22px; margin-bottom: 24px; }
.closed-page__badge--closed { background: var(--gray-text); color: #fff; }
.closed-page__title { font-size: clamp(24px, 4vw, 44px); font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.closed-page__location { color: rgba(255,255,255,0.55); font-size: 14px; margin-bottom: 36px; }
.closed-page__broker { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 24px; font-size: 13px; color: rgba(255,255,255,0.75); line-height: 2; }
