/* =========================================================
   BELONG SPACE REALTY — STYLESHEET
   Palette: Deep Forest #173C35 · Sand #C9B79C · Warm Ivory #F5F1E8
            Charcoal #252927 · Soft Sage #8A9B8B
   Type: Montserrat (SemiBold for display, Light tracked for labels)
   ========================================================= */

:root {
  --forest: #173C35;
  --forest-dark: #0F2924;
  --sand: #C9B79C;
  --sand-light: #E4D9C4;
  --ivory: #F5F1E8;
  --ivory-2: #EFE9DB;
  --charcoal: #252927;
  --sage: #8A9B8B;
  --white: #ffffff;

  --font: 'Montserrat', Arial, sans-serif;

  --max-width: 1160px;
  --radius: 2px;
  --border: 1px solid rgba(37, 41, 39, 0.12);

  --shadow-soft: 0 12px 32px rgba(23, 60, 53, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--charcoal);
  background: var(--ivory);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; color: var(--forest); margin: 0 0 0.5em; line-height: 1.2; }
p { margin: 0 0 1em; }
button { font-family: var(--font); cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--forest); color: var(--ivory);
  padding: 12px 20px; z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.9em;
}

.section {
  padding: 96px 0;
}
.section--tight { padding: 64px 0; }
.section--ivory2 { background: var(--ivory-2); }
.section--forest {
  background: var(--forest);
  color: var(--ivory);
}
.section--forest h2, .section--forest h3 { color: var(--ivory); }
.section--sand-edge { border-top: var(--border); border-bottom: var(--border); }

.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.section__head p { color: var(--charcoal); opacity: 0.8; }
.section--forest .section__head p { color: var(--ivory); opacity: 0.82; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1.5px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.btn--primary:hover { background: var(--forest-dark); border-color: var(--forest-dark); }

.btn--gold { background: var(--sand); color: var(--forest); border-color: var(--sand); }
.btn--gold:hover { background: var(--sand-light); }

.btn--outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--outline:hover { background: var(--forest); color: var(--ivory); }

.btn--outline-light { background: transparent; color: var(--ivory); border-color: rgba(245,241,232,0.55); }
.btn--outline-light:hover { background: var(--ivory); color: var(--forest); border-color: var(--ivory); }

.btn--sm { padding: 10px 20px; font-size: 0.78rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
  z-index: 200;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark { height: 40px; width: auto; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand__text-main {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--forest);
}
.brand__text-sub {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
}
.brand__text--light .brand__text-main,
.brand__text--light .brand__text-sub {
  color: var(--ivory);
}
.brand--footer .brand__mark { height: 46px; }
.brand--footer .brand__text-main { font-size: 1.3rem; }
.brand--footer .brand__text-sub { font-size: 0.68rem; }

.site-nav__list {
  display: flex;
  gap: 34px;
}
.site-nav__list a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.site-nav__list a:hover,
.site-nav__list a.is-active {
  color: var(--forest);
  border-color: var(--sand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--forest); }

.site-header__cta { flex-shrink: 0; }

@media (max-width: 860px) {
  .site-header__cta.btn { display: none; }
  .nav-toggle { display: flex; }
  .site-nav__list {
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column;
    gap: 0;
    border-bottom: var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav__list.is-open { max-height: 320px; }
  .site-nav__list li { border-top: var(--border); }
  .site-nav__list a { display: block; padding: 16px 24px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.45em;
}
.hero__lede {
  font-size: 1.08rem;
  max-width: 46ch;
  color: var(--charcoal);
  opacity: 0.85;
  margin-bottom: 2em;
}
.hero__art {
  width: 100%;
  height: auto;
}
.hero__badges {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
}
.hero__badge {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--forest);
  padding-left: 22px;
  position: relative;
}
.hero__badge::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 9px; height: 9px;
  border: 1.5px solid var(--sand);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 340px; margin: 0 auto 8px; }
}

/* ---------- Two-pillar services ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pillar {
  padding: 56px 56px;
  position: relative;
}
.pillar:first-child { background: var(--ivory); }
.pillar:last-child { background: var(--ivory-2); }
.pillar__icon { width: 46px; height: 46px; color: var(--forest); margin-bottom: 24px; }
.pillar__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; }
.pillar h3 { font-size: 1.5rem; margin-bottom: 0.6em; }
.pillar > p { max-width: 46ch; opacity: 0.85; margin-bottom: 1.8em; }
.pillar__list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(23,60,53,0.1);
  font-size: 0.95rem;
}
.pillar__list li:last-child { border-bottom: 1px solid rgba(23,60,53,0.1); }
.pillar__list svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; fill: none; stroke: var(--sand); stroke-width: 2; }

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 48px 28px; }
}

/* ---------- Process (numbered — genuine sequence) ---------- */
.process {
  counter-reset: step;
}
.process__list {
  display: grid;
  gap: 0;
  border-top: var(--border);
}
.process__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 30px 0;
  border-bottom: var(--border);
  align-items: baseline;
}
.process__item__num::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sand);
  letter-spacing: 0.05em;
}
.process__item h4 { margin-bottom: 0.35em; font-size: 1.1rem; }
.process__item p { margin: 0; opacity: 0.8; max-width: 60ch; }

@media (max-width: 640px) {
  .process__item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}
.why-item {
  border-left: 2px solid var(--sand);
  padding-left: 22px;
}
.why-item h4 { color: var(--ivory); font-size: 1.05rem; margin-bottom: 0.4em; }
.why-item p { color: var(--ivory); opacity: 0.78; margin: 0; }

