/* ==========================================================================
   RS ESTATES — Design System
   Nature-inspired premium real estate brand
   ========================================================================== */

:root {
  --forest: #123F2D;
  --deep: #0B3022;
  --leaf: #6B9148;
  --leaf-soft: #8FB06A;
  --sage: #E8EFE1;
  --offwhite: #FAFAF6;
  --white: #FFFFFF;
  --charcoal: #202820;
  --grey: #68736A;
  --border: #E4E9E0;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-stat: "Manrope", "Inter", sans-serif;

  --container: 1240px;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 34px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(18, 63, 45, 0.06);
  --shadow: 0 18px 44px rgba(18, 63, 45, 0.10);
  --shadow-lg: 0 34px 70px rgba(11, 48, 34, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --focus: 0 0 0 3px rgba(107, 145, 72, 0.55);
}

/* ------------------------------ Reset ---------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.14;
  color: var(--forest);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
p { margin: 0 0 1rem; }

a { color: var(--forest); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--leaf); }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* --------------------------- Layout helpers ---------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}

.section { padding: clamp(64px, 8vw, 118px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.bg-white { background: var(--white); }
.bg-off { background: var(--offwhite); }
.bg-sage { background: var(--sage); }
.text-center { text-align: center; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--forest);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 16px; color: #fff; }

/* --------------------------- Eyebrow / heads --------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 18px;
}
.eyebrow svg { width: 18px; height: 18px; flex: none; }
.eyebrow--light { color: var(--leaf-soft); }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow--bare::before { display: none; }

.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--grey); font-size: 1.03rem; margin-bottom: 0; }

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.head-row .section-head { max-width: 560px; }

/* ------------------------------ Buttons -------------------------------- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease),
    box-shadow 0.28s var(--ease), color 0.28s var(--ease);
}
.btn svg { width: 17px; height: 17px; transition: transform 0.28s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(18, 63, 45, 0.22); color: #fff; }
.btn:hover svg.arrow { transform: translateX(4px); }

.btn--leaf { --btn-bg: var(--leaf); }
.btn--leaf:hover { --btn-bg: #5c7f3d; }
.btn--light { --btn-bg: var(--leaf-soft); --btn-fg: #0B3022; }
.btn--light:hover { color: #0B3022; --btn-bg: #fff; }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--outline:hover { background: rgba(255, 255, 255, 0.12); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--forest);
  border-color: var(--border);
}
.btn--ghost:hover { color: var(--forest); background: var(--sage); box-shadow: none; }
.btn--white { --btn-bg: #fff; --btn-fg: var(--forest); }
.btn--white:hover { color: var(--forest); }
.btn--block { width: 100%; }
.btn--sm { padding: 11px 22px; font-size: 0.86rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--forest);
  border-bottom: 1px solid transparent;
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.28s var(--ease); }
.text-link:hover { color: var(--leaf); }
.text-link:hover svg { transform: translateX(5px); }

/* ------------------------------ Header --------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 8px 30px rgba(18, 63, 45, 0.08);
  border-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 13px; color: var(--forest); }
.logo:hover { color: var(--forest); }
.logo__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--sage);
  border-radius: 14px;
  color: var(--forest);
  flex: none;
}
.logo__mark svg { width: 27px; height: 27px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  color: var(--forest);
}
.logo__sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-top: 3px;
}

/* Nav */
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 10px 15px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--forest);
  border-radius: 10px;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 4px;
  height: 2px;
  background: var(--leaf);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--leaf); font-weight: 600; }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: inline-flex; }
.main-nav > .btn { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--forest);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  background: var(--offwhite);
  padding: clamp(16px, 2.5vw, 30px) 0 0;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 88% 10%, rgba(107, 145, 72, 0.28) 0%, rgba(18, 63, 45, 0) 46%),
    linear-gradient(158deg, #164a35 0%, var(--forest) 45%, var(--deep) 100%);
  border-radius: var(--radius-lg);
  border-top-right-radius: clamp(90px, 15vw, 210px);
  border-bottom-left-radius: clamp(70px, 12vw, 150px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: stretch;
  color: #fff;
}
.hero-content {
  padding: clamp(40px, 5vw, 84px) clamp(26px, 4vw, 62px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero h1 { color: #fff; margin-bottom: 0.42em; }
.hero h1 .hl { color: #b9d29b; font-style: italic; }
.hero-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  max-width: 46ch;
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; min-height: 100%; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: clamp(320px, 46vw, 640px);
  background: #1b3b2c;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 63, 45, 0.55) 0%, rgba(18, 63, 45, 0) 34%);
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  left: clamp(18px, 3vw, 34px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--forest);
  padding: 14px 22px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  max-width: 290px;
}
.hero-badge svg { width: 34px; height: 34px; color: var(--leaf); flex: none; }
.hero-badge strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.2; }
.hero-badge span { font-size: 0.78rem; color: var(--grey); }

.hero-leaf {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 320px;
  height: 320px;
  color: rgba(185, 210, 155, 0.16);
  z-index: 1;
  pointer-events: none;
}

/* ------------------------------ Search --------------------------------- */
.search-wrap { position: relative; z-index: 6; margin-top: clamp(-90px, -6vw, -54px); }
.search-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 2.4vw, 30px);
}
.search-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.16rem;
  color: var(--forest);
  margin-bottom: 18px;
}
.search-card__title svg { width: 20px; height: 20px; color: var(--leaf); }
.search-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.field .control {
  position: relative;
  display: flex;
  align-items: center;
}
.field .control > svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--leaf);
  pointer-events: none;
}
.field select,
.field input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--charcoal);
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 13px;
  appearance: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2368736A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}
