/* ===========================
   CSS Variables / Design Tokens
   =========================== */
:root {
  --color-dark-green: #0b4052;
  --color-white: #ffffff;
  --color-orange: #f3521f;
  --color-button-hover: #8d2808;
  --color-black: #1e1e1e;
  --color-body-text: #2a3e45;
  --color-footer-text: #859fa8;
  --color-footer-bg: #0b4052;
  --color-gradient-top: #0d6c77;
  --color-gradient-bottom: #0b4052;

  --size-tiny: 0.5rem;
  --size-xxsmall: 0.75rem;
  --size-xsmall: 1rem;
  --size-small: 1.25rem;
  --size-regular: 1.5rem;
  --size-large: 1.75rem;
  --size-xlarge: 2rem;
  --size-xxlarge: 2.5rem;
  --size-huge: 3rem;
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-body-text);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.2;
}

h1 {
  color: var(--color-dark-green);
  font-size: 4.6875rem;
  font-weight: 900;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

p {
  margin-top: 0;
  margin-bottom: 0;
  font-family: 'Roboto', Arial, sans-serif;
}

a {
  color: #009ab8;
  letter-spacing: 0.0125rem;
  font-family: 'Roboto', Arial, sans-serif;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===========================
   Layout Utilities
   =========================== */
.page-wrapper {
  background-color: var(--color-white);
  overflow: hidden;
}

.padding-global {
  padding-left: 2rem;
  padding-right: 2rem;
}

.padding-global.is-nav {
  padding-left: 2rem;
  padding-right: 2rem;
}

.padding-global.is-darkgreen {
  background-color: var(--color-dark-green);
}

.container-large {
  width: 100%;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
}

.padding-section-large {
  padding-top: 6.875rem;
  padding-bottom: 6.875rem;
}

/* ===========================
   Navigation
   =========================== */
.navigation {
  z-index: 10;
  padding-top: var(--size-regular);
  padding-bottom: var(--size-regular);
  background-color: var(--color-white);
  position: relative;
}

.nav-content {
  display: flex;
  align-items: center;
}

.nav-logo-link {
  display: inline-block;
}

.nav-logo-image {
  width: 261px;
  height: 65px;
}

/* ===========================
   Hero Section
   =========================== */
.section-hero {
  z-index: 2;
  background-color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
}

.heading-centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1rem;
}

.hero-text-wrap {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.hero-image-wrap {
  z-index: -1;
  width: 50%;
  height: 36rem;
  position: absolute;
  top: auto;
  bottom: 60px;
  left: 0;
  right: auto;
}

.hero-image {
  object-fit: contain;
  width: 140%;
  min-width: 140%;
  max-width: none;
  height: 130%;
  position: absolute;
  top: -1%;
  left: -40%;
}

.hero-text-right {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 1440px;
  padding-top: 7.35rem;
  padding-bottom: 7.35rem;
}

.hero-text-right-inner {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 71%;
  min-height: 430px;
  position: relative;
}

.hero-text-right-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--size-xlarge);
  max-width: 460px;
}

.hero-heading-wrap {
  padding-bottom: var(--size-xlarge);
}

.heading-size-large {
  font-size: 1.625rem;
}

.heading-weight-black {
  color: var(--color-dark-green);
  font-weight: 900;
}

.text-size-small {
  font-size: 1.125rem;
}

.text-color-darkgreen50 {
  color: rgba(42, 62, 69, 0.5);
}

.button {
  background-color: var(--color-orange);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  padding: 0 6.25rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0;
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
}

.button:hover {
  background-color: var(--color-button-hover);
}

/* ===========================
   About Section
   =========================== */
.section-about {
  z-index: 1;
  background-color: var(--color-dark-green);
  position: relative;
}

.about-top-wrap {
  z-index: 1;
  background-image: linear-gradient(var(--color-gradient-top), var(--color-gradient-bottom));
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 13rem;
  padding-top: 2.5rem;
  padding-bottom: 4.375rem;
  position: relative;
  bottom: -0.0625rem;
  overflow: hidden;
}

.about-top-rain {
  z-index: -2;
  background-image: url("images/storm-tiles.png");
  background-position: 50%;
  background-repeat: repeat-y;
  background-size: cover;
  width: 215%;
  height: 100vh;
  position: absolute;
  top: -75.2vh;
  right: 0;
  will-change: transform;
}

.about-top-house-wrap {
  background-image: url("images/roofline-desktop.svg");
  background-position: 50% 101%;
  background-repeat: repeat-x;
  background-size: auto;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.about-heading {
  z-index: 1;
  color: var(--color-white);
  position: relative;
  font-size: 2rem;
  font-weight: 700;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6.125rem;
  padding-top: 4.21875rem;
  padding-bottom: 6.75rem;
}

.about-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.4375rem;
}

.about-item-icon {
  width: 48px;
  height: 49px;
}

.text-size-regular {
  color: var(--color-dark-green);
  font-size: 1.25rem;
  font-weight: 400;
}

.text-color-white {
  color: var(--color-white);
}

/* ===========================
   Overview Section
   =========================== */
.section-overview {
  z-index: 1;
  background-color: var(--color-white);
  position: relative;
}

.overview-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.overview-item {
  display: flex;
  align-items: center;
}

.overview-item.is-first {
  gap: 2rem;
}

.overview-item.is-second {
  justify-content: flex-end;
  gap: 2rem;
}

.overview-item.is-third {
  gap: 2rem;
}

.overview-item-image {
  object-fit: contain;
  flex-shrink: 0;
}

.overview-item-image.is-first-img {
  max-width: 310px;
  height: auto;
}

