/*
Theme Name: ETA
Theme URI: 
Author: Digiteam Inc.
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 0.1.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eta
Tags: 
*/

:root {
  --wp--custom--header-height: 10.625rem;
}

*,
::before,
::after {
  box-sizing: border-box;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
}

.entry-content {
  /* scroll-snap-type: y mandatory; */
}

.gsap-section {
  min-height: 100dvh;
  place-content: center;
  position: relative;
  /* padding-block: 149px !important;  */
  /* Adjusted for fixed header height */
  /* position: relative; */
  /* scroll-snap-align: start; */

  /* &:is(.is-sticky) {
    position: sticky;
    top: 0;
  } */
}

/* .gsap-content-fade-scale {
    opacity: 0;
    transform: scale(0.8) translateY(50%);
    transform-origin: bottom center;
} */

@media (max-width: 781px) {
  .wp-block-spacer {
    display: none !important;
  }
}

.gsap-section-hero {
  --hero-padding-block-start: min(171px, max(171px, 18.39dvh));
  --hero-padding-block-end: min(18.92dvh, 11rem);
  padding-block-start: var(--hero-padding-block-start);
  padding-block-end: var(--hero-padding-block-end);
  user-select: none;

  background: rgba(25, 41, 67, 1);
  background: linear-gradient(
    var(--hero-gradient-angle, 0deg),
    rgba(44, 47, 126, 1) 0%,
    rgba(40, 48, 117, 1) 20%,
    rgba(29, 52, 92, 1) 40%,
    rgba(27, 54, 86, 1) 50%,
    rgba(25, 41, 67, 1) 90%
  );
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;

  > .wp-block-group {
    flex-grow: 1;
  }
}

.gsap-section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* 337px */
  background:
    url(/wp-content/uploads/2025/06/Transparent_Hands.webp)
      var(--hero-image-fg-position-x, left 50%)
      var(--hero-image-fg-position-y, bottom min(97px, 10.43dvh)) /
      var(--hero-image-fg-size, 100% auto) no-repeat,
    url(/wp-content/uploads/2025/06/HeaderlineGraphic.svg)
      var(--hero-image-bg-position-x, left 50%)
      var(--hero-image-bg-position-y, bottom 0) /
      var(--hero-image-bg-size, 100% auto) no-repeat;
  z-index: -1;
}

.gsap-section-hero .wp-block-columns {
  margin-block-start: var(
    --hero-buttons-margin-block-start,
    min(28.6dvh, 16.625rem)
  );
}

@media (width < 600px), (orientation: portrait) {
  .gsap-section-hero {
    --hero-padding-block-start: max(97px, 12.71dvh);
    --hero-padding-block-end: min(7.34dvh, 3.5rem);
    --hero-buttons-margin-block-start: auto;
    --hero-image-fg-position-x: left 30%;
    --hero-image-fg-position-y: top 32svh;
    --hero-image-fg-size: 170% auto;
    --hero-image-bg-position-x: left 55%;
    --hero-image-bg-position-y: top 12svh;
    --hero-image-bg-size: 170% auto;
    --hero-gradient-angle: 180deg;
    min-height: 100svh;
  }

  .gsap-section:not(.gsap-section-hero) {
    padding-block-start: max(97px, 12.71dvh) !important;
  }
}

@media (width > 600px) and (orientation: landscape) {
  .gsap-section:not(.gsap-section-hero) {
    padding-block: var(--wp--custom--header-height) !important;
  }
}

/* Pricing chart */
.payment-chart-image .wp-block-image img {
  width: 100%;
  object-fit: contain;
  max-width: 617px;
  max-height: 100dvh;
}

@media (width >= 71.25rem) {
  .payment-chart {
    /* min-height: 100dvh; */
    padding-block-start: var(--wp--custom--header-height) !important;
  }

  .payment-chart-image {
    position: relative;
  }

  /* Dropshadow */
  .payment-chart-image .wp-block-image:last-child {
    position: absolute;
    left: 0;
    width: 100%; 
    display: flex;
    justify-content: center;
   }
}

