:root {
  --blue: #12428e;
  --blue-dark: #0b2f67;
  --ink: #222222;
  --text: #5f6368;
  --muted: #f1f3f5;
  --line: #d8dde4;
  --white: #ffffff;
  --footer: #1f1f1f;
  --shadow: 0 22px 45px rgba(20, 32, 48, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.16;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1080px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo-link {
  flex: 0 0 auto;
}

.logo-link img {
  width: min(240px, 58vw);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  color: #666666;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
}

.nav-contact {
  padding: 9px 16px;
  color: var(--white) !important;
  background: var(--blue);
  border-radius: 4px;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  background: var(--blue-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue);
  content: "";
}

.menu-toggle-bars {
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  position: absolute;
  left: 0;
}

.menu-toggle-bars::before {
  top: -7px;
}

.menu-toggle-bars::after {
  top: 7px;
}

.hero {
  min-height: 500px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 25, 45, 0.62), rgba(10, 25, 45, 0.08)),
    url("../images/exterior-2017.jpg") center / cover no-repeat;
}

.hero-panel {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-panel h1,
.hero-panel p {
  width: min(520px, 100%);
  background: rgba(18, 66, 142, 0.72);
}

.hero-panel h1 {
  padding: 24px 28px 10px;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.35rem);
}

.hero-panel p {
  padding: 0 28px 24px;
  color: var(--white);
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
}

.section {
  padding: 72px 0;
}

.narrow,
.section-heading,
.photo-grid,
.feature-grid,
.contact-layout {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 830px;
  text-align: center;
  font-size: 1.06rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-top: 50px;
}

.photo-grid figure {
  margin: 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.features {
  background: #e5e5e5;
}

.section-heading {
  margin-bottom: 32px;
  text-align: center;
}

.section-heading h2,
.contact-copy h2,
.thanks h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  text-align: center;
}

.feature-grid article {
  padding: 6px 4px;
}

.feature-grid h3 {
  margin-bottom: 18px;
  color: #333333;
  font-size: 1.25rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: 54px;
  align-items: start;
}

.contact-copy {
  padding-top: 10px;
}

.contact-copy p:last-child {
  margin-top: 18px;
  font-size: 1.06rem;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(20, 32, 48, 0.1);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c5ccd5;
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(18, 66, 142, 0.18);
  border-color: var(--blue);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 0;
  border-radius: 4px;
  color: var(--white);
  background: var(--blue);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--blue-dark);
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 4px;
  font-weight: 700;
}

.form-status.is-error {
  display: block;
  color: #8b1e1e;
  background: #fdeaea;
  border: 1px solid #f3b6b6;
}

.thanks {
  min-height: 58vh;
  display: flex;
  align-items: center;
}

.thanks .narrow {
  text-align: left;
}

.thanks p {
  margin: 18px 0 26px;
  font-size: 1.08rem;
}

.site-footer {
  padding: 38px 20px;
  color: var(--white);
  background: var(--footer);
  text-align: center;
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 76px;
    position: relative;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20, 32, 48, 0.12);
  }

  .site-nav.is-open,
  .site-nav.always-visible {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
  }

  .nav-contact {
    text-align: center;
  }

  .hero {
    min-height: 460px;
    align-items: end;
    padding-bottom: 42px;
  }

  .photo-grid,
  .feature-grid,
  .contact-layout,
  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 54px 0;
  }

  .header-inner,
  .narrow,
  .section-heading,
  .photo-grid,
  .feature-grid,
  .contact-layout,
  .hero-panel {
    width: min(100% - 28px, 1080px);
  }

  .hero-panel h1 {
    padding: 20px 20px 8px;
  }

  .hero-panel p {
    padding: 0 20px 20px;
  }

  .contact-form {
    padding: 20px;
  }
}
