/* ===== DESIGN TOKENS ===== */
:root {
  --green: #2D7A4F;
  --green-light: #3A9963;
  --green-pale: #E8F5EE;
  --green-muted: rgba(45, 122, 79, 0.12);
  --navy: #1A2340;
  --navy-mid: #2A3550;
  --off-white: #F7F8FA;
  --white: #ffffff;
  --grey-light: #EEF1F6;
  --grey-mid: #9BA3B2;
  --grey-dark: #5A6070;
  --card-shadow: 0 4px 24px rgba(26, 35, 64, 0.08);
  --card-shadow-hover: 0 12px 40px rgba(26, 35, 64, 0.16);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  cursor: pointer;
  background: none;
  font-family: inherit;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-green {
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
}

.btn-green:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 122, 79, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline-green {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-outline-green:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 122, 79, 0.25);
}

.full-width {
  width: 100%;
}

/* ===== SECTION COMMON ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--grey-dark);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.green-sub {
  color: var(--green) !important;
  font-weight: 600;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ===== COMPREHENSIVE GUIDE STYLES ===== */
.guide-container {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-top: 2rem;
}

.guide-inner {
  padding: 60px;
}

.guide-section {
  margin-bottom: 4rem;
}

.guide-section:last-child {
  margin-bottom: 0;
}

.guide-h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-text {
  color: var(--grey-dark);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Steps */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step-item {
  display: flex;
  gap: 24px;
}

.step-num {
  width: 44px;
  height: 44px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-content p {
  color: var(--grey-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Table */
.guide-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--grey-light);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #fff;
}

.guide-table th {
  background: var(--off-white);
  padding: 16px 20px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--grey-light);
}

.guide-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--grey-light);
  color: var(--grey-dark);
  font-size: 0.95rem;
}

.guide-table tr:last-child td {
  border-bottom: none;
}

.guide-table tr:hover {
  background: rgba(45, 122, 79, 0.03);
}

/* Boxes */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 2rem 0;
}

.guide-box {
  padding: 32px;
  border-radius: var(--radius);
  border-left: 6px solid var(--green);
  background: var(--green-pale);
}

.guide-box.red {
  border-left-color: #e74c3c;
  background: #FFF5F5;
}

.guide-box.blue {
  border-left-color: #2A5BD6;
  background: #F0F4FF;
}

.guide-box h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-box ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.guide-box li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--grey-dark);
  line-height: 1.5;
}

.guide-box li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

.guide-box.red li::before {
  content: "✕";
  color: #e74c3c;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 2rem 0;
}

.check-item {
  background: var(--off-white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--navy-mid);
  border: 1px solid transparent;
  transition: var(--transition);
}

.check-item:hover {
  border-color: var(--green);
  background: #fff;
  transform: translateY(-2px);
}

.check-item::before {
  content: "📄";
  filter: grayscale(1);
}

/* Responsive Guide */
@media (max-width: 768px) {
  .guide-inner {
    padding: 40px 24px;
  }

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

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 35, 64, 0.06);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(26, 35, 64, 0.1);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-dark {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 400;
}

