/* DN Realty Partners: site styles
   Tokens mirror the DN Realty Partners design system (tokens.json). */

:root {
  --surface: #ffffff;
  --surface-warm: #faf6e4;
  --blush: #f8e8e7;
  --ink: #000000;
  --ink-muted: #5e5a57;
  --coral: #df9795;
  --on-coral: #000000;
  --coral-text: #9e4744;
  --teal: #1f7a78;
  --on-teal: #ffffff;
  --teal-text: #1b6664;
  --teal-tint: #e3f1f0;
  --primary: #000000;
  --primary-hover: #2b2b2b;
  --on-primary: #ffffff;
  --hairline: #e7e0da;
  --border-control: #8a8480;
  --focus: #000000;

  --dark-raised: #1a1a1a;
  --dark-muted: #b3aeaa;
  --dark-hairline: #2e2a28;
  --teal-light: #6cc9c4;

  --font-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Inter", Arial, Helvetica, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --radius-sm: 4px;
  --radius-pill: 999px;

  --gutter: 20px;
  --max: 1280px;
  --section-y: 56px;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --section-y: 80px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 80px; --section-y: 96px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.625;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-text); }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--coral); }

.skip-link {
  position: absolute; left: var(--space-4); top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: var(--space-3) var(--space-4);
}
.skip-link:focus { top: var(--space-4); }
.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;
}

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.bg-warm { background: var(--surface-warm); }
.bg-black { background: var(--primary); color: #ffffff; }
.bg-coral { background: var(--coral); color: var(--on-coral); }
.bg-teal-tint { background: var(--teal-tint); }

/* ---------- Type ---------- */
.label {
  font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--coral-text);
}
.label--ink { color: var(--ink); }
.label--coral { color: var(--coral); }
.label--teal { color: var(--teal-text); }
.label--muted { color: var(--dark-muted); }
.display-xl { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -0.02em; }
.display-l { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; }
.heading { font-size: clamp(20px, 2vw, 22px); line-height: 1.27; font-weight: 600; }
.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-muted); }
.small { font-size: 14px; line-height: 22px; }
.muted { color: var(--ink-muted); }
.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: 0;
  font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease;
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn--coral { background: var(--coral); color: var(--on-coral); }
.btn--coral:hover { background: #d4817f; color: var(--on-coral); }
.btn--teal { background: var(--teal); color: var(--on-teal); }
.btn--teal:hover { background: #186462; color: var(--on-teal); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border-control); }
.btn--outline:hover { background: var(--ink); color: #ffffff; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 599px) {
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
}

/* ---------- Tags ---------- */
.tag {
  display: inline-block; align-self: flex-start; padding: 6px 10px;
  font-size: 12px; line-height: 16px; font-weight: 600;
}
.tag--teal { background: var(--teal); color: var(--on-teal); }
.tag--coral { background: var(--coral); color: var(--on-coral); }
.tag--white { background: #ffffff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.tag--black { background: var(--primary); color: #ffffff; }
.tag--tint { background: var(--teal-tint); color: var(--teal-text); }

/* ---------- Placeholder media ---------- */
.ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--space-4); color: var(--ink-muted); font-size: 14px; line-height: 20px;
  background: var(--blush); width: 100%; object-fit: cover;
}
.ph--teal { background: var(--teal-tint); }
.ph--white { background: #ffffff; }
.ph--dark { background: #16302f; color: var(--dark-muted); }
.d-right { border-radius: 0 999px 999px 0; }
.d-left { border-radius: 999px 0 0 999px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--primary); color: #e6e1dc; font-size: 13px; }
.topbar .container { display: flex; justify-content: center; align-items: center; min-height: 36px; gap: var(--space-4); }
.topbar .label { font-size: 10px; letter-spacing: 0.24em; color: var(--coral); }
.topbar__contact { display: none; }
@media (min-width: 900px) {
  .topbar .container { justify-content: space-between; min-height: 40px; }
  .topbar .label { font-size: 11px; letter-spacing: 0.3em; }
  .topbar__contact { display: block; }
}

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--hairline); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.site-header__logo img { width: 88px; }
.nav { display: none; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 0; }
.nav a:not(.btn):hover { color: var(--coral-text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); }
.menu-toggle {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; color: var(--ink);
}
@media (min-width: 1024px) {
  .site-header .container { min-height: 96px; }
  .site-header__logo img { width: 118px; }
  .nav { display: flex; align-items: center; gap: 36px; }
  .menu-toggle { display: none; }
}
.mobile-nav {
  display: none; border-top: 1px solid var(--hairline); background: #ffffff;
  padding: var(--space-4) var(--gutter) var(--space-6);
}
.mobile-nav.is-open { display: block; }
.mobile-nav a:not(.btn) {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--hairline);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px;
}
.mobile-nav .btn { width: 100%; margin-top: var(--space-4); }
@media (min-width: 1024px) { .mobile-nav, .mobile-nav.is-open { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: var(--space-12) 0 var(--section-y); }
.hero__grid { display: grid; gap: var(--space-8); align-items: center; }
.hero__media { aspect-ratio: 1 / 0.85; }
@media (min-width: 900px) {
  .hero { padding: var(--space-16) 0; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .hero__media { aspect-ratio: auto; min-height: 560px; }
}

/* ---------- Section headers ---------- */
.section-head { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-8); }
@media (min-width: 768px) {
  .section-head--split { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

/* ---------- Grids ---------- */
.grid-3 { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.split { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 480px minmax(0, 1fr); gap: var(--space-16); }
  .split--reverse { grid-template-columns: minmax(0, 1fr) 520px; }
  .split--form { grid-template-columns: 440px minmax(0, 1fr); }
}
@media (max-width: 899px) { .split--reverse .split__media { order: -1; } }

/* ---------- Listing card ---------- */
.listing-card { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--hairline); }
.listing-card__media { position: relative; aspect-ratio: 4 / 3; }
.listing-card__media .ph { height: 100%; }
.listing-card__media .tag { position: absolute; left: var(--space-4); top: var(--space-4); }
.listing-card__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); flex: 1; }
.listing-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: var(--space-2); }
.price { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.link-strong { font-size: 15px; font-weight: 600; }

/* ---------- Team ---------- */
.team__media { aspect-ratio: 1 / 1; }
@media (min-width: 900px) { .team__media { aspect-ratio: auto; min-height: 480px; } }

/* ---------- Ask Dawn band ---------- */
.ask { position: relative; overflow: hidden; }
.ask::before {
  content: ""; position: absolute; right: 0; top: 0; width: 110px; height: 150px;
  background: var(--coral); border-radius: 0 0 0 999px;
}
@media (min-width: 900px) { .ask::before { width: 220px; height: 300px; } }
.ask .container { position: relative; }
.ask .section-head { max-width: 760px; padding-right: 90px; }
@media (min-width: 900px) { .ask .section-head { padding-right: 0; } }
.ask p { color: var(--dark-muted); }
.guide-card { display: flex; flex-direction: column; background: var(--dark-raised); }
.guide-card .ph { aspect-ratio: 16 / 10; }
.guide-card__body { display: flex; flex-direction: column; gap: 10px; padding: var(--space-6); }
.guide-card h3 { color: #ffffff; }
.guide-card a { color: var(--teal-light); font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); background: #ffffff; padding: var(--space-6); }
@media (min-width: 700px) { .form--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--space-8); } .form--2col .span-2 { grid-column: span 2; } }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 600; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  background: #ffffff; font: inherit; font-weight: 400; font-size: 15px; color: var(--ink);
}
textarea.input { min-height: 104px; resize: vertical; }
.input--soft { border-color: var(--border-control); }
.form__note { font-size: 13px; line-height: 18px; color: var(--ink-muted); font-weight: 400; }
.form__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form-status { font-size: 14px; font-weight: 600; }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; overflow: hidden; }
.newsletter__grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .newsletter__grid { grid-template-columns: minmax(0, 1fr) 520px; gap: var(--space-16); } }
.newsletter .input { border-color: #ffffff; }
.newsletter .field { color: #ffffff; }
.newsletter .form__note { color: var(--dark-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: #ffffff; padding: var(--space-12) 0 var(--space-8); }
.footer__grid { display: grid; gap: var(--space-8); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--space-12); } }
.footer__logo { width: 140px; }
.footer__col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a { color: #ffffff; text-decoration: none; }
.footer__col a:hover { color: var(--coral); }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--dark-hairline);
  font-size: 13px; color: var(--dark-muted);
}
.footer__legal a { color: var(--dark-muted); }

/* ---------- Blog ---------- */
.blog-hero { padding: var(--space-12) 0 var(--space-8); }
@media (min-width: 900px) { .blog-hero { padding: var(--space-16) 0 var(--space-8); } }
.blog-tools {
  display: flex; flex-direction: column-reverse; gap: var(--space-3);
  padding-bottom: var(--space-6); border-bottom: 1px solid var(--hairline);
}
@media (min-width: 900px) { .blog-tools { flex-direction: row; justify-content: space-between; align-items: center; } .blog-tools .search { width: 280px; } }
.chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip {
  min-height: 44px; padding: 10px 18px; border: 0; border-radius: var(--radius-pill);
  font: 600 14px/20px var(--font-sans); white-space: nowrap; cursor: pointer;
  background: #ffffff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border-control);
}
.chip[aria-pressed="true"] { background: var(--primary); color: #ffffff; box-shadow: none; }
.featured { display: grid; gap: var(--space-6); align-items: center; padding: var(--space-8) 0 var(--section-y); }
.featured__media { aspect-ratio: 16 / 11; }
@media (min-width: 900px) { .featured { grid-template-columns: 1.3fr 1fr; gap: var(--space-12); } .featured__media { aspect-ratio: auto; min-height: 472px; } }
.post-grid { display: grid; gap: var(--space-12) var(--space-8); }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; gap: var(--space-4); }
.post-card[hidden] { display: none; }
.post-card__media { aspect-ratio: 3 / 2; text-decoration: none; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--coral-text); }
.post-meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ask-card { display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); background: var(--coral); padding: var(--space-8); }
.pagination { display: flex; justify-content: center; gap: var(--space-2); margin-top: var(--space-12); }
.pagination .btn { min-width: 48px; padding: 12px 16px; }
.empty-state { display: none; padding: var(--space-8) 0; color: var(--ink-muted); }
.empty-state.is-visible { display: block; }

