/* Clarke Residential — Design System
   Type · Colour · Spacing · Motion · Components
   ──────────────────────────────────────────── */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,500&family=Inter+Tight:wght@400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
  --ink:          #0D0F12;
  --paper:        #F4F1EA;
  --orange:       #EF8A2C;
  --orange-deep:  #C96B12;
  --sold:         #4A7A55;
  --mute:         #8A8F98;
  --card-dark:    #1a1e24;
  --border-dark:  #2a2f37;

  --font-display: 'Fraunces', serif;
  --font-body:    'Inter Tight', system-ui, sans-serif;

  --container:    1180px;
  --gutter:       24px;
  --radius-card:  4px;
  --radius-pill:  100px;
  --radius-img:   6px;

  --section-pad:       120px;
  --section-pad-mob:   72px;

  --ease-out:     200ms ease-out;
  --ease-scale:   400ms ease;
}

@media (min-width: 1280px) {
  :root { --gutter: 32px; }
}

/* ── Base reset ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Type scale ── */
.t-display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.t-section {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 96, 'SOFT' 20;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.t-section-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: 'opsz' 96, 'SOFT' 20;
  font-weight: 500;
}

.t-subhead {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.t-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
}

.t-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.3;
}

.t-caption {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.t-stat-number {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: 96px;
}
@media (max-width: 768px) {
  .t-stat-number { font-size: 64px; }
}

.t-stat-unit {
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
}

.t-stat-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
}

/* ── Colours ── */
.bg-ink    { background-color: var(--ink); }
.bg-paper  { background-color: var(--paper); }
.bg-orange { background-color: var(--orange); }
.text-ink   { color: var(--ink); }
.text-paper { color: var(--paper); }
.text-orange { color: var(--orange); }
.text-orange-deep { color: var(--orange-deep); }
.text-mute { color: var(--mute); }
.text-paper-70 { color: rgba(244,241,234,.7); }
.text-paper-90 { color: rgba(244,241,234,.9); }
.text-paper-60 { color: rgba(244,241,234,.6); }

/* ── Section rhythm ── */
.section-ink  { background-color: var(--ink); color: rgba(244,241,234,.9); }
.section-paper { background-color: var(--paper); color: var(--ink); }

.section-pad {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
@media (max-width: 768px) {
  .section-pad {
    padding-top: var(--section-pad-mob);
    padding-bottom: var(--section-pad-mob);
  }
}

.container-ds {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Buttons ── */
.btn-primary-ds {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background var(--ease-out), transform var(--ease-out);
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary-ds:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

.btn-ghost-ds {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(244,241,234,.5);
  cursor: pointer;
  transition: all var(--ease-out);
  text-decoration: none;
  line-height: 1.2;
}
.btn-ghost-ds:hover {
  background: rgba(244,241,234,.1);
  border-color: rgba(244,241,234,.8);
}

/* ── Property card ── */
.prop-card {
  background: var(--paper);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow var(--ease-out);
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.prop-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.prop-card .prop-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.prop-card .prop-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-scale);
}
.prop-card:hover .prop-img-wrap img {
  transform: scale(1.04);
}
.prop-card .prop-status {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 6px 12px;
  border-radius: 3px;
  z-index: 2;
}
.prop-card .prop-status--sale {
  background: var(--orange);
  color: var(--ink);
}
.prop-card .prop-status--sold {
  background: var(--ink);
  color: var(--orange);
}
.prop-card .prop-body {
  padding: 20px;
}
.prop-card .prop-price-prefix {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mute);
  margin-bottom: 2px;
}
.prop-card .prop-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--ease-out);
  margin-bottom: 6px;
}
.prop-card:hover .prop-price {
  color: var(--orange);
}
.prop-card .prop-address {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.prop-card .prop-arrow {
  opacity: 0;
  transition: opacity var(--ease-out), transform var(--ease-out);
  color: var(--orange);
  font-size: 12px;
}
.prop-card:hover .prop-arrow {
  opacity: 1;
  transform: translateX(4px);
}
.prop-card .prop-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--mute);
  font-size: 13px;
  font-family: var(--font-body);
}
.prop-card .prop-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.prop-card .prop-meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Review card (dark) ── */
.review-card-dark {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 28px;
}
.review-card-dark .stars {
  color: var(--orange);
  font-size: 14px;
  letter-spacing: 2px;
}

/* ── Trust pill ── */
.trust-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(244,241,234,.06);
  border: 1px solid rgba(244,241,234,.1);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
}

/* ── FAQ ── */
.faq-row {
  border-bottom: 1px solid rgba(244,241,234,.12);
  padding: 24px 0;
}
.faq-row summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 22px;
  color: rgba(244,241,234,.9);
  font-weight: 400;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary .chevron {
  transition: transform var(--ease-out);
  font-size: 16px;
  color: var(--mute);
}
.faq-row[open] summary .chevron {
  transform: rotate(180deg);
}
.faq-row .faq-answer {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: rgba(244,241,234,.75);
  padding-top: 16px;
}

/* ── Blog card ── */
.blog-card-ds {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow var(--ease-out);
}
.blog-card-ds:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}
.blog-card-ds .blog-thumb {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.blog-card-ds .blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-ds .blog-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  transition: color var(--ease-out);
  margin-top: 16px;
  margin-bottom: 8px;
}
.blog-card-ds:hover .blog-title {
  color: var(--orange);
}
.blog-card-ds .blog-date {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
}
.blog-card-ds .blog-arrow {
  opacity: 0;
  transition: opacity var(--ease-out);
  color: var(--orange);
}
.blog-card-ds:hover .blog-arrow {
  opacity: 1;
}

/* ── Footer design-system overrides ── */
.footer-ds-heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
}
.footer-ds-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(244,241,234,.8);
  text-decoration: none;
  transition: color var(--ease-out);
}
.footer-ds-link:hover {
  color: rgba(244,241,234,1);
}

/* ── Trust strip (footer) ── */
.trust-strip-badge {
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter var(--ease-out), opacity var(--ease-out);
}
.trust-strip-badge:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ── Valuation inline form ── */
.val-input {
  width: 100%;
  height: 48px;
  background: rgba(244,241,234,.08);
  border: 1.5px solid rgba(244,241,234,.15);
  border-radius: var(--radius-card);
  color: rgba(244,241,234,.9);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 0 16px;
  outline: none;
  transition: border-color var(--ease-out);
}
.val-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(239,138,44,.15);
}
.val-input::placeholder {
  color: rgba(244,241,234,.35);
}

.val-radio {
  display: none;
}
.val-radio-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid rgba(244,241,234,.15);
  border-radius: var(--radius-pill);
  color: rgba(244,241,234,.6);
  cursor: pointer;
  transition: all var(--ease-out);
}
.val-radio:checked + .val-radio-label {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ── Stepper ── */
.stepper-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(244,241,234,.15);
  background: transparent;
  color: rgba(244,241,234,.7);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease-out);
}
.stepper-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ── Utility ── */
.orange-rule {
  width: 40px;
  height: 1px;
  background: var(--orange);
  margin-bottom: 16px;
}

/* Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

/* Scrollbar hide */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { scrollbar-width: none; }
