/**
 * @file
 * Main theme styles - Raster Based GIS.
 */

/* ====================
   CSS VARIABLES
   ==================== */
:root {
  --rbg-color-lime: #C9EB55;
  --rbg-color-olive: #99A76C;
  --rbg-color-dark: #000000;
  --rbg-color-gray-dark: #424045;
  --rbg-color-gray-medium: #808080;
  --rbg-color-gray-text: #474747;
  --rbg-color-light: #E5E5E5;
  --rbg-color-white: #ffffff;
  --rbg-font-heading: 'Sora', sans-serif;
  --rbg-font-body: 'Inter', sans-serif;
}

/* ====================
   BASE STYLES
   ==================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--rbg-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--rbg-color-gray-text);
  background-color: var(--rbg-color-white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rbg-color-olive);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ====================
   LAYOUT
   ==================== */
.layout-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ====================
   HERO SECTION
   ==================== */
.rbg-hero {
  position: relative;
  min-height: 80vh;
  background-image: url('/themes/custom/main/images/banner.jpg');
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: flex-end;
  padding: 0 4% 5% 4%;
}

.rbg-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000;
  opacity: 0.8;
}

.rbg-hero__content {
  position: relative;
  z-index: 1;
  max-width: 50%;
}

.rbg-hero__title {
  font-family: var(--rbg-font-heading);
  font-size: 86px;
  font-weight: 400;
  color: var(--rbg-color-lime);
  line-height: 1.1;
  margin: 0 0 15px 0;
  text-transform: none;
}

.rbg-hero__subtitle {
  font-family: var(--rbg-font-body);
  font-size: 28px;
  font-weight: 300;
  color: var(--rbg-color-light);
  line-height: 1.5;
  margin: 0;
  max-width: 465px;
}

/* ====================
   TIPS SECTION
   ==================== */
.rbg-tips {
  padding: 3% 4% 5% 4%;
  background-color: var(--rbg-color-white);
}

.rbg-tips__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.rbg-tips__heading {
  font-family: var(--rbg-font-heading);
  font-size: 42px;
  font-weight: 400;
  color: var(--rbg-color-olive);
  text-transform: capitalize;
  line-height: 1.1;
  margin: 0 0 3% 0;
}

.rbg-tips__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

/* Tip Cards */
.rbg-tip-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rbg-tip-card__number {
  font-family: var(--rbg-font-heading);
  font-size: 7.8vw;
  font-weight: 100;
  color: var(--rbg-color-gray-dark);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.15;
}

.rbg-tip-card__content {
  margin-left: 25px;
}

.rbg-tip-card__title {
  font-family: var(--rbg-font-heading);
  font-size: 28px;
  font-weight: 400;
  color: var(--rbg-color-gray-medium);
  text-transform: capitalize;
  line-height: 1.2;
  margin: 0 0 10px 0;
}

.rbg-tip-card__description {
  font-family: var(--rbg-font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--rbg-color-gray-text);
  line-height: 1.5;
  margin: 0;
}

/* ====================
   FOOTER CTA SECTION
   ==================== */
.rbg-footer-cta {
  position: relative;
  background: linear-gradient(130deg, #000000 0%, #9F9F9F 89%);
  padding: 100px 0 15px 0;
}

.rbg-footer-cta__wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  line-height: 0;
}

.rbg-footer-cta__wave svg {
  position: relative;
  display: block;
  width: calc(230% + 1.3px);
  height: 100px;
  transform: translateX(-50%) rotateY(180deg);
  left: 50%;
}

.rbg-footer-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.rbg-footer-cta__text {
  padding-right: 30px;
}

.rbg-footer-cta__title {
  font-family: 'Varela Round', sans-serif;
  font-size: 45px;
  font-weight: 300;
  color: var(--rbg-color-white);
  text-transform: capitalize;
  line-height: 1.2;
  margin: 0 0 10px 0;
}

.rbg-footer-cta__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--rbg-color-white);
  text-transform: capitalize;
  margin: 0;
}

.rbg-footer-cta__logo {
  flex-shrink: 0;
}

.rbg-footer-cta__logo img {
  max-width: 300px;
  border-radius: 250px 100px 0 0;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.12);
  margin-top: -10%;
}

/* ====================
   RESPONSIVE STYLES
   ==================== */

/* Tablet */
@media (max-width: 1024px) {
  .rbg-hero {
    padding: 0 4% 5% 4%;
  }

  .rbg-hero__content {
    max-width: 100%;
  }

  .rbg-hero__title {
    font-size: 65px;
  }

  .rbg-tips {
    margin-top: 20%;
  }

  .rbg-tips__heading {
    font-size: 36px;
  }

  .rbg-tips__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .rbg-tip-card__number {
    font-size: 100px;
  }

  .rbg-tip-card__title {
    font-size: 22px;
  }

  .rbg-tip-card__description {
    font-size: 14px;
  }

  .rbg-tip-card__content {
    margin-left: 40px;
  }

  .rbg-footer-cta__wave svg {
    height: 70px;
  }

  .rbg-footer-cta__title {
    font-size: 34px;
  }

  .rbg-footer-cta__logo img {
    margin-top: -16%;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .rbg-hero {
    min-height: 60vh;
    align-items: center;
    text-align: center;
    padding: 25% 4% 5% 4%;
  }

  .rbg-hero__content {
    max-width: 100%;
  }

  .rbg-hero__title {
    font-size: 45px;
  }

  .rbg-hero__subtitle {
    font-size: 14px;
    max-width: 100%;
  }

  .rbg-tips {
    margin-top: 35%;
    padding: 5% 4%;
  }

  .rbg-tips__heading {
    font-size: 28px;
    text-align: center;
  }

  .rbg-tips__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .rbg-tip-card {
    align-items: center;
    text-align: center;
  }

  .rbg-tip-card__number {
    font-size: 80px;
  }

  .rbg-tip-card__content {
    margin-left: 0;
  }

  .rbg-tip-card__title {
    font-size: 18px;
  }

  .rbg-footer-cta {
    padding: 80px 0 15px 0;
  }

  .rbg-footer-cta__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .rbg-footer-cta__text {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .rbg-footer-cta__title {
    font-size: 28px;
  }

  .rbg-footer-cta__logo img {
    margin-top: 20%;
    margin-bottom: -15%;
  }
}

/* ====================
   SITE FOOTER (DRUPAL)
   ==================== */
.site-footer {
  background: var(--rbg-color-dark);
  color: var(--rbg-color-white);
  padding: 40px 0 20px;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .site-footer__columns {
    grid-template-columns: 1fr;
  }
}
