/* ===== Nibas Realty & Management LLC — Styles ===== */
:root {
  --navy: #0f2a3d;
  --navy-700: #14384f;
  --navy-600: #1c4a66;
  --gold: #c79a4b;
  --gold-soft: #e7cd97;
  --ink: #1a2430;
  --slate: #5b6b7a;
  --line: #e4e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f8f9;
  --bg-cream: #f9f6f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -24px rgba(15, 42, 61, 0.35);
  --shadow-sm: 0 6px 22px -12px rgba(15, 42, 61, 0.28);
  --maxw: 1140px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }
a { color: var(--navy-600); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .9em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-700); box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-600) 100%);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
}
.brand-logo { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.footer-brand .brand-logo { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); }
.brand-sub { font-size: .72rem; letter-spacing: .04em; color: var(--slate); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav-list a:hover { color: var(--gold); }
.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: .55rem 1.2rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--navy-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 480px at 85% -10%, rgba(199,154,75,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-cream) 0%, #ffffff 100%);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  margin-bottom: .5em;
}
.lead { font-size: 1.13rem; color: var(--slate); max-width: 36ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 2.4rem; }

.hero-stats {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  margin: 0; padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); }
.hero-stats span { font-size: .85rem; color: var(--slate); }

.hero-card {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.hero-card h2 { color: #fff; font-size: 1.4rem; margin-bottom: 1.1rem; }
.hero-card-badge {
  display: inline-block;
  background: rgba(231, 205, 151, 0.16);
  color: var(--gold-soft);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}
.hero-card-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.hero-card-list li {
  padding: .7rem 0 .7rem 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  position: relative;
  color: #dfe7ec;
}
.hero-card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.hero-card-link { color: var(--gold-soft); font-weight: 600; }
.hero-card-link:hover { color: #fff; }

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--navy);
  color: #cdd8e0;
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1rem 24px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.trust-inner span:not([aria-hidden]) { white-space: nowrap; }
.trust-inner [aria-hidden] { color: var(--gold); }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--navy); }
.section-head { max-width: 60ch; margin: 0 auto clamp(2.2rem, 4vw, 3.2rem); text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-intro { color: var(--slate); font-size: 1.08rem; }
.section-head-light h2, .section-head-light .eyebrow { color: #fff; }
.section-head-light .eyebrow { color: var(--gold-soft); }

/* ===== Service cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 13px;
  background: var(--bg-cream);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.45rem; }
.card > p { color: var(--slate); }
.card-list { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.card-list li {
  position: relative;
  padding: .45rem 0 .45rem 1.6rem;
  color: var(--ink);
  font-size: .95rem;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .85rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1.6rem;
}
.mini-card {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  border: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.mini-card:hover { background: #fff; border-color: var(--line); }
.mini-card h4 { font-size: 1.08rem; margin-bottom: .4rem; }
.mini-card p { color: var(--slate); font-size: .92rem; margin: 0; }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 600;
}
.step h3 { font-size: 1.2rem; margin: .6rem 0 .4rem; }
.step p { color: var(--slate); font-size: .94rem; margin: 0; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.about-copy p { color: var(--slate); }
.about-copy .btn { margin-top: .8rem; }
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.value {
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}
.value h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.value p { color: var(--slate); font-size: .92rem; margin: 0; }

/* ===== Why us (dark) ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.why-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 1.7rem;
}
.why-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  color: #fff;
  margin-bottom: .5rem;
}
.why-item p { color: #b9c6d0; font-size: .94rem; margin: 0; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.contact-copy > p { color: var(--slate); }
.contact-details { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.contact-details li {
  display: flex;
  flex-direction: column;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .15rem;
}
.contact-details a { color: var(--navy); font-weight: 500; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: .95rem;
  padding: .75rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  background: #fff;
}
.field textarea { resize: vertical; }
.form-status { margin: 1rem 0 0; font-size: .9rem; font-weight: 500; min-height: 1.2em; }
.form-status.success { color: #1c7a4f; }
.form-status.error { color: #b3402f; }

/* ===== Page hero (sub-pages) ===== */
.page-hero {
  background:
    radial-gradient(900px 400px at 80% -20%, rgba(199,154,75,0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-cream) 0%, #ffffff 100%);
  padding: clamp(2.6rem, 6vw, 4.4rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: var(--slate); font-size: 1.1rem; max-width: 52ch; margin-inline: auto; }
.breadcrumb { font-size: .85rem; color: var(--slate); margin-bottom: .8rem; }
.breadcrumb a { color: var(--gold); font-weight: 600; }

/* ===== Property filters ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 2.4rem;
}
.filter-btn {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ===== Property listings ===== */
.listings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.listing {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.listing:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.listing-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.85);
}
.listing-media svg { width: 56px; height: 56px; opacity: .9; }
.listing-media.m1 { background: linear-gradient(150deg, #14384f, #1c4a66); }
.listing-media.m2 { background: linear-gradient(150deg, #1c4a66, #3a6b7d); }
.listing-media.m3 { background: linear-gradient(150deg, #2d5440, #4a7a5e); }
.listing-media.m4 { background: linear-gradient(150deg, #5a4a2c, #8a6f3e); }
.listing-media.m5 { background: linear-gradient(150deg, #3d2f4f, #5e4a6b); }
.listing-media.m6 { background: linear-gradient(150deg, #4a2d35, #7a4a55); }
.listing-status {
  position: absolute;
  top: .9rem; left: .9rem;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
}
.listing-status.managed { background: var(--gold); color: #2a2008; }
.listing-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.listing-price { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); font-weight: 600; }
.listing h3 { font-size: 1.12rem; margin: .3rem 0 .1rem; }
.listing-addr { color: var(--slate); font-size: .9rem; margin: 0 0 1rem; }
.listing-specs {
  display: flex;
  gap: 1.1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink);
}
.listing-specs span { display: inline-flex; align-items: center; gap: .35rem; }
.listing-type {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: .2rem;
}
.listings-empty { text-align: center; color: var(--slate); padding: 2rem 0; display: none; }

.listings-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2.4rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
}
.listings-cta h2 { font-size: 1.6rem; }
.listings-cta p { color: var(--slate); max-width: 48ch; margin-inline: auto; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: #c4d0d9;
  padding: 3rem 0 1.6rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-name { font-family: var(--font-display); color: #fff; font-size: 1.1rem; margin: 0; }
.footer-tag { font-size: .88rem; margin: 0; color: #9fb0bb; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { color: #c4d0d9; font-size: .92rem; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  font-size: .82rem;
  color: #8fa1ad;
}
.footer-bottom p { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .mini-cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .listings { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1rem;
    box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list li { padding: .25rem 0; }
  .nav-list a { display: block; padding: .6rem 0; }
  .nav-cta { text-align: center; margin-top: .5rem; }
}

@media (max-width: 560px) {
  .mini-cards, .steps, .why-grid, .about-values, .field-row, .listings { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
