/*
 Theme Name:   My Landing Child
 Template:     twentytwentyfive
 Version:      1.0.0
*/

/*CSS for RodBragg Splash page */

/*============================================================================
 
 Using RSCSS methodology for CSS organization but keeping it all in a single file for the time being.
 RSCSS: https://ricostacruz.com/rscss  
  
  • Components
    – Self-contained UI blocks, two-word names with a dash
      .article-card { … }
      .like-button  { … }

  • Elements
    – Direct child selectors, single-word names
      .search-form {
        > .field  { … }
        > .action { … }
      }

  • Variants
    – Modifiers prefixed with a single dash
      .like-button.-wide     { … }
      .like-button.-disabled { … }

  • Helpers
    – Global overrides prefixed with an underscore, !important
      ._unmargin   { margin: 0 !important; }
      ._pull-right { float: right !important; }

  • File Organization
    – One component per file (e.g. components/search-form.scss)
    – Glob-import all components (e.g. @import 'components/*';)
    – Limit nesting to one level for clarity

  Keep selectors flat, components reusable, and specificity low.
============================================================================*/

/* Break point at 1152px */

/* Colors */

:root {
  --green: #6eb04d;
  --forest: #0a5e2f;
  --charcoal: #373534;
  --mushroom: #c3ae98;
  --medium-grey: #767371;
  --almond-milk: #f6ede8;
}

/* Main CSS */
body {
  margin: 0;
  font-family: "Red Hat Text", sans-serif;
  font-size: 17px;
  line-height: 24px;
  font-style: normal;
  font-weight: 500;
  color: var(--charcoal);
}

body * {
  box-sizing: border-box;
}
h1 {
  color: #fff;
  font-family: "Roboto Slab", sans-serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 70px;
}