@media (width < 71.25rem) {
  .payment-chart {
    gap: 0;
    margin-inline: calc(var(--wp--style--root--padding-right) * -1) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(6, auto);
  }

  .payment-chart > .wp-block-columns {
    display: grid !important;
    gap: 0 !important;
    grid-column: span 2;
    grid-row: 1 / -1;
    grid-template-rows: subgrid;
    width: 100% !important;
  }

  .payment-chart-image {
    display: none;
  }

  .payment-chart-column {
    padding-block: 0 !important;
    word-break: normal;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / -1;
  }

  .payment-chart-column-stack {
    gap: 0 !important;
    display: grid !important;
    grid-template-rows: subgrid;
    grid-row: 1 / -1;
  }

  .payment-chart-column-stack > .wp-block-group {
    gap: 0.4375rem;
  }

  .payment-chart-column-stack > * {
    border-bottom: solid 1px rgba(255, 255, 255, 0.25);
    padding: 0.75rem;
  }

  .payment-chart .wp-block-image img {
    display: block;
  }

  .payment-chart .wp-block-heading {
    background-color: #181b5e;
    text-transform: uppercase;
    border-bottom: none;
  }

  .payment-chart .wp-block-heading > span {
    display: block;
    width: min-content;
    margin-inline: auto;
  }
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

@media (width < 782px) {
  h1,
  .has-heading-xl-font-size {
    letter-spacing: -0.02em;
  }
}

/* NinjaForms */
.nf-before-form-content,
.nf-after-form-content,
.field-wrap.email-wrap label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.nf-form-content {
  margin-inline: auto;
  width: min(30.75rem, 100%);
}

.field-wrap.email-wrap input[type='email'] {
  border: none;
  border-radius: 0;
  border-block-end: solid 2px var(--wp--preset--color--neutral-gray);
  background-color: transparent;
  height: 3.25rem;
  width: 100%;
  padding-inline: 0.75rem;
  padding-block-end: 0.5rem;
  font-size: var(--wp--custom--typography--button--font-size);
  font-weight: 300;

  &:focus {
    outline: none;
    border-block-end-color: var(--wp--preset--color--indigo-navy);
  }
}

.ninja-forms-field[type='submit'] {
  display: block;
  margin-inline: auto;
  margin-block-start: var(--wp--custom--clamp--fluid-24-40);
  width: min(23rem, 100%) !important;
  color: var(--wp--preset--color--indigo-navy);
  background-color: transparent;
  border: solid 1px var(--wp--preset--color--indigo-navy);
  border-radius: 999px;
  font-size: var(--wp--custom--typography--button--font-size);
  font-weight: 600;
  line-height: 1.1;
  min-height: 4rem;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;

  &:hover {
    background-color: hsla(239, 50%, 29%, 0.15);
  }
}

.nf-error-msg {
  color: var(--wp--preset--color--vivid-red);
  font-size: 1rem;
  font-weight: 500;
  margin-block-start: 0.5rem;
}

.nf-response-msg:not(:empty) {
  font-weight: 500;
  text-align: center;
  padding: 1.25rem;
  border-radius: 1em;
  background-color: hsla(0, 0%, 95%, 1);
  color: var(--wp--preset--color--indigo-navy);
  margin-inline: auto;
  width: min(30.75rem, 100%);
}

#hero .wp-block-buttons {
  opacity: 0;
  /* transform: scale(0.8); */
}

.gsap-content {
  /* opacity: 0; */
  /* transform-origin: bottom center; */
}

.gsap-content-fade-in {
  /* opacity: 0; */
  /* transform-origin: center; */
}

/* Smaller screen sizes */
@media (width <= 64rem) {
  #hero .wp-block-columns {
    flex-wrap: wrap !important;
  }

  #hero .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* Supersize version */
@media (width > 120rem), (width > 46.25rem) and (orientation: portrait) {
  /* :root {
    --wp--style--global--wide-size: 1920px;
    --wp--style--global--content-size: 1280px;

    --wp--custom--header-height: 15.16dvmin;

    --wp--preset--font-size--heading-xl: clamp(4.6875rem, 8.1dvmin, 9.375rem);
    --wp--preset--font-size--subtitle: clamp(2.5rem, 4.3dvmin, 5rem);
    --wp--preset--font-size--heading-lg: clamp(4rem, 6.88dvmin, 8rem);
    --wp--preset--font-size--heading-md: clamp(2rem, 3.44dvmin, 4rem);
    --wp--preset--font-size--lg: clamp(1.75rem, 3.01dvmin, 3.5rem);
    --wp--preset--font-size--md: clamp(1.5rem, 2.58dvmin, 3rem);
    --wp--preset--font-size--sm: clamp(1.25rem, 2.15dvmin, 2.5rem);
    --wp--custom--typography--button--font-size: clamp(
      1.25rem,
      2.2dvmin,
      2.5rem
    );

    --wp--custom--clamp--fluid-32-52: clamp(3.25rem, 5.59dvmin, 6.5rem);

    --wp--preset--spacing--20: clamp(1.5rem, 2.58dvmin, 3rem);
    --wp--preset--spacing--30: clamp(2rem, 3.44dvmin, 4rem);
    --wp--preset--spacing--40: clamp(2.5rem, 4.3dvmin, 5rem);
    --wp--preset--spacing--50: clamp(4rem, 6.88dvmin, 8rem);
    --wp--preset--spacing--60: clamp(4.5rem, 7.742dvmin, 9rem);
    --wp--preset--spacing--70: clamp(5rem, 8.6dvmin, 10rem);
    --wp--preset--spacing--80: clamp(6rem, 10.32dvmin, 12rem);
  }

  body {
    --wp--style--root--padding-left: 4.444dvw;
    --wp--style--root--padding-right: 4.444dvw;
  } */

  /* Buttons */
  /* :root :where(.wp-block-button .wp-block-button__link) {
    min-height: clamp(4.75rem, 8.17dvmin, 9.5rem);
  }

  :root :where(.wp-block-buttons .wp-block-button) {
    flex-basis: max(23rem, 25.55dvw);
  }
 */
  /* Header */
  /* .site-header {
    height: var(--wp--custom--header-height);
    display: flex;
    flex-direction: column;
    justify-content: center;

    .wp-block-template-part > .wp-block-group {
      padding-block: 0 !important;
    }
  }

  .wp-block-site-logo {
    flex-basis: 100% !important;
    img {
      height: 7.42dvmin;
      width: auto;
    }
  } */

  /* Hero section */
  /* .gsap-section-hero {
    --hero-padding-block-start: calc(
      var(--wp--custom--header-height) + 3.22dvmin
    );
    --hero-padding-block-end: 18.92dvmin;
    --hero-buttons-margin-block-start: auto;
  } */

  /* .gsap-section-hero::after {
    --hero-image-fg-position-y: bottom 10.43dvmin;
  } */

  /* Normal non-hero sections */
  /* .gsap-section:not(.gsap-section-hero) {
    padding-block: calc(
      var(--wp--custom--header-height) + 3.22dvmin
    ) !important;
  } */
}
