/* Strong Real Estate — public website
   Brand palette mirrors lib/core/theme/app_theme.dart so the site and the
   apps read as one product. */

:root {
  --primary: #0f3d36;
  --primary-dark: #0a2b26;
  --primary-soft: #17302d;
  --accent: #e8a13a;
  --accent-dark: #9a641f;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-alt: #e7f1ec;
  --text: #111a18;
  --text-2: #46534f;
  --text-3: #78827e;
  --border: #dce6e1;
  --border-strong: #c3d0cb;
  --good: #1f7a4d;
  --warn: #9a641f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 40, 34, .06), 0 8px 24px rgba(16, 40, 34, .06);
  --shadow-lg: 0 4px 12px rgba(16, 40, 34, .1), 0 24px 48px rgba(16, 40, 34, .12);
  --wrap: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.hide-sm { display: none; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: #fff; padding: 12px 18px;
}
.skip:focus { left: 12px; top: 12px; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.logo {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary); color: #fff;
  font-weight: 800; font-size: .82rem; letter-spacing: .04em;
}
.brand-text { display: flex; flex-direction: column; font-size: 1.02rem; line-height: 1.15; font-weight: 600; white-space: nowrap; }
/* The wordmark sits on one line; only the tagline drops below it. Without the
   inner span the flex column would break "Strong" onto its own row. */
.brand-name { white-space: nowrap; }
.brand-text strong { font-weight: 800; }
.brand-text small { font-size: .7rem; color: var(--text-3); font-weight: 500; }
.brand-light { color: #fff; }
.brand-light .logo { background: var(--accent); color: #1a1207; }

.main-nav { display: none; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 600; font-size: .94rem;
  /* "For Sale" and "For Rent" are two words; without this the English nav
     breaks each one onto two lines and the header doubles in height. */
  white-space: nowrap;
}
.nav-link:hover { background: var(--surface-alt); color: var(--primary); text-decoration: none; }
.nav-link.is-active { color: var(--primary); background: var(--surface-alt); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }

.nav-toggle {
  display: grid; gap: 4px; place-content: center;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

.mobile-nav {
  display: grid; gap: 2px; padding: 8px 20px 16px;
  border-top: 1px solid var(--border); background: var(--surface);
}
.mobile-nav[hidden] { display: none; }
.mobile-link { padding: 11px 8px; font-weight: 600; border-radius: var(--radius-sm); color: var(--text-2); }
.mobile-link:hover, .mobile-link.is-active { background: var(--surface-alt); color: var(--primary); text-decoration: none; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .94rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .08s ease, background-color .15s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #221704; }
.btn-accent:hover { background: #d8912c; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-alt); }
.btn-block { width: 100%; }
/* Beats `.btn { display: inline-flex }`, which is declared later in the file
   and would otherwise un-hide the header phone number on narrow screens. */
.btn.hide-sm { display: none; }

/* ------------------------------------------------------------------ hero */
.hero {
  background:
    radial-gradient(1100px 460px at 82% -12%, rgba(232, 161, 58, .22), transparent 62%),
    linear-gradient(168deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: #fff;
  padding: 68px 0 56px;
}
.hero h1 { color: #fff; max-width: 16ch; }
.eyebrow {
  display: inline-block; margin: 0 0 12px;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.hero-sub { max-width: 62ch; color: #cfe0da; font-size: 1.06rem; margin-bottom: 28px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: 32px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 800; color: #fff; }
.hero-stats span { font-size: .84rem; color: #a9c4bb; }

/* ----------------------------------------------------------- search form */
.search-form {
  display: grid; gap: 12px;
  background: var(--surface); color: var(--text);
  padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: .8rem; font-weight: 700; color: var(--text-2); }
.field .opt { font-weight: 500; color: var(--text-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: .74rem; color: var(--text-3); }

input, select, textarea {
  width: 100%; padding: 11px 12px;
  font: inherit; font-size: .95rem; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2346534f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 11px; padding-right: 34px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(15, 61, 54, .12); }

.check { display: flex; gap: 9px; align-items: flex-start; font-size: .86rem; color: var(--text-2); margin: 4px 0 12px; }
.check input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; }

/* ------------------------------------------------------------ quick links */
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-link {
  display: flex; flex-direction: column; gap: 3px;
  padding: 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.quick-link:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.quick-title { font-weight: 750; }
.quick-count { font-size: .84rem; color: var(--text-3); }

/* ----------------------------------------------------------------- cards */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 700; font-size: .92rem; white-space: nowrap; }

.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--surface-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { display: grid; place-items: center; height: 100%; color: var(--text-3); font-weight: 800; letter-spacing: .1em; }
.card-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
  display: inline-block; padding: 4px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 750; letter-spacing: .01em;
  background: rgba(255, 255, 255, .94); color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .14);
}
.badge-accent { background: var(--accent); color: #221704; }
.badge-soft { background: var(--surface-alt); color: var(--primary); box-shadow: none; }

.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-price { margin: 0; font-size: 1.22rem; font-weight: 800; color: var(--primary); }
.card-title { margin: 0; font-size: 1rem; font-weight: 700; }
.card-title a { color: var(--text); }
.card-region { margin: 0; font-size: .88rem; color: var(--text-3); }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--text-2); margin-top: 4px; }
.card-facts li { position: relative; }
.card-facts li + li::before { content: "·"; position: absolute; left: -9px; color: var(--text-3); }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.card-firm { max-height: 24px; width: auto; object-fit: contain; }
.card-firm-name { font-size: .8rem; color: var(--text-3); font-weight: 600; }
.card-yield { font-size: .8rem; font-weight: 750; color: var(--good); white-space: nowrap; }

/* --------------------------------------------------------------- regions */
.region-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.region-card {
  padding: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  transition: border-color .15s ease, transform .12s ease;
}
.region-card:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.region-card h3 { margin-bottom: .25em; }
.region-card p { font-size: .9rem; color: var(--text-2); margin-bottom: .5rem; }
.region-count { font-size: .82rem; font-weight: 750; color: var(--primary); }

/* ------------------------------------------------------------------ why */
.band { background: var(--surface-alt); }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
.why { background: var(--surface); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); }
.why h3 { color: var(--primary); }
.why p { margin: 0; font-size: .93rem; color: var(--text-2); }

/* ------------------------------------------------------------------- cta */
.cta-band { background: var(--primary); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0da; }
.cta-band a { color: var(--accent); }
.cta-inner { display: grid; gap: 28px; align-items: start; }

/* ------------------------------------------------------------- lead form */
.lead-form {
  background: var(--surface); color: var(--text);
  padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; gap: 12px;
}
.lead-form h2 { margin: 0; font-size: 1.18rem; }
.lead-note { margin: 0; font-size: .86rem; color: var(--text-2); }
.form-status { margin: 0; font-size: .88rem; min-height: 1.2em; }
.form-status.ok { color: var(--good); font-weight: 650; }
.form-status.err { color: #b3261e; font-weight: 650; }

/* ------------------------------------------------------------- page head */
.page-head { padding: 34px 0 22px; }
.page-head.compact { padding: 18px 0 6px; }
.lede { font-size: 1.04rem; color: var(--text-2); max-width: 70ch; }
.result-count { font-size: .9rem; font-weight: 700; color: var(--primary); margin: 0; }

.crumbs { margin-bottom: 14px; font-size: .84rem; color: var(--text-3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }

/* --------------------------------------------------------- index + aside */
.layout-with-aside { display: grid; grid-template-columns: 1fr; gap: 26px; padding-bottom: 56px; align-items: start; }

.filters {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.filters h2 { font-size: 1.05rem; margin-bottom: 14px; }
.filters form { display: grid; gap: 13px; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 34px; }
.page {
  min-width: 40px; padding: 9px 12px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-weight: 650; font-size: .9rem; color: var(--text-2);
}
.page:hover { border-color: var(--primary); text-decoration: none; }
.page.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.gap { padding: 9px 4px; color: var(--text-3); }

.empty {
  text-align: center; padding: 56px 24px;
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.empty h2 { font-size: 1.2rem; }
.empty p { color: var(--text-2); max-width: 46ch; margin: 0 auto 18px; }
.no-match { text-align: center; padding: 40px 20px; color: var(--text-2); }

/* ---------------------------------------------------------------- detail */
.detail-layout { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 56px; align-items: start; }
.detail-main { min-width: 0; }

.gallery { display: grid; gap: 10px; }
.gallery-main { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--surface-alt); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count {
  position: absolute; right: 12px; bottom: 12px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: .78rem; font-weight: 650;
}
.gallery-empty { display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--surface-alt); color: var(--text-3); border-radius: var(--radius); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumb {
  flex: 0 0 auto; width: 92px; height: 62px; padding: 0; overflow: hidden;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  background: var(--surface-alt); cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--primary); }

.detail-head { padding: 22px 0 6px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.detail-badges .badge { box-shadow: none; background: var(--surface-alt); }
.detail-region { color: var(--text-3); margin: 0 0 8px; }
.detail-price { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 800; color: var(--primary); margin: 0; }
.instalment { font-size: .92rem; color: var(--text-2); margin: 8px 0 0; }

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-top: 20px;
}
.panel h2 { font-size: 1.15rem; margin-bottom: 14px; }

.spec-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.spec:last-child { border-bottom: 0; }
.spec dt { color: var(--text-3); font-size: .9rem; }
.spec dd { margin: 0; font-weight: 650; text-align: right; }

.prose p { color: var(--text-2); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.feature-list li { position: relative; padding-left: 20px; font-size: .92rem; color: var(--text-2); }
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.invest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.metric { background: var(--surface-alt); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.metric-value { font-size: 1.22rem; font-weight: 800; color: var(--primary); }
.metric-label { font-size: .8rem; color: var(--text-2); }
.invest-delta { margin: 14px 0 0; font-size: .92rem; }
.invest-delta .good { color: var(--good); font-weight: 700; }
.invest-delta .warn { color: var(--warn); font-weight: 700; }
.disclaimer { font-size: .8rem; color: var(--text-3); margin: 14px 0 0; }

.agency-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.agency-logo { max-height: 48px; width: auto; object-fit: contain; }
.agency-name { margin: 0; font-weight: 750; }
.agent-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.agent-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.agent-photo-blank { background: var(--surface-alt); display: block; }
.agent-name { margin: 0; font-weight: 700; }
.agent-license { margin: 0; font-size: .84rem; color: var(--text-3); }
.verified { font-size: .74rem; font-weight: 750; color: var(--good); background: #e8f5ee; padding: 2px 7px; border-radius: 999px; }
.routing-note { margin: 16px 0 0; font-size: .86rem; color: var(--text-2); background: var(--surface-alt); padding: 12px 14px; border-radius: var(--radius-sm); }

.detail-aside { min-width: 0; }
.sticky-box { display: grid; gap: 14px; }
.aside-price { background: var(--primary); color: #fff; padding: 18px; border-radius: var(--radius); }
.aside-price-value { display: block; font-size: 1.45rem; font-weight: 800; }
.aside-price-ref { font-size: .82rem; color: #a9c4bb; }
.aside-alt { display: grid; gap: 8px; }
.aside-note { font-size: .84rem; color: var(--text-3); margin: 0; }

/* ----------------------------------------------------------------- firms */
.firm-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.firm-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; color: var(--text); display: flex; flex-direction: column; gap: 8px;
}
.firm-card:hover { border-color: var(--primary); text-decoration: none; }
.firm-card img { max-height: 52px; width: auto; object-fit: contain; }
.firm-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--surface-alt); color: var(--primary); font-weight: 800; }
.firm-card h2 { font-size: 1.08rem; margin: 0; }
.firm-region { margin: 0; font-size: .88rem; color: var(--text-3); }
.firm-count { font-size: .84rem; font-weight: 700; color: var(--primary); }
.firm-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.firm-head-logo { max-height: 64px; width: auto; object-fit: contain; }

/* ------------------------------------------------------------- text page */
/* Reading column, left-aligned with the page heading rather than centred —
   .wrap already carries `margin: 0 auto`, so constraining the wrapper itself
   would float the text into the middle of the viewport. */
.prose-page > * { max-width: 74ch; }
.prose-page h2 { margin-top: 1.8em; }
.prose-page p { color: var(--text-2); }
.guide-step { margin-bottom: 28px; }
.guide-step h2 { margin-top: 0; }

.contact-layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.contact-list { display: grid; gap: 12px; margin-bottom: 20px; }
.contact-list li { display: flex; flex-direction: column; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.contact-list span { font-size: .78rem; font-weight: 750; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--primary-soft); color: #cfe0da; padding: 48px 0 22px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.footer-grid h3 { color: #fff; font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a { color: #cfe0da; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid ul { display: grid; gap: 8px; font-size: .92rem; }
.footer-brand p { font-size: .9rem; max-width: 42ch; }
.store-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.store-badges a {
  padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--radius-sm);
  font-size: .84rem; font-weight: 650;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between;
  margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom .muted { color: #8fada4; }

/* ------------------------------------------------------------------- fab */
.whatsapp-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
.whatsapp-fab:hover { background: #1fb959; }

/* ------------------------------------------------------------ responsive */
/* On a 390px phone the wordmark, the login CTA and the menu button are all
   that fit — the tagline is the first thing to go. */
@media (max-width: 559px) {
  .brand-text small { display: none; }
  .brand-name { font-size: .95rem; }
  .header-actions .btn { padding: 9px 12px; font-size: .86rem; }
  .wrap { padding: 0 16px; }
}

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links { grid-template-columns: repeat(4, 1fr); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .search-form { grid-template-columns: repeat(2, 1fr); align-items: end; }
  .search-form .btn { grid-column: 1 / -1; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); column-gap: 28px; }
}

@media (min-width: 860px) {
  .hide-sm, .btn.hide-sm { display: inline-flex; }
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .region-grid { grid-template-columns: repeat(3, 1fr); }
  .firm-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .cta-inner { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 40px; }
  .search-form { grid-template-columns: repeat(4, 1fr) auto; }
  .search-form .btn { grid-column: auto; height: 43px; }
  .layout-with-aside { grid-template-columns: 280px 1fr; gap: 30px; }
  .filters { position: sticky; top: 88px; }
  .detail-layout { grid-template-columns: minmax(0, 1.65fr) minmax(320px, .95fr); gap: 34px; }
  .sticky-box { position: sticky; top: 88px; }
  .invest-grid { grid-template-columns: repeat(4, 1fr); }
  .hero { padding: 90px 0 70px; }
}

@media (min-width: 1080px) {
  .layout-with-aside .grid { grid-template-columns: repeat(3, 1fr); }
}

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

@media print {
  .site-header, .site-footer, .whatsapp-fab, .filters, .detail-aside, .pagination { display: none !important; }
  body { background: #fff; }
  .panel { break-inside: avoid; border-color: #ccc; }
}

/* ------------------------------------------------------- guide cross-links */
/* Links into the marketing site's blog. Listings and guides live on one
   domain, so each should hand the reader to the other. */
.guides { background: var(--surface-alt); border-color: var(--border-strong); }
.guides-lead { margin: -6px 0 12px; font-size: .9rem; color: var(--text-2); }
.guide-links { display: grid; gap: 9px; }
.guide-links li { position: relative; padding-left: 18px; }
.guide-links li::before { content: "›"; position: absolute; left: 3px; color: var(--accent); font-weight: 800; }
.guide-links a { font-weight: 600; font-size: .94rem; }
.guide-columns { display: grid; gap: 18px; }
.guide-columns .panel { margin-top: 0; }
.results .guides { margin-top: 28px; }

@media (min-width: 860px) {
  .guide-columns { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------ home: types, route, FAQ */
.section-cta { margin-top: 28px; }

.type-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.type-card {
  padding: 22px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  transition: border-color .15s ease, transform .12s ease;
}
.type-card:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.type-card h3 { margin-bottom: .2em; }
.type-card p { margin: 0; font-size: .88rem; color: var(--text-3); }

/* An <ol> for semantics — the step numbers are drawn as badges, so the
   browser's own markers must go or every step is numbered twice. */
.route-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 28px; list-style: none; padding: 0; }
.route-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.route-num {
  display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px;
  border-radius: 50%; background: var(--accent); color: #221704; font-weight: 800; font-size: .92rem;
}
.route-step h3 { color: var(--primary); margin-bottom: .3em; }
.route-step p { margin: 0; font-size: .92rem; color: var(--text-2); }

.faq { max-width: 74ch; margin: 28px auto 0; display: grid; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 2px 16px;
}
.faq-item summary {
  cursor: pointer; padding: 14px 0; font-weight: 650; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 700; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 16px; font-size: .93rem; color: var(--text-2); }

@media (min-width: 560px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .type-grid { grid-template-columns: repeat(4, 1fr); }
  .route-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------- language switch */
.lang-switch {
  display: inline-grid; place-items: center;
  min-width: 42px; height: 42px; padding: 0 10px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-weight: 750; font-size: .82rem; letter-spacing: .04em;
  color: var(--text-2);
}
.lang-switch:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.footer-langs { display: flex; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; }
.footer-langs strong { color: #fff; }