.logo-green {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-light {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: #fff;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-mid);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--green);
  background: var(--green-pale);
}

.nav-btn {
  padding: 10px 22px;
  background: var(--green);
  color: #fff;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  margin-left: 8px;
}

.nav-btn:hover {
  background: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(45, 122, 79, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: 8px;
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger:hover {
  background: var(--green-pale);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26, 35, 64, 0.88) 0%, rgba(26, 35, 64, 0.75) 45%, rgba(26, 35, 64, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 120px 48px 80px;
  animation: fadeInUp 0.9s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 122, 79, 0.2);
  border: 1px solid rgba(45, 122, 79, 0.5);
  color: #6EE8A0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--green);
  line-height: 1.07;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-body {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(-100%);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLine {
  0% {
    transform: translateX(-100%)
  }

  50% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(100%)
  }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--grey-light);
  padding: 72px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.trust-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.82rem;
  color: var(--grey-dark);
  line-height: 1.5;
}

/* ===== FEATURED PROPERTIES ===== */
.featured {
  background: var(--white);
  padding: 96px 0;
}

.prop-grid-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.prop-card-large {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--white);
  transition: var(--transition);
}

.prop-card-large:hover {
  box-shadow: var(--card-shadow-hover);
}

.prop-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-wide {
  /* Override wide behavior to make all cards uniform */
  grid-column: auto;
}

.card-wide .prop-image-wrap {
  height: 220px;
}

.prop-image-wrap .prop-img {
  transition: transform 0.5s ease;
}

.prop-card-large:hover .prop-img {
  transform: scale(1.04);
}

.prop-badge-location {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  z-index: 2;
}

.prop-badge-price {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.prop-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 18px 18px;
  background: linear-gradient(to top, rgba(26, 35, 64, 0.75), transparent);
  display: flex;
  align-items: flex-end;
}

.prop-specs {
  display: flex;
  gap: 14px;
}

.prop-specs span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

.prop-details {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.prop-type-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.70rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.prop-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.2;
}

.prop-location {
  color: var(--grey-dark);
  font-size: 0.85rem;
}

.prop-desc {
  color: var(--grey-dark);
  font-size: 0.85rem;
  line-height: 1.5;
}

.prop-features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin: 6px 0;
  border-top: 1px solid var(--grey-light);
  border-bottom: 1px solid var(--grey-light);
}

.feat-item {
  display: flex;
  flex-direction: column;
}

.feat-item strong {
  font-size: 0.75rem;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feat-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

/* Property grid */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.prop-card-sm {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.prop-card-sm:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.prop-sm-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.prop-sm-img-wrap img {
  transition: transform 0.5s ease;
}

.prop-card-sm:hover .prop-sm-img-wrap img {
  transform: scale(1.07);
}

.prop-sm-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  z-index: 2;
}

.prop-sm-body {
  padding: 20px;
}

.prop-sm-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0 4px;
}

.prop-sm-loc {
  color: var(--grey-dark);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.prop-sm-row {
  font-size: 0.82rem;
  color: var(--grey-dark);
  padding: 10px 0;
  border-top: 1px solid var(--grey-light);
}

.prop-sm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.prop-sm-price {
  font-size: 1.1rem;
  color: var(--navy);
}

.sm-link {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.sm-link:hover {
  color: var(--green-light);
}

/* ===== MAP SECTION ===== */
.map-section {
  background: var(--off-white);
  padding: 96px 0;
}

.map-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.map-wrapper svg {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.map-region {
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-region path {
  transition: all 0.3s ease;
  stroke: #fff;
  stroke-width: 1.5;
}

.map-region:hover path {
  opacity: 1 !important;
  stroke-width: 2.5;
  filter: drop-shadow(0 4px 12px rgba(45, 122, 79, 0.4));
}

.map-region text {
  font-size: 24px;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.map-region:hover text {
  transform: scale(1.2);
}

.active-region path {
  stroke: #fff;
  stroke-width: 3;
  fill: var(--green-light);
}

.map-label {
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  pointer-events: none;
}

.map-legend {
  grid-column: 1;
  display: flex;
  gap: 20px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--grey-dark);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grey-mid);
}

.legend-dot.active {
  background: var(--green);
}

.map-info {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 100px;
}

.map-info-icon {
  font-size: 2.2rem;
}

.map-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.map-info p {
  font-size: 0.88rem;
  color: var(--grey-dark);
  line-height: 1.6;
}

/* ===== TEAM SECTION ===== */
.team-section {
  background: var(--white);
  padding: 96px 0;
}

.team-body {
  color: var(--grey-dark);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 760px;
  margin: 3rem auto;
}

.team-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.team-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.team-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(26, 35, 64, 0.12);
}

.team-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0.5;
  transition: var(--transition);
}

.team-card:hover .team-avatar-ring {
  opacity: 1;
  inset: -4px;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.team-role {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 4px 0 12px;
}

.team-quote {
  font-style: italic;
  color: var(--grey-dark);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Trust banner */
.trust-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  margin-top: 3rem;
}

.stars {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  letter-spacing: 4px;
}

.trust-banner h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.trust-banner>p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.testimonials-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.testi-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.testi-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 18px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-size: 0.9rem;
  color: #fff;
}

.testi-author span {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 500;
}

/* ===== ARTICLES ===== */
.articles-section {
  background: var(--grey-light);
  padding: 96px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.article-img-wrap {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.article-img-wrap img {
  transition: transform 0.5s ease;
}

.article-card:hover .article-img-wrap img {
  transform: scale(1.06);
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.article-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

.article-pill.guide {
  background: var(--green-pale);
  color: var(--green);
}

.article-pill.legal {
  background: #E8F0FF;
  color: #2A5BD6;
}

.article-pill.build {
  background: #FFF4E8;
  color: #C8690A;
}

.article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.article-body p {
  font-size: 0.86rem;
  color: var(--grey-dark);
  line-height: 1.6;
  flex: 1;
}

.article-link {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
  transition: var(--transition);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-link:hover {
  color: var(--green-light);
  gap: 8px;
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--white);
  padding: 96px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-left .section-pill {
  margin-bottom: 1.5rem;
}

.contact-left h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-left p {
  color: var(--grey-dark);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--navy-mid);
}

.contact-item a {
  color: var(--navy-mid);
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--green);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
  resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--grey-mid);
}

.form-success {
  background: var(--green-pale);
  color: var(--green);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 64, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  /* Changed from center to allow scrolling overlay */
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
  /* Enable scrolling on the backdrop */
  animation: fadeIn 0.3s ease;
}

.modal-overlay.open {
  display: flex;
}

.modal-container {
  background: var(--white);
  width: 100%;
  max-width: 1000px;
  /* max-height removed to let it grow */
  border-radius: var(--radius);
  position: relative;
  /* overflow: hidden removed */
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  animation: modalScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 40px;
  /* Space at bottom after scrolling */
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.modal-close:hover {
  transform: rotate(90deg);
  color: #e74c3c;
}

.modal-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}

/* height: 100% and overflow-y: auto removed */
.modal-media {
  background: var(--off-white);
  position: relative;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
}

.modal-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--navy);
  margin: 8px 0 4px;
}

