/* Integrated Emergency Management Solutions
   Shared styles for the static site. Colours and type match the published page:
   page grey #696969, hero fallback #161616, Karla for the hero and section
   titles, Old Standard TT for body text. */

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/karla-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Old Standard TT";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/old-standard-tt-400.woff2") format("woff2");
}

@font-face {
  font-family: "Old Standard TT";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/old-standard-tt-700.woff2") format("woff2");
}

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

body {
  margin: 0;
  background: #696969;
  color: #ffffff;
  font-family: "Old Standard TT", Georgia, serif;
  font-size: 16px;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 600px;
  padding: 0 32px 40px;
  background: #161616 url("../assets/hero.jpg") center center / cover no-repeat;
  color: #ffffff;
}

.logo {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  display: block;
  width: 224px;
  max-width: none;
  height: auto;
}

.hero-inner {
  width: 100%;
}

.hero h1 {
  max-width: 22em;
  color: #ffffff;
  font-family: "Karla", "Helvetica Neue", Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
  text-align: left;
}

/* Sections */

.band {
  padding: 40px 0;
}

.wrap {
  width: min(1048px, calc(100% - 48px));
  margin: 0 auto;
}

.band h2 {
  margin: 0 0 40px;
  color: #ffffff;
  font-family: "Karla", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 2px;
  text-align: center;
}

.about-rows {
  display: grid;
  gap: 48px;
}

.about-row {
  display: grid;
  gap: 24px;
  align-items: start;
}

.about-row img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.about-copy h4,
.values h3,
.contact-intro {
  color: #ffffff;
  font-family: "Old Standard TT", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 2px;
  text-align: center;
}

.about-copy h4 {
  margin: 0 0 24px;
}

.about-copy p,
.values p,
.address {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

/* Our Values.
   The published page lists a photo for each block, but that layer is hidden
   (it does not paint). These blocks are flat grey text, matching what visitors see.
   The photo files are still in assets/value-*.jpg if a later edit needs them. */

.values {
  display: grid;
  gap: 0;
}

.value {
  padding: 72px 40px;
  text-align: center;
}

.values h3 {
  margin: 0 0 16px;
}

/* Contact */

.contact-intro {
  max-width: 683px;
  margin: 0 auto 24px;
}

.contact-form {
  max-width: 683px;
  margin: 0 auto;
  text-align: center;
}

.field {
  position: relative;
  margin: 0 0 24px;
  text-align: left;
}

.field label {
  display: block;
  margin: 0 0 4px 8px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  font-family: "Old Standard TT", Georgia, serif;
  font-size: 16px;
  line-height: 1.4;
}

.field input {
  height: 52px;
}

.field textarea {
  height: 129px;
  resize: vertical;
}

.field textarea::placeholder {
  color: #ffffff;
  opacity: 1;
}

.field input:hover,
.field input:focus,
.field textarea:hover,
.field textarea:focus {
  background: #5d5d5d;
  outline: none;
}

.send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  height: 56px;
  margin: 8px 0 0;
  padding: 8px 40px;
  border: 1px solid #ffffff;
  border-radius: 48px;
  background: transparent;
  color: #ffffff;
  font-family: "Karla", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
}

.send:hover,
.send:focus {
  background: #ffffff;
  color: #000000;
}

.form-note {
  max-width: 683px;
  margin: 32px auto 0;
  padding: 12px 16px;
  border: 1px dashed #ffffff;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}

.form-note a {
  text-decoration: underline;
}

.address {
  margin: 40px 0 0;
}

/* Footer */

.site-footer {
  padding: 40px 24px;
  color: #ffffff;
  text-align: center;
}

.footer-id {
  width: min(1112px, 100%);
  margin: 0 auto;
}

.biz-name {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.footer-id p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.footer-id p:last-child {
  margin-bottom: 0;
}

.legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .logo img {
    width: auto;
    height: 88px;
  }
}

@media (min-width: 768px) {
  .band {
    padding: 100px 0;
  }

  .band h2 {
    margin-bottom: 100px;
  }

  .about-row {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .about-row.flip .about-copy {
    order: -1;
  }

  .values {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    max-width: 85%;
    font-size: 42px;
    letter-spacing: 4px;
  }

  .site-footer {
    padding: 56px 56px;
  }

  .legal {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
    text-align: left;
  }

  .copy {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 85vh;
    padding: 0 0 72px;
  }

  .logo {
    top: 16px;
  }

  .logo img {
    width: 531px;
    height: auto;
  }

  .hero-inner {
    width: min(1112px, calc(100% - 48px));
    margin: 0 auto;
  }
}

@media (min-width: 1280px) {
  .hero h1 {
    font-size: 54px;
  }
}

@media (min-width: 1536px) {
  body {
    font-size: 18px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .band h2 {
    font-size: 21px;
  }

  .about-copy h4,
  .values h3,
  .contact-intro {
    font-size: 24px;
  }
}
