/* Font Faces */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../webfonts/open-sans-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../webfonts/open-sans-bold.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: url('../webfonts/roboto-slab-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  src: url('../webfonts/roboto-slab-bold.woff2') format('woff2');
}

/* Root Variables */
:root {
  --primary-color: #DA251C;
  --secondary-color: #007CC2;
  --text-color: #003452;
}

/* Container */
.container {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Icon */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* Icon Box */
.icon-box {
  font-size: 2rem;
  margin-right: 1.5rem;
  color: #FFFFFF !important;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--primary-color);
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

/* Button */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #FFFFFF;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  margin-right: 1rem;
  transition: background-color 0.3s ease;
}

.button::before {
  content: "→";
  margin-right: 0.35rem;
  display: inline-block;
}

.button:hover {
  background-color: color-mix(in srgb, var(--primary-color) 80%, #000000);
}

/* Columns */
.col-image,
.col-text {
  flex: 1;
}

.col-image img {
  max-height: 12rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 992px) {
  .col-image img {
    max-height: none;
  }

  .col-text {
    padding: 2rem 0 !important;
  }
}

/* Typography */
body {
  font-family: 'Open Sans', sans-serif;
}

p {
  color: var(--text-color);
  line-height: 1.5;
}

h1 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 3rem;
  color: #FFFFFF;
  margin: 0.5rem 0 1rem 0;
}

h2 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 2rem;
  margin: 0.5rem 0 1rem 0;
}

h3 {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0;
}

.eyebrow {
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  margin: 0 0 1rem 0;
}

.field-label {
  font-size: 0.83em;
  font-weight: 400;
  color: var(--text-color);
  text-transform: uppercase;
  margin: 0;
}

p {
  margin: 0;
}

a:hover {
  text-decoration: none;
}

/* Header */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
}

header .card {
  display: none;
}

header .card > .icon-box,
header .card > .icon {
  display: none !important;
}

header .card.emergency-number {
  display: flex;
  flex-direction: row-reverse;
  text-decoration: none;
  color: inherit;
  text-transform: uppercase;
  text-align: right;
}

header .card.emergency-number p {
  line-height: 1.15;
}

header .card.emergency-number:hover .icon-box {
  background-color: color-mix(in srgb, var(--primary-color) 80%, #000000);
}

header .card.emergency-number strong {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

header .card.emergency-number:hover strong {
  color: color-mix(in srgb, var(--primary-color) 80%, #000000);
}

@media (min-width: 576px) {
  header .card {
    align-items: center;
  }

  header .card > .icon-box,
  header .card > .icon {
    font-size: 2rem;
    display: flex !important;
    color: var(--secondary-color);
    margin-left: 1.5rem;
  }
}

@media (min-width: 992px) {
  header .general-information {
    display: flex;
    gap: 3rem;
  }

  header .card {
    display: flex;
  }

  header .card > .icon-box,
  header .card > .icon {
    margin-left: 0;
    margin-right: 1rem;
  }

  header .card a {
    color: inherit;
  }

  header .card.emergency-number {
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 1200px) {
  header .general-information {
    gap: 5rem;
  }

  header .card > .icon-box,
  header .card > .icon {
    margin-right: 1.5rem;
  }
}

/* Hero Section */
section.hero .content {
  background: url('../img/hero.webp') center / cover no-repeat;
  position: relative;
  min-height: 500px;
  padding-top: 4rem;
}

section.hero p {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  color: #FFFFFF;
  margin: 0;
  max-width: 20rem;
}

section.hero .statistics .container {
  transform: translateY(-4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

section.hero .statistics .row {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: stretch;
  gap: 0.75rem;
}

section.hero .statistics .card {
  flex: 1;
  background-color: #FFFFFF;
  border-bottom: .5rem solid var(--primary-color);
  text-align: center;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

section.hero .statistics .number {
  font-family: 'Roboto Slab', serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--primary-color);
  margin: 0;
  display: block;
}

section.hero .statistics .label {
  text-transform: uppercase;
  margin: 0;
  display: block;
  font-size: .75rem;
}

@media (min-width: 768px) {
  section.hero .statistics .container {
    flex-direction: row;
  }
}

@media (min-width: 992px) {
  section.hero p {
    max-width: 25rem;
  }
}

/* Recruitment Section */
section.recruitment .container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

section.recruitment .col-image img {
  object-position: center 40%;
}

section.recruitment ul {
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

section.recruitment li {
  list-style: none;
  display: flex;
}

section.recruitment .icon-box {
  margin-top: .2rem;
}

@media (min-width: 992px) {
  section.recruitment .container {
    flex-direction: row;
  }
}

/* JSP Section */
section.jsp {
  background-color: var(--text-color);
  color: #FFFFFF;
  margin-top: 4rem;
}

section.jsp .container {
  display: flex;
  flex-direction: column-reverse;
  gap: 1.5rem;
  padding: 0;
}

section.jsp .col-image img {
  object-position: left 30%;
}

section.jsp .col-text {
  padding: 0 0.75rem;
}

section.jsp .eyebrow {
  color: color-mix(in srgb, var(--primary-color) 55%, #FFFFFF);
}

section.jsp p {
  color: #FFFFFF;
  margin: 1rem 0;
}

section.jsp .actions {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

section.jsp .button {
  margin-top: 1rem
}

@media (min-width: 992px) {
  section.jsp .container {
    flex-direction: row;
    padding: 0 0.75rem;
  }
}

/* Footer */
footer {
  margin-top: 8rem;
  background-color: var(--text-color);
}

footer .box {
  border-top: .5rem solid var(--primary-color);
  background-color: #FFFFFF;
  transform: translateY(-4rem);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

footer .information {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

footer img {
  display: none;
}

footer .row {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1.5rem;
}

footer .contact-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

footer .contact-item {
  display: flex;
  align-items: top;
  flex: 1;
}

footer .contact-item p,
footer .contact-item a {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #000000;
}

footer .contact-item .icon {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-right: 1rem;
}

footer .social-media a {
  color: var(--text-color);
  text-decoration: none;
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  display: flex;
  flex: 1;
  align-items: center;
  color: inherit;
}

footer .social-media a span {
  text-decoration: underline;
}

footer .social-media .icon {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

footer .social-media a:hover span {
  text-decoration: none;
}

footer .social-media a:hover .icon {
  color: var(--text-color);
}

footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

footer .copyright p {
  color: #FFFFFF;
  padding: 1rem 0;
}

@media (min-width: 768px) {
  footer .row {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  footer img {
    display: inherit;
  }
}