/*
 Theme Name:   Adam Pugh
 Theme URI:    https://wordpress.org/themes/twentyninteen/
 Description:  Custom theme built for Adam Pugh
 Author:       
 Template:     twentynineteen
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  adam-pugh
*/

/* ========= COLOR REFERENCES ========= */
:root {
  --primary: #00416a;
  --secondary: #e1251b;
  --tertiary: #5eb3e5 !important;
  --dark-grey: #353535;
  --medium-grey: #54565a;
  --light-grey: #e5e6e6;
}

/* ==================================== */

/* ======== TABLE OF CONTENTS =========
	1. TYPOGRAPHY
	2. GLOBAL
	3. MAIN CONTENT
	- 3a. Landing Page
	- 3a. About Page
/* ==================================== */

/* ------------------------------ 
    1. Start Typography
------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6,
a,
ul,
.btn,
button {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  margin: 0;
}

.display-1 {
  font-size: 200px;
  line-height: 0.8;
}

h1,
.h1 {
  font-size: 64px;
  line-height: 1;
}

h2,
.h2 {
  font-size: 36px;
}

h3,
.h3 {
  font-size: 24px;
}

p,
.p {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

a,
.anchor-theme {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  text-decoration: none !important;
  color: var(--dark-grey) !important;
  transition: none;
  border: none;
  background: none;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.menu {
  display: flex;
  list-style: none;
}

.menu-item {
  padding: 0 10px;
}

.menu-item a:focus,
.menu-item a:hover {
  color: var(--primary) !important;
  font-weight: 700;
}

.main-menu-more {
  display: none;
}

.nav-link {
  padding: 0.5rem;
}

nav a {
  color: var(--medium-grey);
}

nav .current-menu-item a {
  font-weight: 700;
  color: var(--primary) !important;
  border-bottom: 2px solid var(--secondary);
}

header .site-logo img {
  max-width: 170px;
  margin: auto;
}

/* ------------------------------ 
    1. End Typography
------------------------------ */

/* ------------------------------ 
    2. Start Global
------------------------------ */
@-ms-viewport {
  width: device-width;
}

html {
  font-size: 16px;
}

body {
  font-family: "Roboto Flex", sans-serif;
  font-size: 16px;
  /* Adjust this on mobile to globally change P-tags :NOT H-tags) */
  line-height: 1.5;
  color: var(--dark-grey);
}

.bebas-neue {
  font-family: "bebas-neue-pro", sans-serif;
}

.roboto {
  font-family: "Roboto Flex", sans-serif;
}

.ls-18 {
  letter-spacing: 1.8px;
}

.ls-100 {
  letter-spacing: 0.1em;
}

.white {
  color: white !important;
}

.secondary {
  color: var(--secondary) !important;
}

.primary {
  color: var(--primary) !important;
}

.tertiary {
  color: var(--tertiary) !important;
}

.desktop {
  display: block !important;
}

.mobile {
  display: none !important;
}

.fw-400 {
  font-weight: 400;
  /* Regular */
}

.fw-700 {
  font-weight: 700;
  /* Bold */
}

.italic {
  font-style: italic;
}

.normal {
  font-style: normal;
}

section {
  position: relative;
}

img {
  width: 100%;
}

.bg {
  background: var(--bg);
}

.bg-primary {
  background: var(--primary);
}

.bg-secondary {
  background: var(--secondary);
}

.bg-tertiary {
  background: var(--tertiary);
}

.bg-light-grey {
  background: var(--light-grey);
}

.bg-white {
  background: var(--white);
}

.gform_button,
button {
  font-weight: 800;
  color: white;
  border: none;
  border-radius: 5px;
  background: var(--secondary);
  padding: 13px 20px;
  width: 100%;
}

button:hover,
button:focus {
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
}

button:active {
  background-color: #c10912;
}

hr .equals {
  width: 10%;
  height: 2px;
}

/* ------------------------------ 
    2. End Global
------------------------------ */

