:root {
    --primary-grey: #1A1818;
    --primary-orange: #F5821D;
    --primary-silver: #949CA1;
    --jet-black: #000000;
    --primary-blue: #07509e;
    --header-height: 69px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.205);
  }
  
  /* font faces */
  @font-face {
    font-family: "GLOCK Sans Light";
    src: url("../fonts/GLOCKSans-Light.woff2") format("woff2");
  }
  
  @font-face {
    font-family: "GLOCK Sans Bold";
    src: url("../fonts/GLOCKSans-Bold.woff2") format("woff2");
  }
  
  @font-face {
    font-family: "GLOCK Sans Regular";
    src: url("../fonts/GLOCKSans-Regular.woff2") format("woff2");
  }
  
  @font-face {
    font-family: "Roboto Mono Light";
    src: url("../fonts/RobotoMono-Light.ttf") format("truetype");
  }
  
  @font-face {
    font-family: "Roboto Mono Regular";
    src: url("../fonts/RobotoMono-Regular.ttf") format("truetype");
  }

  :root {
    --dark-green: #c7e2c5;
    --green: #c7e2c5;
    --green-selected: #b6ceb4;
    --black: #000;
    --gray-dark: #555;
    --fw-bold: 700;
    --fw-normal: 400;
    --spacing: 1rem;
  }

  html {
    scroll-padding-top: var(--header-height);
  }
  
  body {
    margin: 0;
    line-height: 1.7;
    color: #fff;
    font-family: "GLOCK Sans Regular", Arial, sans-serif;
    line-height: normal;
  }
  
  header {
    position: fixed;
    width: 100%;
    z-index: 3;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: var(--jet-black);
  }

  .pledge-text::before,
.pledge-text::after {
  pointer-events: none;
}
  
  .glock-logo {
    height: 45px;
  }
   
  .social-header {
    display: flex;
    flex-direction: row;
  }
  
  .social {
    margin: 2px;
    /* width: 20px; */
    display: flex;
    align-items: center;
  }
  
  .site-footer {
    background: #333333;
    color: white;
    padding: 30px 20px;
    font-size: 0.9rem;
  }
  
  .footer‐links {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .footer‐section h4 {
    margin: 0 0 8px;
    color: #aaa;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .footer‐section ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .footer‐section ul li {
    margin-bottom: 6px;
  }
  
  .footer‐section ul li a,
  .footer‐section ul li small {
    transition: all 0.2s;
    color: white;
    text-decoration: none;
  }
  
  .footer‐section ul li a:hover {
    color: var(--primary-orange);
  }
  
  .footer‐social {
    display: flex;
    justify-content: center;
    margin-top: 25px;
  }
  
  .footer‐social .social {
    width: 32px;
    height: 32px;
    fill: #aaa;
    transition: fill 0.2s;
  }
  
  .footer‐social .social:hover {
    fill: #fff;
  }
  
  @media (min-width: 768px) {
    .site-footer {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }
  
    .footer‐links {
      flex-direction: row;
      gap: 60px;
    }
  
    .footer‐social {
      margin-top: 0;
      justify-content: flex-end;
    }
  }

  /* END HEADER FOOTER */

  section.safety-intro {
    padding-top: var(--header-height);
  }
  
  section.safety-intro .container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* INTRO */
  .safety-intro__title {
    font-size: 2.8rem;
    font-family: 'GLOCK Sans Bold', Arial, sans-serif;
    text-align: center;
    color: var(--black);
    margin-bottom: var(--spacing);
    line-height: 1.1;
    max-width: 620px;
  }
  
  .safety-intro__divider {
    max-width: 90%;
    width: 680px;
    height: 4px;
    background-color: var(--dark-green);
    margin: 0 auto var(--spacing) auto;
  }

  @media (max-width: 600px) {
    .safety-intro__divider {
      width: 80%;
    }
  }
  
  .safety-intro__subtitle {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    text-align: center;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
  }

  .pledges-counter {
    font-size: 2.25rem;
    font-weight: var(--fw-bold);
    text-align: center;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
    color: var(--gray-dark)
  }
  
  .safety-intro__lead {
    text-align: center;
    color: var(--gray-dark);
    font-size: 1rem;
    margin-bottom: var(--spacing);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    padding: 0 20px;
  }

  /* NAV */
  .safety-nav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
  }
  
  ul.safety-nav__list a {
    display: inline-block;
    padding: 0.4rem 1rem;
    color: var(--black);
    font-weight: var(--fw-bold);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: var(--green);
    min-width: 160px;
    text-align: center;
  }

  ul.safety-nav__list a:hover {
    background: var(--green-selected);
  }

  @media (max-width: 600px) {

    .safety-nav__list {
        flex-direction: column;
        align-items: center;
    }

    ul.safety-nav__list a {
        min-width: 160px;
        text-align: center;
    }
  }
  
  .safety-nav__list a.is-active,
  .safety-nav__list a:hover {
    /* background-color: var(--green-selected); */
    background-color: var(--dark-green);
  }
  
  /* SAFE STORAGE */
  .safe-storage__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;

  }
  
  .safe-storage__header h2 {
    max-width: 485px;
    text-align: center;
    font-size: 2.4rem;
    font-family: 'GLOCK Sans Bold', Arial, sans-serif;
    font-weight: var(--fw-bold);
    color: black;
    margin: 0;
    margin-top: 50px;
  }
  @media screen and (max-width: 600px) {
    .safe-storage__header h2 {
      font-size: 1.8rem;
    }
    
  }
  
  .safe-storage__icon {
    width: 64px;
    height: 64px;
    -webkit-user-drag: none;
  }
  
  .safe-storage__text {
    max-width: 700px;
    margin: 1rem auto;
    margin-bottom: 18px;
    color: var(--gray-dark);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    padding: 0 20px;
  }
  
  .safe-storage__divider {
    width: 100%;
    height: 3px;
    background-color: var(--green);
    margin: 2rem auto 0;
  }

