/* =========================================================================
   Bayline Property Group — global stylesheet
   Static marketing site. All original design. No frameworks.
   ========================================================================= */

:root {
  --navy: #0e2740;
  --navy-800: #12314f;
  --navy-700: #1b3f63;
  --ink: #1c2530;
  --body: #46525f;
  --muted: #6b7784;
  --accent: #c39b47;      /* brass / gold */
  --accent-dark: #a9832f;
  --river: #2f7d8c;        /* Parramatta River teal */
  --sand: #f7f2e8;
  --header-bg: 250, 244, 230;   /* logo background cream, as r,g,b for rgba() */
  --grey-50: #f6f7f8;
  --grey-100: #eef0f2;
  --line: #e2e5e8;
  --white: #ffffff;
  --ok: #1f7a4d;
  --err: #b3261e;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 39, 64, .06), 0 2px 8px rgba(14, 39, 64, .05);
  --shadow-md: 0 10px 30px rgba(14, 39, 64, .10);
  --shadow-lg: 0 24px 60px rgba(14, 39, 64, .16);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6rem);

  --font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  width: 100%;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
p { color: inherit; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--accent-dark); }
ul, ol { padding-left: 1.15rem; }
strong { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.section--grey { background: var(--grey-50); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #d9e2ec; }
.section--navy h2, .section--navy h3 { color: #fff; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.split { display: grid; gap: clamp(1.75rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 0.95fr; } .split--reverse > :first-child { order: 2; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .9rem;
}
.section--navy .eyebrow { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.section--navy .lead { color: #c3d0dd; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--accent);
  --fg: #1c1405;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--fg); }
.btn-primary { --bg: var(--accent); --fg: #1c1405; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { --bg: var(--navy); --fg: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-ghost { --bg: transparent; --fg: var(--navy); border-color: currentColor; }
.btn-ghost:hover { background: var(--navy); --fg: #fff; }
.btn-light { --bg: #fff; --fg: var(--navy); }
.btn-light:hover { background: var(--grey-100); }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.btn-row--center { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--header-bg), .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: 74px; }
.brand { display: flex; align-items: center; }
.brand img { height: 58px; width: auto; display: block; }

.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.primary-nav a, .primary-nav .nav-toggle-sub {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .6rem .8rem; border-radius: 8px;
  font-weight: 600; font-size: .93rem; color: var(--ink);
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.has-sub:hover > .nav-toggle-sub,
.primary-nav > ul > li > a[aria-current="page"] { color: var(--accent-dark); background: var(--sand); }
.primary-nav .caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }

.has-sub { position: relative; }
.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.submenu--wide { min-width: 460px; display: grid; grid-template-columns: 1fr 1fr; }
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu,
.has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: .55rem .7rem; border-radius: 6px; font-size: .9rem; font-weight: 500; color: var(--body); }
.submenu a:hover { background: var(--sand); color: var(--accent-dark); }

.header-cta { display: flex; align-items: center; gap: .9rem; }
.header-phone { font-weight: 700; color: var(--navy); white-space: nowrap; }
.header-phone span { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav-burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: 10px; background: rgb(var(--header-bg)); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
body.nav-open .nav-burger span { background: transparent; }
body.nav-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .header-phone { display: none; }
}
@media (max-width: 960px) {
  /* backdrop-filter on an ancestor creates a containing block for
     position:fixed descendants — that would trap the slide-out nav
     panel inside the header's own small box instead of the viewport. */
  .site-header { backdrop-filter: none; }
  .nav-burger { display: inline-flex; }
  /* .primary-nav becomes position:fixed below, taking it out of the flex
     row — its margin-left:auto no longer pushes the burger to the right
     edge, so move that push onto header-cta instead. */
  .header-cta { margin-left: auto; }
  .primary-nav {
    position: fixed;
    inset: 74px 0 0 auto;
    width: min(360px, 90vw);
    max-width: 100vw;
    background: rgb(var(--header-bg));
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1rem 4rem;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  body.nav-open .primary-nav { transform: translateX(0); visibility: visible; }
  body.nav-open { overflow: hidden; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--grey-100); }
  .primary-nav a, .primary-nav .nav-toggle-sub { width: 100%; padding: .85rem .5rem; font-size: 1rem; justify-content: space-between; }
  .submenu, .submenu--wide {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 .5rem .75rem;
    display: none; min-width: 0; grid-template-columns: 1fr;
  }
  .has-sub.is-open > .submenu { display: block; }
  .has-sub:hover > .submenu:not(.is-forced) { }
  .primary-nav .caret { transform: rotate(45deg); }
  .has-sub.is-open .caret { transform: rotate(-135deg) translateY(-2px); }
  .header-cta .btn { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #eaf0f6;
  background: var(--navy);
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 56%;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(96deg, rgba(8,22,38,.88) 0%, rgba(8,22,38,.64) 44%, rgba(8,22,38,.28) 76%, rgba(8,22,38,.10) 100%),
    linear-gradient(0deg, rgba(8,22,38,.55) 0%, rgba(8,22,38,0) 46%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(900px 460px at 88% 0%, rgba(195,155,71,.20), transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(3.5rem, 10vw, 7rem); }
@media (max-width: 540px) {
  .hero-inner .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .search-card { margin-left: 0; }
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #dbe4ee; max-width: 52ch; margin-top: 1.1rem; }
.hero .btn-row { margin-top: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.6rem; font-size: .9rem; color: #d3dee9; }
.hero-badges span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-badges span::before { content: "✓"; color: var(--accent); font-weight: 700; }

.page-hero { background: var(--navy); color: #d7e0ea; }
.page-hero .hero-photo { object-position: center 42%; }
.page-hero::before {
  background: linear-gradient(96deg, rgba(8,22,38,.92) 0%, rgba(8,22,38,.80) 52%, rgba(8,22,38,.56) 100%);
}
.page-hero .hero-inner { padding-block: clamp(2.75rem, 7vw, 4.5rem); }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { color: #c3d0dd; max-width: 60ch; margin-top: .9rem; }

/* ---------- search widget ---------- */
.search-card {
  margin-top: 2rem;
  background: rgba(255,255,255,.97);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
  max-width: 720px;
}
.search-card .tabs { display: flex; gap: .3rem; }
.search-card .tab { flex: 1; padding: .5rem; border: 0; background: var(--grey-100); color: var(--navy); font-weight: 600; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: .88rem; }
.search-card .tab.is-active { background: var(--navy); color: #fff; }
.search-fields { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .search-fields { grid-template-columns: 2fr 1fr auto; } }
.search-fields input, .search-fields select {
  width: 100%; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs { background: var(--grey-50); border-bottom: 1px solid var(--line); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: .8rem 0; margin: 0; font-size: .82rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3d8dd; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sand); color: var(--accent-dark); margin-bottom: 1rem; font-size: 1.4rem;
}
.service-card { text-align: center; }
.service-card .icon { width: 60px; height: 60px; margin-inline: auto; background: none; border-radius: 0; }
.service-card .icon img { width: 100%; height: 100%; object-fit: contain; }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .96rem; }
.card .card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; font-weight: 600; color: var(--navy-700); }
.card .card-link::after { content: "→"; transition: transform .15s ease; }
.card--hover:hover .card-link::after { transform: translateX(3px); }

.location-card {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border-color: transparent;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.location-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 39, 64, .15) 0%, rgba(14, 39, 64, .92) 100%);
}
.location-card > * { position: relative; z-index: 1; }
.location-card h3 { color: var(--accent); }
.location-card p {
  color: #e7ecf1;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, margin-top .3s ease;
}
.location-card:hover p,
.location-card:focus-visible p { max-height: 5rem; opacity: 1; margin-top: .4rem; }
.location-card .card-link { color: var(--accent); }
.location-card.card--hover:hover { border-color: transparent; }

/* ---------- listing cards ---------- */
.property-grid { justify-items: start; }
.property-grid .listing { width: 100%; max-width: 370px; }
.listing {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .2s ease;
}
.listing:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.listing-media { position: relative; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; background: var(--grey-100); }
.listing-media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.listing-badge {
  position: absolute; top: .8rem; left: .8rem; background: var(--navy); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px;
}
.listing-badge--sold { background: var(--err); }
.listing-badge--leased { background: var(--river); }
.listing-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.listing-price { font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); font-weight: 600; }
.listing-address { font-weight: 600; color: var(--ink); }
.listing-suburb { font-size: .88rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.listing-meta { display: flex; gap: 1rem; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--grey-100); font-size: .9rem; color: var(--body); flex-wrap: wrap; }
.listing-meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- property detail: photo gallery ---------- */
.pgallery { position: relative; }
.pgallery-main { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; background: var(--grey-100); }
.pgallery-track { display: flex; height: 100%; transition: transform .35s ease; }
.pgallery-slide { flex: 0 0 100%; height: 100%; }
.pgallery-slide img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.pgallery-badge { position: absolute; top: 1rem; left: 1rem; }
.pgallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(14, 39, 64, .65); color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pgallery-arrow:hover { background: var(--navy); }
.pgallery-prev { left: 1rem; }
.pgallery-next { right: 1rem; }
.pgallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .2rem; }
.pgallery-thumb { flex: 0 0 84px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; }
.pgallery-thumb img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; }
.pgallery-thumb.is-active { border-color: var(--accent); }

/* ---------- property detail: content layout ---------- */
.pdetail-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2.25rem; }
@media (min-width: 900px) { .pdetail-layout { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.pdetail-main h1 { margin-top: .4rem; }
.pdetail-address { color: var(--muted); margin-top: .3rem; }
.pdetail-description { margin-top: 1.25rem; line-height: 1.7; }
.pdetail-attributes { margin-top: 1.5rem; }
.pdetail-attributes h3 { margin-bottom: .8rem; }
.pdetail-side {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-sm); position: sticky; top: 90px;
}
.pdetail-side .listing-price { font-size: 1.5rem; }
.pdetail-side .listing-meta { border-top: 1px solid var(--grey-100); margin-top: 1rem; padding-top: 1rem; }
.pdetail-side .btn { width: 100%; justify-content: center; margin-top: 1rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; margin-bottom: 1.75rem; }
.filter-bar button {
  border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600;
  padding: .55rem 1rem; border-radius: 999px; cursor: pointer; font-family: inherit; font-size: .88rem;
}
.filter-bar button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.pagination { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2.5rem; }
.pagination button {
  min-width: 40px; height: 40px; padding: 0 .6rem; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-weight: 600; cursor: pointer; font-family: inherit; font-size: .9rem;
}
.pagination button:hover { background: var(--sand); }
.pagination button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination button:disabled { opacity: .35; cursor: default; pointer-events: none; }

/* ---------- stats ---------- */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 2.9rem); color: var(--accent); font-weight: 600; line-height: 1; }
.stat .label { font-size: .9rem; color: inherit; margin-top: .4rem; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 1.4rem; color: var(--accent); font-weight: 600;
  display: block; margin-bottom: .5rem;
}
.section--navy .step { background: var(--navy-800); border-color: rgba(255,255,255,.12); }

/* ---------- feature list ---------- */
.ticks { list-style: none; padding: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: .05rem;
  width: 1.3rem; height: 1.3rem; background: var(--sand); color: var(--accent-dark);
  border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.section--navy .ticks li::before { background: rgba(195,155,71,.2); color: var(--accent); }

/* ---------- accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.05rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent-dark); font-weight: 400;
}
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding-bottom: 1.2rem; color: var(--body); }
.accordion .acc-body p + p { margin-top: .8rem; }

/* ---------- testimonials ---------- */
.tslider { position: relative; overflow: hidden; }
.tslider-track { display: flex; gap: 1.25rem; transition: transform .4s ease; }
.tslide { flex: 0 0 100%; min-width: 0; padding: .25rem; }
@media (min-width: 600px) {
  .tslide { flex: 0 0 calc(50% - .625rem); }
}
@media (min-width: 900px) {
  .tslide { flex: 0 0 calc(33.3333% - .8333rem); }
}
.testimonial-card {
  display: block;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  height: 100%; padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-sm); font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-family: var(--font-head); color: var(--ink); line-height: 1.5;
}
.testimonial-title { font-weight: 700; margin-bottom: .3rem; }
.testimonial-card .cite { margin-top: 1.4rem; font-family: var(--font-body); }
.testimonial-card .cite span { font-size: .85rem; color: var(--muted); }
.tslider-controls { display: flex; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.tslider-controls button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  cursor: pointer; color: var(--navy); font-size: 1rem;
}
.tslider-controls button:hover { background: var(--navy); color: #fff; }
.tslider-controls button:disabled { opacity: .35; cursor: default; pointer-events: none; }
.tstars { color: var(--accent); letter-spacing: .1em; margin-bottom: .8rem; }

/* ---------- property showcase (tabs + slider) ---------- */
.property-tabs { display: flex; gap: 1.75rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.property-tabs button {
  background: none; border: none; padding: .7rem 0; font: inherit; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.property-tabs button.is-active { color: var(--navy); border-bottom-color: var(--accent); }
.property-tabs button:hover { color: var(--navy); }
[data-property-showcase] .tslide { display: flex; }
[data-property-showcase] .tslide .listing { width: 100%; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #dfe8f0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .container { padding-block: clamp(3rem, 7vw, 4.5rem); }

/* ---------- blog cards ---------- */
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card .post-body { padding: 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.post-card h3 { font-size: 1.15rem; }
.post-card p { font-size: .93rem; }
.post-card .card-link { margin-top: auto; font-weight: 600; color: var(--navy-700); }

.article { max-width: 760px; margin-inline: auto; }
.article h2 { margin-top: 2.5rem; }
.article h3 { margin-top: 1.75rem; }
.article p, .article ul, .article ol { margin-top: 1rem; font-size: 1.05rem; }
.article ul, .article ol { padding-left: 1.4rem; }
.article li + li { margin-top: .4rem; }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.article blockquote { border-left: 3px solid var(--accent); padding-left: 1.2rem; font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); margin-top: 1.5rem; }

/* ---------- team ---------- */
.team-grid { justify-items: center; }
.team-grid .team-card { width: 100%; max-width: 340px; }
.team-card { text-align: center; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--grey-100); }
.team-card h3 { margin-top: 1rem; font-size: 1.15rem; }
.team-card .role { color: var(--accent-dark); font-weight: 600; font-size: .9rem; }
.team-card p { font-size: .92rem; margin-top: .5rem; }
.team-card .contacts { display: flex; gap: .8rem; justify-content: center; margin-top: .8rem; font-size: .85rem; font-weight: 600; }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid .col-2 { grid-column: span 1; } .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea {
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(195,155,71,.2);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .8rem; color: var(--muted); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field .error-msg { color: var(--err); font-size: .8rem; display: none; }
.field.has-error .error-msg { display: block; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.form-success {
  display: none; background: #eef7f1; border: 1px solid #bfe0cc; color: #1c5c3b;
  border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; font-weight: 500;
}
.form-success.is-visible { display: block; }
.form-error {
  display: none; background: #fdecea; border: 1px solid #f3c2bd; color: var(--err);
  border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1rem; font-weight: 500;
}
.form-error.is-visible { display: block; }

/* ---------- misc ---------- */
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.pill-list li { }
.pill-list a, .pill-list span {
  display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--navy); background: #fff;
}
.pill-list a:hover { background: var(--navy); color: #fff; }

.contact-quick { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.contact-quick .card { padding: 1.3rem; }
.contact-quick .card b { display: block; color: var(--ink); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--grey-100); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.notice {
  background: #fff8e8; border: 1px solid #f0dfb4; color: #7a5c14; border-radius: 12px;
  padding: .9rem 1.1rem; font-size: .88rem; margin-block: 1rem;
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #a9bccd; padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem; font-size: .92rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-grid .about { grid-column: span 1; max-width: 320px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: #a9bccd; }
.site-footer a:hover { color: var(--accent); }
.footer-brand { display: flex; align-items: center; margin-bottom: .8rem; }
.footer-brand img { height: 64px; width: auto; display: block; }
.footer-newsletter { display: flex; gap: .5rem; margin-top: .8rem; }
.footer-newsletter input { flex: 1; padding: .7rem .8rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font: inherit; }
.footer-newsletter input::placeholder { color: #8ba0b3; }
.footer-newsletter button { padding: .7rem 1rem; border-radius: 8px; border: 0; background: var(--accent); color: #1c1405; font-weight: 700; cursor: pointer; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; display: grid; place-items: center; color: #cdd9e5; }
.footer-social a:hover { background: var(--accent); color: #1c1405; border-color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .82rem; color: #8ba0b3; }
.footer-bottom a { color: #8ba0b3; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow-md);
  display: grid; place-items: center; font-size: 1.1rem; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 90;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .7rem 1rem;
  border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- utilities ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.hide { display: none !important; }
.is-hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
