:root {
  --background: #211f1b;
  --surface: #2a2823;
  --foreground: #f2ede3;
  --muted: #a89f8e;
  --primary: #c9a66b;   /* brass */
  --primary-dark: #b8945a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--primary); color: var(--background); }

/* ---------- Utilities ---------- */
.text-primary { color: var(--primary) !important; }
.text-muted-c { color: var(--muted) !important; }
.text-fade { color: rgba(242, 237, 227, 0.75); }
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--primary);
}
.container-mana { max-width: 1200px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.hairline { height: 1px; background: linear-gradient(to right, transparent, rgba(201,166,107,0.4), transparent); }

.glass {
  background: rgba(33, 31, 27, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(242, 237, 227, 0.08);
}

/* ---------- Buttons ---------- */
.btn-mana {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary);
  color: var(--background);
  padding: 0.9rem 2rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border: none;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.btn-mana:hover { background: var(--primary-dark); color: var(--background); }
.btn-mana svg { transition: transform 0.3s ease; }
.btn-mana:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border-strong);
  color: var(--foreground);
  padding: 0.9rem 2rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  transition: all 0.3s ease;
}
.btn-ghost:hover { border-color: var(--foreground); background: rgba(242,237,227,0.05); color: var(--foreground); }

/* ---------- Navigation ---------- */
.nav-mana {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: all 0.5s ease;
  padding: 1.5rem 0;
}
.nav-mana::before {
  content: ''; position: absolute; inset: 0 0 -3rem 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(15,14,12,0.7), rgba(15,14,12,0.35) 60%, transparent);
  transition: opacity 0.5s ease;
}
.nav-mana.scrolled { padding: 0.75rem 0; background: rgba(33,31,27,0.7); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-mana.scrolled::before { opacity: 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 26px; width: auto; display: block; }
@media (min-width: 768px) { .nav-logo img { height: 32px; } }
.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--foreground); transition: color 0.3s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { background: var(--primary); color: var(--background) !important; padding: 0.75rem 1.5rem; font-weight: 600; transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(201,166,107,0.35); }
.nav-cta:hover { background: var(--primary-dark); color: var(--background) !important; box-shadow: 0 6px 20px rgba(201,166,107,0.5); }
.nav-toggle { display: none; background: none; border: none; color: var(--foreground); cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; gap: 0.25rem; margin: 0.75rem 1.5rem 0; padding: 1.5rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 0.75rem 0; font-size: 13px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
@media (max-width: 767px) { .hero-slide { display: none; } }

.hero-mobile { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .hero-mobile { display: block; } }

.hero-scrim { position: absolute; inset: auto 0 0 0; height: 65%; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(15,14,12,0.92), rgba(15,14,12,0.45) 55%, transparent); }
.hero-overlay { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: 7rem; }
@media (min-width: 768px) { .hero-overlay { padding-bottom: 4.5rem; } }
.hero-content { max-width: 38rem; }
.hero-content h1 { font-size: clamp(2.25rem, 7vw, 4.25rem); line-height: 1.08; margin: 1rem 0 0; }
.hero-content p { margin-top: 1.25rem; font-size: 1rem; line-height: 1.7; max-width: 30rem; color: rgba(242,237,227,0.85); }
.hero-content .btn-mana { margin-top: 2rem; }

/* ---------- Section base ---------- */
.section { padding: 4rem 0; border-top: 1px solid var(--border); }
.section-eyebrow { margin-bottom: 1rem; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 3rem); line-height: 1.1; max-width: 40rem; margin: 0; }
.italic { font-style: italic; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.about-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem; }
.stat-value { font-family: "Cormorant Garamond", serif; font-size: 2.75rem; color: var(--primary); }
.stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); margin-top: 0.5rem; }
@media (min-width: 992px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }

/* ---------- Projects ---------- */
.projects-head { display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .projects-head { flex-direction: row; align-items: flex-end; } }

.star-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 2px; }
.star-card .star-img-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--surface); }
@media (min-width: 768px) { .star-card .star-img-wrap { aspect-ratio: 21/9; } }
.star-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(0.22,1,0.36,1); }
.star-card:hover img { transform: scale(1.05); }
.star-card .grad { position: absolute; inset: 0; background: linear-gradient(to top, var(--background), rgba(33,31,27,0.4) 45%, transparent); }
.star-badge { position: absolute; top: 1.25rem; left: 1.25rem; padding: 0.4rem 0.85rem; font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--primary); border-radius: 999px; }
.star-body { position: absolute; inset: auto 0 0 0; padding: 1.5rem; }
@media (min-width: 768px) { .star-body { padding: 2.5rem; } }
.star-body h3 { font-size: clamp(1.75rem, 4vw, 3rem); margin: 0.75rem 0 0; }
.star-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1rem; font-size: 0.9rem; color: rgba(242,237,227,0.75); }
.loc { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--primary); }

