/* Aashray Realty — Home page design, matched to the client's Home.pdf mockup */

:root {
  --navy:        #1e4ba0;
  --navy-deep:   #132e63;
  --cream:       #f9f7f3;
  --card:        #ffffff;
  --line:        #ebe8e1;
  --tile:        #e8e5db;
  --ink:         #1d2433;
  --muted:       #7b808a;
  --accent:      #c4694a;
  --on-navy:     #ffffff;
  --on-navy-dim: rgba(255, 255, 255, .78);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 4.4vw, 64px);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
}

img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

.container {
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------ header + hero */
.hero {
  background: var(--navy);
  color: var(--on-navy);
  min-height: clamp(460px, 43vw, 640px);
}

.site-header { padding-top: 22px; }

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

.brand {
  display: inline-block;
  line-height: 0;           /* no stray gap under the image */
  text-decoration: none;
}

.brand-logo { display: block; width: auto; height: 60px; }

.main-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9rem; }
.main-nav a { color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; }
.main-nav a:hover { opacity: .8; }

.hero-body { padding-top: clamp(56px, 8.5vw, 130px); padding-bottom: 64px; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 3.55vw, 3.45rem);
  line-height: 1.14;
  letter-spacing: -.005em;
}

.hero-sub {
  margin-top: 22px;
  max-width: 27em;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--on-navy-dim);
}

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* --------------------------------------------------------------- features */
.features { padding-top: clamp(56px, 8.6vw, 128px); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card { padding: 26px 24px 28px; }
.feature-icon { display: block; font-size: 1.15rem; line-height: 1; margin-bottom: 18px; min-height: 1.15rem; }
.feature-card h3 { font-size: .98rem; font-weight: 500; margin-bottom: 6px; }
.feature-card p  { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------------ areas */
.areas { padding-top: clamp(56px, 7.2vw, 108px); }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.9vw, 1.85rem);
  line-height: 1.2;
}
.section-sub { margin-top: 4px; font-size: .82rem; color: var(--muted); }

.area-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.area-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
}
a.area-tile:hover { border-color: #d6d2c6; }

.area-thumb {
  display: grid;
  place-items: center;
  height: clamp(84px, 7.9vw, 118px);
  background: var(--tile) center / cover no-repeat;
  color: #9a9a96;
}
.area-thumb.has-image .pin { display: none; }

.area-name { padding: 9px 10px; font-size: .78rem; font-weight: 500; }

.locality-link { margin-top: 18px; font-size: .8rem; }
.locality-link a { text-underline-offset: 3px; }

/* ----------------------------------------------------------- testimonials */
.testimonials { padding-block: clamp(48px, 5.8vw, 86px) clamp(56px, 6.4vw, 96px); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 18px;
}
.testimonial blockquote { font-style: italic; font-size: .87rem; line-height: 1.65; }
.testimonial figcaption strong { display: block; font-size: .76rem; font-weight: 600; }
.testimonial figcaption span   { display: block; font-size: .74rem; color: var(--muted); }

/* ------------------------------------------------------------- CTA + footer */
.cta-band { background: var(--navy); color: var(--on-navy); padding-block: clamp(36px, 4.2vw, 62px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, 1.7vw, 1.6rem); }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.06); }

.site-footer { background: var(--navy-deep); color: var(--on-navy); padding-block: 36px 52px; }

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

.site-footer .brand-logo { height: auto; width: min(100%, 190px); }

.footer-col h3 { font-size: .78rem; font-weight: 600; margin-bottom: 10px; }
.footer-col p, .contact-list { font-size: .76rem; line-height: 1.9; color: var(--on-navy-dim); }
.builders { max-width: 30em; }

.contact-list { list-style: none; margin: 0; padding: 0; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .area-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .hero { min-height: 0; }
  .hero-body { padding-top: 44px; padding-bottom: 48px; }
  .feature-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ===================================================================
   Inner pages: compact centred hero, hub page, enquiry forms
   =================================================================== */

.hero--page { min-height: 0; }
.page-hero-body { text-align: center; padding-block: clamp(30px, 4vw, 52px) clamp(38px, 4.6vw, 62px); }

.hero--page h1 {
  font-size: clamp(1.65rem, 2.7vw, 1.95rem);
  line-height: 1.25;
  max-width: 17.5em;
  margin-inline: auto;
  text-wrap: balance;
}
.page-sub {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: .86rem;
  line-height: 1.6;
  color: var(--on-navy-dim);
  text-wrap: balance;
}
.eyebrow {
  margin-bottom: 10px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-navy-dim);
}
.page-form .hero--page h1 { font-size: clamp(1.5rem, 2.2vw, 1.75rem); max-width: 20.6em; }
.page-form .page-sub { max-width: 27em; font-size: .86rem; }

