/* Sierra Home Partners — light field, unified card, brand red accent */

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

:root {
  --red: #c1272d;
  --red-soft: #fdf5f5;
  --ink: #1c1c1c;
  --muted: #5a5a5a;
  --line: #d4d4d0;
  --line-soft: #ececea;
  --paper: #e8e8e8;
  --white: #fff;
  --max: 44rem;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.05);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max) + 3rem);
  margin: 0 auto;
  padding: max(1.5rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right))
    1.5rem max(1.25rem, env(safe-area-inset-left));
}

.site-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-brand {
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, #fafafa 0%, var(--white) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.panel-brand__logo {
  display: block;
  width: min(68vw, 320px);
  height: auto;
  margin: 0 auto;
}

.site-panel > section,
.site-panel > .intro {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.intro {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}

.intro__legal {
  margin: 0 0 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}

.intro__lead {
  margin: 0;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.intro__lead strong {
  font-weight: 600;
  color: var(--red);
}

.block {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}

.block--contact {
  border-bottom: none;
  padding-bottom: 2rem;
}

.block__title {
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
  display: inline-block;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.block__content p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.block__content p:last-child {
  margin-bottom: 0;
}

.services {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.services__item {
  padding: 1rem 1.1rem 1.05rem;
  background: #fafafa;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  border-left: 3px solid var(--red);
}

.services__name {
  margin: 0 0 0.35rem;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.services__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.quick-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.quick-links__item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.75rem;
  padding: 0.95rem 1.1rem;
  background: #fafafa;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.quick-links__item:hover {
  background: var(--white);
  border-color: var(--line);
}

.quick-links__name {
  grid-column: 1;
  grid-row: 1;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.quick-links__desc {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.quick-links__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.125rem;
  color: var(--red);
}

.contact {
  padding: 1.25rem 1.35rem;
  background: var(--red-soft);
  border: 1px solid #f0dede;
  border-radius: 6px;
}

.contact__name {
  margin: 0 0 0.65rem;
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.contact__address {
  margin: 0 0 0.85rem;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.contact__email {
  margin: 0 0 0.85rem;
  line-height: 1.7;
}

.contact__sep {
  color: #aaa;
}

.contact__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--red);
  text-decoration: none;
}

.contact__link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact__note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #777;
}

.site-footer {
  flex-shrink: 0;
  padding: 1.15rem max(1.25rem, env(safe-area-inset-right))
    max(1.15rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #888;
}

.site-footer__copy {
  margin: 0;
}

.site-footer__meta {
  margin: 0.3rem 0 0;
}

.site-footer__sep {
  margin: 0 0.35rem;
}

.site-footer__meta a {
  color: inherit;
  text-decoration: none;
}

.site-footer__meta a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .site-main {
    padding-top: 2.25rem;
    padding-bottom: 2rem;
  }

  .panel-brand {
    padding: 2.5rem 2.5rem 1.75rem;
  }

  .panel-brand__logo {
    width: min(100%, 360px);
  }

  .site-panel > section,
  .site-panel > .intro {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .intro {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .intro__lead {
    font-size: 1.3125rem;
  }

  .block {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .block--contact {
    padding-bottom: 2.5rem;
  }
}