.grid-cards {
  display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
}
.grid-cards::-webkit-scrollbar { display: none; }
.grid-cards > .p-card { flex: 0 0 100%; scroll-snap-align: center; }
@media (min-width: 768px) { .grid-cards { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; gap: 2.5rem 2rem; } .grid-cards > .p-card { flex-basis: auto; } }
@media (min-width: 992px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }

.p-card { display: flex; flex-direction: column; height: 100%; }
.p-card .img-wrap { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--surface); }
.p-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(0.22,1,0.36,1); }
.p-card:hover img { transform: scale(1.05); }
.p-card .img-wrap .grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(33,31,27,0.7), transparent 60%); }
.p-card-body { display: flex; flex-direction: column; flex: 1; padding-top: 1rem; }
.p-card h3 { font-size: 1.5rem; margin: 0.5rem 0 0; }
.p-card .tag { font-style: italic; color: rgba(242,237,227,0.7); font-size: 0.9rem; margin-top: 0.25rem; }
.p-card .meta { margin-top: 0.75rem; font-size: 0.8rem; color: rgba(242,237,227,0.65); }
.price-highlight { font-family: "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums lining-nums; font-size: 1rem; font-weight: 600; color: var(--primary); }
.p-card .meta .price-highlight { margin-top: 0.35rem; }
.p-card .actions { margin-top: auto; padding-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.link-primary { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--primary); }
.link-muted { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: rgba(242,237,227,0.7); transition: color 0.3s ease; }
.link-muted:hover { color: var(--foreground); }

.btn-enquire { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1.2rem; border: 1px solid var(--border-strong); font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--foreground); transition: border-color 0.3s ease, color 0.3s ease; }
.btn-enquire::before { content: ''; position: absolute; top: 0; left: -75%; width: 50%; height: 100%; background: linear-gradient(115deg, transparent, rgba(201,166,107,0.45), transparent); transform: skewX(-20deg); transition: left 0.6s cubic-bezier(0.22,1,0.36,1); }
.btn-enquire:hover { border-color: var(--primary); color: var(--primary); }
.btn-enquire:hover::before { left: 125%; }

/* ---------- Why MANA ---------- */
.carousel-wrap { position: relative; margin-top: 2.5rem; }
.pillars {
  display: flex; gap: 1px; background: var(--border); overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none;
}
.pillars::-webkit-scrollbar { display: none; }
.pillar { flex: 0 0 100%; scroll-snap-align: center; background: var(--background); padding: 2.5rem; transition: background 0.5s ease; }
@media (min-width: 768px) { .pillars { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; } .pillar { flex-basis: auto; height: 100%; } }
@media (min-width: 992px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar:hover { background: var(--surface); }
.pillar .icon { color: var(--primary); }
.pillar h3 { font-size: 1.5rem; margin: 1.5rem 0 0; }
.pillar p { margin-top: 1rem; font-size: 0.9rem; line-height: 1.7; color: rgba(242,237,227,0.7); }

.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .carousel-controls { display: none; } }
.carousel-arrow {
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--primary);
  border: 1px solid var(--border-strong); cursor: pointer; transition: background 0.3s ease, color 0.3s ease;
}
.carousel-arrow:hover { background: var(--primary); color: var(--background); }

/* ---------- Lead form ---------- */
.enquire-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 992px) { .enquire-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.form-card { padding: 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .form-card { padding: 3rem; } }
.field label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--muted); display: block; }
.field .control {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border);
  padding: 0.75rem 0; margin-top: 0.5rem; color: var(--foreground); font-size: 1rem; font-family: inherit;
  transition: border-color 0.3s ease;
}
.field .control:focus { outline: none; border-color: var(--primary); }
.field .control::placeholder { color: rgba(168,159,142,0.6); }
.field select.control option { background: var(--surface); color: var(--foreground); }
.field .error { display: none; color: #e07a5f; font-size: 0.75rem; margin-top: 0.5rem; }
.field.invalid .error { display: block; }
.field.invalid .control { border-color: #e07a5f; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 11px; line-height: 1.6; color: var(--muted); }
.form-success { color: rgba(242,237,227,0.75); font-size: 0.9rem; }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; padding: 4rem 0; }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }
.footer-logo { font-family: "Cormorant Garamond", serif; font-size: 2.25rem; letter-spacing: 0.18em; }
.footer-tag { max-width: 26rem; font-family: "Cormorant Garamond", serif; font-size: 1.4rem; line-height: 1.4; color: rgba(242,237,227,0.85); margin-top: 1.5rem; }
.socials { display: flex; gap: 1rem; margin-top: 2rem; }
.socials a { border: 1px solid var(--border); padding: 0.65rem; border-radius: 999px; color: var(--muted); transition: all 0.3s ease; display: inline-flex; }
.socials a:hover { border-color: var(--primary); color: var(--primary); }
.footer-col-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted); }
.footer-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.75rem; }
.footer-list a { font-size: 0.9rem; color: rgba(242,237,227,0.8); transition: color 0.3s ease; }
.footer-list a:hover { color: var(--primary); }
.footer-contact { margin-top: 1.25rem; font-size: 0.9rem; line-height: 1.7; color: rgba(242,237,227,0.8); font-style: normal; display: grid; gap: 0.75rem; }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); line-height: 1.6; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; } }

