/* Bakuart — shared site styles.
   Design system rebuilt from a full offline parse of framework/vantra.htm
   (the "Vantara Living" Framer template used as the visual reference):
   every hex color below comes from that file's actual CSS custom-property
   tokens, and every type size/weight/tracking value comes from its
   framer-styles-preset-* rules — not guessed. Warm cream background,
   near-black ink text, muted bronze accent, huge Cormorant Garamond
   display headings with tight negative tracking (h1 96/62/48,
   h2 70/60/45 across breakpoints), Playfair Display for card-level
   sub-headings, Inter for nav/body/UI, generous 18-24px card radii +
   pill buttons, soft warm-tinted shadows. */

:root {
  --color-gold: #b68a5e;
  --color-gold-dark: #96704a;
  --color-gold-soft: rgba(182, 138, 94, 0.3);
  --color-charcoal: #121820;
  --color-navy: #1b2028;
  --color-navy-deep: #0f171c;
  --color-light: #f7f4ed;
  --color-cream: #f4f0ea;
  --color-tint: #ede6da;
  --color-line: #e2ddd6;
  --color-text: #3a3f47;
  --color-text-light: #5f6670;
  --color-text-muted: #8a8f94;
  --color-white: #ffffff;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  --shadow-soft: 0 6px 18px -12px rgba(18, 24, 32, 0.35);
  --shadow-card: 0 24px 50px -20px rgba(18, 24, 32, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --header-height: 92px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-light);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-charcoal);
}

h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-charcoal);
}

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

a {
  color: inherit;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(247, 244, 237, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(9px);
}

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

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 220px;
  height: auto;
  animation: logoPulse 0.8s ease-in-out 3;
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-charcoal);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
  white-space: nowrap;
}

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

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-gold-dark);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  gap: 4px;
  border: 1px solid #ddd;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-light);
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button:hover {
  background: #eee;
}

.lang-switch button.active {
  background: var(--color-gold);
  color: white;
}

.lang-switch-mobile {
  display: none;
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  display: block;
}

.btn {
  display: inline-block;
  background-color: var(--color-gold);
  color: white;
  padding: 14px 32px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.2px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 0.94rem;
  box-shadow: 0 14px 28px -12px rgba(150, 112, 74, 0.55);
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn:hover {
  background-color: var(--color-gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -12px rgba(150, 112, 74, 0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-charcoal);
  box-shadow: none;
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.82rem;
}

.btn-ghost {
  background: transparent;
  color: var(--color-charcoal);
  border: 1px solid #ccc;
  box-shadow: none;
}

.btn-ghost:hover {
  background: #eee;
  transform: none;
  box-shadow: none;
}

/* ---------- Hero sections ---------- */

.hero {
  position: relative;
  color: var(--color-white);
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 60px 0;
  background-color: var(--color-navy-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 20, 27, 0.82) 0%,
    rgba(15, 20, 27, 0.55) 55%,
    rgba(15, 20, 27, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content > * {
  max-width: 620px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background-color: var(--color-gold);
  flex-shrink: 0;
}

.hero h1 {
  color: var(--color-white);
  font-size: 4.2rem;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 34px;
  color: #e3e0d8;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-hero {
  min-height: 42vh;
}

.page-hero h1 {
  font-size: 3rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 50px 0;
}

.section + .section {
  padding-top: 0;
}

.section-alt {
  background-color: var(--color-cream);
}

.section-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 14px;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--color-charcoal);
}

.section-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section-title-icon-svg {
  width: 36px;
  height: 36px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.section-subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 26px;
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.building-gallery {
  overflow: hidden;
  margin: 40px 0;
}

.building-gallery-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: buildingGalleryScroll 30s linear infinite;
  cursor: pointer;
}

.building-gallery-track.paused {
  animation-play-state: paused;
}

.building-gallery-track img {
  width: 340px;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  cursor: zoom-in;
}

@keyframes buildingGalleryScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.about-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ---------- Cards / grids ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}

.card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-line);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-gold-soft);
}

.card h3 {
  margin-bottom: 14px;
  color: var(--color-charcoal);
  font-size: 1.25rem;
}

.card p {
  color: var(--color-text-light);
}

/* ---------- Home: project teaser & values ---------- */

.project-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.project-teaser img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
}

.project-tag {
  display: inline-block;
  color: var(--color-gold-dark);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.project-teaser h2 {
  font-size: 2.4rem;
  color: var(--color-charcoal);
  margin-bottom: 16px;
}

.project-teaser p {
  color: var(--color-text-light);
  margin-bottom: 26px;
  font-size: 1.05rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  text-align: center;
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-gold);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.value-icon svg {
  width: 26px;
  height: 26px;
}

.values-grid h3 {
  margin-bottom: 10px;
  color: var(--color-charcoal);
}

.values-grid p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ---------- Apartments page ---------- */

.apartments-hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 10px;
  max-width: none;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.apt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding-bottom: 20px;
}

