@import url("./ubuntu.css");
@import url("./raleway.css");

:root {
  --red: #d40000;
  --text: #242424;
  --muted: #f5f3ee;
  --line: #e7e3da;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Ubuntu", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

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

a {
  color: inherit;
}

.site-header {
  height: 184px;
  background: #fff;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(960px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
}

.logo img {
  width: 200px;
  height: 142px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 13px;
}

.desktop-nav a {
  color: #df2626;
  text-decoration: none;
}

.desktop-nav a.active {
  color: #66b532;
}

.desktop-nav .dot {
  color: #61ac31;
  font-size: 12px;
}

.mobile-menu-button {
  display: none;
}

.hero {
  position: relative;
  width: 100%;
  background-position: center;
  background-size: cover;
}

.home-hero {
  height: 392px;
  background-image: url("./home-hero.jpg");
}

.home-hero h1 {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 22px;
  color: #dc2027;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}

.services-hero {
  height: 390px;
  background-image: url("./services-hero.jpg");
  background-position: center 43%;
}

.hero-rule {
  height: 40px;
  border-top: 1px solid #eee9df;
  border-bottom: 1px solid #eee9df;
  background: var(--red);
}

.intro-band {
  padding: 24px 20px 27px;
  color: #fff;
  background: var(--red);
}

.intro-band p {
  width: min(960px, 100%);
  margin: 0 auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  text-align: justify;
}

.content-shell {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.home-content {
  padding-top: 98px;
}

.tab-layout {
  display: grid;
  grid-template-columns: 255px 1fr;
  align-items: stretch;
}

.tab-list {
  display: grid;
  grid-auto-rows: 78px;
  gap: 4px;
}

.tab-button {
  border: 0;
  border-radius: 0;
  padding: 0 28px;
  color: #dc2228;
  background: var(--muted);
  font: inherit;
  font-size: 17px;
  text-align: left;
  cursor: pointer;
}

.tab-button.active {
  border: 4px solid var(--line);
  color: #2c2c2c;
  background: #fff;
}

.tab-panel {
  min-height: 380px;
  border: 4px solid var(--line);
  padding: 105px 28px 35px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel p {
  margin: 0 0 8px;
  text-align: justify;
}

.home-about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  gap: 18px;
  min-height: 594px;
  padding-top: 59px;
}

.home-about-copy {
  align-self: center;
  padding-right: 22px;
  font-size: 15px;
  font-weight: 700;
  text-align: justify;
}

.home-about-copy p {
  margin: 0 0 30px;
}

.button-row {
  text-align: center;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 50px;
  border-radius: 5px;
  color: #fff;
  background: #c90000;
  font-weight: 700;
  text-decoration: none;
}

.home-about img {
  width: 100%;
  object-fit: cover;
}

.media-band {
  min-height: 603px;
  padding: 20px 20px 28px;
  background: #f5f3ed;
}

.media-placeholder {
  position: relative;
  width: min(600px, 100%);
  aspect-ratio: 3 / 2;
  margin: 0 auto 22px;
  background: #c6c6c8;
}

.play-button {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: grid;
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: #606060;
  font-size: 13px;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.contact-icons a {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #a9aaab;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.page-main {
  padding: 38px 0 72px;
}

.page-main h1 {
  margin: 0 0 26px;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 1.1;
}

.page-main p {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: justify;
}

.services-main-image {
  width: 100%;
  margin: 60px 0 42px;
}

.service-section {
  margin-top: 38px;
}

.service-section h2 {
  margin: 0 0 32px;
  color: #db1f26;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.history-title-band {
  padding: 18px 20px 95px;
  color: #fff;
  background: var(--red);
  text-align: center;
}

.history-title-band::before {
  display: block;
  width: min(960px, 100%);
  height: 1px;
  margin: 0 auto 35px;
  background: rgba(255, 255, 255, 0.35);
  content: "";
}

.history-title-band h2 {
  margin: 0;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 38px;
  font-weight: 400;
}

.history-main {
  padding-top: 34px;
}

.history-main h1 {
  margin-bottom: 18px;
  font-size: 46px;
}

.history-main-image {
  width: 100%;
  margin-bottom: 12px;
}

.history-main ul {
  margin: 18px 0;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.history-main li {
  margin-bottom: 3px;
}

.more-heading {
  margin: 203px 0 34px;
  padding-top: 36px;
  border-top: 1px solid #c8c8c8;
  color: #db1f26;
  font-family: "Raleway", Arial, sans-serif;
  font-size: 37px;
  font-weight: 400;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.story-card {
  border: 3px solid var(--line);
  padding: 12px;
  background: #f5f3ed;
}

.story-card + .story-card {
  border-left: 0;
}

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

.story-card h3 {
  margin: 12px 0 18px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
}

.story-card p {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.small-button {
  display: inline-flex;
  height: 42px;
  margin-top: 8px;
  border: 1px solid #aaa;
  padding: 0 22px;
  align-items: center;
  background: #fff;
  font-size: 13px;
  text-decoration: none;
}

.site-footer {
  padding: 37px 20px 38px;
  color: #fff;
  background: var(--red);
}

.footer-inner {
  width: min(960px, 100%);
  margin: 0 auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.footer-inner h2 {
  margin: 0 0 26px;
  font-size: 15px;
}

.footer-inner p {
  margin: 0 0 20px;
}

.footer-inner a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  height: 120px;
  border-top: 12px solid #f1eee7;
  padding-top: 26px;
  color: #555;
  background: #fff;
  font-size: 12px;
  text-align: center;
}

.services-page .page-main {
  padding-bottom: 27px;
}

@media (max-width: 700px) {
  .site-header {
    height: 178px;
  }

  .header-inner {
    display: block;
    width: 100%;
  }

  .logo {
    display: grid;
    height: 142px;
    place-items: center;
  }

  .logo img {
    width: 180px;
    height: 108px;
  }

  .mobile-menu-button {
    display: flex;
    width: 100%;
    height: 36px;
    border: 0;
    border-radius: 0;
    padding: 0 10px;
    align-items: center;
    justify-content: space-between;
    color: #cf1515;
    background: #f1eee5;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
  }

  .menu-icon {
    color: #fff;
    font-size: 24px;
    line-height: 1;
  }

  .desktop-nav {
    position: absolute;
    z-index: 10;
    top: 178px;
    left: 0;
    display: none;
    width: 100%;
    margin: 0;
    padding: 8px 14px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: #f1eee5;
  }

  .desktop-nav.open {
    display: flex;
  }

  .desktop-nav .dot {
    display: none;
  }

  .home-hero {
    height: 106px;
  }

  .home-hero h1 {
    width: calc(100% - 28px);
    padding-top: 15px;
    font-size: 18px;
    line-height: 1.35;
  }

  .services-hero {
    height: 190px;
  }

  .hero-rule {
    height: 25px;
  }

  .intro-band {
    padding: 22px 10px 28px;
  }

  .intro-band p {
    font-size: 13px;
    line-height: 1.65;
  }

  .content-shell {
    width: calc(100% - 20px);
  }

  .home-content {
    padding-top: 34px;
  }

  .tab-layout {
    grid-template-columns: 1fr;
  }

  .tab-list {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 58px;
    gap: 3px;
  }

  .tab-button {
    padding: 0 8px;
    font-size: 13px;
    text-align: center;
  }

  .tab-button.active {
    border-width: 3px;
  }

  .tab-panel {
    min-height: 0;
    border-width: 3px;
    padding: 28px 18px;
    font-size: 14px;
  }

  .home-about {
    display: flex;
    min-height: 0;
    padding: 40px 0 55px;
    flex-direction: column-reverse;
    gap: 38px;
  }

  .home-about-copy {
    padding: 0;
    font-size: 14px;
  }

  .home-about img {
    max-height: none;
  }

  .media-band {
    min-height: 0;
    padding: 16px 10px 24px;
  }

  .page-main {
    padding: 28px 0 50px;
  }

  .page-main h1 {
    font-size: 38px;
  }

  .page-main p {
    font-size: 14px;
  }

  .services-main-image {
    margin: 34px 0 30px;
  }

  .service-section h2 {
    font-size: 30px;
  }

  .history-title-band {
    padding-bottom: 28px;
  }

  .history-title-band h2 {
    font-size: 30px;
  }

  .history-main h1 {
    font-size: 38px;
  }

  .history-main ul {
    font-size: 13px;
  }

  .more-heading {
    margin-top: 50px;
    font-size: 30px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .story-card + .story-card {
    border-left: 3px solid var(--line);
  }

  .site-footer {
    padding: 36px 10px 40px;
  }

  .services-page .page-main {
    padding-bottom: 50px;
  }
}