h2 {
  color: var(--forest, #0a5e2f);
  font-family: "Roboto Slab", sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 50px;
}

/* RDBH H3b */
h3 {
  color: var(--medium-grey, #767371);
  font-size: 27px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

@media (max-width: 770px) {
  h1 {
    font-size: 48px;
    line-height: 60px;
  }
  h2 {
    font-size: 32px;
    line-height: 40px;
  }
}

/* Max width for box 1440px */
/*============ Navbar ==========*/

.desktop-nav {
  margin: 0 auto;
  max-width: 1152px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav {
  display: none;
  height: 56px;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  position: relative;
  z-index: 7;
}
.mobile-nav > a {
  display: flex;
  align-items: center;
}

#hamburger-menu {
  cursor: pointer;
  display: inline-block;
  transform: rotate(180deg);

  transition: transform 0.3s ease;
}
#hamburger-menu[aria-expanded="true"] {
  transform: rotate(0deg);
}

.mobile-nav > .mobile-menu {
  visibility: hidden;
  width: 100%;
  top: 55px;
  left: 0;
  position: absolute;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  pointer-events: none;
  padding-bottom: 20px;
}
.mobile-menu[aria-active="true"] {
  visibility: visible;
  z-index: 6;
  transform: translateY(0);
  opacity: 1;
  background-color: #fff;
  pointer-events: auto;
}
.desktop-nav > a > img {
  height: 40px;
  width: auto;
}
.mobile-nav > a > img {
  height: 32px;
  width: auto;
}
.mobile-nav > .mobile-menu > ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #fff;
  padding-left: 40px;
}

.mobile-nav > .mobile-menu > ul > li > a {
  display: inline-block;
  color: var(--medium-grey, #767371);
  text-align: center;
  text-decoration: none;
  font-family: "Red Hat Text";
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  padding: 16px 20px 16px 0px;
}
.mobile-nav > .mobile-menu > ul > li > a.-bordered {
  border: 1px solid var(--green);
  padding: 16px 20px;
}
.mobile-nav > .mobile-menu > ul > li > a.-bordered:hover {
  background-color: var(--forest);
  color: #fff;
}

.mobile-nav > button {
  border: none;
  background-color: transparent;
}

.desktop-nav > ul {
  list-style-type: none;
  display: flex;
  padding: 16px 20px;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.desktop-nav > ul > li > a {
  color: var(--medium-grey);
  text-decoration: none;
  text-align: center;
  font-family: "Red Hat Text";
  font-size: 17px;
  padding: 16px 20px;
}
.desktop-nav > ul > li > a:hover {
  color: #fff;
  background-color: var(--forest);
}
.desktop-nav .-bordered {
  border: 1px solid var(--green);
}

@media (max-width: 1200px) {
  .desktop-nav {
    padding-left: 44px;
    padding-right: 44px;
  }
}
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
}
@media (max-width: 500px) {
  .mobile-nav > .mobile-menu > ul {
    padding-left: 25px;
  }
}
/*============ Carousel ==============*/
@keyframes fadeScale {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  8% {
    opacity: 1;
  }
  40% {
    opacity: 1;
    transform: scale(1.1);
  }
  48% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}
.carousel-section {
  width: 100%;
  height: 482px;
  overflow: hidden;
  position: relative;
}

.carousel-bg {
  height: 482px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease, transform 5s ease-in;
}

.carousel-bg.-current {
  z-index: 0;
  background-image: url("assets/image-carousel-0.png");
  transition: transform none;
}
.carousel-bg.-next {
  opacity: 0;
  z-index: 1;
}

.carousel-content {
  height: 100%;
  max-width: 1152px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.carousel-content > h1 {
  border-left: 2px solid var(--green);
  padding-left: 20px;
}
@media (max-width: 1200px) {
  .carousel-content {
    padding-left: 44px;
  }
}
@media (max-width: 500px) {
  .carousel-content {
    padding-left: 25px;
  }
}

/*============ Hero ===============*/
.hero-section {
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 1152px;
  padding: 0 90px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-content > .right-col,
.hero-content > .left-col {
  flex: 1;
  min-width: 340px;
}
@media (max-width: 1200px) {
  .hero-content {
    padding: 0 44px;
  }
}

@media (max-width: 770px) {
  .hero-section {
    padding: 50px 0px;
  }
  .hero-content {
    padding: 0px 44px;
  }
  .hero-content > .left-col > h2 {
    margin-bottom: 10px;
    margin-top: 0px;
  }
}

@media (max-width: 500px) {
  .hero-content {
    padding: 0px 25px;
  }
  .hero-content > .right-col,
  .hero-content > .left-col {
    min-width: 300px;
  }
}
/*============ Our work ===========*/

.our-work-section h2 {
  margin: 0px;
}

.our-work-section {
  position: relative;
  background-image: url("assets/green-pattern.png");
  background-repeat: repeat-x;
  background-size: auto 226px;
  background-position: left 60px;
}
.our-work-section::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 400px;
  background-color: var(--almond-milk);
  z-index: -1;
}
.our-work-content {
  max-width: 1152px;
  margin: 0 auto;
}

.our-work-content > .-inner-content {
  padding: 50px 75px;
  background-color: var(--forest);
}

.our-work-content h2 {
  color: #fff;
}
.our-work-content > .-inner-content > .-bottom-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 20px;
  gap: 30px;
}

.our-work-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
}

.our-work-card > p {
  color: #fff;
  text-align: center;
  font-family: "Red Hat Text";
  line-height: 19px;
  letter-spacing: 0.85px;
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  .our-work-content {
    padding: 0px;
  }
  .our-work-content > .-inner-content {
    padding: 50px 44px;
  }
  .our-work-section {
    background-color: var(--forest);
    background-image: none;
  }
  .our-work-section::after {
    content: none;
  }
  .our-work-card > p {
    font-size: 16px;
  }
}
@media (max-width: 1046px) {
  .our-work-content > .-inner-content {
    padding: 50px 44px;
    justify-content: space-around;
  }
}

@media (max-width: 770px) {
  .our-work-content > .-inner-content > .-bottom-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .our-work-content {
    padding: 0px;
  }
  .our-work-content > .-inner-content {
    padding: 50px 44px;
  }
  .our-work-card {
    flex: 0 0 calc(50% - 1rem);
  }
  .our-work-card > img {
    width: 100%;
  }
}
@media (max-width: 500px) {
  .our-work-content > .-inner-content {
    padding: 50px 25px;
  }
}

/*============ Solutions ==========*/

.solutions-section h2 {
  margin-bottom: 25px;
}

.solutions-section {
  background-color: var(--almond-milk);
  padding: 50px 0px 100px 0px;
}
.solutions-content {
  min-height: 620px;
  max-width: 1152px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.solutions-content > .-bottom-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 24px;
  align-items: stretch;
}
/* TODO: confirm whether opacity changes are needed */
@keyframes fadeUp {
  from {
    opacity: 1;
    max-height: 0px;
    padding-bottom: 0px;
  }
  to {
    opacity: 1;
    max-height: 500px;
    padding-bottom: 50px;
  }
}
.solutions-card .drawer > ul li::marker {
  font-size: 12px;
}

.solutions-card {
  display: flex;
  flex-direction: column;
}
.solutions-card > div {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.solutions-card > .-card-header {
  display: flex;
  align-items: center;
}
.solutions-card > .-card-header > img {
  width: 52px;
  height: 58px;
}

.solutions-card > .-card-header > h3 {
  margin: 0;
}

.solutions-card .drawer > p {
  color: var(--charcoal);
  font-family: "Red Hat Text";
  font-size: 23px;
  line-height: 120%;
  margin-top: 10px;
  margin-bottom: 0px;
}

.solutions-card .drawer > ul {
  color: var(--charcoal);
  padding-left: 20px;
  font-family: "Red Hat Text";
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}

.solutions-card .drawer > ul li {
  margin-bottom: 4px;
}

.solutions-card > .-card-header {
  display: flex;
  align-items: center;
  background: white;
  border-top: 2px solid var(--mushroom);
  padding: 45px 35px;
  padding-bottom: 10px;
}

.solutions-card > .-card-header > img {
  width: 52px;
  height: 58px;
}

.solutions-card > .-card-header > h3 {
  margin: 0;
}
.-relative {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1;
}

.drawer,
.-drawer-placeholder {
  padding-left: 35px;
  padding-right: 35px;
}
.-drawer-placeholder {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  visibility: hidden;
  position: relative;
  padding-bottom: 50px;
  height: 100%;
}

.drawer {
  max-height: 0px;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  background: white;
  transition: max-height 1s ease, opacity 1s ease;
  opacity: 0;
  overflow: hidden;
  padding-bottom: 50px;
}

.drawer.visible {
  animation: fadeUp 1.5s ease forwards;
  padding-bottom: 50px;
  height: 100%;
}

.solutions-content > .-bottom-row .solutions-card:nth-child(1) .drawer.visible {
  animation-delay: 0s;
}
.solutions-content > .-bottom-row .solutions-card:nth-child(2) .drawer.visible {
  animation-delay: 1s;
}
.solutions-content > .-bottom-row .solutions-card:nth-child(3) .drawer.visible {
  animation-delay: 2s;
}

@media (max-width: 1200px) {
  .solutions-content {
    padding: 0px 44px;
    min-height: auto;
  }
  .solutions-section h2 {
    margin-bottom: 20px;
    margin-top: 0px;
  }
}
@media (max-width: 1081px) {
  .solutions-content > .-bottom-row {
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: auto;
  }
  .solutions-content
    > .-bottom-row
    .solutions-card:nth-child(1)
    .drawer.visible {
    animation-delay: 0s;
  }
  .solutions-content
    > .-bottom-row
    .solutions-card:nth-child(2)
    .drawer.visible {
    animation-delay: 0s;
  }
  .solutions-content
    > .-bottom-row
    .solutions-card:nth-child(3)
    .drawer.visible {
    animation-delay: 0s;
  }
}
@media (max-width: 500px) {
  .solutions-section {
    padding: 50px 25px;
  }
  .solutions-content {
    padding: 0px;
  }
  .solutions-card {
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 400px) {
  .drawer,
  .-drawer-placeholder {
    padding-left: 15px;
    padding-right: 15px;
  }
  .solutions-card > .-card-header {
    padding: 45px 15px;
  }
}
/*============ Footer ===========*/
footer {
  width: 100%;
  background-image: url("assets/footer-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.footer-content {
  padding-top: 60px;
  padding-bottom: 50px;
}

.footer-content > .-inner-content {
  max-width: 744px;
  display: flex;
  margin: 0 auto;
  color: #fff;
  flex-wrap: wrap;
}

.footer-content > .-inner-content > .-left-col {
  display: flex;
  align-items: center;
  padding: 0 35px;
  flex: 1;
}
/* Footer logo */
.footer-content > .-inner-content > .-left-col > img {
  width: 326px;
  height: auto;
}

.footer-content > .-inner-content > .-right-col {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  padding: 0 35px;
  border-left: 1px solid #fff;
  flex: 1;
}

.footer-content > .-inner-content > .-right-col > p {
  margin-top: 0px;
}

.footer-content > .-inner-content > .-right-col > ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.footer-content > .-inner-content > .-right-col > ul > li {
  margin-top: 7px;
  display: flex;
  gap: 10px;
}
.footer-content > .-inner-content > .-right-col > ul > li:nth-child(2) a {
  text-decoration: none;
}

.footer-content > .-inner-content > .-right-col > ul > li > a {
  color: #fff;
}

@media (max-width: 770px) {
  .footer-content {
    padding: 0px;
  }
  .footer-content > .-inner-content {
    padding: 50px 44px;
  }
  .footer-content > .-inner-content > .-left-col {
    margin-left: -25px;
    padding: 0;
  }
  .footer-content > .-inner-content > .-right-col > ul > li:last-child {
    margin-top: 20px;
  }
}
@media (max-width: 500px) {
  .footer-content > .-inner-content {
    padding: 50px 25px;
  }
}