.apt-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--color-line);
  position: relative;
}

.apt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.apt-card-image {
  height: 190px;
  overflow: hidden;
  background-color: var(--color-navy);
  position: relative;
}

.apt-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.apt-card-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.apt-card-body {
  padding: 18px 20px;
}

.apt-card-body h3 {
  color: var(--color-charcoal);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.apt-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  margin-bottom: 8px;
}

.apt-price-net {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-text-light);
}

.apt-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.apt-card-meta strong {
  color: var(--color-charcoal);
}

.apt-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 14px 5px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: var(--color-tint);
  border: 1px solid var(--color-line);
}

.apt-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.apt-status.available {
  color: var(--color-charcoal);
}

.apt-status.available::before {
  background: var(--color-gold);
}

.apt-status.unavailable {
  color: var(--color-text-light);
}

.apt-status.unavailable::before {
  background: #a33b3b;
}

.apt-card.is-unavailable .apt-card-image img {
  filter: grayscale(1) brightness(0.75);
}

.apt-card.is-unavailable .apt-card-body {
  opacity: 0.75;
}

.apt-admin-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.apt-admin-toggle.btn-ghost {
  background: #ffffff;
  border-color: #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.apt-admin-toggle.btn-ghost:hover {
  background: #f0f0f0;
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 18, 24, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

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

.modal {
  background: white;
  border-radius: var(--radius);
  max-width: min(820px, calc(100vw - 40px));
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-card);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  width: 100%;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
}

.modal-gallery {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}

.modal-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(18, 24, 32, 0.55);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.modal-gallery-arrow:hover {
  background: var(--color-gold);
}

.modal-gallery-arrow svg {
  width: 20px;
  height: 20px;
}

.modal-gallery-arrow-prev {
  left: 12px;
}

.modal-gallery-arrow-next {
  right: 12px;
}

@media (max-width: 768px) {
  .modal-gallery-arrow {
    width: 36px;
    height: 36px;
  }

  .modal-gallery-arrow svg {
    width: 16px;
    height: 16px;
  }
}

.modal-body {
  padding: 30px 34px 36px;
}

.modal-body h2 {
  color: var(--color-charcoal);
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.modal-meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.modal-meta-row div strong {
  display: block;
  color: var(--color-charcoal);
  font-size: 1.1rem;
}

.modal-meta-row div span {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.modal-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.modal-rooms-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.room-chip {
  display: flex;
  align-items: baseline;
  gap: 5px;
  background: var(--color-tint);
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.room-chip .room-name {
  color: var(--color-text-light);
}

.room-chip .room-area {
  font-weight: 700;
  color: var(--color-charcoal);
}

.modal-price-edit {
  background: var(--color-tint);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 22px;
}

.modal-price-edit label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.price-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.price-edit-row input[type="number"] {
  width: 150px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.modal-feature-note {
  background: var(--color-tint);
  border-left: 3px solid var(--color-gold);
  padding: 12px 16px;
  font-size: 0.92rem;
  margin-bottom: 22px;
  color: var(--color-charcoal);
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.modal-admin-row {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed #ddd;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-item {
  margin-bottom: 22px;
}

.contact-item strong {
  display: block;
  color: var(--color-charcoal);
  margin-bottom: 4px;
}

.contact-item-icon {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-wrap {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon {
  width: 22px;
  height: 22px;
  color: var(--color-white);
}

.contact-item a.phone {
  color: var(--color-gold-dark);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.2rem;
}

.contact-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ---------- Auth modal ---------- */

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-charcoal);
  color: white;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
}

.auth-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-charcoal);
}

.auth-form input {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.auth-error {
  color: #a33b3b;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.auth-success {
  color: #2e7d32;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.auth-hint {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 6px;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--color-charcoal);
  color: #ffffff;
  padding: 56px 0 28px;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer .footer-logo {
  height: 34px;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.site-footer p {
  color: #bbb;
}

.site-footer .footer-ai-notice {
  font-size: 0.78rem;
  color: #888;
  margin-top: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .project-teaser {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.2rem;
  }

  .page-hero h1 {
    font-size: 2.6rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .header-actions .lang-switch {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .main-nav .lang-switch-mobile {
    display: flex;
    margin-top: 4px;
  }

  .main-nav.open {
    display: flex;
  }

  .hero h1 {
    font-size: 2.3rem;
    letter-spacing: -0.02em;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .project-teaser h2 {
    font-size: 1.9rem;
  }

  .hero-content > * {
    max-width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .modal-meta-row {
    gap: 16px;
  }
}
