/* ═══════════════════════════════════════════════════════════════════════════
   project.css — IBRA Properties Project Page
   Shared across all project pages. No project-specific values live here.
═══════════════════════════════════════════════════════════════════════════ */

/* ── RESET + VARIABLES ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:     #C9A84C;
  --gold-lt:  #E2C47A;
  --black:    #080808;
  --black2:   #111111;
  --black3:   #181818;
  --white:    #ffffff;
  --muted:    #9A9488;
  --border:   rgba(201,168,76,0.18);
}

html { scroll-behavior: auto; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Didact Gothic', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── NAV ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 5vw;
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 36px; width: 36px; object-fit: contain; }
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--white);
}
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  transition: color .3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); border: 0.5px solid var(--gold);
  padding: .5rem 1.2rem; text-decoration: none; transition: all .3s;
}
.nav-cta:hover { background: var(--gold); color: var(--black); }

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

/* ── GALLERY ────────────────────────────────────────────────────────────── */
.pg-gallery {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 460px;
  max-height: 680px;
  margin-top: 62px;
  overflow: hidden;
  background: #0a0a0a;
  cursor: grab;
  user-select: none;
}
.pg-gallery:active { cursor: grabbing; }

.pg-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.pg-active { opacity: 1; }

.pg-slide img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.pg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
  z-index: 2; pointer-events: none;
}

.pg-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 5vw; z-index: 3; pointer-events: none;
}
.pg-label-tag {
  font-size: .56rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .3rem;
}
.pg-label-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 300; color: #fff; line-height: 1.1;
}
.pg-label-dev {
  font-size: .66rem; color: rgba(255,255,255,.55);
  letter-spacing: .08em; margin-top: .3rem;
}

.pg-counter {
  position: absolute; top: 1.2rem; right: 5vw; z-index: 10;
  font-size: .6rem; letter-spacing: .18em;
  color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.5); padding: .3rem .7rem;
}

.pg-arrows {
  position: absolute; bottom: 1.2rem; right: 5vw;
  display: flex; gap: .4rem; z-index: 10;
}
.pg-arr {
  width: 38px; height: 38px;
  background: rgba(0,0,0,.72);
  border: 0.5px solid rgba(201,168,76,.4);
  color: var(--gold); font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .3s;
  -webkit-tap-highlight-color: transparent;
}
.pg-arr:hover { background: rgba(201,168,76,.2); }

@media (max-width: 768px) {
  .pg-gallery {
    height: 55vw;
    min-height: 240px;
    max-height: 420px;
  }
}

/* ── THUMBNAILS ─────────────────────────────────────────────────────────── */
.pg-thumbs {
  display: flex; gap: 5px;
  padding: 8px 5vw;
  background: var(--black2);
  border-bottom: 0.5px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.pg-thumbs::-webkit-scrollbar { display: none; }

.pg-thumb {
  flex: 0 0 76px; height: 52px;
  background-size: cover; background-position: center;
  border: 0.5px solid transparent;
  opacity: 0.45; cursor: pointer;
  transition: all .3s; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.pg-thumb:hover { opacity: 0.75; }
.pt-active { opacity: 1 !important; border-color: var(--gold); }

@media (max-width: 480px) {
  .pg-thumb { flex: 0 0 58px; height: 42px; }
}

/* ── CONTENT GRID ───────────────────────────────────────────────────────── */
.pg-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5vw;
}
@media (max-width: 900px) {
  .pg-content { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem 5vw; }
}

/* ── MAIN TEXT ──────────────────────────────────────────────────────────── */
.pg-eyebrow {
  font-size: .6rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
  display: flex; align-items: center; gap: .6rem;
}
.pg-eyebrow::before {
  content: ''; display: block; width: 22px;
  height: 0.5px; background: var(--gold);
}

.pg-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300; line-height: 1.1; margin-bottom: .3rem;
}
.pg-loc {
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.8rem;
}

.pg-body { margin-bottom: 2rem; }
.pg-body p {
  font-size: .9rem; line-height: 1.95;
  color: rgba(255,255,255,.82); margin-bottom: 1.4rem;
}
.pg-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 400;
  color: #fff; margin: 2rem 0 .7rem;
}
.pg-body strong { color: var(--gold-lt); }
.pg-body a {
  color: var(--gold); text-decoration: none;
  transition: opacity .2s;
}
.pg-body a:hover { opacity: .75; }

@media (max-width: 480px) {
  .pg-body p  { font-size: .85rem; }
  .pg-body h2 { font-size: 1.2rem; }
}

/* ── SPECS GRID ─────────────────────────────────────────────────────────── */
.pg-specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); margin-bottom: 2rem;
}
.spec-item {
  background: var(--black2); padding: 1.1rem 1rem;
}
.spec-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: var(--gold-lt);
}
.spec-key {
  font-size: .52rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-top: .15rem;
}

@media (max-width: 480px) {
  .pg-specs { grid-template-columns: repeat(2, 1fr); }
}

/* ── FEATURES ───────────────────────────────────────────────────────────── */
.pg-feat-title {
  font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .8rem;
}
.pg-features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .45rem; margin-bottom: 2rem;
}
.feat-item {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .77rem; color: rgba(255,255,255,.75);
}
.feat-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
  margin-top: .45rem;
}

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

/* ── SIDEBAR CARD ───────────────────────────────────────────────────────── */
.pg-sidebar { position: sticky; top: 82px; align-self: start; }
.pg-card {
  background: var(--black2);
  border: 0.5px solid var(--border);
  padding: 1.8rem;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 300; margin-bottom: .3rem;
}
.card-dev {
  font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.3rem;
}
.card-divider { height: 0.5px; background: var(--border); margin-bottom: 1.3rem; }

