/* ==========================================================================
   Coppick Property Advisory — components.css
   Reusable UI components: header, nav, logo, buttons, footer, cards, stats,
   hero variants, feature rows, calculator chrome.
   ========================================================================== */

/* ---------- Site header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--forest); }
.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  flex: none;
}
.logo__name { font-weight: 500; }
.logo--footer {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-primary a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  transition: color var(--t-quick);
  padding: 4px 0;
  position: relative;
}
.nav-primary a:hover { color: var(--forest); text-decoration: none; }
.nav-primary a.is-active {
  color: var(--forest);
}
.nav-primary a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
}

@media (max-width: 768px) {
  .nav-primary { display: none; }
  .site-header__inner { padding: 14px 20px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  background: var(--forest);
  color: #fff;
  border: 1px solid var(--forest);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-quick), color var(--t-quick),
              border-color var(--t-quick), transform var(--t-quick),
              box-shadow var(--t-quick);
  white-space: nowrap;
}
.btn:hover {
  background: var(--forest-2);
  border-color: var(--forest-2);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -10px rgba(31, 59, 44, 0.45);
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn--ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn--ghost:hover {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.btn--gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: #fff;
}

.btn--light {
  background: #f5f1e6;
  color: var(--forest);
  border-color: #f5f1e6;
}
.btn--light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--forest);
}

.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 15px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Inline link arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--forest);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}
.link-arrow::after {
  content: '\2192';
  transition: transform var(--t-quick);
}
.link-arrow:hover { text-decoration: none; color: var(--forest-2); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px;
  transition: border-color var(--t-quick), transform var(--t-quick),
              box-shadow var(--t-quick);
}
.card--interactive { cursor: pointer; }
.card--interactive:hover {
  border-color: var(--line-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -20px rgba(20, 24, 31, 0.18);
}
.card__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.card__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 10px;
}
.card__body {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.card__footer {
  margin-top: 18px;
}

/* Numbered card (process / problems) */
.card--numbered .card__num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

/* Step badge */
.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--forest);
  color: var(--forest);
  display: inline-grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  background: transparent;
  flex: none;
}

/* ---------- Stat ---------- */
.stat {
  padding: 0;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 500;
  color: var(--forest);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}
.stat__label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 12px;
}
.stat__sub {
  font-size: 14px;
  color: var(--ink-mute);
  margin-top: 6px;
  line-height: 1.5;
}

/* ---------- Hero variants ---------- */
.hero {
  padding: 96px 0 80px;
}
.hero__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 28px;
  max-width: 16ch;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
}
.hero__lede {
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 60ch;
  font-weight: 400;
}
.hero__meta {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 22px;
}

/* Centered editorial hero */
.hero--centered {
  text-align: center;
}
.hero--centered .hero__title,
.hero--centered .hero__lede { margin-left: auto; margin-right: auto; }

/* Compact hero (sub-pages) */
.hero--compact { padding: 80px 0 56px; }
.hero--compact .hero__title { font-size: clamp(40px, 6vw, 60px); }

@media (max-width: 768px) {
  .hero { padding: 64px 0 48px; }
  .hero--compact { padding: 56px 0 40px; }
  .hero__lede { font-size: 17px; }
}

/* ---------- Feature row (text + visual) ---------- */
.feature {
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.feature--wide-left { grid-template-columns: 1.2fr 1fr; }
.feature--wide-right { grid-template-columns: 1fr 1.2fr; }
@media (max-width: 880px) {
  .feature, .feature--wide-left, .feature--wide-right {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Grids ---------- */
.grid-3 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
.grid-4 {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Editorial divider line ---------- */
.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- List variants ---------- */
.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-bordered { list-style: none; padding: 0; margin: 0; }
.list-bordered li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.list-bordered li:first-child { border-top: none; padding-top: 0; }
.list-bordered li:last-child { padding-bottom: 0; }
.list-bordered li b { color: var(--ink); }

.list-checks { list-style: none; padding: 0; margin: 0; }
.list-checks li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.list-checks li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--forest);
  font-weight: 700;
}

.list-crosses { list-style: none; padding: 0; margin: 0; }
.list-crosses li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.list-crosses li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--ink-faint);
  font-weight: 700;
}

