/* --------------------------------------

Custom styles 

--------------------------------------- */
*:root {
  --primary-color: #132b39;
  --accent-color: #ec1d25;
  --yellow-color: #ffd600;
  --light-gray: #f8f8f8;
  --red-color: #ec1d25;
  --heading-font: roboto-condensed, sans-serif;
  --body-font: proxima-nova, sans-serif;
}
/* --------------------------------------

Global

--------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 3rem;
}
body {
  font-family: var(--body-font);
  font-size: 22px;
  line-height: 1.5;
  font-weight: 400;
  font-style: normal;
  color: #132b39;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  font-style: normal;
  color: var(--primary-color);
  line-height: 1.3;
  margin-bottom: 0.7em;
}
h1 {
  font-size: 3.375rem;
}
h2 {
  font-size: 2.7rem;
}
h3 {
  font-size: 2.2rem;
}
h4 {
  font-size: 1.25rem;
}
p, ul, ol {
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 0.5em;
}
section {
  padding: 5rem 0 5rem;
}
section.smaller-section {
  padding: 3rem 0 3rem;
}
.dark-blue-bg {
  background-color: var(--primary-color);
}
.light-gray-bg {
  background-color: var(--light-gray);
}
.red-color-bg {
  background-color: var(--red-color);
}
.yellow-bg {
  background-color: var(--yellow-color);
}
.yellow-text {
  color: var(--yellow-color);
}
.red-text {
  color: var(--accent-color);
}
.body-font-large {
  font-family: var(--body-font);
  font-weight: 800;
  font-size: 1.625rem;
}
.body-font-larger {
  font-family: var(--body-font);
  font-weight: 800;
  font-size: 1.875rem;
}
.heading-font-larger {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.875rem;
}
/* ----- Link styling ----- */
a:link, a:visited {
  color: var(--accent-color);
  text-decoration: underline;
}
a:hover, a:active, a:focus {
  color: var(--primary-color);
  text-decoration: none;
}
/* ----- Buttons ----- */
.large-btn {
  font-family: var(--heading-font);
  color: var(--primary-color) !important;
  font-size: 2.25rem;
  background-color: var(--yellow-color);
  border: 1px solid var(--yellow-color);
  padding: 0.6em 1.3em 0.6em 1.3em;
  text-decoration: none !important;
  word-break: break-word;
  cursor: pointer;
  display: inline-block;
  text-transform: uppercase;
  line-height: 1;
}
.large-btn:hover {
  background-color: #fff;
  border: 1px solid #fff;
  text-decoration: none;
}
.small-btn {
  font-family: var(--heading-font);
  color: var(--primary-color) !important;
  font-size: 1.375rem;
  padding: 0.6em 1.3em 0.6em 1.3em;
  text-decoration: none !important;
  word-break: break-word;
  cursor: pointer;
  display: inline-block;
  text-transform: uppercase;
  line-height: 1;
}
.yellow-btn, .yellow-red-btn {
  background-color: var(--yellow-color);
  border: 1px solid var(--yellow-color);
}
.red-btn {
  color: #fff !important;
  background-color: var(--red-color);
  border: 1px solid var(--red-color);
}
.yellow-btn:hover {
  background-color: #fff;
  border: 1px solid #fff;
  text-decoration: none;
}
.red-btn:hover {
  color: var(--primary-color) !important;
  background-color: var(--yellow-color);
  border: 1px solid var(--yellow-color);
  text-decoration: none;
}
.yellow-red-btn:hover {
  color: #fff !important;
  background-color: var(--red-color);
  border: 1px solid var(--red-color);
}
/* --------------------------------------

Book page

--------------------------------------- */
header.book-page {
  background-color: var(--primary-color);
  color: #fff;
}
header.book-page h1 {
  font-size: 4.5rem;
  color: var(--yellow-color);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.header-text {
  padding: 4rem 0 3rem;
}
.header-text p {
  font-size: 2.25rem;
  line-height: 1.2;
}
.header-image {
  padding-top: 3rem;
  margin-bottom: -120px;
  position: relative;
}
.intro {
  margin-top: 5rem;
  background-image: url(../images/dollar-signs-graphic.png);
  background-repeat: no-repeat;
  background-position: center center;
}
.icon-text {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
}
.icon-text img {
  width: 100px;
  height: auto;
}
.icon-text p {
  margin-bottom: 0;
  padding-right: 5rem;
}
.icon-text div:first-child {
  flex: 0 0 100px;
}
.cta-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
}
#order .cta-content h2 {
  flex: 0 0 auto;
}
.heading-large {
  font-size: 4.375rem;
  line-height: 1.1;
}
.heading-larger {
  font-size: 5.625rem;
  line-height: 1.1;
}
.rotated-text {
  transform: rotate(-6deg);
  display: inline-block;
}
.rotated-text-right {
  transform: rotate(6deg);
  display: inline-block;
}
.rotated-image img {
  width: 80%;
  border: 1px solid #707070;
}
.free-sample h2 {
  font-size: 4.375rem;
  color: var(--yellow-color);
  margin-bottom: 1.5rem;
}
.free-sample h3 {
  color: #fff;
}
.free-sample h3 em {
  font-weight: normal;
}
.free-sample h4 {
  font-size: 2.2rem;
  color: var(--red-color);
  margin-bottom: 0.3rem;
}
#orderModal .btn-close {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  z-index: 1;
}
#orderModal .book-photo img {
  width: 200px;
  height: auto;
}
#orderModal h2 {
  font-size: 3.75rem;
  margin-bottom: 0;
}
.modal-content {
  border-radius: 0;
  background-color: var(--primary-color);
}
.testimonial {
  font-size: 1.25rem;
  text-align: center;
  padding: 0 2rem;
  margin-top: 4rem;
}
.testimonial-photo {
  position: relative;
  width: 175px;
  margin-bottom: 2rem;
  border: 1px solid #707070;
}
.testimonial-photo .yellow-quote-mark {
  position: absolute;
  top: -1rem;
  left: -0.75rem;
  transform: rotate(-10deg);
}
.testimonial-name {
  font-family: var(--body-font);
  font-size: 1.25rem;
  margin-bottom: 0;
  color: var(--accent-color);
  text-transform: uppercase;
}
img.dave-photo {
  width: 90%;
  height: auto;
  margin-bottom: 1rem;
}
.long-btn {
  max-width: 555px;
}
.long-btn-container {
  position: relative;
}
.long-btn-container svg {
  position: absolute;
  right: 20px;
  bottom: -65px;
}
/* Buy books headings */
.buy-books-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 7rem;
}
.buy-books-heading.long-subheading {
  margin-bottom: 9rem;
}
.buy-books-heading::before, .buy-books-heading::after {
  content: "";
  flex: 1;
  border-bottom: 3px solid #000;
  margin: 0 1rem;
}
.buy-books-subheading {
  position: absolute;
  display: block;
  font-family: var(--heading-font);
  bottom: -3.5rem;
  right: 25%;
  font-size: 2.625rem;
  font-weight: normal;
  text-transform: uppercase;
}
.buy-books-subheading.long-text {
  position: absolute;
  display: block;
  font-family: var(--heading-font);
  bottom: -6rem;
  right: 14%;
  font-size: 2.625rem;
  font-weight: normal;
  text-transform: uppercase;
  max-width: 400px;
  line-height: 110%;
}
.buy-books-heading h2 {
  font-family: var(--heading-font);
  font-size: 5rem;
  font-weight: 700;
  font-style: normal;
  color: var(--primary-color);
  margin-bottom: 0;
  text-transform: uppercase;
  z-index: 3;
}
.buy-books-heading svg {
  margin: 0 1.5rem;
  position: relative;
  z-index: 2;
}
.svg-wrapper {
  position: relative;
  display: inline-block;
}
.svg-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11.25rem;
  height: 11.25rem;
  background-color: var(--yellow-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
ul.red-bullets li::marker {
  color: var(--red-color);
}
.access-gifts h2 {
  font-size: 4.5rem;
}
.white-container {
  background-color: #fff;
  padding: 2.3rem;
}
.white-container svg {
  margin-top: -6.875rem;
}
.form-fields {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.form-fields input, .form-fields select {
  padding: 0.6rem;
  font-size: 1.375rem;
  background-color: #f8f8f8;
  border: 1px solid #707070;
  width: 100%;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.form-fields input[type="submit"] {
  background-color: var(--accent-color);
  border: 1px solid var(--accent-color);
  color: #fff;
  font-family: var(--heading-font);
  text-transform: uppercase;
}
.form-fields input[type="submit"]:hover {
  color: var(--primary-color) !important;
  background-color: var(--yellow-color);
  border: 1px solid var(--yellow-color);
  text-decoration: none;
}
/* Logos in the Modal */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.5rem;
}
.logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-item img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* ----- Mailchimp form ----- */
.optin-form {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.optin-form input[type="text"], .optin-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.5rem 0.35rem 0.5rem;
}
.optin-form input[type="submit"] {
  flex: 0 1 auto;
  white-space: nowrap;
}
/* Large orders section */
.large-orders {
  position: relative;
}
.large-orders svg.red-arrow {
  position: absolute;
  right: 14rem;
  bottom: -0.5rem;
  z-index: -1;
}
.large-orders svg.yellow-star {
  position: absolute;
  left: 4rem;
  top: -2rem;
  z-index: -1;
}
/* --------------------------------------

Footer

--------------------------------------- */
.footer-content {
  padding: 3.125rem 0;
}
.footer-content p {
  font-size: 1.25rem;
  margin-bottom: 0;
  line-height: 1.3;
}
.footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
/* --------------------------------------

Notification bar

--------------------------------------- */
.notification {
  font-family: var(--heading-font);
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background-color: var(--red-color);
  padding: 1.1rem;
}
/* --------------------------------------

RSVP Pages

--------------------------------------- */
.rsvp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.rsvp h1 {
  color: var(--yellow-color);
  font-size: 4.5rem;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.rsvp h2, .rsvp h3 {
  color: #fff;
  font-size: 2.25rem;
  font-family: var(--body-font);
}
.rsvp h3 span {
  font-weight: 400;
}
.rsvp .header-image {
  padding-top: 0;
  margin-bottom: 0;
}
.rsvp address {
  margin-bottom: 2rem;
}
.rsvp .form-fields input[type="submit"] {
  background-color: var(--yellow-color);
  border: 1px solid var(--yellow-color);
  color: var(--primary-color);
  font-family: var(--heading-font);
  font-weight: 600;
  text-transform: uppercase;
}
.rsvp .form-fields input[type="submit"]:hover {
  color: #fff !important;
  background-color: var(--accent-color);
  border: 1px solid var(--accent-color);
  text-decoration: none;
}
/* --------------------------------------

Media queries

--------------------------------------- */
/* `xxl` applies to x-large devices (large desktops, less than 1400px) */
@media (max-width: 1399.98px) {
  header.book-page h1 {
    font-size: 3.5rem;
  }
  .icon-text p {
    padding-right: 2rem;
  }
  .intro {
    margin-top: 1rem;
  }
}
/* `xl` applies to large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .icon-text p {
    padding-right: 0;
  }
  .icon-text {
    margin-bottom: 2.5rem;
    gap: 1.5rem;
  }
  .intro {
    margin-top: 0;
  }
  .large-orders svg.red-arrow {
    right: 5rem;
  }
}
/* `lg` applies to medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  h1, header.book-page h1, .access-gifts h2, .rsvp h1 {
    font-size: 2.813rem;
  }
  h2, .free-sample h2, .rsvp h2, .rsvp h3 {
    font-size: 2.25rem;
  }
  h3, .body-font-larger, .heading-font-larger, .free-sample h4, .notification {
    font-size: 1.688rem;
  }
  h4 {
    font-size: 1.25rem;
  }
  .header-text p {
    font-size: 1.688rem;
  }
  .heading-large {
    font-size: 3rem;
  }
  .heading-larger {
    font-size: 4rem;
  }
  .header-image {
    padding-top: 0;
    margin-bottom: -60px;
  }
  .header-image img {
    max-width: 340px;
    height: auto;
  }
  .cta-content {
    display: block;
    justify-content: center;
    align-items: center;
    gap: 3rem;
  }
  .icon-text img {
    width: 80px;
    height: auto;
  }
  .intro {
    margin-top: 3rem;
  }
  .large-btn {
    font-size: 2rem;
  }
  .dave-photo-container {
    width: 90%;
  }
  img.dave-photo {
    width: 60%;
    height: auto;
    margin-bottom: 1rem;
  }
  .logo-item img {
    width: 200px;
    height: auto;
  }
  #orderModal h2 {
    font-size: 2.75rem;
  }
  #orderModal .book-photo {
    margin-top: 2rem;
  }
  .logo-grid {
    margin-top: 2rem;
  }
  .buy-books-heading h2 {
    font-size: 4rem;
  }
  .buy-books-heading svg {
    height: 4.5rem;
    width: auto;
  }
  .svg-wrapper::before {
    width: 8rem;
    height: 8rem;
  }
  .buy-books-subheading {
    font-size: 2rem;
    bottom: -3rem;
    text-align: center;
    right: auto;
    left: auto;
  }
  .buy-books-subheading.long-text {
    font-size: 2rem;
    bottom: -4.7rem;
    text-align: center;
    right: auto;
    left: auto;
  }
  .white-container svg {
    height: 5rem;
    width: auto;
  }
}
/* `md` applies to small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  section {
    padding: 3rem 0 3rem;
  }
  .footer-links {
    display: block;
  }
  .footer-links img {
    margin-bottom: 1rem;
  }
  .optin-form {
    display: block;
    text-align: center;
  }
  .optin-form input[type="text"], .optin-form input[type="email"] {
    width: 100%;
    margin-bottom: 0.7rem;
  }
  .large-orders svg.yellow-star {
    left: 0;
  }
  .large-orders svg.red-arrow {
    right: 2rem;
    width: 5rem;
    height: auto;
  }
}
/* `sm` applies to x-small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  h1, header.book-page h1, .access-gifts h2, .rsvp h1 {
    font-size: 2.25rem;
  }
  h2, .free-sample h2, .rsvp h2, .rsvp h3 {
    font-size: 1.813rem;
  }
  h3, .body-font-larger, .heading-font-larger, .free-sample h4, .notification {
    font-size: 1.563rem;
  }
  h4, .body-font-large {
    font-size: 1.25rem;
  }
  .header-image img {
    width: 90%;
    height: auto;
  }
  .large-btn {
    font-size: 1.5rem;
  }
  body, .testimonial, .footer-content p {
    font-size: 1.125rem;
  }
  .testimonial-photo {
    width: 150px;
  }
  .logo-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  img.footer-logo {
    width: 170px;
    height: auto;
  }
  #orderModal .book-photo img {
    width: 150px;
    height: auto;
  }
  .buy-books-heading h2 {
    font-size: 3rem;
  }
  .buy-books-heading svg {
    height: 3.5rem;
    margin: 0 1rem;
  }
  .svg-wrapper::before {
    width: 6rem;
    height: 6rem;
  }
  .buy-books-subheading {
    font-size: 1.7rem;
    bottom: -2.5rem;
  }
  .buy-books-subheading.long-text {
    font-size: 1.7rem;
    bottom: -3.9rem;
  }
  .white-container svg {
    height: 3.5rem;
    width: auto;
    margin-top: -6rem;
  }
  .rotated-image img {
    width: 60%;
  }
}