/* SAFE HANDLING RULES BLOCKS */
.follow-the-four {
    overflow: hidden;
    padding: 2rem;
    padding-bottom: 0;
    background: #fff;
  }
  
  .rules-grid {
    display: flex;
    gap: 0.5rem;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .rule {
    background: #d9ead8;
    border-radius: 1px;
    padding: 1rem;
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 280px;
    height: 280px;
    color: #2d1817;
  }

  /* 1st card: bullet */
.rules-grid .rule:nth-child(1)::before {
    z-index: 2;
    content: "";
    position: absolute;
    bottom: -50px;
    right: -27px;
    width: 100px;
    height: 100px;
    background: url(/assets/bullet.png) no-repeat center / contain;
  }
  
  /* 4th card: target */
  .rules-grid .rule:nth-child(4)::before {
    z-index: 2;
    content: "";
    position: absolute;
    top: -17px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: url("/assets/target.png") no-repeat center/contain;
  }
  
  .rule-header {
    display: flex;
    align-items: center;
    flex-direction: row;
    align-items: start;
  }

  .rule-number {
    display: inline-block;
    font-size: 4.5rem;
    font-weight: 700;
    color: white;
    margin-right: 0.5rem;
  }
  
  .rule-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .rule h4 {
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
    line-height: 1.3;
    text-transform: uppercase;
    font-weight: var(--fw-bold);
    font-family: "GLOCK Sans Bold", Arial, sans-serif;
  }

  .rule-header.rule-four h4 {
    margin-right: 3.1rem;
  }
  
  
  .rule p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
  }

  .rule:nth-child(odd) {
    background: var(--dark-green);
  }
  
  @media (max-width: 600px) {
    .rules-grid .rule {
      flex: 0 0 100%;
    }
  }