/* form */
.form-fields {
  display: flex; flex-direction: column;
  gap: 1px; background: var(--border); margin-bottom: 1px;
}
.form-field {
  background: var(--black3); padding: .85rem 1rem;
  display: flex; flex-direction: column; gap: .28rem;
}
.form-field label {
  font-size: .54rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select {
  background: transparent; border: none; outline: none;
  color: var(--white);
  font-family: 'Didact Gothic', sans-serif; font-size: .88rem;
}
.form-field input::placeholder { color: rgba(255,255,255,0.2); }
.form-field select option { background: var(--black2); }

.btn-submit {
  width: 100%; background: var(--gold); color: var(--black);
  border: none; padding: 1rem;
  font-family: 'Didact Gothic', sans-serif;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  cursor: pointer; transition: background .3s; margin-top: 1px;
}
.btn-submit:hover { background: var(--gold-lt); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.card-or {
  text-align: center; font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); padding: .7rem 0;
}

.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: #25D366; color: #fff; padding: .82rem;
  font-family: 'Didact Gothic', sans-serif;
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; transition: opacity .3s;
}
.btn-wa:hover { opacity: .88; }

.btn-cal {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; background: transparent; color: var(--gold);
  border: 0.5px solid var(--gold); padding: .82rem;
  font-family: 'Didact Gothic', sans-serif;
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; margin-top: .5rem; transition: background .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn-cal:hover { background: rgba(201,168,76,.1); }

.pg-success { display: none; padding: 2rem; text-align: center; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.pg-faq {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw 5rem;
}
.faq-eyebrow {
  font-size: .6rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.faq-eyebrow::before {
  content: ''; display: block; width: 22px;
  height: 0.5px; background: var(--gold);
}
.faq-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300; color: var(--white);
  margin-bottom: 2.5rem; line-height: 1.15;
}
.faq-item {
  border-top: 0.5px solid var(--border);
  overflow: hidden;
}
.faq-item:last-child { border-bottom: 0.5px solid var(--border); }

.faq-q {
  width: 100%; background: transparent; border: none;
  padding: 1.4rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.faq-q-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 400;
  color: var(--white); line-height: 1.3;
  flex: 1;
}
.faq-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .9rem;
  transition: transform .35s ease, background .3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(201,168,76,.1);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 0 1.4rem;
  font-size: .88rem; line-height: 1.9;
  color: rgba(255,255,255,.72);
}
.faq-a-inner strong { color: var(--gold-lt); }
.faq-a-inner a {
  color: var(--gold); text-decoration: none;
}
.faq-a-inner a:hover { opacity: .75; }

@media (max-width: 480px) {
  .faq-q-text  { font-size: 1rem; }
  .faq-a-inner { font-size: .82rem; }
}

/* ── DLD BADGE ──────────────────────────────────────────────────────────── */
.dld-badge {
  margin-top: 1.4rem;
  background: var(--black3);
  border: .5px solid var(--border);
  padding: 1.2rem 1.2rem 1rem;
}
.dld-divider { height: .5px; background: var(--border); margin-bottom: 1.1rem; }
.dld-icon-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.dld-label {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-lt);
}
.dld-sub {
  font-size: .56rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-top: .2rem;
}
.dld-qr-wrap { display: flex; justify-content: center; margin-bottom: .9rem; }
.dld-qr-link { display: flex; flex-direction: column; align-items: center; text-decoration: none; gap: .5rem; }
.dld-qr-placeholder {
  background: rgba(201,168,76,.05);
  border: .5px dashed rgba(201,168,76,.35);
  padding: .8rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  transition: background .3s;
}
.dld-qr-placeholder:hover { background: rgba(201,168,76,.1); }
.dld-qr-placeholder img { width: 100px; height: 100px; display: block; }
.dld-qr-caption {
  font-size: .52rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.dld-note {
  font-size: .58rem; line-height: 1.6;
  color: rgba(154,148,136,.6); text-align: center;
}

/* ── BACK + FOOTER ──────────────────────────────────────────────────────── */
.pg-back {
  background: var(--black2);
  border-top: 0.5px solid var(--border);
  padding: 2.5rem 5vw; text-align: center;
}
.pg-back a {
  color: var(--gold); font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
}
.pg-back a::before { content: "\2190  "; }

footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem 5vw;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--black); flex-wrap: wrap; gap: 1rem;
}
.ft-left { display: flex; align-items: center; gap: 10px; }
.ft-logo { height: 28px; width: 28px; object-fit: contain; opacity: .7; }
.ft-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.ft-brand span { color: var(--gold); }
.ft-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ft-links a {
  font-size: .62rem; color: var(--muted);
  text-decoration: none; transition: color .3s;
}
.ft-links a:hover { color: var(--gold); }
.ft-copy { font-size: .6rem; color: rgba(154,148,136,.4); }

@media (max-width: 480px) {
  footer { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .ft-links { gap: 1rem; }
}

/* ── WA FLOAT ───────────────────────────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 400;
}
.wa-float a {
  width: 52px; height: 52px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: transform .3s; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.wa-float a:hover { transform: scale(1.08); }
.wa-float svg { width: 24px; height: 24px; fill: white; }

/* ── Accessibility ──────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ── Form success state ─────────────────────────────────────────────────── */
.pg-success { display: none; padding: 2rem; text-align: center; }

.success-tick {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.4rem; font-weight: bold;
}
.success-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 300;
  margin-bottom: .4rem;
}
.success-rule {
  width: 28px; height: 1px;
  background: var(--gold);
  margin: .6rem auto 1rem;
}
.success-msg {
  font-size: .78rem; color: var(--muted);
  line-height: 1.85;
}
.success-brand {
  font-size: .55rem; letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(201,168,76,.4);
  margin-top: 1.2rem;
}
