/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #2C5282;
  --accent-dk: #1A365D;
  --bg:        #F7F8FA;
  --surface:   #FFFFFF;
  --text:      #1A202C;
  --muted:     #4A5568;
  --border:    #E2E8F0;
  --radius:    6px;
  --shadow:    0 2px 12px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Typography ===== */
h1, h2, h3, h4 { line-height: 1.25; }
h2 { font-size: 1.75rem; margin-bottom: .5rem; }
h3 { font-size: 1.2rem; }

.section-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .35rem;
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }
section:nth-child(even) { background: var(--surface); }

/* ===== Header ===== */
header {
  background: var(--accent-dk);
  padding: .85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.20);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; flex-direction: column; }
.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: .04em;
}
.brand-tag {
  font-size: .7rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .08em;
  text-transform: uppercase;
}

nav { display: flex; gap: 1.5rem; }
nav a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  text-decoration: none;
}
nav a:hover { color: #FFFFFF; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .55rem 1.25rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity .15s, background .15s;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn-primary  { background: var(--accent); color: #fff; }
.btn-outline  { background: transparent; color: rgba(255,255,255,.9); border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-dark     { background: var(--accent-dk); color: #fff; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  background: var(--accent-dk);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: .25;
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 3rem 0;
  width: 100%;
}
.hero-label {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.7);
  margin-bottom: .5rem;
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: .75rem;
  color: #fff;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.hero-stat {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 4px;
  padding: .3rem .8rem;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
}
.hero-rent {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}
.rent-period { font-size: 1rem; font-weight: 400; opacity: .7; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.available-badge {
  display: inline-block;
  background: #38A169;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ===== Property type badge ===== */
.type-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}

/* ===== Features / Highlights grid ===== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.highlight-icon { font-size: 1.75rem; flex-shrink: 0; }
.highlight-title { font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.highlight-desc  { font-size: .85rem; color: var(--muted); line-height: 1.5; }

/* ===== Specifications table ===== */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2rem;
}
.spec-row {
  display: contents;
}
.spec-label, .spec-value {
  padding: .75rem 1.25rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.spec-label { background: var(--bg); font-weight: 600; color: var(--muted); }
.spec-value { background: var(--surface); }
.spec-row:last-child .spec-label,
.spec-row:last-child .spec-value { border-bottom: none; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
  margin-top: 2rem;
}
.gallery-item { cursor: pointer; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.04); }

/* ===== Lightbox ===== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.92);
  flex-direction: column; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lightbox-caption { color: rgba(255,255,255,.75); font-size: .9rem; margin-top: .75rem; }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; font-size: 2rem; color: #fff; cursor: pointer; background: none; border: none; }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2.5rem; color: rgba(255,255,255,.7); cursor: pointer; background: none; border: none;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ===== Portfolio cards (index page) ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.portfolio-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.portfolio-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.portfolio-card-img img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card-img .img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--border);
}
.portfolio-card-body { padding: 1.25rem; }
.portfolio-card-address { font-size: 1rem; font-weight: 700; margin: .35rem 0 .25rem; }
.portfolio-card-meta { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.portfolio-card-stats {
  display: flex; gap: 1rem; margin-bottom: 1rem;
  font-size: .85rem; font-weight: 600;
}
.portfolio-stat-item { display: flex; flex-direction: column; gap: .1rem; }
.portfolio-stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 400; }
.portfolio-card-footer { border-top: 1px solid var(--border); padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; }
.status-badge {
  font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .06em;
}
.status-available { background: #C6F6D5; color: #276749; }
.status-leased    { background: #FED7D7; color: #9B2C2C; }

/* ===== Contact form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; flex-direction: column; gap: .25rem; }
.contact-item-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.contact-item-value { font-size: 1rem; color: var(--text); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: block; margin-bottom: .25rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: .65rem .85rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: inherit; background: var(--surface); color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { outline: none; border-color: var(--accent); }
.contact-form textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-notice { font-size: .8rem; color: var(--muted); }
.form-success { color: #276749; font-weight: 600; font-size: 1rem; padding: 1rem; background: #C6F6D5; border-radius: var(--radius); }

/* ===== Footer ===== */
footer {
  background: var(--accent-dk);
  color: rgba(255,255,255,.7);
  padding: 2rem 0;
  font-size: .875rem;
}
footer strong { color: #fff; }
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-label { border-bottom: none; padding-bottom: .2rem; }
  .spec-value { padding-top: .2rem; border-bottom: 1px solid var(--border); }
  .hero-stats { gap: .4rem; }
  .form-row { grid-template-columns: 1fr; }
  nav { display: none; }
}
