/* =============================================================
   Sammy Estates — shared stylesheet
   Aesthetic: warm editorial. Parchment ground, deep green-black
   ink, terracotta accent, elegant serif display type.
   No frameworks, no build step. Plain CSS custom properties.
   ============================================================= */

/* ---- Design tokens ---------------------------------------- */
:root {
  /* Colour */
  --bg:          #f6f1e7;   /* warm parchment */
  --bg-2:        #efe7d7;   /* slightly deeper panel */
  --surface:     #fffdf8;   /* card / raised surface */
  --ink:         #1c2b24;   /* deep green-black — primary text */
  --ink-soft:    #4b584f;   /* muted body text */
  --ink-faint:   #8a938a;   /* captions, meta */
  --accent:      #b5502f;   /* terracotta clay */
  --accent-dark: #94391d;
  --accent-soft: #e9c9b8;
  --sage:        #7c8b6f;   /* secondary accent */
  --gold:        #b08d4f;
  --line:        rgba(28, 43, 36, 0.14);
  --line-soft:   rgba(28, 43, 36, 0.08);
  --shadow:      0 18px 50px -24px rgba(28, 43, 36, 0.45);
  --shadow-sm:   0 8px 24px -16px rgba(28, 43, 36, 0.45);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --wrap:   1180px;
  --gap:    clamp(1rem, 3vw, 2rem);
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle paper grain via layered radial noise */
  background-image:
    radial-gradient(rgba(28, 43, 36, 0.025) 1px, transparent 1px);
  background-size: 4px 4px;
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.wrap {
  width: min(100% - 2.4rem, var(--wrap));
  margin-inline: auto;
}

.wrap-narrow { max-width: 760px; }

/* small tracked eyebrow label used everywhere */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tint { background: var(--bg-2); }

.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.center { text-align: center; margin-inline: auto; }

/* ---- Buttons --------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn-accent { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn-accent:hover { --btn-bg: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- Header ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: -2px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0; padding: 0;
}
.main-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.98rem;
  position: relative;
  padding: 0.2rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ------------------------------------------------ */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero::before {
  /* soft warm glow behind headline */
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(181, 80, 47, 0.14), transparent 62%);
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 1.8rem;
}
.hero-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure .figure-tag {
  position: absolute;
  left: 1rem; bottom: 1rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.6rem 0.95rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.hero-figure .figure-tag span { color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 2.2rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}
.hero-stats .stat span {
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---- Search form (hero + listings) ----------------------- */
.search-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.search-card h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234b584f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.1rem;
}

/* ---- Property cards -------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.property-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.property-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
/* Stretched link: the title anchor's clickable area covers the whole card,
   so any click on the card opens the property — one real, keyboard-focusable
   link (no JS handler needed). */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card-link:focus-visible { outline: none; }
.property-card:focus-within {
  box-shadow: var(--shadow);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.property-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.property-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.property-card:hover .property-media img { transform: scale(1.05); }
.property-badge {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.property-badge.status { background: var(--accent); color: #fff; right: 0.85rem; left: auto; }
.property-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.property-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.property-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin: 0 0 0.15rem; }
.property-loc { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 1rem; }
.property-loc svg { vertical-align: -2px; margin-right: 3px; }
.property-specs {
  display: flex;
  gap: 1.1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.property-specs span { display: inline-flex; align-items: center; gap: 0.35rem; }
.property-specs strong { color: var(--ink); font-weight: 600; }

/* ---- Listings toolbar ------------------------------------ */
.listings-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2.2rem; align-items: start; }
.filters {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.filters h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}
.filters .field { margin-bottom: 1rem; }
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.results-count { color: var(--ink-soft); font-size: 0.95rem; }
.results-count strong { color: var(--ink); }
.sort-control { display: inline-flex; align-items: center; gap: 0.6rem; }
.sort-control label { font-size: 0.85rem; color: var(--ink-soft); }
.sort-control select { padding: 0.5rem 2rem 0.5rem 0.7rem; font-size: 0.9rem; }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.no-results h3 { font-size: 1.4rem; }

/* ---- Why choose us / feature grid ------------------------ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.25s var(--ease);
}
.feature:hover { transform: translateY(-4px); }
.feature-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 1.1rem;
}
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }

/* ---- Property detail page -------------------------------- */
.detail-header { padding: 2rem 0 0; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--ink-soft); }
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.detail-top h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.3rem; }
.detail-top .property-loc { font-size: 1rem; margin: 0; }
.detail-price { text-align: right; }
.detail-price .price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--accent);
}
.detail-price .tenure { font-size: 0.85rem; color: var(--ink-faint); }