.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--leaf);
  box-shadow: var(--focus);
}
.search-form .btn { height: 47px; }

/* -------------------------- Service cards ------------------------------ */
.card-grid {
  display: grid;
  gap: clamp(16px, 1.6vw, 22px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease),
    border-color 0.32s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(107, 145, 72, 0.4);
}
.icon-circle {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  margin-bottom: 20px;
  transition: background 0.32s var(--ease), color 0.32s var(--ease);
}
.icon-circle svg { width: 27px; height: 27px; }
.service-card:hover .icon-circle { background: var(--forest); color: #fff; }
.service-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; color: var(--grey); margin-bottom: 14px; }
.service-card .card-more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--leaf);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .card-more svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.service-card:hover .card-more svg { transform: translateX(4px); }

/* --------------------------- Dark trust -------------------------------- */
.dark-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(107, 145, 72, 0.3) 0%, rgba(18, 63, 45, 0) 52%),
    linear-gradient(155deg, #164a35, var(--deep));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: clamp(44px, 5.5vw, 84px);
}
.dark-panel--curve { border-top-right-radius: clamp(80px, 14vw, 200px); border-bottom-left-radius: clamp(80px, 14vw, 200px); }
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}
.dark-panel h2 { color: #fff; }
.dark-panel p { color: rgba(255, 255, 255, 0.78); }
.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.benefit {
  display: flex;
  gap: 16px;
}
.benefit .icon-ring {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(185, 210, 155, 0.4);
  background: rgba(185, 210, 155, 0.1);
  color: #b9d29b;
}
.benefit .icon-ring svg { width: 24px; height: 24px; }
.benefit h3 { color: #fff; font-size: 1.06rem; margin-bottom: 5px; }
.benefit p { font-size: 0.87rem; margin: 0; color: rgba(255, 255, 255, 0.7); }

.trust-botanical {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 300px;
  height: 300px;
  color: rgba(185, 210, 155, 0.1);
  pointer-events: none;
}

/* --------------------------- Highlights -------------------------------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}
.highlight {
  display: flex;
  gap: 15px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.highlight:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.highlight .icon-circle { width: 46px; height: 46px; margin: 0; }
.highlight .icon-circle svg { width: 22px; height: 22px; }
.highlight h3 { font-size: 1.02rem; margin-bottom: 3px; }
.highlight p { font-size: 0.85rem; color: var(--grey); margin: 0; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

/* --------------------------- Property cards ---------------------------- */
.property-grid {
  display: grid;
  gap: clamp(18px, 1.8vw, 26px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.property-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease);
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.property-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dfe6d9;
}
.property-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.property-card:hover .property-card__media img { transform: scale(1.07); }
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.badge--dark { background: var(--forest); color: #fff; }
.property-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.property-card__price {
  font-family: var(--font-stat);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--forest);
  margin-bottom: 4px;
}
.property-card__title { font-size: 1.14rem; margin-bottom: 8px; }
.property-card__loc {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--grey);
  margin-bottom: 14px;
}
.property-card__loc svg { width: 16px; height: 16px; color: var(--leaf); flex: none; }
.property-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  margin-bottom: 16px;
  margin-top: auto;
}
.property-card__specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--grey);
}
.property-card__specs svg { width: 15px; height: 15px; color: var(--leaf); }

/* ---------------------------- Timeline --------------------------------- */
.timeline { position: relative; }
.timeline-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 9%;
  right: 9%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--leaf) 0 10px, transparent 10px 18px);
  opacity: 0.55;
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step__icon {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: #fff;
  border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: 0 10px 24px rgba(18, 63, 45, 0.2);
}
.step__icon svg { width: 27px; height: 27px; }
.step__num {
  display: block;
  font-family: var(--font-stat);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--leaf);
  margin-bottom: 6px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 7px; }
