/* PHM Ltd company site.
   Plain informational style: system fonts, no gradients, no trackers. */

:root {
  --ink: #1f2430;
  --body: #333a47;
  --muted: #5f6774;
  --line: #d9dee6;
  --link: #14509c;
  --navy: #1b2a4a;
  --wash: #f6f7f9;
  --container: 840px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--body);
  background: #fff;
  line-height: 1.65;
}

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

a { color: var(--link); text-decoration: underline; }
a:hover { text-decoration: none; }

/* Header */
.site-header {
  background: var(--navy);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.wordmark {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.01em;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.site-nav a {
  color: #dbe2ee;
  text-decoration: none;
  font-size: 14.5px;
}
.site-nav a:hover { color: #fff; text-decoration: underline; }

/* Main content.
   main carries the container class, so this needs the higher-specificity
   selector or .container's `padding: 0 22px` zeroes the vertical padding. */
main.container {
  padding-top: 44px;
  padding-bottom: 64px;
}

.intro { margin-bottom: 8px; }

h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.25;
  color: var(--ink);
}
.lead {
  margin: 0;
  font-size: 17.5px;
  max-width: 64ch;
}

h2 {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--ink);
}
h3 {
  margin: 26px 0 8px;
  font-size: 17.5px;
  color: var(--ink);
}
h3:first-of-type { margin-top: 18px; }

p { margin: 0 0 14px; max-width: 70ch; }
p:last-child { margin-bottom: 0; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 34px 0;
}

/* Information tables (company details, contact) */
.info-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 640px;
  margin-top: 6px;
  font-size: 15.5px;
}
.info-table th,
.info-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border: 1px solid var(--line);
}
.info-table th {
  width: 180px;
  font-weight: 600;
  color: var(--ink);
  background: var(--wash);
  white-space: nowrap;
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 640px;
  margin-top: 4px;
}
.team-member {
  display: flex;
  align-items: center;
  gap: 16px;
}
.team-photo {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: #e9edf2;
  border: 1px solid var(--line);
}
.team-details p { margin: 0 0 2px; max-width: none; }
.team-name { font-weight: 600; color: var(--ink); }
.team-title { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.team-role { font-size: 14.5px; color: var(--muted); }
.team-email { font-size: 14.5px; }

@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; gap: 20px; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding: 22px 0 26px;
}
.site-footer p {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: none;
}
.site-footer a { color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* Legal pages */
.legal { max-width: 720px; padding: 40px 22px 64px; margin: 0 auto; }
.legal h1 { font-size: 26px; }
.legal h2 { font-size: 18px; margin-top: 30px; }
.legal p, .legal li { font-size: 15.5px; }
.legal-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14.5px;
}

/* Small screens */
@media (max-width: 560px) {
  h1 { font-size: 25px; }
  .info-table th { width: 110px; white-space: normal; }
  .info-table th, .info-table td { padding: 8px 10px; }
}
