/* ==========================================================================
   Silver Properties Group — silverpropertiesgroup.com
   Implements brand.md exactly. Tokens below are the single source of truth.
   ========================================================================== */

:root {
  --graphite: #15191E;   /* headlines, dark sections, footer */
  --gunmetal: #2B333C;   /* cards on dark, secondary surfaces */
  --steel:    #5C6C7C;   /* secondary text */
  --silver:   #C8D0D9;   /* borders, dividers, wordmark */
  --frost:    #EEF1F5;   /* section backgrounds */
  --sterling: #2C6E9B;   /* CTAs + links */
  --sterling-hover: #235B82;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 8px;
  --container: 1120px;
  --header-h: 72px;
}

/* ---------- Reset & base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--graphite);
  background: #FFFFFF;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

img { max-width: 100%; display: block; }

a { color: var(--sterling); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--sterling-hover); }

:focus-visible {
  outline: 2px solid var(--sterling);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--silver); color: var(--graphite); }

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

/* ---------- Type scale (brand.md §3) ---------- */

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.small { font-size: 14px; line-height: 1.5; color: var(--steel); }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}

.num, .tel-link { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 96px; }
.section--frost { background: var(--frost); }
.section--dark { background: var(--graphite); color: var(--silver); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #FFFFFF; }

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--steel); }
.section--frost .section-head p { color: var(--graphite); }

/* ---------- Wordmark (brand.md §1) ---------- */

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { text-decoration: none; }

.wordmark__main {
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 118%;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 23px;
  color: var(--graphite);
}

.wordmark__sub {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 8px;
  color: var(--steel);
}

.wordmark--on-dark .wordmark__main { color: var(--silver); }
.wordmark--on-dark .wordmark__sub { color: var(--steel); }

.wordmark--lg .wordmark__main { font-size: 28px; }
.wordmark--lg .wordmark__sub { font-size: 9.5px; }

/* ---------- Buttons (brand.md §4) ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn--primary {
  background: var(--sterling);
  color: #FFFFFF;
  border-color: var(--sterling);
}
.btn--primary:hover { background: var(--sterling-hover); border-color: var(--sterling-hover); color: #FFFFFF; }

.btn--ghost {
  background: transparent;
  color: var(--graphite);
  border-color: var(--silver);
}
.btn--ghost:hover { background: var(--frost); color: var(--graphite); }

.btn--ghost-dark {
  background: transparent;
  color: #FFFFFF;
  border-color: var(--silver);
}
.btn--ghost-dark:hover { background: var(--gunmetal); color: #FFFFFF; }

.btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--silver);
}
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(21, 25, 30, 0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--graphite);
  text-decoration: none;
}
.site-nav__link:hover { color: var(--sterling); }

.header-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  text-decoration: none;
}
.header-phone .tel-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--graphite);
}
.header-phone:hover .tel-link { color: var(--sterling); }
.header-phone .header-hours {
  font-size: 12px;
  color: var(--steel);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--graphite);
  transition: transform 150ms ease, opacity 150ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { padding-block: 88px 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: start;
}

.hero h1 { color: #FFFFFF; max-width: 15ch; }

.hero-lede {
  margin-top: 22px;
  max-width: 52ch;
  color: var(--silver);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  gap: 12px;
  max-width: 52ch;
}
.hero-points li {
  position: relative;
  padding-left: 30px;
  color: var(--silver);
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 16px;
  height: 1px;
  background: var(--silver);
}

.hero-call {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--gunmetal);
  color: var(--silver);
  max-width: 52ch;
}
.hero-call a { color: #FFFFFF; }
.hero-call a:hover { color: var(--silver); }

/* ---------- Offer form card ---------- */

.offer-card {
  background: #FFFFFF;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: 0 16px 40px rgba(21, 25, 30, 0.28);
  color: var(--graphite);
}

.offer-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--graphite);
}
.offer-card .offer-card__title { color: var(--graphite); }
.offer-card__sub {
  margin-top: 6px;
  font-size: 15px;
  color: var(--steel);
}

.form-field { margin-top: 18px; }
.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--graphite);
}
.form-field .optional { color: var(--steel); font-weight: 400; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--graphite);
  background: #FFFFFF;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 11px 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-field textarea { resize: vertical; min-height: 76px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sterling);
  box-shadow: 0 0 0 3px rgba(44, 110, 155, 0.22);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235C6C7C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.offer-card .btn--primary { margin-top: 22px; }

.offer-card__note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--steel);
  text-align: center;
}

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

/* ---------- Trust strip ---------- */

.trust { padding-block: 56px; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 40px;
}

.trust-item { padding-inline: 0 12px; }
.trust-item + .trust-item {
  border-left: 1px solid var(--silver);
  padding-left: 32px;
}

