/* Peter D Stirling – static holding page
   Ported from the X/Integrity WordPress theme. Values match the live site. */

:root {
  --site-width: 88%;
  --site-max-width: 1200px;
  --red: #d92f25;
  --red-hover: #ef2201;
  --dark: #272727;
  --rule: #999;
  --form-bg: #555;
  /* System sans-serif stack: no web-font download, looks native on every device. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mid: #595959;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  border-top: 2px solid #ddd;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: #fff;
  background: #fff;
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: #fff; text-decoration: none; }
p { margin: 0 0 1.313em; }

h1, h2, h3, h4, h5, h6 {
  margin: 1.313em 0 0.5em;
  font-weight: normal;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--dark);
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  padding: 0.5em 1em; background: #fff; color: var(--dark); z-index: 2000;
}
.skip-link:focus { left: 0; }

.container { width: var(--site-width); max-width: var(--site-max-width); margin: 0 auto; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Top bar ------------------------------------------------------------ */
.topbar {
  position: relative;
  min-height: 46px;
  border-bottom: 1px solid #f2f2f2;
  background: #fff;
  text-align: center;
}
.topbar p {
  margin: 0;
  padding: 13px 1em 0;
  font-size: 15px;
  line-height: 1.3;
  color: #555;
}
.topbar a { color: #555; border-bottom: 1px dotted; }
.topbar a:hover { color: var(--dark); }

@media (max-width: 979px) {
  .topbar p { padding: 0.8em 1em 1em; background: #f6f6f6; border-radius: 0 0 4px 4px; }
}

/* Sections ----------------------------------------------------------- */
.section { position: relative; display: block; }

.bg-image {
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}

.hero {
  margin: 0 0 45px;
  padding: 45px 0;
  min-height: 440px;
  background-image: url(images/heroimage.jpg);
}

/* Logo + "Established 1870" --------------------------------------------- */
.brand {
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translate(0, -45px);
  animation: brand-in 750ms ease forwards;
}
@keyframes brand-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .brand { animation: none; opacity: 1; transform: none; }
}
.brand img { max-width: 250px; margin-bottom: 1.313em; }
.logotag {
  max-width: 250px;
  margin: 0 auto 50px;
  padding: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--mid);
}
.logotag p { margin: 0; }

/* Headline block --------------------------------------------------------- */
.intro { margin: 0; padding: 0 0 45px; }
.intro .h1 {
  margin: 0;
  padding: 0;
  font-size: 30px;
  letter-spacing: 2.2px;
  font-weight: 500;
}
.intro .h2 {
  margin: 15px 0 45px;
  padding: 0;
  font-size: 20px;
  letter-spacing: 8px;
  color: var(--mid);
}
.intro .h5 {
  margin: 0;
  padding: 50px 0;
  font-size: 150%;
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .intro .h1 { font-size: 18px; letter-spacing: 1.5px; }
  .intro .h2 { font-size: 15px; letter-spacing: 4px; }
  .intro .h5 { font-size: 20px; }
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-block;
  position: relative;
  z-index: 2;
  padding: 0.563em 1.125em 0.813em;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: #fff;
  background: var(--red);
  border: 1px solid #000;
  border-radius: 0.25em;
  text-shadow: 0 0.075em 0.075em rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn:hover, .btn:focus { color: #fff; background: var(--red-hover); border-color: #600900; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Location --------------------------------------------------------------- */
.location {
  margin: 0;
  padding: 45px 0;
  background-color: hsla(0, 0%, 0%, 0.13);
  background-image: url(images/arialshot.jpg);
}
/* Light veil so the address stays legible over the aerial photo */
.location::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
}
.location .container { position: relative; }
@media (min-width: 980px) {
  .location { background-attachment: fixed; }
}
.location .container { padding: 35px 0 0; }
.location .inner { padding: 45px 0; }
.location .address {
  margin: 0;
  padding: 0;
  font-size: 171.4%;
  letter-spacing: 0;
  font-weight: 600;
  color: #111;
}
.location .tel {
  margin: 50px 0 0;
  font-size: 30px;
  color: #111;
}
.location .tel a { color: #111; font-weight: 600; }
.location .tel a:hover { text-decoration: underline; }

/* "Find us on Google Maps" – text slides up and a map icon fades in on hover */
.map-cta {
  display: block;
  position: relative;
  overflow: hidden;
  margin: 69px 0 0;
  padding: 25px;
  border: 0;
  text-align: center;
  color: #111;
  background: transparent;
  transition: background-color 0.3s ease;
}
.map-cta > span { display: block; transition: all 0.65s cubic-bezier(0.23, 1, 0.32, 1); }
.map-cta .text { font-size: 25px; line-height: 1.2; opacity: 1; }
.map-cta .graphic {
  position: absolute;
  top: 50%; left: 50%;
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  line-height: 1;
  opacity: 0;
}
.map-cta .graphic svg { width: 48px; height: 48px; fill: currentColor; }
.map-cta:hover .text, .map-cta:focus .text { opacity: 0; transform: translateY(-150%); }
.map-cta:hover .graphic, .map-cta:focus .graphic { opacity: 1; }

/* Contact form ------------------------------------------------------------- */
.contact {
  margin: 0;
  padding: 45px 0;
  background: var(--form-bg);
}
.contact .form-title {
  margin: 0 0 1.313em;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  color: #fff;
}
.fields { list-style: none; margin: 0; padding: 0; }
.fields > li + li { margin-top: 1.313em; }
.field-label {
  display: block;
  margin: 0 0 0.4377em;
  font-size: 1rem;
  line-height: 1.3;
  color: #fff;
}
.required { margin: 0 1px; color: #ffb3ad; }

.contact input[type="text"],
.contact input[type="email"],
.contact input[type="tel"],
.contact textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 0.65em;
  height: 2.9em;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  color: var(--dark);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  appearance: none;
}
.contact textarea { height: auto; padding: 0.433em 0.65em; resize: vertical; }
.contact input:focus, .contact textarea:focus {
  outline: 0;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px rgba(0, 0, 0, 0.25);
}

.name-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.name-row > span { flex: 1 1 calc(50% - 8px); min-width: 0; }
.name-row input + label {
  display: block;
  margin: 5px 0 0;
  font-size: smaller;
  line-height: 1;
  color: #e6e6e6;
}

.choice { display: flex; align-items: center; margin: 0.2626em 0 0; }
.choice input { margin: 0; }
.choice label { margin: 0 0.5em; color: #fff; }

.form-footer { margin-top: 1.9695em; }
.form-note { margin: 1em 0 0; font-size: 0.9375rem; color: #fff; }
.form-note.error { color: #ffd3cf; }
.form-done { margin: 0 auto; padding: 100px 0; text-align: center; font-size: 1.125rem; }

.turnstile-field .cf-turnstile { min-height: 65px; }

/* Honeypot – kept out of sight of people, visible to bots */
.hp-field { position: absolute !important; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

@media (max-width: 641px) {
  .name-row > span { flex-basis: 100%; }
  .name-row > span + span { margin-top: 1.313em; }
}

/* MIRP logo ---------------------------------------------------------------- */
.partner { margin: 0; padding: 45px 100px; }
.partner a { display: block; max-width: 150px; margin: 0 auto; }
@media (max-width: 767px) { .partner { padding: 45px 20px; } }

/* Footer ------------------------------------------------------------------- */
.colophon {
  padding: 10px 0;
  font-size: 10px;
  text-align: center;
  color: #7a7a7a;
  background: #000;
}
.colophon ul { list-style: none; margin: 10px 0; padding: 0; line-height: 1.3; }
.colophon li { display: inline-block; margin: 0 0.5em; }
.colophon a {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}
.colophon a:hover { color: var(--red); }

/* Back to top -------------------------------------------------------------- */
.scroll-top {
  position: fixed;
  z-index: 10000;
  right: 10px;
  bottom: 10px;
  width: 35px;
  height: 35px;
  margin-bottom: -75px;
  padding: 0;
  border: 2px solid var(--dark);
  border-radius: 100%;
  background: transparent;
  color: var(--dark);
  opacity: 0;
  cursor: pointer;
  transition: margin-bottom 0.6s ease, opacity 0.3s ease;
}
.scroll-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.scroll-top.in { margin-bottom: 0; opacity: 0.375; }
.scroll-top.in:hover { opacity: 0.825; }

/* Legal pages ------------------------------------------------------------ */
.legal { padding: 45px 0 90px; color: var(--dark); }
.legal .brand { margin: 0 0 30px; }
.legal h1 { font-size: 30px; letter-spacing: 2.2px; margin: 0 0 1em; }
.legal a { color: var(--red); }
.legal .back { display: inline-block; margin-top: 2em; font-size: 14px; }