.main-nav a[aria-current="page"] { font-weight: 600; }

/* ---- buttons (shared) ---- */
.btn-navy    { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-primary { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn-navy:hover, .btn-primary:hover, .btn-outline:hover { filter: brightness(1.12); }
.btn-accent  { border: 1px solid var(--accent); }
.btn { padding: 9px 16px; font-size: .82rem; }

/* ---- hub: three service cards ---- */
.hub-cards { padding-top: clamp(30px, 3.6vw, 48px); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { padding: 26px 22px 24px; display: flex; flex-direction: column; }
.service-card h2 { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; line-height: 1.3; }
.service-card p  { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.service-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
.service-actions .btn { padding: 8px 11px; font-size: .76rem; white-space: nowrap; }

/* ---- hub: points + steps ---- */
.hub-points { padding-top: clamp(40px, 4.6vw, 62px); }
.hub-points .feature-grid { margin-top: 18px; }
.feature-card--plain { padding: 20px 22px 22px; }
.feature-card--plain h3 { font-size: .92rem; margin-bottom: 8px; }

.hub-steps { margin-top: clamp(40px, 4.8vw, 64px); background: #f2eee6; padding-block: clamp(38px, 4.4vw, 56px) clamp(56px, 7vw, 100px); }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-num {
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-bottom: 12px;
  border-radius: 50%; background: var(--navy); color: #fff;
  font-size: .82rem; font-weight: 600;
}
.step h3 { font-size: .92rem; font-weight: 600; }
.step p  { margin-top: 6px; font-size: .8rem; color: var(--muted); }

/* ---- enquiry forms ---- */
.form-section { padding-block: clamp(26px, 3vw, 40px) clamp(48px, 6vw, 80px); }

.form-card { max-width: 744px; margin-inline: auto; padding: clamp(22px, 3.4vw, 36px); border-radius: 14px; }

.form-heading { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; margin: 0 0 14px; }
.field-grid + .form-heading { margin-top: 30px; }
.form-card .form-heading:first-of-type { margin-top: 0; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.field { min-width: 0; }
.field--start { grid-column: 1; }
.field--full  { grid-column: 1 / -1; }

.field label {
  display: block; margin-bottom: 6px;
  font-size: .66rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: #666d7a;
}
.req { color: var(--accent); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit; font-size: .9rem; color: var(--ink);
  background: #fff;
  border: 1px solid #e3dfd6; border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.field input, .field select { height: 44px; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9a9ea8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 75, 160, .18);
}
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231d2433' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { margin-top: 5px; font-size: .75rem; color: #b3261e; }

.form-alert {
  margin-bottom: 20px; padding: 12px 14px;
  font-size: .86rem; color: #7a1c15; background: #fdeceb; border: 1px solid #f3c6c2; border-radius: 8px;
}
.form-alert:focus { outline: 2px solid #b3261e; outline-offset: 2px; }

.form-note { margin-top: 10px; font-size: .76rem; color: var(--muted); }

.btn-submit {
  display: block; width: 100%; margin-top: 24px; padding: 14px 20px;
  font: inherit; font-size: .92rem; font-weight: 600; color: #fff;
  background: var(--accent); border: 0; border-radius: 8px; cursor: pointer;
}
.btn-submit:hover { filter: brightness(1.06); }
.btn-submit:disabled { opacity: .7; cursor: progress; }
.btn-submit:focus-visible { outline: 3px solid rgba(196, 105, 74, .4); outline-offset: 2px; }
.form-foot { margin-top: 14px; text-align: center; font-size: .76rem; color: var(--muted); }

/* honeypot: off-screen, not display:none (some bots skip those) */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: clamp(14px, 3vw, 30px) 0; }
.form-success h2 { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.form-success p  { max-width: 32em; margin: 10px auto 0; color: var(--muted); font-size: .95rem; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ---- footer legal line ---- */
.footer-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-legal p { font-size: .72rem; color: rgba(255, 255, 255, .55); }

@media (max-width: 960px) {
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .field-grid { grid-template-columns: 1fr; }
  .field--start { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .page-hero-body { padding-block: 24px 36px; }
}

/* ===================================================================
   About page + Contact page
   =================================================================== */

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- About ---- */
.about-intro { padding-top: clamp(32px, 4vw, 52px); }
.about-intro h2 { text-align: center; font-family: var(--serif); font-weight: 700; font-size: clamp(1.2rem, 1.7vw, 1.4rem); line-height: 1.3; }
.about-intro-text { margin: 18px 0 0; }          /* full content width: Mission card's left edge to Vision card's right edge */
.about-intro-text p { font-size: .9rem; line-height: 1.8; }
.about-intro-text p + p { margin-top: 14px; }

.about-mv { padding-top: clamp(32px, 4vw, 50px); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv-card { padding: 24px 26px 28px; }
.mv-card h2 { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.mv-card p  { margin-top: 10px; font-size: .84rem; line-height: 1.65; color: var(--muted); }

.about-story { padding-top: clamp(30px, 3.6vw, 46px); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.about-h2 { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.3; margin-bottom: 12px; }
.story-grid p { font-size: .85rem; line-height: 1.7; }

.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { position: relative; padding-left: 22px; font-size: .85rem; line-height: 1.65; }
.dash-list li + li { margin-top: 10px; }
.dash-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

.about-values { padding-block: clamp(30px, 3.6vw, 46px) clamp(48px, 6vw, 80px); }
.about-values .about-h2 { margin-bottom: 16px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---- Contact ---- */
.hero--bar { min-height: 0; padding-bottom: 20px; }

.contact-section { padding-block: clamp(28px, 4vw, 52px) clamp(48px, 6vw, 80px); }
.contact-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 1.75rem); line-height: 1.25; max-width: 24em; text-wrap: balance; }
.contact-sub { margin-top: 8px; font-size: .84rem; color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
  align-items: stretch;
}
.contact-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.contact-card { padding: 10px 24px; }
.contact-rows { margin: 0; }
.contact-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; font-size: .82rem; }
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-row dt { color: var(--muted); flex: none; }
.contact-row dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.contact-row dd a { text-decoration: none; }
.contact-row dd a:hover { text-decoration: underline; }

.map-tile {
  flex: 1; min-height: 170px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--tile); border-radius: 10px;
  color: #8f8f8a; font-size: .76rem; text-decoration: none;
}
.map-tile small { font-size: .72rem; color: #6f6f6a; }
a.map-tile:hover { background: #e0ddd2; }
.map-tile--live { padding: 0; overflow: hidden; display: block; }
.map-tile--live iframe { display: block; width: 100%; height: 100%; min-height: 220px; border: 0; }

.enquiry-card { padding: clamp(22px, 3vw, 32px); }
.enquiry-title { font-size: .98rem; font-weight: 500; margin-bottom: 18px; }
.page-contact .btn-submit { margin-top: 18px; }
.page-contact .form-success { padding: 10px 0 6px; }

@media (max-width: 960px) {
  .mv-grid, .story-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .map-tile { min-height: 150px; flex: none; }
}
@media (max-width: 600px) {
  .contact-row { flex-direction: column; gap: 2px; }
  .contact-row dd { text-align: left; }
  .contact-card { padding: 6px 18px; }
}

/* ===================================================================
   Properties: hero buttons, filter bar, Featured section, results page
   =================================================================== */

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-btn { padding: 11px 20px; font-size: .84rem; }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }

/* filter bar (white, on navy hero and on the results page) */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 0;
  margin-top: clamp(28px, 3.4vw, 48px);
  max-width: 1040px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(10, 18, 36, .18);
}
.filter-field { padding: 4px 16px; border-right: 1px solid var(--line); min-width: 0; }
.filter-field label {
  display: block;
  margin-bottom: 4px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter-field input,
.filter-field select {
  width: 100%;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .86rem;
  color: var(--ink);
  outline: none;
  text-overflow: ellipsis;
}
.filter-field select { cursor: pointer; }
.filter-field:focus-within { box-shadow: inset 0 -2px 0 var(--accent); }
.filter-submit { margin-left: 16px; padding: 12px 20px; font-size: .84rem; cursor: pointer; font-family: inherit; white-space: nowrap; }
.filter-submit:focus-visible { outline: 3px solid rgba(196, 105, 74, .45); outline-offset: 2px; }

/* featured section + cards */
.featured { padding-top: clamp(48px, 5.8vw, 86px); }
.eyebrow--dark { color: var(--accent); margin-bottom: 8px; }

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.property-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.property-img {
  position: relative;
  height: clamp(150px, 14vw, 210px);
  background: var(--tile) center / cover no-repeat;
}
.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.property-body { padding: 16px 18px 18px; }
.property-body h3 { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.property-where { margin-top: 4px; font-size: .78rem; color: var(--muted); }
.property-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 10px 0 0; padding: 0; font-size: .78rem; color: var(--ink); }
.property-price { margin-top: 12px; font-size: 1rem; font-weight: 600; color: var(--navy); }

/* results page */
.results-section { padding-block: 32px clamp(56px, 6vw, 90px); }
.results-bar { margin-top: -34px; position: relative; max-width: none; }
.results-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin: 28px 0 4px; }
.results-count { font-size: .84rem; color: var(--muted); }
.results-clear { font-size: .8rem; }
.results-empty { padding: 44px 24px; text-align: center; }
.results-empty h2 { font-family: var(--serif); font-size: 1.25rem; }
.results-empty p { margin-top: 8px; font-size: .86rem; color: var(--muted); }
.results-empty .btn { margin-top: 18px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 30px; }
.pager a, .pager span {
  min-width: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: .82rem;
  text-align: center;
  text-decoration: none;
}
.pager a:hover { border-color: var(--navy); }
.pager .is-current { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.pager .is-gap { border-color: transparent; background: transparent; }

@media (max-width: 960px) {
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; padding: 16px; }
  .filter-field:nth-child(2) { border-right: 0; }
  .filter-field { padding-inline: 12px; }
  .filter-field:nth-child(odd) { padding-left: 0; }
  .filter-submit { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .filter-bar { grid-template-columns: 1fr; }
  .filter-field { padding: 8px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .filter-field:nth-child(odd) { padding-left: 0; }
  .hero-btn { flex: 1 1 100%; text-align: center; }
  .property-grid { grid-template-columns: 1fr; }
  .results-bar { margin-top: -22px; }
}

/* ---- Home hero: compact (about two-thirds of the earlier height) + full-width filter bar ---- */
.page-home .hero { min-height: 0; }
.page-home .site-header { padding-top: 16px; }
.page-home .hero-body { padding-top: clamp(22px, 3vw, 44px); padding-bottom: clamp(28px, 3vw, 44px); }
.page-home .hero h1 { font-size: clamp(1.7rem, 2.7vw, 2.55rem); line-height: 1.15; max-width: 30em; }
.page-home .hero-sub { margin-top: 12px; max-width: 40em; font-size: .94rem; line-height: 1.55; }
.page-home .hero-actions { margin-top: 18px; gap: 10px; }
.page-home .hero-btn { padding: 9px 18px; font-size: .82rem; }
.page-home .filter-bar { margin-top: clamp(18px, 2vw, 28px); }

/* the filter bar spans the full content width, with the four fields sharing it evenly */
.filter-bar { max-width: none; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.filter-field:first-child { padding-left: 8px; }
.filter-submit { min-width: 180px; text-align: center; }
.results-bar { max-width: none; }

@media (max-width: 960px) {
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-field:first-child { padding-left: 0; }
  .filter-submit { min-width: 0; }
  .page-home .hero h1 { max-width: none; }
}
@media (max-width: 600px) {
  .page-home .hero-body { padding-top: 24px; padding-bottom: 28px; }
  .page-home .hero h1 { font-size: 1.6rem; }
  .filter-bar { grid-template-columns: 1fr; }
}
.page-home .features { padding-top: 0; padding-bottom: clamp(48px, 5.6vw, 84px); }
.page-home .areas { padding-top: clamp(36px, 4.6vw, 68px); }

/* ---- floating WhatsApp button (Home) ---- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #128c4a; }
.wa-label { display: none; font-size: .86rem; font-weight: 600; padding-right: 6px; }
@media (min-width: 700px) { .wa-label { display: inline; } }
@media print { .wa-float { display: none; } }

/* ---- filter bar: grey-bordered fields (labels stay outside the border) ---- */
.filter-bar { gap: 14px; padding: 16px 18px; align-items: end; }
.filter-field { padding: 0; border-right: 0; }
.filter-field:first-child { padding-left: 0; }
.filter-field label { margin-bottom: 6px; }
.filter-field input,
.filter-field select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cfd3da;
  border-radius: 7px;
  background: #fff;
}
.filter-field select { padding-right: 8px; }
.filter-field input:hover, .filter-field select:hover { border-color: #aeb4bf; }
.filter-field input:focus, .filter-field select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 75, 160, .15); }
.filter-field:focus-within { box-shadow: none; }
.filter-submit { margin-left: 0; height: 42px; padding-block: 0; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 960px) {
  .filter-bar { gap: 14px; }
  .filter-field, .filter-field:nth-child(odd), .filter-field:nth-child(2) { padding: 0; border: 0; }
  .filter-submit { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .filter-field, .filter-field:nth-child(odd) { padding: 0; border: 0; }
}

/* ---- legal pages ---- */
.legal-section { padding-block: clamp(24px, 3.4vw, 44px) clamp(48px, 6vw, 88px); }
.legal-card { max-width: 860px; margin-inline: auto; padding: clamp(22px, 4vw, 44px); }
.legal-updated { margin-bottom: 18px; font-size: .78rem; color: var(--muted); }
.legal-body { font-size: .92rem; line-height: 1.75; }
.legal-body h2 { margin: 30px 0 8px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin: 18px 0 6px; font-size: .95rem; font-weight: 600; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 14px; padding-left: 1.3em; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--navy); text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---- footer legal links ---- */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a, .link-button {
  padding: 0; border: 0; background: none; font: inherit; font-size: .74rem; cursor: pointer;
  color: rgba(255, 255, 255, .8); text-decoration: underline; text-underline-offset: 3px;
}
.footer-links a:hover, .link-button:hover { color: #fff; }

/* ---- form consent line ---- */
.form-consent { margin-top: 10px; text-align: center; font-size: .72rem; line-height: 1.5; color: var(--muted); }
.form-consent a { color: var(--navy); text-underline-offset: 2px; }

/* ---- cookie consent bar ---- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; color: var(--ink);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(10, 18, 36, .14);
  max-height: 85vh; overflow-y: auto;
}
.cookie-bar[hidden], .cookie-panel[hidden] { display: none; }
.cookie-main { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 12px; }
.cookie-text { margin: 0; font-size: .78rem; line-height: 1.5; color: #3a4252; max-width: 62em; }
.cookie-text strong { color: var(--ink); }
.cookie-text a { color: var(--navy); text-underline-offset: 2px; white-space: nowrap; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 14px; border-radius: 6px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
}
.cookie-btn--link { background: none; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; padding-inline: 6px; }
.cookie-btn--outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.cookie-btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.cookie-btn:hover { filter: brightness(1.08); }
.cookie-btn:focus-visible { outline: 3px solid rgba(30, 75, 160, .4); outline-offset: 2px; }
.cookie-panel { border-top: 1px solid var(--line); background: var(--cream); padding-block: 14px 16px; }
.cookie-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.cookie-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; font-size: .8rem; cursor: pointer; }
.cookie-cat small { display: block; margin-top: 2px; font-size: .72rem; line-height: 1.45; color: var(--muted); }
.cookie-cat input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--navy); cursor: pointer; }
.cookie-cat input:disabled { cursor: not-allowed; }
.cookie-panel-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.has-cookie-bar .wa-float { bottom: calc(var(--cookie-h, 0px) + 16px); }
@media (max-width: 760px) {
  .cookie-main { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
  .cookie-cats { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .cookie-actions { flex-direction: column; align-items: stretch; }
  .cookie-btn--link { text-align: center; }
}

/* ---- Areas We Cover: 4 x 2 photo tiles ---- */
.area-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.area-thumb { height: auto; aspect-ratio: 8 / 5; }
.area-name { padding: 11px 14px; font-size: .86rem; }
@media (max-width: 1100px) { .area-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px)  { .area-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } .area-name { padding: 9px 10px; font-size: .78rem; } }
@media (max-width: 640px)  { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .area-name { padding: 9px 10px; font-size: .8rem; } }

/* ---- feature cards: line icons ---- */
.feature-icon img { display: block; width: 48px; height: 48px; }
.feature-icon:has(img) { margin-bottom: 16px; }

/* ---- form pages: full-width layout with a photo beside the form ---- */
.back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .8rem; font-weight: 500; color: var(--navy); text-decoration: none;
}
.back-link:hover { border-color: var(--navy); }
.back-link:focus-visible { outline: 3px solid rgba(30, 75, 160, .35); outline-offset: 2px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 744px) minmax(0, 1fr); gap: clamp(18px, 2.2vw, 32px); align-items: stretch; }
.form-layout--single { grid-template-columns: minmax(0, 744px); justify-content: center; }
.form-layout .form-card { max-width: none; margin: 0; }
.form-side { position: relative; min-height: 320px; border-radius: 14px; overflow: hidden; background: var(--tile); }
.form-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.form-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(19, 46, 99, .78) 0%, rgba(19, 46, 99, 0) 46%); }
.form-side-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2.4vw, 30px); color: #fff; }
.form-side-caption strong { display: block; font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.25; }
.form-side-caption span { display: block; margin-top: 6px; font-size: .86rem; color: rgba(255, 255, 255, .85); }
@media (max-width: 960px) {
  .form-layout, .form-layout--single { grid-template-columns: minmax(0, 1fr); }
  .form-side { display: none; }
}

/* ---- clickable property cards + area tiles ---- */
.property-card { position: relative; transition: box-shadow .15s ease, transform .15s ease; }
.property-card:hover { box-shadow: 0 10px 26px rgba(19, 46, 99, .14); transform: translateY(-2px); }
.property-link { color: inherit; text-decoration: none; }
.property-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.property-link:focus-visible { outline: none; }
.property-card:has(.property-link:focus-visible) { outline: 3px solid rgba(30, 75, 160, .45); outline-offset: 2px; }
a.area-tile { transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
a.area-tile:hover { border-color: var(--navy); box-shadow: 0 10px 26px rgba(19, 46, 99, .14); transform: translateY(-2px); }
a.area-tile:focus-visible { outline: 3px solid rgba(30, 75, 160, .45); outline-offset: 2px; }
.area-thumb { transition: filter .2s ease; }
a.area-tile:hover .area-thumb { filter: brightness(1.06); }
.hero--photo { background: linear-gradient(rgba(19, 46, 99, .82), rgba(19, 46, 99, .82)), var(--hero-photo) center / cover no-repeat, var(--navy); }

/* ---- property detail page ---- */
.property-page { padding-block: 22px clamp(48px, 6vw, 84px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: .8rem; color: var(--muted); }
.crumbs a { color: var(--navy); text-underline-offset: 3px; }
.pd-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.pd-gallery { min-width: 0; }
.pd-main { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--tile); }
.pd-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-main .property-badge { top: 16px; left: 16px; }
.pd-noimg { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .9rem; }
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.pd-prev { left: 12px; } .pd-next { right: 12px; }
.pd-nav:hover { background: #fff; }
.pd-nav:focus-visible, .pd-thumb:focus-visible { outline: 3px solid rgba(30, 75, 160, .6); outline-offset: 2px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.pd-thumb { display: block; width: 100%; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 3 / 2; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.is-active { border-color: var(--navy); }
.pd-summary { padding: clamp(20px, 2.4vw, 28px); }
.pd-summary h1 { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.2; }
.pd-price { margin-top: 14px; font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.pd-summary .property-specs { margin-top: 12px; }
.pd-cta { display: grid; gap: 10px; margin-top: 20px; }
.pd-btn { text-align: center; padding: 12px 16px; font-size: .86rem; }
.pd-note { margin-top: 12px; font-size: .74rem; color: var(--muted); }
.pd-note a { color: var(--navy); }
.pd-offer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(18px, 2.4vw, 28px);
  padding: 18px 22px; border-radius: 12px; background: #fdf3ee; border: 1px solid #f0d3c6;
}
.pd-offer-tag { padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pd-offer > div { flex: 1 1 320px; }
.pd-offer strong { font-family: var(--serif); font-size: 1.05rem; }
.pd-offer p { margin-top: 4px; font-size: .86rem; line-height: 1.6; color: #4a3a33; }
.pd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(18px, 2.4vw, 28px); align-items: start; }
.pd-col { display: grid; gap: clamp(16px, 2vw, 24px); min-width: 0; }
.pd-card { padding: clamp(18px, 2.2vw, 26px); }
.pd-card h2 { font-family: var(--serif); font-size: 1.1rem; margin-bottom: 12px; }
.pd-card p { font-size: .9rem; line-height: 1.75; }
.pd-facts { margin: 0; }
.pd-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.pd-facts div:last-child { border-bottom: 0; }
.pd-facts dt { color: var(--muted); } .pd-facts dd { margin: 0; font-weight: 500; text-align: right; }
.pd-landmarks { list-style: none; margin: 0; padding: 0; }
.pd-landmarks li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.pd-landmarks li:last-child { border-bottom: 0; }
.pd-lm-dist { flex-shrink: 0; font-weight: 600; color: var(--navy); }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pd-chips li { padding: 7px 13px; border-radius: 999px; background: #e8eef9; color: var(--navy); font-size: .8rem; font-weight: 500; }
.pd-chips--gold li { background: #fbf1dd; color: #6b4a0f; }
@media (max-width: 960px) {
  .pd-top, .pd-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- About page: richer layout ---- */
.about-stats { margin-top: -26px; position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.stat { padding: 18px 20px; text-align: center; box-shadow: 0 8px 24px rgba(19, 46, 99, .1); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.45rem); color: var(--navy); }
.stat span { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }
.about-intro { padding-top: clamp(30px, 3.6vw, 48px); }

.mv-card { border-top: 3px solid var(--accent); }

.story-split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.story-photo { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 34px rgba(19, 46, 99, .18); aspect-ratio: 4 / 5; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-copy p { font-size: .9rem; line-height: 1.75; }
.about-h2--gap { margin-top: 26px; }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li { position: relative; padding-left: 28px; font-size: .88rem; line-height: 1.65; }
.tick-list li + li { margin-top: 10px; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #e8eef9; color: var(--navy); font-size: .7rem; font-weight: 700; line-height: 20px; text-align: center; }

.about-band { margin-top: clamp(34px, 4.4vw, 60px); background: linear-gradient(rgba(19, 46, 99, .78), rgba(19, 46, 99, .78)), var(--band-photo) center / cover no-repeat, var(--navy); color: #fff; }
.band-inner { padding-block: clamp(44px, 6vw, 84px); text-align: center; }
.band-inner h2 { max-width: 20em; margin-inline: auto; font-family: var(--serif); font-size: clamp(1.4rem, 2.5vw, 2.1rem); line-height: 1.25; }
.band-inner p { max-width: 36em; margin: 12px auto 22px; font-size: .95rem; line-height: 1.65; color: rgba(255, 255, 255, .88); }

.about-why, .about-process, .about-areas { padding-top: clamp(30px, 3.6vw, 46px); }
.about-areas { padding-bottom: clamp(48px, 6vw, 80px); }
.about-why .about-h2, .about-process .about-h2, .about-areas .about-h2 { margin-bottom: 16px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.process-steps h3 { font-size: .95rem; font-weight: 600; }
.process-steps p { margin-top: 6px; font-size: .82rem; line-height: 1.6; color: var(--muted); }
.where-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.where-tile {
  position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; padding: 14px; border-radius: 12px; overflow: hidden;
  background: var(--tile) center / cover no-repeat;
  color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.where-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(19, 46, 99, .82), rgba(19, 46, 99, 0) 60%); }
.where-tile span { position: relative; z-index: 1; }
.where-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(19, 46, 99, .2); }
.where-tile:focus-visible { outline: 3px solid rgba(30, 75, 160, .6); outline-offset: 2px; }
@media (max-width: 960px) {
  .stats-grid, .why-grid, .process-steps, .where-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-split { grid-template-columns: minmax(0, 1fr); }
  .story-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .stats-grid, .why-grid, .process-steps { grid-template-columns: minmax(0, 1fr); }
  .where-grid { gap: 10px; }
}
.about-values { padding-bottom: clamp(8px, 1vw, 14px); }


/* ===================================================================
   Responsive: hamburger menu, scaled logo, compact footer
   Breakpoints: <=1100 small laptop, <=900 tablet (hamburger), <=600 phone, <=380 small phone
   =================================================================== */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

.site-header { position: relative; z-index: 60; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; color: var(--on-navy);
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px;
  cursor: pointer; padding: 0;
}
.nav-toggle:hover { background: rgba(255, 255, 255, .1); }
.nav-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .main-nav { gap: 8px 22px; }
}

@media (max-width: 900px) {
  .site-header { padding-top: 14px; }
  .brand-logo { height: 48px; }
  .nav-toggle { display: inline-flex; }
  .js .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    flex-direction: column; flex-wrap: nowrap; gap: 0;
    background: var(--navy-deep);
    border-top: 3px solid var(--accent);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .28);
    padding: 8px var(--gutter) 14px;
    font-size: 1rem;
  }
  .js .main-nav.is-open { display: flex; }
  .js .main-nav a {
    display: block; padding: 14px 4px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .js .main-nav a:last-child { border-bottom: 0; }
  .js .main-nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  /* without JS the menu simply wraps under the logo */
  html:not(.js) .header-inner { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .brand-logo { height: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}
@media (max-width: 380px) {
  .brand-logo { height: 34px; }
}

/* ---- compact footer */
@media (max-width: 960px) {
  .site-footer { padding-block: 28px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 28px; align-items: start; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer .brand-logo { width: 150px; }
}
@media (max-width: 600px) {
  .site-footer { padding-block: 22px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }
  .site-footer .brand-logo { width: 120px; }
  .footer-col h3 { margin-bottom: 4px; }
  .footer-col p, .contact-list { line-height: 1.7; font-size: .74rem; }
  .footer-legal { margin-top: 18px; padding-top: 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-links { gap: 4px 16px; }
  .cta-band .btn { width: 100%; text-align: center; }
}


/* ---- mobile carousels: testimonials (3 s) and USP cards (5 s), one card at a time */
.carousel-dots { display: none; }
@media (max-width: 700px) {
  .is-carousel {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .is-carousel::-webkit-scrollbar { display: none; }
  .is-carousel > * { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; margin: 0; }
  .feature-grid.is-carousel { padding-inline: 0; margin-inline: var(--gutter); max-width: calc(100% - 2 * var(--gutter)); }
  .is-carousel:focus-visible { outline: 3px solid rgba(30, 75, 160, .35); outline-offset: 4px; border-radius: 10px; }
  .testimonial.card { min-height: 150px; }
  .carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .carousel-dots button {
    width: 10px; height: 10px; padding: 0; border-radius: 50%;
    border: 0; background: #c9c5b8; cursor: pointer; transition: width .2s, background .2s;
  }
  .carousel-dots button.is-on { width: 26px; border-radius: 6px; background: var(--navy); }
  .carousel-dots button:focus-visible { outline: 3px solid rgba(30, 75, 160, .45); outline-offset: 3px; }
}

/* ---- compact hero filter on phones: 2-column grid, smaller paddings (inputs stay 16px so iOS does not zoom) */
@media (max-width: 600px) {
  .page-home .filter-bar,
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 10px;
    padding: 12px;
    border-radius: 12px;
  }
  .filter-bar .filter-field,
  .filter-bar .filter-field:nth-child(odd),
  .filter-bar .filter-field:nth-child(2),
  .filter-bar .filter-field:first-child { padding: 0; border: 0; }
  .filter-bar .filter-field:first-child { grid-column: 1 / -1; }
  .filter-field label { margin-bottom: 3px; font-size: .6rem; letter-spacing: .08em; }
  .filter-field input,
  .filter-field select { height: 40px; padding: 0 10px; font-size: 16px; border-radius: 8px; }
  .filter-field select { padding-right: 4px; text-overflow: ellipsis; }
  .filter-bar .filter-submit {
    grid-column: auto; align-self: end; width: 100%; min-width: 0; height: 40px; margin: 0;
    padding: 0 8px; font-size: .8rem; border-radius: 8px;
  }
}
@media (max-width: 340px) {
  .filter-bar .filter-submit { grid-column: 1 / -1; }
}