.modal-header p {
  color: var(--grey-dark);
  font-size: 1rem;
}

.modal-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
}

.modal-description h3 {
  font-size: 0.9rem;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.modal-description p {
  color: var(--navy-mid);
  line-height: 1.7;
  font-size: 0.95rem;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  border-top: 1px solid var(--grey-light);
  padding-top: 24px;
}

.modal-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-spec-item label {
  font-size: 0.75rem;
  color: var(--grey-mid);
  text-transform: uppercase;
  font-weight: 600;
}

.modal-spec-item value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.prop-card-btns {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  margin-top: 16px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


@media (max-width: 768px) {
.modal-content.single-col {
  grid-template-columns: 1fr;
}

.modal-content.single-col .guide-inner {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.modal-content {
  grid-template-columns: 1fr;
}

.modal-media {
  height: 300px;
}

.modal-info {
  padding: 32px 24px;
}
}


.footer {
  background: var(--navy);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo .logo-light {
  font-size: 1.2rem;
}

.footer-logo .logo-green {
  font-size: 0.6rem;
}

.footer-tagline {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-top: 1.25rem;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a,
.footer-col li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-grid .trust-item:nth-child(4) {
    grid-column: 1;
  }

  .trust-grid .trust-item:nth-child(5) {
    grid-column: 2;
  }

  .prop-grid-featured {
    grid-template-columns: 1fr;
  }

  .card-wide {
    grid-column: auto;
  }

  .prop-image-wrap {
    min-height: 240px;
  }

  .card-wide .prop-image-wrap {
    min-height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .map-wrapper {
    grid-template-columns: 1fr;
  }

  .map-info {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--grey-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    gap: 4px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

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

  .trust-grid .trust-item:nth-child(4),
  .trust-grid .trust-item:nth-child(5) {
    grid-column: auto;
  }

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

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

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .testimonials-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding: 120px 24px 80px;
  }

  .hero-scroll {
    left: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .trust-banner {
    padding: 36px 24px;
  }
}

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

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    text-align: center;
  }
}