.trust-item h3 {
  font-size: 19px;
  font-weight: 600;
}
.trust-item p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--steel);
}

/* ---------- How it works ---------- */

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

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}

.step-card h3 { color: var(--graphite); }
.step-card p { margin-top: 10px; font-size: 16px; color: var(--graphite); }
.step-card strong { font-weight: 600; }

/* ---------- Who this is for ---------- */

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

.who-card {
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  padding: 24px;
}
.who-card h3 { font-weight: 600; font-size: 19px; }
.who-card p { margin-top: 10px; font-size: 16px; color: var(--steel); }

.where-line {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--silver);
  color: var(--steel);
  font-size: 16px;
}
.where-line strong { color: var(--graphite); font-weight: 600; }

/* ---------- Comparison table ---------- */

.compare-wrap {
  background: #FFFFFF;
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 16px;
}

.compare th, .compare td {
  text-align: left;
  vertical-align: top;
  padding: 16px 20px;
  border-bottom: 1px solid var(--silver);
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }

.compare thead th {
  background: var(--graphite);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
}

.compare tbody th {
  font-weight: 500;
  color: var(--graphite);
  width: 22%;
}
.compare td { color: var(--graphite); }
.compare td .num { font-weight: 600; }

.compare .row-price th, .compare .row-price td {
  background: var(--frost);
  border-top: 2px solid var(--silver);
}

.compare-hint { display: none; margin-top: 12px; }

.compare-note {
  margin-top: 22px;
  max-width: 68ch;
  color: var(--graphite);
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; border-top: 1px solid var(--silver); }

.faq-item { border-bottom: 1px solid var(--silver); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-weight: 500;
  font-size: 17px;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1;
  color: var(--steel);
  transition: transform 150ms ease;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item__body {
  padding: 0 4px 22px;
  max-width: 66ch;
  color: var(--graphite);
}

/* ---------- CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p {
  margin: 16px auto 0;
  max-width: 52ch;
  color: var(--silver);
}
.cta-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.cta-meta { margin-top: 18px; font-size: 14px; color: var(--steel); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--graphite);
  color: var(--silver);
  padding-block: 64px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.6;
}

.footer-contact {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
}
.footer-contact a { color: #FFFFFF; text-decoration: none; }
.footer-contact a:hover { color: var(--silver); text-decoration: underline; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; font-size: 15px; }
.footer-col a { color: var(--silver); text-decoration: none; }
.footer-col a:hover { color: #FFFFFF; text-decoration: underline; }

.footer-legal {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--gunmetal);
  font-size: 13px;
  line-height: 1.6;
  color: var(--steel);
}

/* ---------- Simple content pages (about / privacy / thanks / 404) ---------- */

.page-head { padding-block: 72px 56px; }
.page-head .breadcrumb {
  font-size: 14px;
  color: var(--steel);
  margin-bottom: 26px;
}
.page-head .breadcrumb a { color: var(--steel); text-decoration: none; }
.page-head .breadcrumb a:hover { color: var(--sterling); text-decoration: underline; }
.page-head h1 { max-width: 18ch; }
.page-head .page-lede { margin-top: 20px; max-width: 60ch; color: var(--steel); }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 16px; }
.prose ul { margin-top: 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }

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

.center-page { text-align: center; padding-block: 120px; }
.center-page h1 { margin-inline: auto; }
.center-page p { margin: 18px auto 0; max-width: 46ch; color: var(--steel); }
.center-page .cta-actions { margin-top: 30px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .header-hours { display: none; }
}

@media (max-width: 960px) {
  .section { padding-block: 64px; }
  .hero { padding-block: 56px 64px; }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; }

  .trust-grid { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .trust-item + .trust-item { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(even) { border-left: 1px solid var(--silver); padding-left: 32px; }

  .steps-grid, .who-grid, .principles-grid { grid-template-columns: 1fr; gap: 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--silver);
    padding: 8px 24px 20px;
  }
  .site-nav.is-open { display: flex; }

  .site-nav__link,
  .header-phone {
    padding: 14px 0;
    border-bottom: 1px solid var(--frost);
  }
  .site-nav .btn { margin-top: 16px; text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .small { font-size: 13px; }

  .container { padding-inline: 20px; }

  .trust { padding-block: 44px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item:nth-child(even) { border-left: 0; padding-left: 0; }
  .trust-item + .trust-item { border-top: 1px solid var(--silver); padding-top: 24px; }
  .trust-item { padding-bottom: 8px; }

  .offer-card { padding: 24px 20px; }

  .cta-actions .btn { width: 100%; text-align: center; }
  .compare-hint { display: block; }
  .center-page { padding-block: 80px; }
}

/* ---------- Reduced motion ---------- */

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