@media (max-width: 700px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.testimonial {
  padding-top: 28px;
  border-top: 2px solid var(--sand);
}
.testimonial__quote {
  font-size: 1.08rem;
  color: var(--forest);
  margin-bottom: 1.2em;
}
.testimonial__name { font-weight: 600; font-size: 0.9rem; }
.testimonial__loc { font-size: 0.82rem; color: var(--sage); }

@media (max-width: 860px) {
  .testimonials { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Blog preview / listing ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.blog-card {
  background: var(--white);
  border: var(--border);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--sand-light);
  padding: 4px 10px;
  border-radius: 2px;
  align-self: flex-start;
  margin-bottom: 16px;
}
.blog-card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.blog-card p { opacity: 0.8; font-size: 0.95rem; flex-grow: 1; }
.blog-card__meta {
  font-size: 0.8rem;
  color: var(--sage);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(23,60,53,0.1);
}
.blog-card__link {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--forest);
  border-bottom: 1.5px solid var(--sand);
  align-self: flex-start;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
}
.cta-banner h2 { color: var(--ivory); font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 20ch; margin: 0 auto 0.5em; }
.cta-banner p { color: var(--ivory); opacity: 0.82; max-width: 52ch; margin: 0 auto 2em; }
.cta-banner .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: var(--ivory);
  padding-top: 72px;
}
.site-footer a { opacity: 0.85; }
.site-footer a:hover { opacity: 1; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245,241,232,0.15);
}
.site-footer__brand { margin-bottom: 6px; }
.site-footer__brand .brand { margin-bottom: 18px; }
.site-footer__brand p { opacity: 0.75; max-width: 34ch; font-size: 0.92rem; }
.site-footer h3 {
  color: var(--sand);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer__col ul li { margin-bottom: 12px; font-size: 0.92rem; }
.footer-contact li { opacity: 0.85; }
.social-links { display: flex; gap: 14px; margin-top: 22px; }
.social-links svg { width: 20px; height: 20px; fill: var(--ivory); }
.site-footer__bottom {
  padding: 22px 24px;
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Floating quick-contact ---------- */
.quick-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 300;
}
.quick-contact__btn {
  display: flex;
  align-items: center;
  gap: 0;
  height: 50px;
  width: 50px;
  border-radius: 50px;
  background: var(--forest);
  color: var(--ivory);
  box-shadow: 0 8px 20px rgba(23,60,53,0.35);
  overflow: hidden;
  transition: width 0.25s ease, background-color 0.2s ease;
}
.quick-contact__btn svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; margin: 0 14px; }
.quick-contact__label {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s ease;
  padding-right: 18px;
}
.quick-contact__btn:hover { width: 150px; }
.quick-contact__btn:hover .quick-contact__label { opacity: 1; }
.quick-contact__btn--whatsapp { background: #1f7a5c; }
.quick-contact__btn--call { background: var(--forest); }
.quick-contact__btn--email { background: var(--charcoal); }

@media (max-width: 560px) {
  .quick-contact__btn:hover { width: 50px; }
  .quick-contact__label { display: none; }
}

/* ---------- Generic page hero (About / Blog / Contact) ---------- */
.page-hero {
  padding: 64px 0 56px;
  border-bottom: var(--border);
}
.page-hero__logo { height: 96px; width: auto; margin-bottom: 32px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); max-width: 20ch; }
.page-hero p { max-width: 60ch; opacity: 0.82; font-size: 1.02rem; }

/* ---------- About page ---------- */
.about-lede {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-lede p { font-size: 1.02rem; }
.value-list { display: grid; gap: 22px; }
.value-list li { display: flex; gap: 16px; align-items: flex-start; }
.value-list svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; fill: none; stroke: var(--forest); stroke-width: 1.5; }

@media (max-width: 800px) {
  .about-lede { grid-template-columns: 1fr; }
}

/* ---------- Blog post ---------- */
.post {
  max-width: 760px;
  margin: 0 auto;
}
.post h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.post__meta {
  font-size: 0.85rem;
  color: var(--sage);
  margin-bottom: 2em;
}
.post h2 { font-size: 1.35rem; margin-top: 1.6em; }
.post p { font-size: 1.02rem; opacity: 0.9; }
.post ul, .post ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.post li { margin-bottom: 0.5em; }
.post ul { list-style: disc; }
.post ol { list-style: decimal; }
.post__back { display: inline-block; margin-bottom: 32px; font-size: 0.88rem; font-weight: 600; color: var(--forest); border-bottom: 1.5px solid var(--sand); }
.post__cta {
  margin-top: 56px;
  padding: 32px;
  background: var(--ivory-2);
  border: var(--border);
  text-align: center;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-card { margin-bottom: 28px; }
.contact-card h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sage); font-weight: 600; margin-bottom: 0.5em; }
.contact-card a, .contact-card p { font-size: 1.05rem; color: var(--forest); font-weight: 500; }
.contact-map {
  border: var(--border);
  margin-top: 8px;
}
.contact-map iframe { width: 100%; height: 260px; border: 0; display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Form ---------- */
.form-panel {
  background: var(--white);
  border: var(--border);
  padding: 40px;
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 8px;
}
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  border: 1px solid rgba(23,60,53,0.25);
  background: var(--ivory);
  border-radius: var(--radius);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--forest);
}

.radio-group { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(23,60,53,0.25);
  padding: 10px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
}
.radio-option input { accent-color: var(--forest); }
.radio-option:has(input:checked) { border-color: var(--forest); background: var(--ivory-2); }

.form-note { font-size: 0.8rem; opacity: 0.65; margin-top: 6px; }

.honeypot-field { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  padding: 16px 18px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
}
.form-status--success { background: #e4efe6; color: #1f5c33; border: 1px solid #b8dcc0; }
.form-status--error { background: #f6e5e2; color: #8a2f22; border: 1px solid #e6bdb3; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