/* ---------- Big CTA panel ---------- */
.cta-panel {
  background: var(--bg-deep);
  color: #f4ece0;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: grid;
  gap: 40px;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
}
.cta-panel h2 { color: #fff; margin: 0 0 18px; }
.cta-panel p { color: #d6d0bf; font-size: 17px; line-height: 1.6; margin: 0; }
.cta-panel .btn { background: #f5f1e6; color: var(--forest); border-color: #f5f1e6; }
.cta-panel .btn:hover { background: #fff; color: var(--forest); border-color: #fff; }
.cta-panel .btn--ghost {
  background: transparent;
  color: #f5f1e6;
  border-color: rgba(245, 241, 230, 0.4);
}
.cta-panel .btn--ghost:hover {
  background: rgba(245, 241, 230, 0.1);
  color: #fff;
  border-color: #f5f1e6;
}
.cta-panel__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 18px;
}
@media (max-width: 880px) {
  .cta-panel { grid-template-columns: 1fr; padding: 44px 32px; gap: 24px; }
}

/* Light cta panel */
.cta-panel--light {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.cta-panel--light h2 { color: var(--ink); }
.cta-panel--light p { color: var(--ink-soft); }
.cta-panel--light .btn { background: var(--forest); color: #fff; border-color: var(--forest); }
.cta-panel--light .btn:hover { background: var(--forest-2); border-color: var(--forest-2); }
.cta-panel--light .btn--ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.cta-panel--light .btn--ghost:hover {
  background: var(--forest);
  color: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: #d6d0bf;
  padding: 80px 0 40px;
  font-size: 14px;
}
.site-footer__grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  margin-bottom: 56px;
}
@media (max-width: 880px) {
  .site-footer { padding: 64px 0 32px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  padding: 6px 0;
  margin: 0;
  line-height: 1.5;
}
.site-footer a {
  color: #c4b9a3;
  text-decoration: none;
  transition: color var(--t-quick);
}
.site-footer a:hover { color: #fff; text-decoration: none; }

.site-footer__brand p {
  color: #b0a690;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 12px;
  max-width: 360px;
}
.site-footer__credentials {
  font-size: 12.5px !important;
  color: #8c8270 !important;
  margin-top: 4px !important;
}

.site-footer__meta {
  border-top: 1px solid rgba(214, 208, 191, 0.15);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #8c8270;
}
.site-footer__meta p { color: #8c8270; margin: 0; }

/* ---------- Form chrome (calculators, contact) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field__hint {
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}
.input,
.select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  width: 100%;
  transition: border-color var(--t-quick), box-shadow var(--t-quick);
  letter-spacing: 0;
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31, 59, 44, 0.1);
}
.input--with-prefix { padding-left: 30px; }
.input--with-suffix { padding-right: 38px; }
.input-wrap { position: relative; display: block; }
.input-wrap__prefix,
.input-wrap__suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  font-size: 14px;
  pointer-events: none;
  font-weight: 500;
}
.input-wrap__prefix { left: 12px; }
.input-wrap__suffix { right: 12px; }
.select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%236b6b6b' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 9px;
  padding-right: 36px;
}

.seg {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 3px;
  width: 100%;
}
.seg button {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 4px;
  letter-spacing: 0;
  transition: background var(--t-quick), color var(--t-quick);
}
.seg button:hover { color: var(--ink); }
.seg button.on {
  background: var(--forest);
  color: #fff;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 500;
}
.checkbox input {
  accent-color: var(--forest);
  width: 16px;
  height: 16px;
}

/* ---------- Disclaimer block ---------- */
.disclaimer {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}
.disclaimer b { color: var(--ink-soft); font-weight: 600; }

/* Draft banner (legal pages) */
.draft-banner {
  background: #fdf3e0;
  border: 1px solid #e9c97c;
  color: #7a4f00;
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.6;
}
.draft-banner b { display: block; margin-bottom: 6px; color: #5a3700; }

/* ---------- Tag / chip ---------- */
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(31, 59, 44, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
}
.tag--gold {
  color: var(--gold);
  background: rgba(168, 122, 58, 0.1);
}
.tag--inverse {
  color: #f4ece0;
  background: rgba(244, 236, 224, 0.12);
}

/* ---------- Mobile general ---------- */
@media (max-width: 768px) {
  .card { padding: 24px 22px; }
  .cta-panel { padding: 36px 26px; }
}