.step p { font-size: 0.86rem; color: var(--grey); margin: 0; }

/* ------------------------------ CTA banner ----------------------------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border-top-left-radius: clamp(80px, 13vw, 190px);
  border-bottom-right-radius: clamp(80px, 13vw, 190px);
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vw, 84px);
  color: #fff;
  isolation: isolate;
}
.cta-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(11, 48, 34, 0.94) 8%, rgba(11, 48, 34, 0.72) 52%, rgba(18, 63, 45, 0.42) 100%);
}
.cta-banner__content { max-width: 620px; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.84); margin-bottom: 26px; }

/* ------------------------------ Forms ---------------------------------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid .field--full { grid-column: 1 / -1; }
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--charcoal);
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 13px;
  resize: vertical;
  min-height: 132px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input,
.field textarea {
  /* override icon padding for plain fields */
}
.form-grid .field .control > svg { display: none; }
.form-grid .field input { padding-left: 15px; }
.field .error-msg {
  font-size: 0.78rem;
  color: #b3402f;
  min-height: 0;
  margin-top: -2px;
  display: none;
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #b3402f; background: #fdf5f3; }
.field.is-invalid .error-msg { display: block; }
.form-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: 16px;
}
.form-note svg { width: 16px; height: 16px; color: var(--leaf); flex: none; margin-top: 3px; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 13px;
  font-size: 0.88rem;
  border: 1px solid;
}
.form-status.is-visible { display: block; }
.form-status.is-info { background: var(--sage); border-color: rgba(107, 145, 72, 0.4); color: var(--forest); }
.form-status.is-error { background: #fdf5f3; border-color: #e0b0a7; color: #8f3324; }

.contact-aside { display: flex; flex-direction: column; gap: 18px; }
.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.contact-item .icon-circle { width: 46px; height: 46px; margin: 0; }
.contact-item .icon-circle svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-item p { font-size: 0.88rem; color: var(--grey); margin: 0; }

/* ------------------------------ Footer --------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #123F2D 0%, var(--deep) 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(56px, 7vw, 90px) 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr 1.3fr;
  gap: clamp(28px, 3.4vw, 54px);
  padding-bottom: 54px;
}
.footer-brand .logo { color: #fff; margin-bottom: 20px; }
.footer-brand .logo__mark { background: rgba(255, 255, 255, 0.1); color: #b9d29b; }
.footer-brand .logo__name { color: #fff; }
.footer-brand .logo__sub { color: #b9d29b; }
.footer-tagline {
  font-family: var(--font-head);
  font-size: 1.18rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.88rem; margin-bottom: 20px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  transition: background 0.28s var(--ease), transform 0.28s var(--ease);
}
.social-row a:hover { background: var(--leaf); transform: translateY(-3px); color: #fff; }
.social-row svg { width: 18px; height: 18px; }

.footer-col h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; }
.footer-col a:hover { color: #b9d29b; }
.footer-contact li { display: flex; gap: 12px; font-size: 0.88rem; }
.footer-contact svg { width: 17px; height: 17px; color: #b9d29b; flex: none; margin-top: 4px; }
.footer-contact a { color: rgba(255, 255, 255, 0.72); }
.footer-contact a:hover { color: #b9d29b; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.83rem;
}
.footer-bottom ul { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: #b9d29b; }
.footer-botanical {
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  color: rgba(185, 210, 155, 0.07);
  pointer-events: none;
}

/* --------------------------- Page hero (subpages) ---------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 130% at 92% 6%, rgba(107, 145, 72, 0.28), rgba(18, 63, 45, 0) 50%),
    linear-gradient(158deg, #164a35, var(--deep));
  color: #fff;
  padding: clamp(52px, 7vw, 96px) 0 clamp(70px, 9vw, 120px);
  border-bottom-left-radius: clamp(70px, 11vw, 150px);
  border-bottom-right-radius: clamp(70px, 11vw, 150px);
}
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero p { color: rgba(255, 255, 255, 0.8); max-width: 62ch; margin-bottom: 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 20px;
}
.breadcrumb a { color: #b9d29b; }
.breadcrumb svg { width: 14px; height: 14px; }
.page-hero .hero-leaf { right: -30px; top: -30px; }

/* ------------------------------ Modal ---------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 48, 34, 0.72);
  backdrop-filter: blur(4px);
  animation: fade 0.3s var(--ease);
}
.modal__dialog {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 940px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  animation: pop 0.34s var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  color: var(--forest);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal__close:hover { background: var(--forest); color: #fff; }
.modal__close svg { width: 20px; height: 20px; }
.modal__media { aspect-ratio: 16 / 9; overflow: hidden; background: #dfe6d9; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(22px, 3vw, 38px); }
.modal__body h2 { margin-bottom: 6px; }
.modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.modal__meta span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--grey); }
.modal__meta svg { width: 17px; height: 17px; color: var(--leaf); }
.modal__desc { color: var(--grey); font-size: 0.95rem; }
.modal__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.modal__specs div {
  background: var(--sage);
  border-radius: 13px;
  padding: 13px 15px;
}
.modal__specs strong { display: block; font-family: var(--font-stat); font-size: 1.05rem; color: var(--forest); }
.modal__specs span { font-size: 0.78rem; color: var(--grey); }
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
body.modal-open { overflow: hidden; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(22px) scale(0.98); } to { opacity: 1; transform: none; } }

/* --------------------------- Empty state ------------------------------- */
.empty-state {
  display: none;
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.empty-state.is-visible { display: block; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--grey); margin: 0; }

/* ----------------------- Filter bar (properties) ----------------------- */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

/* --------------------------- Reveal animation -------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------- Value / misc grids ------------------------ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
}
.mini-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.mini-card .icon-circle { width: 52px; height: 52px; }
.mini-card .icon-circle svg { width: 24px; height: 24px; }
.mini-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.mini-card p { font-size: 0.9rem; color: var(--grey); margin: 0; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px; }
.stat strong { font-family: var(--font-stat); font-weight: 700; font-size: 1.5rem; color: var(--forest); display: block; }
.stat span { font-size: 0.85rem; color: var(--grey); }

.media-collage { position: relative; }
.media-collage img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.media-collage .accent-card {
  position: absolute;
  right: -14px;
  bottom: -22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}
.media-collage .accent-card svg { width: 34px; height: 34px; color: var(--leaf); flex: none; }
.media-collage .accent-card strong { font-family: var(--font-head); display: block; font-size: 0.98rem; color: var(--forest); }
.media-collage .accent-card span { font-size: 0.78rem; color: var(--grey); }

.botanical-soft {
  position: absolute;
  color: rgba(18, 63, 45, 0.05);
  pointer-events: none;
  z-index: 0;
}
.relative { position: relative; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Laptop */
@media (max-width: 1180px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-list a { padding: 10px 11px; font-size: 0.88rem; }
}

/* Tablet */
@media (max-width: 1023px) {
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 14px clamp(18px, 4vw, 32px) 26px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.36s var(--ease), opacity 0.28s var(--ease), visibility 0.36s;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--leaf); }
  .main-nav .btn { display: inline-flex; margin-top: 16px; width: 100%; }

  .hero-panel {
    grid-template-columns: 1fr;
    border-top-right-radius: clamp(70px, 12vw, 130px);
    border-bottom-left-radius: clamp(60px, 10vw, 110px);
  }
  .hero-media img { min-height: 360px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(18, 63, 45, 0.4), rgba(18, 63, 45, 0) 40%); }

  .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form .btn { grid-column: 1 / -1; }
  .search-wrap { margin-top: -40px; }

  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar .btn { grid-column: 1 / -1; }

  .trust-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }

  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .timeline-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .timeline-track::before { display: none; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
}

/* Mobile */
@media (max-width: 767px) {
  body { font-size: 15.5px; }
  .section { padding: 56px 0; }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: 1fr; }
  .benefit-list { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }

  .search-form { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr; }
  .search-wrap { margin-top: -28px; }

  .property-grid { grid-template-columns: 1fr; }

  .timeline-track { grid-template-columns: 1fr; gap: 26px; text-align: left; }
  .step { text-align: left; display: grid; grid-template-columns: 68px 1fr; gap: 18px; align-items: start; }
  .step__wrap { grid-column: 2; }
  .step__icon { margin: 0; }
  .step::after {
    content: "";
    position: absolute;
    left: 33px;
    top: 68px;
    bottom: -26px;
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--leaf) 0 8px, transparent 8px 15px);
    opacity: 0.5;
  }
  .step:last-child::after { display: none; }
  .step__num { grid-column: 2; }
  .step h3, .step p { grid-column: 2; }

  .head-row { align-items: flex-start; }
  .media-collage .accent-card { position: static; margin-top: 16px; max-width: none; }
  .cta-banner { min-height: 0; padding: 40px 26px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom ul { gap: 16px; }
}

@media (max-width: 400px) {
  .card-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .logo__name { font-size: 1.16rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
