/* =========================================================
   Alton Settlements — styles
   ========================================================= */

:root {
  --white: #ffffff;
  --light: #f5f5f6;
  --border: #e4e4e7;
  --black: #111111;
  --charcoal: #1c1c1e;
  --grey: #5c5c62;
  --grey-light: #a1a1a7;
  --line-dark: rgba(255, 255, 255, 0.12);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 8px 24px -12px rgba(17, 17, 17, .12);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; background: var(--white); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px; line-height: 1.6;
  color: var(--black); background: var(--white);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--black); color: #fff; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--grey); }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 6px; background: var(--black); color: #fff;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ---------- Shared ---------- */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--grey);
}
.eyebrow--light { color: var(--grey-light); }

.h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600; line-height: 1.1; letter-spacing: -.025em;
}
.h2--light { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 8px;
  font-size: 16px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #333; }
.btn--line { border-color: var(--border); color: var(--black); background: var(--white); }
.btn--line:hover { border-color: var(--black); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.header__logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 32px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--grey); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--black); }
.header__phone {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 8px;
  background: var(--black); color: #fff; font-size: 15px; font-weight: 500;
  transition: background-color .2s;
}
.header__phone:hover { background: #333; }
.header__phone svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 104px); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero__title {
  margin-top: 20px;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -.034em;
  max-width: 15ch;
}
.hero__lede { margin-top: 22px; max-width: 42ch; font-size: clamp(17px, 1.45vw, 19px); color: var(--grey); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__photo {
  overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 4.4;
  background: var(--light);
  box-shadow: var(--shadow);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* ---------- Services ---------- */
.services { background: var(--light); border-block: 1px solid var(--border); padding-block: clamp(64px, 9vw, 112px); }
.services .h2 { margin-bottom: clamp(32px, 4vw, 48px); }
.services__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, auto); gap: 16px;
}
.card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-content: start;
  padding: 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(17, 17, 17, .04);
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: #cfcfd4; box-shadow: var(--shadow); }
.card__icon {
  grid-row: span 3;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px;
  background: var(--light); border: 1px solid var(--border);
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--black); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.card__text { margin-top: 6px; color: var(--grey); }
.card__meta { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }

.card--main {
  grid-row: 1 / span 3;
  grid-template-columns: 1fr; padding: clamp(28px, 3.4vw, 44px);
  background: var(--charcoal); border-color: var(--charcoal); color: #fff;
}
.card--main:hover { border-color: var(--charcoal); box-shadow: none; }
.card--main .card__icon { grid-row: auto; width: 56px; height: 56px; margin-bottom: 32px; background: transparent; border-color: var(--line-dark); }
.card--main .card__icon svg { stroke: #fff; }
.card--main .card__title { font-size: clamp(1.6rem, 2.4vw, 2rem); letter-spacing: -.02em; }
.card--main .card__text { margin-top: 14px; color: #c8c8cc; font-size: 17px; max-width: 46ch; }
.card--main .card__meta { margin-top: auto; padding-top: 32px; color: var(--grey-light); }
.card--main { align-content: stretch; grid-template-rows: auto auto auto 1fr; }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(64px, 9vw, 112px); }
.contact__panel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--radius);
  background: var(--charcoal); color: #fff;
}
.contact__intro p { margin-top: 14px; font-size: clamp(17px, 1.45vw, 19px); color: var(--grey-light); }
.contact__list { border-top: 1px solid var(--line-dark); }
.contact__list li { border-bottom: 1px solid var(--line-dark); }
.contact__list a, .contact__list li > div {
  display: flex; align-items: center; gap: 18px; padding: 20px 4px;
}
.contact__list a { transition: color .2s; }
.contact__list a:hover { color: var(--grey-light); }
.contact__list svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.contact__list span { display: grid; gap: 2px; font-size: clamp(17px, 1.7vw, 20px); font-weight: 500; overflow-wrap: anywhere; }
.contact__list small { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-light); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); font-size: 14px; color: var(--grey); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px 32px; padding-block: 36px 28px; }
.footer__logo { height: 38px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--black); }
.footer__base { padding-block: 20px 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--grey-light); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 16 / 10; }
  .hero__title { max-width: none; }
  .services__grid { grid-template-columns: 1fr; }
  .card--main { grid-row: auto; }
  .contact__panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .header__inner { gap: 16px; }
  .header__logo img { height: 36px; }
  .nav { display: none; }
  .header__phone { margin-left: auto; padding: 0 14px; font-size: 14px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .card { padding: 22px; column-gap: 16px; }
  .card__icon { width: 42px; height: 42px; }
  .contact__panel { padding: 32px 20px; }
  .contact__list a, .contact__list li > div { gap: 14px; padding-inline: 0; }
  .contact__list span { font-size: min(17px, 4.3vw); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