/* ---------- Article ---------- */
.article-head { text-align: left; padding: var(--space-8) 0 var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
@media (min-width: 900px) { .article-head { align-items: center; text-align: center; padding: var(--space-16) 0 var(--space-8); } .article-head .tag { align-self: center; } .article-head h1, .article-head .lead { max-width: 920px; } }
.breadcrumb { font-size: 14px; color: var(--ink-muted); }
.article-hero { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .article-hero { aspect-ratio: 16 / 6.4; } }
.article-layout { display: grid; gap: var(--space-8); padding: var(--space-8) 0 var(--section-y); }
@media (min-width: 1100px) { .article-layout { grid-template-columns: 180px minmax(0, 720px) minmax(0, 1fr); gap: var(--space-12); } }
.share { display: flex; flex-wrap: wrap; gap: var(--space-4); font-size: 14px; align-items: center; }
@media (min-width: 1100px) { .share { flex-direction: column; align-items: flex-start; position: sticky; top: 120px; align-self: start; } }
.prose { font-size: 17px; line-height: 1.7; }
@media (min-width: 900px) { .prose { font-size: 18px; } }
.prose > * + * { margin-top: var(--space-6); }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; margin-top: var(--space-12); }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: var(--space-2); }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding: var(--space-8); background: var(--blush);
  font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.4; font-weight: 600;
}
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: 14px; color: var(--ink-muted); margin-top: var(--space-2); }
.callout { padding: var(--space-6); background: var(--teal-tint); }
.callout p { font-size: 16px; line-height: 1.6; margin-top: var(--space-2); }
.author {
  display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6);
  border: 1px solid var(--hairline); margin-top: var(--space-12);
}
@media (min-width: 700px) { .author { flex-direction: row; align-items: center; gap: var(--space-6); } .author .btn { margin-left: auto; flex-shrink: 0; } }
.author__photo { width: 96px; height: 96px; flex-shrink: 0; border-radius: 999px; font-size: 12px; }
.sidebar-cta { background: var(--primary); color: #ffffff; padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); align-self: start; }
@media (min-width: 1100px) { .sidebar-cta { position: sticky; top: 120px; } }

/* Partner band: Expat Properties | CR */
.partner-band { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); margin-top: var(--space-12); padding-top: var(--space-12); border-top: 1px solid var(--hairline); text-align: center; }
.partner-band img { width: 180px; height: auto; }
.partner-band p { margin: 0; font-size: 1.0625rem; color: var(--ink); max-width: 32ch; }
@media (min-width: 768px) {
  .partner-band { flex-direction: row; justify-content: center; gap: var(--space-8); text-align: left; }
  .partner-band img { width: 200px; }
}
