/* ===========================================================
   Keyline Properties — Home Page Styles
   Palette: Royal Plum #4B1F63, Deep Plum #2E1240, Amber #D9A441,
            Ivory #FBF8F3, Ink #1D1626, Slate #6B6577
   Type: 'Fraunces' (display serif) + 'Manrope' (body/UI)
=========================================================== */

:root {

  /* ===== Keyline Purple Theme ===== */
  --plum: #4b1d6e;
  --plum-dark: #3d1660;
  --plum-darker: #2e1245;

  --amber: #d9a441;
  --amber-dark: #c08e2e;

  --ivory: #fbf9fd;
  --ivory-2: #f3edf9;

  --ink: #221c2c;
  --slate: #6b6577;

  --line: #e7e1f0;
  --white: #ffffff;

  /* Extra theme colors */
  --purple-600: #5c2687;
  --purple-tint: #f3edf9;
  --purple-tint-2: #ece3f6;
  --gray-400: #a29cb0;

  /* Typography */
  --font-display: "Playfair Display", serif;
  --font-body: "Poppins", sans-serif;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Shadows */
  --shadow-sm: 0 10px 25px -8px rgba(75,29,110,.18);
  --shadow-md: 0 20px 45px -20px rgba(46,18,69,.18);
  --shadow-lg: 0 25px 55px -20px rgba(46,18,69,.22);

}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--plum-darker);
  line-height: 1.15;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--plum);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--plum-darker); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--plum-darker);
  border: 1.5px solid var(--plum-darker);
}
.btn-outline:hover { background: var(--plum-darker); color: var(--white); transform: translateY(-2px); }

.btn-amber {
  background: var(--plum-darker);
  color: #d9a441;
  box-shadow: var(--shadow-sm);
}
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost-link {
  font-weight: 700;
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.btn-ghost-link svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.btn-ghost-link:hover svg { transform: translateX(4px); }

/* ---------- Placeholder "photo" blocks ----------
   Dummy imagery built purely from CSS gradients + a
   line-art motif, so no external image files are needed. */
.ph-img {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.16), transparent 45%),
    linear-gradient(135deg, var(--g1, #5B2C7A), var(--g2, #2E1240));
  border-radius: var(--radius-md);
}
.ph-img::before {
  /* soft skyline / horizon motif */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0,0,0,0.28), transparent);
}
.ph-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center 65%;
  background-size: 70% auto;
  opacity: 0.9;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* Reduced navbar height */
  padding: 8px 28px;

  gap: 18px;
}

/* Brand */

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  /* Reduced from 75px */
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-content {
  width: 100%;
  margin-top: 2px;
}

.brand-text-tag {
  width: 100%;
  text-align: center;
 

  /* Reduced size */
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;

  line-height: 1.2;
  text-transform: uppercase;
  color: black;
}

/* Navigation */

.main-nav {
  display: flex;
  align-items: center;

  /* Reduced from 36px */
  gap: 28px;
}

.main-nav a {
  position: relative;

  /* Slightly reduced */
  padding: 8px 0 5px;

  font-weight: 600;
  font-size: 17px;
  line-height: 1;

  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 2px;

  background: var(--amber);
  transition: width 0.25s ease;
}
.main-nav a::after{
display: none;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--plum);
}

/* Tablet */

@media (max-width: 992px) {
  .header-inner {
    padding: 8px 20px;
    gap: 14px;
  }

  .brand-logo {
    height: 50px;
  }

  .brand-text-tag {
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .main-nav {
    gap: 20px;
  }

  .main-nav a {
    font-size: 13px;
  }
}

/* Mobile */

@media (max-width: 768px) {
  .header-inner {
    padding: 7px 16px;
  }

  .brand-logo {
    height: 46px;
  }

  .brand-content {
    margin-top: 1px;
  }

  .brand-text-tag {
    font-size: 7px;
    letter-spacing: 0.14em;
  }
}

.header-cta{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    padding:12px 24px;

    background:linear-gradient(
        135deg,
        var(--plum),
        var(--plum-darker)
    );

    color:#fff;
    font-size:15px;
    font-weight:600;

    border-radius:999px;

    box-shadow:0 10px 25px rgba(46,18,69,.22);

    transition:all .3s ease;
}

.header-cta svg{
    width:18px;
    height:18px;
    color:var(--amber);
}

.header-cta:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(46,18,69,.28);
}

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

