/*
 * Riser Tech, Inc. - Styles
 */

/* ========================================
   CSS Reset (modern-normalize inspired)
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  color: #333;
  font-size: 16px;
  line-height: 22px;
}

h1, h2, h3, h4, h5, h6, p {
  margin-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========================================
   Self-hosted Fonts
   ======================================== */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/roboto/roboto-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto/roboto-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto/roboto-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/roboto-slab/roboto-slab-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-slab/roboto-slab-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto-slab/roboto-slab-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-slab/roboto-slab-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/roboto-condensed/roboto-condensed-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/roboto-condensed/roboto-condensed-700.woff2') format('woff2');
}

/* ========================================
   Typography
   ======================================== */
h1 {
  margin-bottom: 19px;
  font-size: 38px;
  line-height: 44px;
  font-weight: 500;
}

h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 36px;
  font-weight: 400;
  text-align: center;
}

h3 {
  margin-bottom: 15px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
}

p {
  margin-bottom: 5px;
}

/* ========================================
   Layout
   ======================================== */
.container {
  max-width: 970px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.row::after {
  content: "";
  display: table;
  clear: both;
}

.col {
  padding: 0 10px;
  width: 100%;
}

.col-6 {
  width: 50%;
}

.col-3 {
  width: 25%;
}

.col-4 {
  width: 33.333%;
}

/* ========================================
   Navigation
   ======================================== */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.13);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 970px;
  margin: 0 auto;
  padding: 0 15px;
}

.logo-text {
  margin: 24px 0;
  font-family: 'Roboto Slab', sans-serif;
  color: #1c1c1c;
  font-size: 27px;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: block;
  padding: 26px 17px;
  box-shadow: inset 0 3px 0 0 transparent;
  transition: box-shadow 500ms ease, color 300ms ease;
  color: #333;
}

.nav-link:hover {
  box-shadow: inset 0 3px 0 0 hsla(0, 0%, 71%, 0.5);
}

.nav-link.active {
  box-shadow: inset 0 3px 0 0 #4dbd90;
  color: #4dbd90;
}

.nav-toggle {
  display: none;
  padding: 22px 17px;
  font-size: 24px;
  cursor: pointer;
}

/* ========================================
   Buttons
   ======================================== */
.button {
  display: inline-block;
  margin-right: 14px;
  padding: 13px 23px;
  border-radius: 3px;
  background-color: #000;
  box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.12);
  transition: background-color 300ms ease, box-shadow 300ms ease, color 300ms ease;
  font-family: 'Roboto Slab', sans-serif;
  color: #fff;
  text-align: center;
}

.button:hover {
  background-color: #489fd9;
}

.button.hollow {
  background-color: transparent;
  box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.12), inset 0 0 0 2px #000;
  color: #000;
}

.button.hollow:hover {
  background-color: #489fd9;
  box-shadow: 0 2px 1px 0 rgba(0, 0, 0, 0.12), inset 0 0 0 2px #489fd9;
  color: #fff;
}

.button.in-pricing {
  display: block;
  margin: 19px 0 0;
  padding: 10px 23px;
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 70px 0;
}

.section.hero {
  margin-top: 73px;
  background-color: #4dbd90;
  background-image: url('../images/hero-bg.png');
  background-position: 0% 23%;
  background-size: cover;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.23);
}

.section.pricing {
  background-color: #dde7ed;
}

.section.clients {
  padding: 0;
  background-color: #a1bfd4;
}

.section.footer {
  padding: 19px 0;
  background-color: #1c1d1f;
  color: #939596;
  font-size: 14px;
}

/* ========================================
   Hero Section
   ======================================== */
.main-heading {
  margin-bottom: 20px;
  color: #fff;
  font-size: 38px;
  line-height: 44px;
}

.main-subtitle {
  margin-bottom: 26px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 300;
}

