/* =========================
   Apartments Theme
   ========================= */

:root{
  /* Slightly lighter dark theme (small step, not a redesign) */
  --bg: #0f222a;
  --surface: rgba(255,255,255,.05);
  --surface-strong: rgba(255,255,255,.07);

  /* Borders + shadow tuned a touch lighter */
  --border: rgba(132,154,164,.20);
  --shadow: rgba(0,0,0,.35);

  /* Text */
  --text: #eef3f6;
  --text-muted: rgba(238,243,246,.72);
  --text-invert: #ffffff;

  /* Brand buttons: dark purple default, lighter purple hover */
  --brand-primary: #5b4a78;
  --brand-accent:  #7a66a3;
}

/* Buttons */
.btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:9999px;
  padding:.75rem 1.75rem;
  font-weight:600;
  color: var(--text-invert, #fff);
  background: var(--brand-primary);
  border: 1px solid rgba(132,154,164,.22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary:hover{
  transform: translateY(-1px);
  background: var(--brand-accent);
  border-color: rgba(132,154,164,.45);
  box-shadow: 0 12px 24px var(--shadow);
}

.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:9999px;
  padding:.75rem 1.75rem;
  font-weight:600;
  color: var(--brand-accent);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(6px);
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.btn-secondary:hover{
  transform: translateY(-1px);
  border-color: rgba(132,154,164,.60);
  color: #fff;
  background: rgba(255,255,255,.11);
}

/* =========================
   Scroll reveal (subtle)
   ========================= */

.reveal{
  opacity: 0;
  transform: translateY(14px) scale(.985);
  filter: blur(2px);
  transition: opacity .55s ease, transform .55s ease, filter .55s ease;
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.is-in{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* =========================
   Landing: image feature cards
   ========================= */

.ca-feature-card{
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ca-feature-card:hover{
  transform: translateY(-1px);
  border-color: rgba(132,154,164,.45);
  box-shadow: 0 16px 34px rgba(0,0,0,.26);
}

.ca-feature-media{
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.ca-feature-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition: transform .35s ease;
}

.ca-feature-card:hover .ca-feature-media img{
  transform: scale(1.03);
}

.ca-feature-body{
  padding: 1.5rem;
}

.ca-feature-title{
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
  margin: 0;
}

.ca-feature-text{
  margin-top: .55rem;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* =========================
   CONTACT PAGE (clean)
   ========================= */

.section{
  padding: 3.5rem 0;
}

.container{
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.services-center{
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
}

.services-title{
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.services-lead{
  margin-top: .9rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact-container{
  max-width: 64rem;
}

.contact-split{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: .5rem;
}

@media (min-width: 960px){
  .contact-split{
    grid-template-columns: 0.85fr 1fr;
    column-gap: 0.9rem;
    row-gap: 0;
  }
}

.contact-info{
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  backdrop-filter: none;
}

.ci-block + .ci-block{
  margin-top: 1.1rem;
}

.ci-title{
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .45rem;
}

.ci-row{
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  color: var(--text-muted);
}

.ci-ico{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
  margin-top: .05rem;
}

.ci-link{
  color: var(--text);
  text-decoration: none;
}

.ci-link:hover{
  color: #fff;
  text-decoration: underline;
}

.ci-text{
  color: var(--text-muted);
  line-height: 1.5;
}

.ci-rule{
  width: 220px;
  max-width: 100%;
  height: 1px;
  background: rgba(255,255,255,.12);
  margin-top: .9rem;
}

.contact-form{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 14px 30px var(--shadow);
  max-width: 44rem;
  margin-left: auto;
}

.field{
  margin-top: 1rem;
}

.field:first-child{
  margin-top: 0;
}

.field label{
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: .4rem;
}

.field .hint{
  font-weight: 500;
  color: var(--text-muted);
  opacity: .85;
}

.field input,
.field textarea{
  width: 100%;
  display: block;
  box-sizing: border-box;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,20,28,.30);
  color: var(--text);
  padding: .75rem .9rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field textarea{
  resize: vertical;
  min-height: 150px;
}

.field input:focus,
.field textarea:focus{
  border-color: rgba(82,112,127,.70);
  box-shadow: 0 0 0 3px rgba(82,112,127,.18);
  background: rgba(10,20,28,.40);
}

.form-grid-2{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 640px){
  .form-grid-2{
    grid-template-columns: 1fr 1fr;
    gap: 1.0rem;
    align-items: end;
  }

  .form-grid-2 .field{
    margin-top: 0;
  }
}

.form-messages{
  margin-bottom: 1rem;
}

.form-message{
  border-radius: 1rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.form-message-success{ border-color: rgba(84, 214, 154, .35); }
.form-message-error{ border-color: rgba(255, 99, 99, .35); }

.btn{
  border: 0;
  cursor: pointer;
}
.btn-lg{
  padding: .85rem 1.9rem;
  border-radius: 9999px;
}
.btn-row{
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-start;
}

.map-wrap{
  padding-top: 1.25rem;
}

.map-title{
  text-align: center;
  margin: 0.75rem 0 1.25rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.map-section{
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.map-section iframe{
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.container.contact-container{
  max-width: 60rem;
}

@media (min-width: 960px){
  .contact-split{
    grid-template-columns: 18rem 30rem;
    justify-content: center;
    column-gap: 1rem;
  }
}

.contact-form{
  width: 100%;
  max-width: none;
  padding: 1.25rem;
}

.hero .btn-secondary {
  color: rgba(238, 243, 246, 0.85);
}

.hero .btn-secondary:hover {
  color: #ffffff;
}