/* 
Flexion Pages Template - Main CSS
Incorporates Flexion's brand color palette for a professional, modern design.
*/

/* CSS Custom Properties - Flexion Color Palette */
:root {
  --flexion-royal: #155FC8;
  --flexion-navy: #1F2937;
  --flexion-charcoal: #4B5563;
  --flexion-ice: #E0F2FE;
  --flexion-iced-pumpkin: #f9d8c3;
  --flexion-pumpkin: #c55316;
  --flexion-pumpkin-hover: #aa4411;
  --flexion-smoke: #F9FAFB;
  --flexion-snow: #FFFFFF;
  --font-headline: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: 'Figtree', sans-serif;
  color: var(--flexion-navy);
}

p {
  color: var(--flexion-navy);
}

h1, h2, h3, h4, h5, h6, 
.usa-icon-list__title,
.usa-prose h1, .usa-prose h2, .usa-prose h3, .usa-prose h4, .usa-prose h5, .usa-prose h6,
.usa-content h1, .usa-content h2, .usa-content h3, .usa-content h4, .usa-content h5, .usa-content h6,
.usa-card__heading,
.usa-section h1, .usa-section h2, .usa-section h3, .usa-section h4, .usa-section h5, .usa-section h6 {
  color: var(--flexion-navy);
  font-family: 'Figtree', sans-serif;
  line-height: 120%;
  margin-top: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 140%;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 130%;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 130%;
}

h5 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 140%;
}

h6 {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 140%;
}

h4.usa-icon-list__title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 120%;
  margin-top: 0;
}

p,
.usa-prose p,
.usa-content p,
.usa-icon-list p,
.usa-card__body p,
.usa-section p {
  color: var(--flexion-navy);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 160%;
}