.main-image {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Features Section
   ======================================== */
.feature-row {
  margin-bottom: 14px;
}

.feature {
  text-align: left;
}

.feature-icon {
  height: 30px;
  width: auto;
  margin-bottom: 12px;
}

.main-feature-group {
  margin-top: 30px;
}

.small-features-row {
  margin-top: 71px;
}

/* ========================================
   Pricing Section
   ======================================== */
.section-subtitle {
  margin-bottom: 68px;
  font-size: 19px;
  line-height: 22px;
  font-weight: 300;
  text-align: center;
}

.plan-wrapper {
  height: 100%;
  padding: 17px;
  border-radius: 3px;
  background-color: #fff;
  color: #2b2b2b;
  display: flex;
  flex-direction: column;
}

.plan-wrapper .button.in-pricing {
  margin-top: auto;
}

.price-point {
  margin-bottom: 8px;
  font-size: 14px;
}

.price-accent {
  color: #489fd9;
  font-size: 20px;
}

.plan-timeline {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.plan-description {
  font-size: 13px;
  color: #666;
  margin: 14px 0;
  line-height: 1.4;
}

.addl-feature {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 18px;
}

.addl-feature.inactive {
  color: #c7c5c5;
  text-decoration: line-through;
}

.divider {
  width: 50%;
  height: 1px;
  margin: 13px 0 12px;
  background-color: #dbdbdb;
}

.additional-contact {
  margin-top: 21px;
  text-align: center;
}

.page-link {
  border-bottom: 1px solid transparent;
  transition: color 300ms ease, border 300ms ease;
  color: #489fd9;
}

.page-link:hover {
  border-bottom-color: #489fd9;
}

/* ========================================
   Clients Section
   ======================================== */
.clients-wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.client-logo {
  width: 160px;
  height: auto;
  margin: 0 12px;
  object-fit: contain;
}

/* ========================================
   Footer
   ======================================== */
.footer-text {
  text-align: center;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in on page load */
.fade-in-on-load {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Elements that animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays for feature cards */
.small-features-row .col:nth-child(1) .animate-on-scroll { transition-delay: 0ms; }
.small-features-row .col:nth-child(2) .animate-on-scroll { transition-delay: 100ms; }
.small-features-row .col:nth-child(3) .animate-on-scroll { transition-delay: 200ms; }
.small-features-row .col:nth-child(4) .animate-on-scroll { transition-delay: 300ms; }

/* Pricing cards stagger */
.section.pricing .col:nth-child(1) .animate-on-scroll { transition-delay: 0ms; }
.section.pricing .col:nth-child(2) .animate-on-scroll { transition-delay: 150ms; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in-on-load {
    animation: none;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   Responsive Design
   ======================================== */
@media screen and (max-width: 991px) {
  .container {
    max-width: 758px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: #000;
    padding: 13px 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-link {
    padding: 18px 20px;
    color: #fff;
    box-shadow: none;
  }

  .nav-link:hover {
    box-shadow: none;
  }

  .button.in-pricing {
    font-size: 14px;
    line-height: 18px;
  }

  .main-feature-group {
    margin-top: 0;
  }

  .main-image {
    margin-top: 49px;
  }
}

@media screen and (max-width: 991px) {
  .col-4 {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 767px) {
  .col-6,
  .col-3 {
    width: 100%;
  }

  .section {
    padding: 43px 0;
    text-align: center;
  }

  .section.hero {
    margin-top: 51px;
  }

  .logo-text {
    margin: 15px 0;
  }

  .section-subtitle {
    margin-bottom: 44px;
  }

  .plan-wrapper {
    margin: 0 5% 34px;
  }

  .divider {
    width: 100%;
  }

  .feature {
    margin-bottom: 32px;
    text-align: center;
  }

  .feature-icon {
    margin-bottom: 4px;
  }

  .main-feature-group {
    margin-top: 0;
    margin-bottom: 34px;
  }

  h3 {
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 767px) {
  .clients-wrapper {
    flex-wrap: wrap;
  }

  .client-logo {
    width: 120px;
    margin: 15px;
  }
}