.rules-extra {
    padding: 40px 60px 40px;
  }
  
  .rules-extra-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-content: center;
    margin-bottom: 40px;
  }
  
  .rules-extra-grid .rule {
    background: #d9ead8;
    border-radius: 1px;
    padding: 1rem;
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 280px;
    height: 250px;
    color: #2d1817;
    font-size: 0.975rem;
    line-height: 1.4;
  }
  
  .rules-extra-grid .rule:nth-child(odd) {
    background: var(--dark-green);
  }

    @media (max-width: 600px) {
    .rules-extra-grid .rule {
      flex: 0 0 100%;
      width: 100%;
    }
    .rules-extra {
      padding-left: 0;
      padding-right: 0;
      padding-top: 0.5rem;
    }
  }

  .rules-extra {
    max-height: 0;
    transition: all 0.8s ease;
    padding: 0;
    overflow: hidden;
  }
  
  .rules-extra.open {
    overflow: visible;
    max-height: 2000px;
  }

  .extra-rules-button-container {
    display: flex;
    justify-content: center;
  }

  .toggle-rules-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    font-weight: var(--fw-bold);
    cursor: pointer;
    color: #222;
    border: solid var(--dark-green) 1px;
    border-radius: 20px;
    padding: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
  }

  .toggle-rules-btn:hover {
    background-color: var(--dark-green);
  }
  
  .toggle-rules-btn::before,
  .toggle-rules-btn::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ccc;
  }
  .toggle-rules-btn::before { margin-right: 0.75em; }
  .toggle-rules-btn::after  { margin-left:  0.75em; }
  
  /* chevron arrow */
  .toggle-rules-btn .chevron {
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 0.7em;
  }
  
  /* flipped state */
  .toggle-rules-btn[aria-expanded="true"] .chevron {
    transform: rotate(-135deg);
  }
  

    /* FOLLOW THE FOUR */

section#follow-the-four {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    padding-bottom: 0;
}

  
  .follow-the-four__image {
    height: 80px;
    width: auto;
  }

  @media (max-width: 600px) {
    .follow-the-four__image {
      height: 60px;
    }
  }

  .handling-text {
    max-width: 600px;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 1rem auto;
    line-height: 1.7;
  }

  #safe-storage.caution-section {
    position: absolute;
  }

  .caution__icon {
    width: 50px;
    height: 50px;
    -webkit-user-drag: none;
    transform: rotate(15deg);
    position: relative;
    top: -34px;
    right: 82px;
  }

  @media screen and (max-width: 600px) {
    .caution__icon {
        display: none;
    }
    
  }

  .glock-button {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 44px;
    font-size: 0.7rem;
    padding: 10px;
    background-color: var(--primary-orange);
    color: white;
    font-family: "GLOCK Sans Regular", Arial, sans-serif;
    border: none;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 0.0625rem 0.0625rem 0 rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }
  
  .glock-button:hover {
    background-color: #282828;
  }
  .glock-button::before {
    background: linear-gradient(
      90deg,
      hsla(0, 0%, 100%, 0.2),
      hsla(0, 0%, 100%, 0.2) 20%,
      transparent 0,
      transparent 40%,
      hsla(0, 0%, 100%, 0.2) 0,
      hsla(0, 0%, 100%, 0.2) 60%,
      transparent 0,
      transparent 80%,
      hsla(0, 0%, 100%, 0.2) 0,
      hsla(0, 0%, 100%, 0.2)
    );
    bottom: 0;
    content: "";
    position: absolute;
    right: 0.4375rem;
    top: 0;
    width: 2.0625rem;
  }

  .grecaptcha-badge { 
    visibility: hidden !important;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  html::-webkit-scrollbar {
    width: 0; background: transparent; 
  }

.hidden {
    opacity: 0;
    display: none;
    transition: all 1s ease-in-out;
  }
  
  .visible {
    display: block;
    opacity: 1;
    transition: all 1s ease-in-out;
  }
  
  #pledge-form {
    opacity: 1;
    transition: all 1s ease-in-out;
  }
  
  #pledge-form.fade-out {
    opacity: 0;
  }
  
  .thank-you-message {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 485px;
    font-family: inherit;
    color: #2d1817;
  }
  .thank-you-message h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .thank-you-message p {
    padding: 0 20px;
    font-size: 1.3rem;
    line-height: 1.4;
    max-width: 622px;
    margin-bottom: 1rem;
  }
  
  #thank-you-container {
    /* background-color: #353535; */
    /* padding: 2rem 1rem; */
  }

  @media (max-width: 750px) {
    .thank-you-message h2 {
      font-size: 1.5rem;
    }
    .thank-you-message p {
      font-size: 1.0rem;
    }
  }