/* NEW FONTS */
@font-face {
  font-family: "gunplayregular";
  src: url("fonts/gunplay/gunplay_rg-webfont.woff2") format("woff2"),
    url("fonts/gunplay/gunplay_rg-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "capture_itregular";
  src: url("fonts/capture-it/capture_it-webfont.woff2") format("woff2"),
    url("fonts/capture-it/capture_it-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* COLOR PALETTE */
:root {
  --color-militarygreen: #454b1b;
  --color-primary: #cbc552;
  --color-secondary: #5a603e;
  --color-tertiary: grey;
  --color-accent: #9b0000;
  --color-headings: #565c65;
  --color-body: #8695ab;
  --color-body-darker: #3c4e69;
  --shadow: 0 3px 4px rgba(0, 0, 0, 1), inset 0 -2px 5px rgba(0, 0, 0, 1),
    inset 0 2px 2px rgba(255, 255, 255, 0.5), 0 0 0 2px #000, 0 0 0 5px #0c0c0c,
    0 0 0 5.5px #080808;
}

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

/* TYPOGRAPHY */
html {
  /* in this way 1 rem is 10px*/
  font-size: 62.5%;
}

body {
  font-family: "gunplayregular", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  color: var(--color-body);
  font-size: 2.4rem;
  line-height: 1.5;
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "capture_itregular", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  color: var(--color-headings);
  font-weight: normal;
  margin-bottom: 1rem;
  line-height: 1;
}

.h2--card {
  text-align: center;
  margin-bottom: 4rem;
}

h1 {
  font-size: 6rem;
}

h2 {
  font-size: 4rem;
}

h3 {
  font-size: 3rem;
}

p {
  margin-top: 0;
}

/* Adjust font-sizes for different screen sizes */
@media screen and (min-width: 1024px) {
  body {
    font-size: 1.8rem;
  }

  h1 {
    font-size: 8rem;
  }

  h2 {
    font-size: 4rem;
  }

  h3 {
    font-size: 2.4rem;
  }
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.container-animation {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* LINKS */
a {
  text-decoration: none;
}

.link-arrow {
  color: var(--color-accent);
  text-transform: uppercase;
  font-size: 2rem;
  font-weight: normal;
}

.link-arrow::after {
  content: ">";
  margin-left: 5px;
  transition: margin 0.15s;
}

.link-arrow:hover::after {
  margin-left: 15px;
}

@media screen and (min-width: 1024px) {
  .link-arrow {
    font-size: 1.5rem;
  }
}

/* LISTS */
.list {
  list-style: none;
  padding-left: 0;
  color: var(--color-headings);
}

.list--inline .list__item {
  display: inline-block;
  margin-right: 2rem;
}

.list--tick {
  list-style-image: url(../images/list-tick.png);
  padding-left: 3rem;
}

.list--tick .list__item {
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}

@media screen and (min-width: 1024px) {
  .list--tick {
    padding-left: 2rem;
  }
}

/* BUTTONS */
.btn {
  font-family: "gunplayregular", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem 3rem;
  margin: 1rem 0;
  border: 0;
  border-radius: 40px;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: white;
}

.btn--primary:hover {
  background: #cdc97c;
}

.btn--secondary {
  background: var(--color-secondary);
  color: white;
}

.btn--secondary:hover {
  background: #838c5a;
}

.btn--accent {
  background: var(--color-accent);
  color: white;
}

.btn--accent:hover {
  background: #d73c3c;
}

.btn--notactive {
  background: gray;
  color: white;
}

.btn--stretched {
  padding-left: 6rem;
  padding-right: 6rem;
}

.btn--block {
  width: 100%;
  display: inline-block;
}

@media screen and (min-width: 1024px) {
  .btn {
    font-size: 1.5rem;
  }
}

/* CARD */
.card {
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 0 20px 10px #f3f3f3;
}

.card__header,
.card__body {
  padding: 2rem 3rem;
}

.card__body {
  background: white;
  color: white;
}

.card--primary .card__header {
  background: var(--color-primary);
  color: white;
}

.card--secondary .card__header {
  background: var(--color-secondary);
  color: white;
}

.card--tertiary .card__header {
  background: var(--color-tertiary);
  color: white;
}

.card--accent .card__header {
  background: var(--color-accent);
  color: white;
}

/* PLAN */
.plan {
  margin: 3rem 2rem;
  transition: transform 0.2s ease-out;
}

.plan__name {
  color: white;
  margin: 0;
  font-size: 3.2rem;
}

.plan__period {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.plan__description {
  font-size: 2.4rem;
}

.plan:hover {
  transform: scale(1.05);
  cursor: pointer;
}

@media screen and (min-width: 1024px) {
  .plan__name {
    font-size: 2.8rem;
  }

  .plan__period {
    font-size: 2rem;
  }

  .plan__description {
    font-size: 2rem;
  }
}

/* QUOTES */
.quote {
  font-size: 3rem;
  font-style: italic;
  color: var(--color-body-darker);
  line-height: 1.3;
}

.quote__text::before {
  content: open-quote;
}

.quote__text::after {
  content: close-quote;
}

@media screen and (min-width: 1024px) {
  .quote {
    font-size: 2rem;
  }
}

/* GRIDS */
.grid {
  display: grid;
}

@media screen and (min-width: 768px) {
  .grid--1x2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 1024px) {
  .grid--1x3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .grid--1x2-1fr-auto {
    grid-template-columns: 1fr auto;
  }
}

/* ICONS */
.icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.icon--64 {
  width: 64px;
  height: 64px;
  min-width: 64px;
}

.icon--white {
  fill: white;
  /*filter: invert(85%) sepia(100%) saturate(0%) hue-rotate(136deg)
    brightness(105%) contrast(103%);*/
}

.icon--primary {
  fill: var(--color-primary);
}

.icon-container {
  background: var(--color-accent);
  width: 64px;
  height: 64px;
  border-radius: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 64px;
}

/* TESTIMONIALS */
.testimonial {
  padding: 3rem;
}

.testimonial__image {
  position: relative;
}

.testimonial__image > img {
  width: 100%;
}

.testimonial__image .icon-container {
  position: absolute;
  top: 3rem;
  right: -32px;
}

/* COLLAPSIBLES */
.collapsible__header {
  display: flex;
  justify-content: space-between;
}

.collapsible__heading {
  margin-top: 0;
  font-size: 3rem;
}

.collapsible__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s;
}

.collapsible__chevron {
  transition: transform 0.3s;
}

.collapsible--expanded .collapsible__chevron {
  transform: rotate(-90deg);
}

.collapsible--expanded .collapsible__content {
  max-height: 100vh;
  opacity: 1;
}

/* BLOCKS */
.block {
  --padding-vertical: 4rem;
  padding: var(--padding-vertical) 2rem;
}

.block__noverticalpadding {
  padding: 0 2rem;
}

.block__header {
  text-align: center;
}

.block__heading {
  margin-top: 0;
}

.block--dark {
  background: black;
}

.block--militarygreen {
  background: var(--color-militarygreen);
}

.block--dark .block__heading {
  color: white;
}

.block--primary {
  background: var(--color-primary);
}

.block--skewed-right {
  padding-bottom: calc(var(--padding-vertical) + 4rem);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 95%);
}

.block--skewed-left {
  padding-bottom: calc(var(--padding-vertical) + 4rem);
  clip-path: polygon(0% 0%, 100% 0%, 100% 95%, 0% 100%);
}

@media screen and (min-width: 1024px) {
  .block--skewed-right {
    padding-bottom: calc(var(--padding-vertical) + 4rem);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 90%);
  }

  .block--skewed-left {
    padding-bottom: calc(var(--padding-vertical) + 4rem);
    clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 0% 100%);
  }
}

/* NAVIGATION BAR */
.nav {
  background: black;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.5rem 1rem;
  align-items: center;
}

.nav__list {
  width: 100%;
  margin: 0;
}

.nav__item {
  padding: 0.5rem 2rem;
  border-bottom: 1px solid #222;
}

.nav__item > a {
  color: var(--color-body);
  font-size: 2.5rem;
  transition: color 0.3s;
}

.nav__item > a:hover {
  color: white;
  cursor: pointer;
}

.nav__toggler {
  opacity: 0.5;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.nav.collapsible--expanded .nav__toggler {
  opacity: 1;
  box-shadow: 0 0 0 3px #666;
  border-radius: 5px;
}

.nav__brand {
  transform: translateY(3px);
  height: 10rem;
  width: 10rem;
  margin-left: 2rem;
}

@media screen and (min-width: 768px) {
  .nav__toggler {
    display: none;
  }

  .nav__list {
    width: auto;
    display: flex;
    font-size: 1.6rem;
    max-height: 100%;
    opacity: 1;
  }

  .nav__item {
    border: 0;
  }
}

/* HERO */
.hero__title {
  margin-top: 0;
}

.hero__taggline {
  font-size: 2rem;
  letter-spacing: 1px;
  margin: 2rem 0 5rem;
}

.hero__image {
  width: 100%;
  margin: 3rem 0;
}

@media screen and (min-width: 768px) {
  .hero__image {
    margin-top: 1rem;
    margin-bottom: 0;
  }

  .hero__content {
    text-align: left;
    align-self: center;
  }
}

/* PLANS BLOCK */
.block-plans .grid {
  gap: 2rem;
}

.block-plans-arrow {
  display: flex;
  justify-items: center;
}

.block-plans .card {
  max-width: 500px;
  margin: 0 auto;
}

.block-plans-arrow .link-arrow {
  font-size: 4rem;
  margin: 0 1rem;
}

.block-plans__header {
  display: flex;
  justify-content: left;
  align-items: center;
}

.block--geopolitics .card {
  box-shadow: 0 0 20px 10px #cfca79;
}

@media screen and (min-width: 1024px) {
  .block-plans-arrow .link-arrow {
    margin: 0 3rem;
  }
}

/* FOOTER */
.footer {
  background: #232323;
}

.footer a {
  color: #777;
  transition: color 0.3s;
}

.footer a:hover {
  color: #fff;
}

.footer__section {
  padding: 2rem;
  border-bottom: 1px solid #393939;
}

.footer__section .list {
  margin: 0;
}

.footer__heading {
  text-transform: uppercase;
  font-weight: normal;
}

.footer__brand {
  margin-top: 5rem;
  text-align: center;
}

.footer__brand img {
  /* TODO: Consider refactoring this and applying it to 
  all images. */
  width: 100%;
  max-width: 230px;
}

.footer__copyright {
  font-size: 2.1rem;
  color: #fff;
  opacity: 0.3;
}

@media screen and (min-width: 768px) {
  .footer {
    font-size: 2rem;
  }

  .footer__sections {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }

  .footer .collapsible__chevron {
    display: none;
  }

  .footer .collapsible__content {
    opacity: 1;
    max-height: 100%;
  }

  .footer__brand {
    order: -1;
    margin-top: 1rem;
  }

  .footer__copyright {
    font-size: 1.5rem;
  }

  .footer__section {
    border: 0;
  }

  .footer__heading {
    font-size: 2.5rem;
    font-weight: normal;
  }
}

/* Align text right */
.txt--right-align {
  text-align: right;
}
