:root {
  --blue: #2f5180;
  --blue-dark: #1b2f4b;
  --orange: #f5a952;
  --orange-dark: #b5650f;
  --ink: #23272e;
  --muted: #5a6270;
  --line: #dfe3e8;
  --paper: #ffffff;
  --tint: #f5f3ee;
  --wrap: 1120px;
  --heading: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}

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

a { color: var(--blue); }

h1, h2, h3 {
  margin: 0 0 .5em;
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-dark);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute;
  left: -999px;
  padding: 8px 12px;
  background: var(--paper);
}
.skip:focus { left: 8px; top: 8px; z-index: 10; }

/* To remove the notice site-wide when taking work again, change this to: display: none; */
.notice {
  display: block;
  margin: 0;
  background: var(--orange);
  color: var(--blue-dark);
  font: 700 clamp(1.15rem, 2.6vw, 1.5rem)/1.3 var(--heading);
  text-align: center;
  padding: 16px;
}
.hero .notice-hero {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 14px 22px;
  border-radius: 4px;
  font-size: clamp(1.3rem, 3.2vw, 1.9rem);
  text-align: left;
}

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font: 700 1.2rem/1.2 var(--heading);
  text-decoration: none;
}
.brand img { width: 62px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { border-color: var(--orange); }

.hero {
  background: linear-gradient(90deg, rgba(20, 34, 54, .86), rgba(20, 34, 54, .35)), url("../images/gray-roof.jpg") center / cover;
  color: #fff;
}
.hero .wrap { padding-block: clamp(72px, 13vw, 140px); }
.hero h1 { max-width: 15em; color: #fff; }
.hero p { max-width: 34em; font-size: 1.2rem; }

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 4px;
  background: var(--orange);
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #f9bd76; }

.section { padding-block: clamp(44px, 7vw, 76px); }
.section.tint { background: var(--tint); }
.lede { max-width: 42em; }
.page-title { background: var(--tint); }
.page-title .wrap { padding-block: clamp(36px, 6vw, 60px); }
.page-title h1 { margin-bottom: .2em; }
.page-title p { margin: 0; color: var(--muted); max-width: 40em; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card div { padding: 18px 20px 8px; }

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding-block: 32px;
}
.service + .service { border-top: 1px solid var(--line); }
.service:nth-child(even) img { order: 2; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.service ul { margin: 0 0 1em; padding-left: 1.2em; }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
blockquote {
  margin: 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--orange);
  font: italic 1.15rem/1.5 var(--heading);
}
blockquote footer { margin-top: 10px; color: var(--muted); font: 400 .95rem var(--body); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.gallery span { display: block; padding-top: 8px; color: var(--muted); font-size: .95rem; }

.lightbox {
  max-width: min(94vw, 1200px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #000;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img { max-height: 84vh; margin: auto; }
.lightbox p { margin: 0; padding: 8px 12px; color: #fff; font-size: .95rem; }
.lightbox button {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 6px 12px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 32px;
}
.contact-grid address { font-style: normal; }
.big-link { font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }

.site-footer {
  background: var(--blue-dark);
  color: #d9e0ea;
  font-size: .95rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 32px;
  padding-block: 36px;
}
.site-footer a { color: #fff; overflow-wrap: anywhere; }
.site-footer p { margin: 0 0 .4em; }
.site-footer strong { color: #fff; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--orange-dark); outline-offset: 2px; }

@media (max-width: 720px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) img { order: 0; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 50px; }
}