/* gallery */
.gallery { margin-bottom: 2.5rem; }
.gallery-main {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-2);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.gallery-nav:hover { background: var(--ink); color: var(--bg); }
.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }
.gallery-counter {
  position: absolute;
  bottom: 1rem; right: 1rem;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  color: var(--bg);
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  margin-top: 0.7rem;
}
.gallery-thumbs button {
  aspect-ratio: 3 / 2;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--bg-2);
  transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
  opacity: 0.7;
}
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }

.detail-specs {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.3rem 1.5rem;
  background: var(--bg-2);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.detail-specs .spec strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}
.detail-specs .spec span { font-size: 0.82rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; }

.detail-section { margin-bottom: 2.5rem; }
.detail-section h2 { font-size: 1.6rem; }

.feature-list { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.feature-list li {
  break-inside: avoid;
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.placeholder-panel {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(28,43,36,0.03) 12px, rgba(28,43,36,0.03) 24px);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-faint);
  min-height: 260px;
  padding: 2rem;
}
.placeholder-panel svg { margin-bottom: 0.8rem; color: var(--sage); }
.placeholder-panel strong { display: block; color: var(--ink-soft); font-family: var(--font-display); font-size: 1.2rem; }

/* enquiry / sidebar card */
.side-card {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}
.side-card .agent {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-soft);
}
.side-card .agent img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.side-card .agent strong { display: block; }
.side-card .agent span { font-size: 0.85rem; color: var(--ink-faint); }
.side-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }

/* ---- About page ------------------------------------------ */
.about-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.about-hero img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.4rem; }
.value { padding: 1.4rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.value h3 { font-size: 1.15rem; }
.value p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.6rem; }
.team-card { text-align: center; }
.team-card .portrait {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.team-card .portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.team-card:hover .portrait img { transform: scale(1.05); }
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.1rem; }
.team-card .role { color: var(--accent); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.team-card p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---- Contact page ---------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.office-detail { margin-bottom: 1.6rem; display: flex; gap: 0.9rem; }
.office-detail .ic {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.office-detail h3 { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 0.2rem; }
.office-detail p { margin: 0; color: var(--ink-soft); }
.office-detail a { color: var(--ink); }

/* ---- Forms: validation + success ------------------------- */
.field .error-msg {
  font-size: 0.78rem;
  color: var(--accent-dark);
  min-height: 1rem;
  display: none;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--accent-dark); background: #fdf3ef; }
.field.invalid .error-msg { display: block; }

.form-success {
  display: none;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.2rem 1.4rem;
  background: #eef4ea;
  border: 1px solid var(--sage);
  border-radius: var(--radius-sm);
  color: #35492f;
  margin-bottom: 1.2rem;
}
.form-success.show { display: flex; }
.form-success svg { flex-shrink: 0; color: var(--sage); margin-top: 2px; }
.form-success strong { display: block; }
.form-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.8rem; }

/* ---- CTA banner ------------------------------------------ */
.cta-banner {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(181,80,47,0.35), transparent 55%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: var(--bg); font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta-banner p { color: rgba(246,241,231,0.8); max-width: 46ch; margin-inline: auto; }
.cta-banner .btn { margin-top: 0.6rem; }

/* ---- Footer ---------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(246, 241, 231, 0.82);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.8rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.4rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(246,241,231,0.14);
}
.site-footer .brand-name { color: var(--bg); }
.site-footer .brand-mark { background: var(--accent); }
.footer-about p { color: rgba(246,241,231,0.7); font-size: 0.95rem; max-width: 34ch; margin-top: 1rem; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(246,241,231,0.55);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(246,241,231,0.82); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(246,241,231,0.7); font-size: 0.95rem; margin: 0 0 0.4rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(246,241,231,0.55);
}
.footer-bottom a { color: rgba(246,241,231,0.7); }

/* ---- Reveal on load animation ---------------------------- */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.7s var(--ease) forwards; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 460px; }
  .listings-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav ul {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.2rem 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
  }
  .main-nav ul.open { max-height: 340px; }
  .main-nav li { border-bottom: 1px solid var(--line-soft); }
  .main-nav a { display: block; padding: 0.9rem 0; }
  .search-fields { grid-template-columns: 1fr; }
  .detail-top { flex-direction: column; align-items: flex-start; }
  .detail-price { text-align: left; }
  .feature-list { columns: 1; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
}

/* ---- Embedded Moove Smooth widget ------------------------ */
/* The widget container carries a DaisyUI [data-theme] base background that
   spans the full section width — a white band wider than the actual widget.
   Clear only the container's background; the widget's own cards stay white.
   !important because the widget injects DaisyUI/Tailwind styles into <head>
   after this file loads. */
#moove-smooth-widget {
  background: transparent !important;
}
