@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");
@import "tailwindcss";

@theme {
  /* Brand Colors */
  --color-gold: #c9a84c;
  --color-gold-light: #e2c47a;
  --color-gold-dark: #a8872e;
  --color-dark: #1a1a1a;
  --color-dark-2: #111111;
  --color-charcoal: #2d2d2d;
  --color-off-white: #f8f5ef;
  --color-cream: #faf7f2;
  --color-muted: #6b6b6b;
  --color-border: #e2d9c8;
  --color-table-header: #1a1a1a;

  /* Typography */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", "Helvetica Neue", sans-serif;
  --font-utility: "Inter", sans-serif;

  /* Spacing extras */
  --spacing-18: 4.5rem;
  --spacing-22: 5.5rem;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: #fff;
  color: var(--color-dark);
}

/* Gold gradient text utility */
.text-gold-gradient {
  background: linear-gradient(
    135deg,
    var(--color-gold-light),
    var(--color-gold),
    var(--color-gold-dark)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Display font */
.font-display {
  font-family: var(--font-display);
}

/* Thin top bar */
.top-bar {
  background-color: var(--color-dark-2);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

/* Gold divider */
.gold-divider {
  width: 48px;
  height: 2px;
  background: var(--color-gold);
  margin: 0 auto 1.5rem;
}

/* Section label */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
}

/* Nav underline hover */
nav a {
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.25s ease;
}
nav a:hover::after {
  width: 100%;
}

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.78) 0%,
    rgba(10, 10, 10, 0.5) 45%,
    rgba(10, 10, 10, 0.1) 100%
  );
}

/* Enquiry form card */
.enquiry-card {
  background: rgba(255, 255, 255, 0.97);
  border-top: 3px solid var(--color-gold);
}

/* Input fields */
.form-input {
  border: none;
  border-bottom: 1px solid #d0c9bc;
  border-radius: 0;
  padding: 0.55rem 0;
  font-size: 0.82rem;
  background: transparent;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus {
  border-bottom-color: var(--color-gold);
}
.form-input::placeholder {
  color: #aaa;
  font-size: 0.8rem;
}

/* Config table */
.config-table th {
  background: var(--color-table-header);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
}
.config-table td {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border);
}
.config-table tr:last-child td {
  border-bottom: none;
}
.config-table tr:nth-child(even) td {
  background: var(--color-off-white);
}

/* Floor plan card */
.floor-plan-card {
  border: 1px solid var(--color-border);
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}
.floor-plan-card:hover {
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.15);
  transform: translateY(-3px);
}

/* Amenity icon box */
.amenity-icon {
  color: var(--color-gold);
  width: 36px;
  height: 36px;
}

/* Location badge */
.location-bullet::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  margin-right: 0.6rem;
  flex-shrink: 0;
  margin-top: 6px;
}

/* Gallery image hover */
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}

/* Footer */
.footer-bg {
  background: var(--color-dark-2);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Placeholder image style */
/* .img-placeholder {
  background: linear-gradient(135deg, #e8e0d0, #d4c9b0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a09070;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
} */

:root {
  --gold: #c9a84c;
  --gold-light: #e2c47a;
  --gold-dark: #a8872e;
  --dark: #1a1a1a;
  --dark-2: #0e0e0e;
  --off-white: #f8f5ef;
  --cream: #faf7f2;
  --muted: #6b6b6b;
  --border: #e2d9c8;
}
body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
}
.font-display {
  font-family: "Playfair Display", serif;
}
.text-gold {
  color: var(--gold);
}
.bg-gold {
  background-color: var(--gold);
}
.border-gold {
  border-color: var(--gold);
}
.text-gold-gradient {
  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--gold),
    var(--gold-dark)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.gold-divider {
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.25rem;
}
.form-input {
  border: none;
  border-bottom: 1px solid #d0c9bc;
  width: 100%;
  padding: 0.5rem 0;
  font-size: 0.82rem;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  font-family: "Inter", sans-serif;
}
.form-input:focus {
  border-bottom-color: var(--gold);
}
.form-input::placeholder {
  color: #aaa;
  font-size: 0.78rem;
}
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(8, 8, 8, 0.82) 0%,
    rgba(8, 8, 8, 0.52) 48%,
    rgba(8, 8, 8, 0.08) 100%
  );
}
nav a {
  position: relative;
  transition: color 0.2s;
}
nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s;
}
nav a:hover {
  color: var(--gold);
}
nav a:hover::after {
  width: 100%;
}
.floor-card {
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
.floor-card:hover {
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.14);
  transform: translateY(-3px);
}
.gallery-item {
  overflow: hidden;
}
.gallery-item .img-placeholder {
  transition: transform 0.4s;
}
.gallery-item:hover .img-placeholder {
  transform: scale(1.05);
}
.img-placeholder {
  background: linear-gradient(135deg, #ece4d4, #d6c9a8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a09070;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.config-th {
  background: #1a1a1a;
  color: #fff;
  font-size: 0.7rem;
  /* letter-spacing: 0.1em; */
  text-transform: uppercase;
  padding: 0.7rem 1rem;
}
.config-td {
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--border);
}
.location-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
}
html {
  scroll-behavior: smooth;
}
select.form-input {
  appearance: none;
  cursor: pointer;
}

/* form */

/* ── Popup overlay ── */
#popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#popup-overlay.open {
  display: flex;
}

/* ── Nav active state ── */
nav a.nav-active {
  color: var(--gold) !important;
  font-weight: 600;
}
nav a.nav-active::after {
  width: 100%;
}

/* ── Nav scrolled shadow ── */
header.nav-scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

/* ── Popup bordered input focus ── */
.popup-input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

section[id] {
  scroll-margin-top: 80px;
}