/* ---------- Hero ---------- */
.hero{
    padding:64px 0 0;
    padding-bottom: 30px !important;
    background:linear-gradient(
        120deg,
        var(--purple-tint) 0%,
        var(--purple-tint-2) 45%,
        #eee6d8 100%
    );
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  letter-spacing: -0.01em;
}
.hero-copy h1 .accent { color: var(--plum); display: block; }
.hero-copy p.lede {
  margin-top: 20px;
  font-size: 17px;
  color: var(--slate);
  max-width: 460px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 26px 0 30px;
}
.hero-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.hero-tag .tick {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--plum-darker);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-tag .tick svg { width: 10px; height: 10px; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 30px;
}

.hero-image{
    width:100%;
    height:500px;              /* Adjust the height as needed */
    overflow:hidden;
    border:3px solid #D9A441;  /* Gold border */
    border-radius:25px;
    box-shadow:0 20px 45px rgba(75,29,110,.18);
    position:relative;
}

@media (max-width: 767px) {
    .hero-image {
        height: 300px;
    }
}

@media (max-width: 760px) {

  .cta-banner {
    width: 100%;
    min-height: auto !important;

    padding: 14px 12px !important;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 9px;

    border-radius: 14px;
  }

  /* Small Icon */
  .cta-banner .cta-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;

    border-radius: 9px;
  }

  .cta-banner .cta-icon svg {
    width: 17px;
    height: 17px;
  }

  /* Content */
  .cta-banner .cta-content {
    flex: 1;
    min-width: 0;
  }

  .cta-banner h2 {
    font-size: 15px !important;
    line-height: 1.15;
    margin: 0 0 3px !important;
  }

  .cta-banner p {
    font-size: 10px !important;
    line-height: 1.3;
    margin: 0 !important;

    max-width: 150px;
  }

  /* Small Button */
  .cta-banner .btn {
    flex-shrink: 0;

    padding: 8px 10px !important;

    min-height: 32px !important;

    font-size: 10px !important;
    line-height: 1;

    border-radius: 16px;

    white-space: nowrap;
  }

  .cta-banner .btn svg {
    width: 11px;
    height: 11px;

    margin-left: 3px;
  }
}


/* Extra Small Phones */
@media (max-width: 400px) {

  .cta-banner {
    padding: 12px 10px !important;
    gap: 7px;
    border-radius: 12px;
  }

  .cta-banner .cta-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
  }

  .cta-banner .cta-icon svg {
    width: 15px;
    height: 15px;
  }

  .cta-banner h2 {
    font-size: 13px !important;
  }

  .cta-banner p {
    font-size: 9px !important;
    max-width: 130px;
  }

  .cta-banner .btn {
    padding: 7px 9px !important;
    min-height: 29px !important;
    font-size: 9px !important;
  }

  .cta-banner .btn svg {
    width: 10px;
    height: 10px;
  }
}

.hero-image img{
    width:100%;
    height:100%;
    object-fit:cover;          /* Makes the image fill perfectly */
    object-position:50% 20%;    /* Keeps the center visible */
    transition:transform .6s ease;
}

.hero-image:hover img{
    transform:scale(1.08);
}

.hero-image::before{
    content:"";
    position:absolute;
    inset:0;
    border:3px solid #4b1d6e;  /* Purple border */
    border-radius:25px;
    pointer-events:none;
    opacity:0;
    transition:.4s;
}

.hero-image:hover::before{
    opacity:1;
}

/* ---------- Search bar ---------- */
.search-wrap { margin-top: 56px; }
.search-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0;
  align-items: end;
  transform: translateY(0);
}
.search-field {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.search-field:first-child { padding-left: 0; }
.search-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.search-field select {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.search-field-select {
  position: relative;
}
.search-field-select::after {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: rotate(45deg);
  pointer-events: none;
}
.search-submit {
  margin-left: 24px;
  padding: 17px 30px;
}
.search-submit svg { width: 16px; height: 16px; }

/* ---------- Section shell ---------- */
.section { padding: 50px 0; }
.section-tight { padding: 50px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 14px auto 48px;
}
.section-head h2 { font-size: clamp(28px, 3vw, 38px); }
.section-head p { color: var(--slate); margin-top: 12px; font-size: 15.5px; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-head-row h2 { font-size: clamp(26px, 2.8vw, 34px); margin-top: 10px; }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--plum), var(--plum-darker));
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-icon svg { width: 24px; height: 24px; }
.why-card h3 { font-size: 17.5px; margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--slate); }