/* ------------------------------ 
    3. Start Main Content
------------------------------ */
/*  - 3a. Landing Page  */
.page-template-page-home .splash {
  background: url("/wp-content/themes/adam-pugh/assets/images/1_hero_bg.jpg")
    no-repeat center center;
  background-size: cover;
  padding-bottom: 82px;
  background-position: center 60%;
}

.hero-fg {
  position: absolute;
  bottom: -130px;
  right: 8%;
  width: auto;
  max-height: 810px;
}

.page-template-page-home .hero-section [src*="logo"] {
  width: 512px;
}

.fade-in {
  opacity: 0; /* start invisible */
  animation: fadeIn 0.5s ease-in forwards; /* run once, fill forwards */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.line-in {
  width: 0;
  opacity: 0;
  height: 4px; /* adjust thickness */
  border: none;
  background: var(--tertiary-color); /* or your desired color */
  animation: lineGrow 1s ease-out forwards;
}

@keyframes lineGrow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

[src*="quote"] {
  width: 78px;
}

.hero-section hr.bg-tertiary,
.main-content-section hr.bg-tertiary,
.news-section hr.bg-tertiary,
.volunteer-form hr.bg-tertiary,
.page-template-page-contact hr.bg-secondary,
.contact-form hr.bg-tertiary {
  width: 100%;
  height: 7.5px;
  opacity: 1;
  border-radius: 5px;
}

hr.bg-tert {
  width: 100%;
  height: 7.5px;
  border-radius: 5px;
  background-color: var(--tertiary);
}
.main-content-section .bg-quaternary,
.volunteer-content-section .bg-quaternary,
.contact-content-section .bg-quaternary {
  padding-left: 63px;
  padding-right: 63px;
}

input::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: var(--white);
}

input::-moz-placeholder {
  /* Firefox 19+ */
  color: var(--white);
}

input:-ms-input-placeholder {
  /* IE 10+ */
  color: var(--white);
}

input:-moz-placeholder {
  /* Firefox 18- */
  color: var(--white);
}

.gform_wrapper {
  min-width: 416px;
  margin: 0 auto;
}

.gform_wrapper.gravity-theme .gform_fields {
  grid-row-gap: 10px !important;
}

.gfield:nth-child(2),
.gfield:nth-child(3),
.ginput_container,
.name_first input,
.name_last input {
  margin: 0 !important;
}

.ginput_container_email input {
  width: 100% !important;
}

.page-template-page-home .gform_wrapper.gravity-theme .ginput_complex,
.gform_wrapper.gravity-theme .ginput_container_address {
  flex-flow: column !important;
}

.page-template-page-home
  .gform_wrapper.gravity-theme
  .ginput_complex:not(.ginput_container_address)
  span:not([style*="display:none"]):not(.ginput_full) {
  padding-right: 0 !important;
}

.page-template-page-home
  .gform_wrapper.gravity-theme
  .ginput_complex:not(.ginput_container_address)
  span:not([style*="display:none"]):not(.ginput_full)
  ~ span:not(.ginput_full) {
  padding-left: 0 !important;
}

.page-template-page-home .name_first {
  padding-bottom: 10px;
}

.name_first input,
.name_last input,
.ginput_container input,
.gform_wrapper.gravity-theme .gfield textarea {
  color: var(--dark-grey);
  background-color: white;
  border: none;
  border-radius: 5px;
  padding: 6px 10px !important;
}

.name_first input::placeholder,
.name_last input::placeholder,
.ginput_container input::placeholder,
.gform_wrapper.gravity-theme .gfield textarea::placeholder {
  opacity: 0.5;
}

.name_first input:hover,
.name_last input:hover,
.ginput_container input:hover,
.gform_wrapper.gravity-theme .gfield textarea:hover,
.name_first input:focus,
.name_last input:focus,
.ginput_container input:focus,
.gform_wrapper.gravity-theme .gfield textarea:focus,
.name_first input:active,
.name_last input:active,
.ginput_container input:active,
.gform_wrapper.gravity-theme .gfield textarea:active {
  opacity: 0.7;
}

.gform_wrapper.gravity-theme .gfield_label {
  font-weight: 400 !important;
}