.overview-item-image.is-second-img {
  max-width: 560px;
  height: auto;
}

.overview-item-image.is-third-img {
  max-width: 340px;
  height: auto;
}

.overview-item-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  max-width: 35.75rem;
  padding-top: 1.3125rem;
}

.text-color-black {
  color: var(--color-black);
}

.text-size-large {
  font-size: 1.5rem;
  line-height: 130%;
}

/* ===========================
   App Section
   =========================== */
.section-app {
  z-index: 2;
  background-color: var(--color-white);
  position: relative;
}

.app-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 2.5rem;
  overflow: hidden;
}

.heading-centered.is-phones {
  max-width: 393px;
}

.text-size-regular.text-color-black {
  color: #000;
}

.app-logos-wrap {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logo-app {
  height: 55px;
  display: inline-flex;
  align-items: center;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-images {
  width: 38.75rem;
  height: 100%;
}

.app-img {
  width: 38.75rem;
  max-width: 100%;
  margin-bottom: -10px;
}

/* ===========================
   Footer
   =========================== */
.footer {
  z-index: 1;
  background-color: var(--color-footer-bg);
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding-top: 3.5625rem;
  padding-bottom: 1.4375rem;
}

.footer-filler {
  /* placeholder for grid alignment */
}

.footer-item-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-label {
  color: var(--color-footer-text);
  margin-bottom: 0.125rem;
  font-size: 1.125rem;
  font-weight: 400;
}

.email-link {
  color: #009ab8;
  font-size: 1.5rem;
  letter-spacing: 0.0125rem;
}

.email-link:hover {
  text-decoration: underline;
}

.footer-item-bottom {
  margin-top: 2.75rem;
}

.footer-bottom-text {
  color: var(--color-footer-text);
  font-size: 0.875rem;
}

.footer-item-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: center;
}

.footer-link {
  color: var(--color-footer-text);
  font-size: 1.125rem;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Rain parallax is handled via scroll-based transform in script.js */
.rain-parallax {
  display: none;
}

/* ===========================
   Responsive - Tablet (max 991px)
   =========================== */
@media screen and (max-width: 1280px) {
  h1 {
    font-size: 2.5rem;
  }

  .padding-global {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .section-hero {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }

  .navigation {
    padding-top: var(--size-xsmall);
    padding-bottom: var(--size-xsmall);
  }

  .hero-text-wrap {
    flex-direction: column;
  }

  .hero-image-wrap {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
  }

  .hero-image {
    width: 70%;
    min-width: auto;
    height: 100%;
    position: relative;
    top: 0;
    left: 0;
  }

  .hero-text-right {
    width: 70%;
    padding-top: 1rem;
    padding-bottom: 0;
    flex-direction: row;
    gap: 2rem;
    margin: 0 auto;
  }

  .hero-text-right-inner {
    width: 90%;
  }

  .hero-heading-wrap {
    padding-bottom: 0;
  }

  .about-content {
    gap: 2rem;
  }

  .overview-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .overview-item {
    flex-direction: row;
  }

  .overview-item.is-second {
    flex-direction: row-reverse;
  }

  .overview-item-image.is-first-img,
  .overview-item-image.is-second-img,
  .overview-item-image.is-third-img {
    max-width: 10rem;
  }

  .overview-item-text-wrap {
    width: 100%;
    max-width: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-filler {
    display: none;
  }

  .footer-item-right {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
  }

  .footer-label {
    font-size: 1.125rem;
  }
}

/* ===========================
   Responsive - Mobile Landscape (max 767px)
   =========================== */
@media screen and (max-width: 767px) {
  .padding-global {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .section-hero {
    padding-top: 1rem;
  }

  .nav-logo-image {
    width: 9.9375rem;
    height: auto;
  }

  .hero-text-right {
    width: auto;
  }

  .heading-size-large.heading-weight-black {
    font-size: 1.375rem;
  }

  .text-size-small.text-color-darkgreen50 {
    font-size: 1rem;
  }

  .button {
    width: 100%;
    font-size: 1.25rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .text-size-regular {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }

  .text-color-black {
    font-size: 1.625rem;
    line-height: 1.625rem;
  }

  .app-content {
    gap: 2rem;
  }

  .app-logos-wrap {
    gap: 1rem;
  }

  .app-images,
  .app-img {
    width: 100%;
  }
}

/* ===========================
   Responsive - Mobile (max 479px)
   =========================== */
@media screen and (max-width: 479px) {
  .padding-global.is-nav {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .padding-section-large {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .hero-image {
    width: 140%;
    left: -3.75rem;
  }

  .hero-text-right {
    gap: 1.5rem;
    padding-top: 0;
  }

  .text-size-small.text-color-darkgreen50 {
    line-height: 1.5rem;
  }

  .button {
    justify-content: center;
    align-items: center;
    height: 60px;
    padding: 0;
  }

  .about-content {
    padding-top: 3.75rem;
    padding-bottom: 4.75rem;
  }

  .text-size-regular.text-color-black {
    font-size: 1.25rem;
    line-height: 1.5rem;
  }

  .overview-item-image.is-first-img,
  .overview-item-image.is-second-img,
  .overview-item-image.is-third-img {
    max-width: 8.7rem;
  }

  .section-app {
    margin-top: 0;
  }

  .app-logos-wrap {
    gap: 0.5rem;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-text-right-inner {
    width: 100%;
  }

  .hero-heading-wrap {
    max-width: 100%;
  }

  .logo-app {
    width: 110px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo-image {
    object-fit: fill;
    max-width: 100%;
    height: auto;
  }

  .text-size-large {
    font-size: 1.25rem;
  }
}