/* ---------- Featured properties ---------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.property-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.property-media { position: relative; }
.property-media .ph-img { aspect-ratio: 4/3; border-radius: 0; }
.property-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--plum);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.property-body { padding: 20px 20px 22px; }
.property-body h3 { font-size: 17.5px; margin-bottom: 6px; }
.property-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--slate);
  margin-bottom: 12px;
}
.property-loc svg { width: 13px; height: 13px; color: var(--amber-dark); flex-shrink: 0; }
.property-price { font-size: 15px; margin-bottom: 16px; }
.property-price strong { font-family: var(--font-display); font-size: 20px; color: var(--plum); }
.property-price span { color: var(--slate); font-size: 12.5px; }
.property-body .btn-outline {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 13.5px;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: linear-gradient(120deg, var(--plum-darker), var(--plum));
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
}
.stat-item:last-child { border-right: none; }
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(217, 164, 65, 0.18);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 12.5px; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr 0.85fr;
  gap: 36px;
  align-items: center;
}
.about-copy p { color: var(--slate); font-size: 15px; margin: 18px 0 26px; max-width: 460px; }
.about-copy h2 .accent { color: var(--amber-dark); }

.about-visual { position: relative; }
.about-visual .ph-img { --g1: #6A3792; --g2: #23102E; aspect-ratio: 3/4; box-shadow: var(--shadow-md); }
.about-badge {
  position: absolute;
  bottom: 18px;
  right: -18px;
  background: var(--plum);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.about-badge .num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--amber); }
.about-badge .label { font-size: 12px; margin-top: 2px; }

.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.testimonial .quote-mark { font-family: var(--font-display); font-size: 46px; color: var(--amber); line-height: 0.5; display: block; margin-bottom: 10px; }
.testimonial p { font-size: 15px; color: var(--ink); margin-bottom: 18px; }
.stars { color: var(--amber-dark); font-size: 15px; letter-spacing: 3px; margin-bottom: 10px; }
.testimonial-author strong { display: block; font-size: 14.5px; }
.testimonial-author span { font-size: 13px; color: var(--slate); }
.dots { display: flex; gap: 7px; margin-top: 18px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.dots span.active { background: var(--plum); }

/* ---------- Categories ---------- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--white);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.category-card:hover { border-color: var(--amber); transform: translateY(-4px); }
.category-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ivory-2);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.category-icon svg { width: 24px; height: 24px; }
.category-card h3 { font-size: 17px; margin-bottom: 6px; }
.category-card p { font-size: 14px; color: var(--slate); margin-bottom: 14px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--amber), var(--amber-dark));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-left { display: flex; align-items: center; gap: 18px; }
.cta-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(29, 14, 43, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plum-darker);
  flex-shrink: 0;
}
.cta-icon svg { width: 26px; height: 26px; }
.cta-left h3 { font-size: 21px; color: var(--plum-darker); }
.cta-left p { font-size: 14px; color: var(--plum-darker); opacity: 0.85; margin-top: 2px; }
.cta-banner .btn-primary { background: var(--plum-darker); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--plum-darker);
  color: rgba(255,255,255,0.72);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand-mark { background: linear-gradient(135deg, var(--amber), var(--amber-dark)); color: var(--plum-darker); }
.footer-brand .brand-text-name { color: var(--white); }
.footer-brand .brand-text-tag { color: rgba(255,255,255,0.5); border-top-color: rgba(255,255,255,0.15); }
.footer-brand p { font-size: 13.5px; margin: 16px 0 20px; max-width: 260px; line-height: 1.6; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.social-row a:hover { background: var(--amber); transform: translateY(-3px); }
.social-row a svg { width: 15px; height: 15px; color: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 18px;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.footer-col ul li { margin-bottom: 11px; font-size: 13.5px; }
.footer-col ul li a:hover { color: var(--amber); }
.footer-col .contact-line {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; margin-bottom: 13px;
}
.footer-col .contact-line svg { width: 15px; height: 15px; color: var(--amber); margin-top: 2px; flex-shrink: 0; }

.newsletter-form { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.newsletter-form input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: inherit;
  font-size: 13.5px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { outline: 2px solid var(--amber); }
.newsletter-form button {
  background: var(--amber);
  color: var(--plum-darker);
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background 0.25s ease;
}
.newsletter-form button:hover { background: var(--amber-dark); }
.form-msg { font-size: 12.5px; color: var(--amber); min-height: 16px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .heart { color: #E86A6A; }

/* Back to top */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.25s ease;
  z-index: 99;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--plum-darker); }
.to-top svg { width: 18px; height: 18px; }

/* Accessible focus */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2.5px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .search-bar { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .search-field { border-right: none; padding: 0; }
  .search-submit { grid-column: 1 / -1; margin: 6px 0 0; justify-content: center; width: 100%; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-right: none; }
  .categories-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 78px; left: 0; right: 0; background: var(--ivory); flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px 24px 28px; box-shadow: var(--shadow-md); transform: translateY(-130%); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-cta span { display: none; }
  .header-cta { padding: 12px; }
  .why-grid, .property-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .section { padding: 50px 0; }
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