/* Hero Styling */
.usa-hero {
  background: linear-gradient(83.19deg, #00AAD5 26.52%, var(--flexion-royal) 95.5%);
  color: var(--flexion-snow);
  display: flex;
  align-items: center;
  margin-top: -1px;
}

.usa-hero__callout {
  background: transparent;
  max-width: none;
  padding: 0px;
}

.usa-hero__heading--alt {
  color: var(--flexion-snow);
  font-size: 4rem;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}

.usa-hero__text {
  color: var(--flexion-snow);
  font-size: 1.3rem;
  line-height: 1.5;
  margin: 1.5rem 0 2.5rem;
  font-weight: 400;
}

.usa-hero__media {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.usa-hero__image {
  width: auto;
  height: auto;
  max-height: 375px;
  margin-bottom: 2rem;
}

/* Center the image in the hero flex container */
.usa-hero .flex-1:last-child {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Header/Logo */
.usa-header {
  background: linear-gradient(83.19deg, #00AAD5 26.52%, var(--flexion-royal) 95.5%);
  border-bottom: none;
}

.usa-header + .usa-hero {
  border-top: none;
  margin-top: 0;
}

.usa-logo img {
  max-height: 60px;
  width: auto;
}

.usa-logo a:focus {
  outline: none;
  box-shadow: none;
}

/* Button Styling */
.usa-button {
  background-color: var(--flexion-pumpkin);
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  min-width: 292.73px;
}

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

/* Features section */
.features-section h3 {
  position: relative;
  padding-bottom: 0.5rem;
}

.features-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 3px;
  background-color: var(--flexion-pumpkin);
}

#benefits .usa-icon-list:first-of-type {
  min-height: 200px;
}

/* Custom icon list styling */
.usa-icon-list__item {
  align-items: flex-start;
}

.usa-icon-list__icon {
  font-family: 'Inter', sans-serif;
  background-color: var(--flexion-snow);
  border: 2px solid var(--flexion-pumpkin);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  padding: 2px;
  margin-top: 0;
}


.ux-section {
  background-color: var(--flexion-royal);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  border-top: 6px solid var(--flexion-pumpkin);
}

.ux-section h2,
.ux-section p {
  color: var(--flexion-snow);
}

.ux-section .usa-icon-list__icon {
  background-color: transparent;
  border: none;
}

.plus-icon {
  color: var(--flexion-pumpkin);
  font-size: 1.75rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ux-section .usa-icon-list__content > p {
  font-size: 1.625rem;
}

.usa-icon-list__icon .usa-icon {
  color: var(--flexion-navy);
  width: 26px;
  height: 26px;
  fill: var(--flexion-navy);
}

.phone-mockup {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}

.phone-frame {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(22px 32px 20px rgba(0, 0, 0, 0.4));
}

.usa-icon-list__title {
  padding-top: 0;
  font-size: 1.5rem;
}

/* Features section */
.features-section {
  background-color: var(--flexion-ice);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.open-future-section {
  background-color: var(--flexion-ice);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.contact-header {
  background: linear-gradient(83.19deg, #00AAD5 26.52%, var(--flexion-royal) 95.5%);
}

.contact-hero {
  background: linear-gradient(83.19deg, #00AAD5 26.52%, var(--flexion-royal) 95.5%);
}

.thank-you-header {
  background: linear-gradient(83.19deg, #00AAD5 26.52%, var(--flexion-royal) 95.5%);
}

.contact-form {
  max-width: 500px;
}

.contact-form .usa-button {
  min-width: auto;
  padding: 0.75rem 2rem;
}

.thank-you-section {
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
}

.features-section .width-6 {
  width: 2.25rem;
}

.features-section .bg-white {
  height: 100%;
  display: flex;
  flex-direction: column;
}


/* Footer */
.usa-footer {
  background-color: var(--flexion-navy);
  padding: 1.5rem 0;
}

.usa-footer__secondary-section {
  background-color: transparent;
  text-align: center;
}

.usa-footer p {
  color: var(--flexion-snow);
  margin: 0;
  text-align: center;
}

.usa-footer p a {
  color: var(--flexion-snow);
  text-decoration: underline;
}

.usa-footer p a:hover {
  color: var(--flexion-snow);
  opacity: 0.8;
}

/* CTA Section */
.cta-section {
  background-color: var(--flexion-navy);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
}

.cta-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/forms_pattern.svg'); /* placeholder awaiting forms pattern */
  background-size: cover;
  pointer-events: none;
  z-index: 1;
}

.cta-section .grid-container {
  position: relative;
  z-index: 2;
}

.cta-white-box {
  background-color: var(--flexion-snow);
  border-top: 6px solid var(--flexion-pumpkin);
  padding: 4rem;
  border-radius: 0;
}

/* Utilities */
main .container {
  padding: 0;
}

.width-5 {
  width: 3rem;
}

.maxw-card {
  max-width: 200px;
}

.maxw-tablet {
  max-width: 480px;
}

.height-5 {
  height: 3rem;
}

.padding-left-4 {
  padding-left: 2rem;
}

.usa-section:first-of-type img {
  max-height: 445px;
  height: auto;
  object-fit: contain;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .usa-header {
    padding: 1rem 0;
    border-bottom: none;
  }
  
  .usa-section {
    padding: 2rem 0;
  }
  
  .usa-hero {
    min-height: auto;
    text-align: center;
    padding: 1rem 0 0 0;
  }
  
  .usa-hero .display-flex,
  .usa-section .display-flex {
    flex-direction: column-reverse;
    gap: 2rem;
  }
  
  .usa-section .display-flex.flex-wrap {
    flex-direction: column;
  }
  
  .usa-section .display-flex.margin-top-4 {
    flex-direction: column;
    gap: 1rem;
  }
  
  .usa-section .display-flex.margin-top-4 .flex-1 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  
  .usa-section .display-flex.margin-top-4 .usa-icon-list {
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .usa-hero .padding-right-4,
  .usa-section .padding-right-4,
  .usa-section .padding-right-2,
  .usa-section .padding-left-2,
  .usa-section .padding-x-1 {
    padding-right: 0;
    padding-left: 0;
  }
  
  .usa-hero__heading--alt {
    font-size: 2.5rem;
  }
  
  .usa-hero__text {
    font-size: 1.125rem;
    margin: 1rem 0 2rem;
  }
  
  .usa-hero__image {
    max-height: 311px;
  }
  
  .grid-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .usa-button {
    width: 100%;
    min-width: 100%;
  }
  
  .cta-white-box {
    padding: 1.5rem;
  }
}

.usa-input, 
.usa-textarea,
.usa-label {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}


@media (min-width: 641px) and (max-width: 1024px) {
  .usa-hero__heading--alt {
    font-size: 3rem;
  }
  
  .usa-hero__text {
    font-size: 1.2rem;
  }
  
  .usa-hero__image {
    max-width: 450px;
  }
}