/* P&S Construction static site. Palette taken from the PS square logo. */
:root {
  --navy: #1c3461;
  --steel: #46698f;
  --ink: #1f2933;
  --muted: #52606d;
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --line: #d9e0e8;
}

* { box-sizing: border-box; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }
h2 { font-size: 1.9rem; margin: 0 0 1.25rem; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.topbar { background: var(--navy); color: #fff; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand strong { display: block; font-size: 1.15rem; }
.brand small { color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { text-decoration: none; font-weight: 600; color: var(--ink); }
nav a:hover { color: var(--steel); }

/* Hero */
.hero {
  background: linear-gradient(rgba(16, 32, 60, .62), rgba(16, 32, 60, .62)), url("/images/hero.jpg") center / cover no-repeat;
  color: #fff;
  padding: 110px 0;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin: .25rem 0 1rem; max-width: 760px; }
.hero p { font-size: 1.15rem; max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem !important; opacity: .9; }
.btn { display: inline-block; margin-top: 1rem; background: #fff; color: var(--navy); padding: 12px 26px; font-weight: 700; text-decoration: none; border-radius: 3px; }
.btn:hover { background: var(--bg-alt); }

.mission { background: var(--steel); color: #fff; padding: 48px 0; text-align: center; }
.mission h2 { color: #fff; }
.mission p { max-width: 860px; margin: 0 auto; font-size: 1.1rem; }

/* Sections */
.section { padding: 72px 0; }
.alt { background: var(--bg-alt); }

.stats { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stats li { border-top: 4px solid var(--navy); background: var(--bg-alt); padding: 20px; }
.stats strong { display: block; font-size: 2rem; color: var(--navy); }
.stats span { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.projects { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.projects figure { margin: 0; background: #fff; border: 1px solid var(--line); }
.projects img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.projects figcaption { padding: 14px 16px; font-weight: 600; color: var(--navy); }

.reviews { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.reviews blockquote { margin: 0; padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--steel); background: #fff; }
.reviews img { max-height: 56px; width: auto; margin-bottom: 12px; }
.reviews p { font-style: italic; }
.reviews footer { color: var(--muted); font-size: .92rem; }

.contact { background: var(--navy); color: #fff; }
.contact h2, .contact h3 { color: #fff; }
.contact a { color: #fff; }
.contact-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact h3 { margin-bottom: .25rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }

.site-footer { background: #10203c; color: #c9d3df; padding: 20px 0; font-size: .9rem; text-align: center; }

@media (max-width: 640px) {
  .hero { padding: 72px 0; }
  .section { padding: 52px 0; }
  .projects, .reviews { grid-template-columns: 1fr; }
}
.contact-phone { font-size: 1.4rem; margin: 0; }
