/* ===== Design tokens — nature green palette ===== */
:root {
  --color-primary: #2F86C8;
  --color-primary-dark: #1F6BA8;
  --color-primary-light: #BFE1F5;
  --color-accent: #C9A76A;
  --color-accent-dark: #B08F52;
  --color-bg: #F5FAFD;
  --color-surface: #FFFFFF;
  --color-text: #1B2A38;
  --color-text-muted: #5C7185;
  --color-border: #DCE9F2;

  --font-heading: 'Inter', -apple-system, Segoe UI, sans-serif;
  --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;

  --container-width: 1180px;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(31, 107, 168, 0.1);
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { color: var(--color-text-muted); }

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

/* ===== Buttons — underline hover effect ===== */
.btn {
  display: inline-block;
  position: relative;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.link-underline {
  position: relative;
  padding-bottom: 2px;
  font-weight: 600;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.link-underline:hover::after { transform: scaleX(1); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__image { height: 104px; width: auto; display: block; }

.primary-nav { display: flex; gap: 32px; }
.primary-nav a {
  position: relative;
  font-weight: 500;
  padding-bottom: 4px;
  color: var(--color-text);
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.primary-nav a:hover::after,
.primary-nav a.is-active::after { transform: scaleX(1); }
.primary-nav a.is-active { color: var(--color-primary-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--color-primary-dark); }

/* ===== Hero — simple (About / Contact) ===== */
.hero--simple {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-bg));
  color: var(--color-text);
  padding-block: 90px;
}
.hero--simple .hero__inner { max-width: 640px; }
.hero--simple h1 { color: var(--color-primary-dark); margin-bottom: 18px; }
.hero--simple p { color: var(--color-text-muted); font-size: 1.1rem; margin-bottom: 32px; }
.hero--simple .btn-outline { color: var(--color-primary-dark); border-color: var(--color-primary); }
.hero--simple .btn-outline:hover { background: var(--color-primary); color: #fff; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Hero — split layout with angled divider (Home page) ===== */
.hero--split { background: var(--color-bg); overflow: hidden; padding-block: 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  min-height: 640px;
}
.hero__text {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-surface));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 130px 80px 6vw;
  clip-path: polygon(0 0, 100% 0, calc(100% - 150px) 100%, 0 100%);
  margin-right: -150px;
}
.hero__text h1 { color: var(--color-primary-dark); margin-bottom: 18px; }
.hero__text p { color: var(--color-text-muted); font-size: 1.1rem; margin-bottom: 32px; max-width: 460px; }
.hero__text .btn-outline { color: var(--color-primary-dark); border-color: var(--color-primary); }
.hero__text .btn-outline:hover { background: var(--color-primary); color: #fff; }

.hero__image { position: relative; z-index: 1; }
.hero__image img {
  width: 100%;
  height: 100%;
  min-height: 640px;
  object-fit: cover;
  display: block;
}

/* ===== Floating contact button ===== */
.floating-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(31, 107, 168, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}
.floating-contact:hover { background: var(--color-primary-dark); transform: translateY(-3px); }
.floating-contact svg { width: 26px; height: 26px; }

/* ===== Sections ===== */
section { padding-block: 72px; }
.section-heading { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-heading p { margin-top: 10px; }

/* ===== Filter bar ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.filter-btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ===== Property / Project cards ===== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.property-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.property-card:hover { transform: translateY(-4px); }
.property-card__image {
  aspect-ratio: 4 / 3;
  background: var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.property-card__body { padding: 20px; }
.property-card__badges { display: flex; gap: 8px; margin-bottom: 10px; }
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge--type { background: rgba(47, 134, 200, 0.1); color: var(--color-primary); }
.badge--status { background: rgba(201, 167, 106, 0.18); color: var(--color-accent-dark); }
.property-card__title { margin-bottom: 6px; }
.property-card__location { font-size: 0.9rem; margin-bottom: 10px; }
.property-card__price { font-weight: 600; color: var(--color-primary-dark); margin-bottom: 14px; }

/* ===== Property gallery ===== */
.property-gallery__main {
  aspect-ratio: 16 / 9;
  background: var(--color-primary-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}
.property-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.property-gallery__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  overflow-x: auto;
}
.property-gallery__thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 66px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: none;
}
.property-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.property-gallery__thumb.is-active { border-color: var(--color-primary); }

/* ===== Property detail ===== */
.property-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.property-detail__main h1 { margin: 14px 0 6px; }
.property-detail__location { margin-bottom: 24px; }
.property-detail__desc { color: var(--color-text); line-height: 1.75; }
.property-detail__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.property-detail__price { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--color-primary-dark); margin-bottom: 18px; }
.property-detail__specs { margin-bottom: 22px; }
.property-detail__specs dt { font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-top: 12px; }
.property-detail__specs dt:first-child { margin-top: 0; }
.property-detail__specs dd { font-weight: 600; color: var(--color-text); }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
}

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-error { color: #B03A2E; font-size: 0.85rem; margin-top: 4px; }
.form-status {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.form-status--success { background: rgba(47, 134, 200, 0.1); color: var(--color-primary-dark); }
.form-status--error { background: rgba(176, 58, 46, 0.1); color: #B03A2E; }

/* ===== Contact page ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info__item { margin-top: 24px; }
.contact-info__item:first-of-type { margin-top: 20px; }
.contact-info__item h3 { font-size: 0.95rem; color: var(--color-primary-dark); margin-bottom: 6px; }
.contact-info__item p { margin-bottom: 2px; }
.contact-info__item a:hover { color: var(--color-primary); }

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

/* ===== Footer ===== */
.site-footer { background: var(--color-primary-light); color: var(--color-text-muted); margin-top: 80px; border-top: 1px solid var(--color-border); }
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-block: 56px;
}
.site-footer h3 { color: var(--color-primary-dark); font-size: 1rem; margin-bottom: 16px; }
.site-footer a { display: block; color: var(--color-text-muted); margin-bottom: 10px; }
.site-footer a:hover { color: var(--color-primary); }
.site-footer__tagline { margin-top: 14px; font-size: 0.9rem; }
.logo--footer { justify-content: center; }
.logo--footer .logo__image { height: 150px; }
.site-footer__col:first-child { text-align: center; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 36px; height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  margin-bottom: 0;
  color: var(--color-primary-dark);
}
.site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-block: 20px;
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }

  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__text {
    clip-path: none;
    margin-right: 0;
    padding: 48px 6vw;
  }
  .hero__image { order: -1; }
  .hero__image img { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-surface);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav.is-open { max-height: 300px; }
  .primary-nav a { padding: 16px 24px; border-top: 1px solid var(--color-border); }
  .hero--simple { padding-block: 56px; text-align: center; }
  .hero--simple .hero__inner { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .site-footer__inner { grid-template-columns: 1fr; padding-block: 40px; }
  .floating-contact { width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .floating-contact svg { width: 22px; height: 22px; }
  .property-detail { grid-template-columns: 1fr; }
  .property-detail__card { position: static; }
}