.gform_wrapper.gravity-theme .ginput_complex.ginput_container_address span {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.volunteer-content-section .gform_footer,
.contact-content-section .gform_footer {
  margin: 10px 0 0 !important;
  padding: 0 !important;
}

.volunteer-content-section .gform_button,
.contact-content-section .gform_button {
  max-width: 360px;
  margin: 0 auto !important;
}

form {
  position: relative;
}

.gform_confirmation_message {
  color: var(--primary);
  text-align: center;

  margin-bottom: 30px;
}

.news-section hr.bg-tertiary {
  max-width: 510px;
  margin: 40px auto 60px;
}

.news-prev,
.news-next {
  position: absolute;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: auto;
  font-size: 36px;
  cursor: pointer;
  background: transparent;
  color: var(--secondary);
  top: 50%;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  padding: 0;
  border: none;
  outline: none;
}

.news-prev:focus,
.news-next:focus,
.news-prev:hover,
.news-next:hover {
  box-shadow: none;
}

.news-prev {
  transition: 0.25s all;
  left: -25px;
}

.news-next {
  transition: 0.25s all;
  right: -25px;
}

.news-section a {
  text-decoration: underline !important;
}

.news-section p {
  margin-bottom: 5px;
}

.news-section a.color-primary {
  text-underline-offset: 3px;
  text-decoration-color: var(--secondary) !important;
  text-decoration-thickness: 2px !important;
}

/*  - 3b. About Page  */
.about-hero .bg-primary {
  padding: 90px 40px 60px;
}

.h-420 img {
  height: 420px;
  object-fit: cover;
}

.h-284 img {
  height: 284px;
  object-fit: cover;
}

/*  - 3b. Issues Page  */
.issues-hero .bg-primary {
  padding: 50px 40px 30px;
}

.issues-hero .carousel,
.issues-hero .carousel-item,
.issues-hero .carousel-inner,
.issues-hero .carousel-item img {
  height: 612px;
}

.issues-hero .carousel-item img {
  object-fit: cover;
}

.issues-body .first-grid {
  grid-template-columns: repeat(4, 251px);
  justify-content: center;
  gap: 1.5rem;
  margin-top: 60px;
}

.issues-body .second-grid {
  grid-template-columns: repeat(3, 343px);
  justify-content: center;
  gap: 1.5rem;
  margin-top: 24px;
}

.page-template-page-issues .grid-item {
  padding: 40px 20px 44px;
}

.page-template-page-issues .grid-item [src*="issue"] {
  position: absolute;
  top: -30px;
  width: 60px;
}

.contact-info .grid-item {
  width: 280px;
}

footer .footer-logo img {
  width: 470px;
  height: auto;
  display: block;
}

.social-links-footer {
  flex-direction: row !important;
}

.footer-text {
  font-family: "Roboto Flex";
  font-size: 12px;
  line-height: 16px;
  border: 1px solid black;
  display: inline-block;
  padding: 6px;
}

.volunteer-hero .bg-primary {
  padding: 40px 40px 30px;
  position: relative;
}

.volunteer-image {
  height: 612px;
  object-fit: cover;
}

.volunteer-row {
  width: fill;
  height: 128.5px;
}

.volunteer-form,
.contact-form {
  position: absolute;
  z-index: 10;
  top: -710px;
  padding-top: 71px;
  padding-bottom: 59px;
}

.contact-form {
  top: 50%;
  transform: translateY(-50%);
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-template-page-contact .splash .bg-img {
  background: linear-gradient(
      157deg,
      rgba(0, 0, 0, 0) 59.34%,
      rgba(0, 0, 0, 0.2) 85.03%
    ),
    url("/wp-content/themes/adam-pugh/assets/images/5_hero.jpg") lightgray 50% /
      cover no-repeat;
  height: 612px;
}

.page-template-page-contact .splash .bg-img h1 {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  text-shadow: 0 -4px 4px rgba(0, 0, 0, 0.1);
}

.page-template-page-contact hr.bg-secondary {
  width: 90%;
  margin: 40px auto;
}

.page-template-page-contact .contact-content-section [src*="icon"] {
  width: 36px;
}

.page-template-page-contact .d-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* ------------------------------ 
    3. End Main Content
------------------------------ */