/* ---------- Floating CTAs ---------- */
.wa-float { position: fixed; right: 1.25rem; bottom: 6rem; z-index: 900; width: 3.25rem; height: 3.25rem; border-radius: 999px; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: transform 0.3s ease; }
.wa-float:hover { transform: scale(1.1); color: #fff; }
@media (min-width: 768px) { .wa-float { bottom: 1.5rem; } }
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 900; display: flex; border-top: 1px solid var(--border); }
.mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem; font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; }
.mobile-bar .call { color: var(--foreground); }
.mobile-bar .enquire { background: var(--primary); color: var(--background); }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- Detail page ---------- */
.detail-hero { position: relative; padding-top: 8rem; }
.detail-hero-img { position: relative; height: 70vh; min-height: 480px; overflow: hidden; }
.detail-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero-img .grad { position: absolute; inset: 0; background: linear-gradient(to top, var(--background), rgba(33,31,27,0.3) 40%, rgba(33,31,27,0.4)); }
.detail-hero-body { position: absolute; inset: auto 0 0 0; padding-bottom: 4rem; }
.detail-hero-body h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: 1.02; max-width: 55rem; margin: 1.5rem 0 0; }
.detail-hero-body .tag { margin-top: 1.5rem; font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.5rem; color: rgba(242,237,227,0.85); }
.detail-body { display: grid; grid-template-columns: 1fr; gap: 3rem; padding: 5rem 0; }
@media (min-width: 992px) { .detail-body { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.detail-lead { font-family: "Cormorant Garamond", serif; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.35; color: rgba(242,237,227,0.9); margin-top: 2rem; }
.detail-desc { max-width: 34rem; margin-top: 2rem; line-height: 1.7; color: rgba(242,237,227,0.7); }
.detail-stats { max-width: 34rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-strong); border: 1px solid var(--border-strong); border-radius: 2px; overflow: hidden; margin-top: 2.5rem; }
@media (min-width: 576px) { .detail-stats { grid-template-columns: repeat(4, 1fr); } }
.detail-stats > div { background: var(--surface); padding: 2rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.detail-stats > div:nth-child(3) { padding-left: 1.5rem; padding-right: 1.5rem; }
.detail-stats .stat-value { font-family: "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums lining-nums; font-weight: 600; font-size: clamp(1.25rem, 3.5vw, 1.85rem); line-height: 1.25; min-height: 3.75em; display: flex; align-items: flex-end; justify-content: center; }
.detail-stats .stat-label { margin-top: 0.6rem; }
.detail-card { padding: 2rem; }
@media (min-width: 768px) { .detail-card { padding: 2.5rem; } }
.detail-rows { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.detail-row .dl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted); }
.detail-row .dv { font-family: "Inter", system-ui, sans-serif; font-variant-numeric: tabular-nums lining-nums; font-weight: 500; font-size: 1.05rem; line-height: 1.5; margin-top: 0.4rem; }
.contact-block { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1), transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Two-up grid (detail: More from MANA) */
.two-up { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .two-up { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Thank you page ---------- */
.thankyou-hero { min-height: 100vh; display: flex; align-items: center; padding-top: 6rem; }
.thankyou-body h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); }

/* ---------- Enquiry modal ---------- */
.enquiry-overlay {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: rgba(15,14,12,0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.enquiry-overlay.open { opacity: 1; visibility: visible; }
.enquiry-dialog {
  position: relative; width: 100%; max-width: 28rem; max-height: 90vh; overflow-y: auto;
  border-radius: 3px; background: var(--surface); border: 1px solid rgba(242,237,227,0.1);
  transform: translateY(20px) scale(0.97); transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.enquiry-overlay.open .enquiry-dialog { transform: translateY(0) scale(1); }
.enquiry-close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 2.25rem; height: 2.25rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; background: transparent; border: none;
  color: var(--muted); cursor: pointer; transition: color 0.3s ease, background 0.3s ease; z-index: 1;
}
.enquiry-close:hover { color: var(--foreground); background: rgba(242,237,227,0.08); }
.enquiry-dialog .form-card { padding: 2.75rem 2rem 2rem; display: grid; gap: 1.5rem; }
@media (min-width: 576px) { .enquiry-dialog .form-card { padding: 2.75rem 2.5rem 2.25rem; } }
.enquiry-project-note { font-size: 11px; text-transform: uppercase; letter-spacing: 0.25em; color: var(--primary); }
body.modal-open { overflow: hidden; }
