/*
Theme Name: AppX Blueprint
Template: twentytwentyfour
Text Domain: appxblueprint
Version: 1.0
Description: A child theme for my block-based WordPress theme.
Tags: mobile-first approach
*/

:root {

  --color-bg: #060c1a;
  --color-surface: #0b1325;
  --color-elevated: #1c1c3a;

  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-active: rgba(255, 255, 255, 0.1);

  --color-text-primary: #f0f0f5;
  --color-text-body: #d6d7df;
  --color-text-secondary: #8888aa;
  --color-text-muted: #55556a;

  --color-teal: #00c8d0;
  --color-teal-dark: #009aa0;
  --color-teal-glow: rgba(0, 200, 208, 0.08);
  --color-teal-surface: rgba(0, 200, 208, 0.03);

  --color-electric-blue: #3388ff;

  --color-action: #2563eb;
  --color-action-dark: #1d4ed8;
  --color-action-glow: rgba(37, 99, 235, 0.09);
  --color-action-ghost: rgba(37, 99, 235, 0.13);

  --font-family--display: "Wix Madefor Display", sans-serif;
  --font-family--heading: "Wix Madefor Display", sans-serif;
  --font-family--body: "Wix Madefor Text", sans-serif;

  --header-height: 4rem;
}

html {
  scroll-padding-top: var(--wp--preset--spacing--50);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

html body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-size: 1em;
}

.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.wp-site-blocks > main {
  flex: 1 0 auto;
}

body,
.btn a {
  font-family: var(--font-family--body);
}

html h2,
html h3,
html h4,
html h5,
html h6 {
  font-family: var(--font-family--heading);
  color: var(--color-text-primary);
}

html h1 {
  font-family: var(--font-family--display);
  font-weight: 700;
  letter-spacing: -0.02rem;
  font-size: clamp(2rem, 6vw, 2.5rem);
  line-height: 1.2;
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html h2 {
  font-size: 2rem;
}

html h3 {
  font-size: 1.5rem;
}

html h2,
html h3 {
  font-weight: 500;
  line-height: 1.3;
}

p {
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.25;
  color: var(--color-text-body);
}

html a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-electric-blue);
  text-decoration: underline;
  text-decoration-color: var(--color-electric-blue);
  text-underline-offset: 5px;
}

a:focus:not(:focus-visible) {
  outline: none;
}

header.wp-block-template-part {
  min-height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: transparent;
  padding-left: var(--wp--preset--spacing--50);
  padding-right: var(--wp--preset--spacing--50);
  transition:
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

header.wp-block-template-part.is-scrolled {
  background-color: rgba(12, 15, 42, 0.5);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

header > div {
  max-width: var(--wp--style--global--wide-size);
  margin: 0 auto;
  min-height: var(--header-height);
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  align-items: center;
}

header .wp-block-navigation {
  display: none;
}

@media screen and (min-width: 600px) {
  header .wp-block-navigation {
    display: flex;
  }
}

header .wp-block-navigation-item__content:hover,
header .wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
  color: var(--color-electric-blue) !important;
}

header .wp-block-navigation-item__content.is-active,
header .wp-block-navigation-item__content.is-active .wp-block-navigation-item__label {
  color: var(--color-electric-blue) !important;
  text-decoration: underline;
  text-decoration-color: var(--color-electric-blue);
  text-underline-offset: 5px;
}

header .wp-block-image img {
  width: 150px;
  max-width: 100%;
  height: auto;
}

section.hero {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-height));
}

.hero-bg {
  position: absolute;
  height: 60%;
  width: 80%;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  margin: 0 auto;
  will-change: filter;
  transform: translateZ(0);
}

.hero-bg {
  background: var(--color-electric-blue) !important;
}

section.hero::after {
  content: "";
  position: absolute;
  bottom: 5rem;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  opacity: 0.6;
  transform: translateX(-50%) rotate(45deg);
  animation: scroll-cue-bounce 2s ease-in-out infinite;
}

@keyframes scroll-cue-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(45deg);
  }
  50% {
    transform: translateX(-50%) translateY(6px) rotate(45deg);
  }
}

.hero-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  gap: 1rem;
  padding-bottom: 4rem;
}

.hero-content h1 {
  font-family: var(--font-family--display);
  font-weight: 700;
  letter-spacing: -0.1rem;
  font-size: clamp(2rem, 15vw, 3.8rem);
  line-height: 1.15;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  margin: 0;
  text-align: center;
  width: 100%;

}

.hero-content p {
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: 0.25px;
  color: #f0f0f5;
  text-align: center;

  margin: 0;
  width: 100%;
}

.hero-content p br {
  display: none;
}

.hero-content h1 br.confidence-break {
  display: inline;
}

.hero-content .wp-block-buttons {
  width: 100%;
  justify-content: center;
}

.hero-content .wp-block-spacer {
  width: 100%;
}

.btn.cta {
  flex-basis: 100%;
}

.btn a {
  border-radius: 100px;
  text-transform: capitalize;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02rem;
  line-height: 1.5;
  font-family: var(--font-family--body);
}

.cta a {
  background-color: var(--color-electric-blue);
  width: 100%;
  padding: 1rem;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.cta a:hover {
  background-color: var(--color-action-dark);
  color: #fff;
  text-decoration: none;
}

.ai-text {
  color: var(--color-electric-blue);
}

.hero-content h1 {
  display: block !important;
  text-align: center;
}

.hero-content h1 span {
  display: inline !important;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

.hero-content span {
  display: inline !important;
}

@media screen and (min-width: 600px) {
  .hero-bg {
    filter: blur(150px);
  }

  section.hero::after {
    bottom: 10rem;
  }

  .hero-content h1 {
    letter-spacing: -0.15rem;
    line-height: 1.15;
    font-size: clamp(4rem, 10vw, 5.5rem);
  }

  header.wp-block-template-part {
    min-height: auto;
  }

  header > div {
    min-height: auto;
    padding-top: var(--wp--preset--spacing--30) !important;
    padding-bottom: var(--wp--preset--spacing--30) !important;
    align-items: normal;
  }

  .hero-content {
    flex: initial;
    justify-content: normal;
    padding-bottom: 0;
  }

  .hero-content p {
    font-size: 1.375rem;
  }

  .hero-content p br {
    display: inline;
  }

  .hero-content p br.hide-tablet {
    display: none;
  }

  #services {
    padding-top: 0 !important;
    scroll-margin-top: var(--wp--preset--spacing--50);
  }

  .btn.cta {
    flex-basis: content;
  }

  .cta a {
    padding: 1rem 2.5rem;
    width: auto;
  }
}

@media screen and (min-width: 1024px) {
  .hero-content {
    max-width: var(--wp--style--global--wide-size);
  }

  section.hero::after {
    display: none;
  }

  .hero-content h1 br.confidence-break {
    display: none;
  }

  .hero-content p br.hide-tablet {
    display: inline;
  }

  .hero-content h1 {
    font-size: clamp(5.5rem, 8vw, 7.5rem);
    line-height: 1;
    white-space: nowrap;
  }

  .hero-content p {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
  }
}

@media screen and (min-width: 1024px) and (orientation: portrait) {
  .hero-content h1 br.confidence-break {
    display: inline;
  }

  .hero-content {
    flex: 1;
    justify-content: flex-start;
    padding-top: 8vh;
  }

  section.hero::after {
    display: block;
  }
}

@media screen and (min-width: 1024px) and (max-height: 900px) and (orientation: landscape) {
  section.hero {
    padding-top: var(--wp--preset--spacing--40) !important;
  }
}

@media screen and (min-width: 600px) {
  html h1 {
    letter-spacing: -0.03rem;
    line-height: 1.2;
    font-size: 3rem;
  }
  html h2 {
    font-size: 2.75rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
  }
  html h3 {
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.25px;
  }
  p {
    font-size: 1.06rem;
  }
}

@media screen and (min-width: 1024px) {
  html h1 {
    font-size: 3.5rem;
  }
  html h2 {
    font-size: 3rem;
    line-height: 1.17;
  }
  html h3 {
    font-size: 2.25rem;
    line-height: 1.2;
  }
  p {
    letter-spacing: 0;
  }
}

#services > div > p,
.cta-banner > p {
  font-size: 1.05rem;
}

#services > div > p br {
  display: none;
}

@media screen and (min-width: 600px) {
  #services > div > p,
  .cta-banner > p {
    font-size: 1.2rem;
  }

  #services > div > p br {
    display: inline;
  }
}

@media screen and (min-width: 1024px) {
  #services > div > p,
  .cta-banner > p {
    font-size: 1.35rem;
  }

  .cta-banner > p {
    letter-spacing: -0.02em;
  }
}

.wp-block-columns:has(.card) {
  row-gap: 2rem;
}

@media screen and (min-width: 600px) {
  .wp-block-columns:has(.card) {
    flex-wrap: wrap !important;
    row-gap: 2rem;
  }

  .wp-block-columns:has(.card) > .card {
    flex-basis: 100% !important;
  }

  #services .card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
  }

  #services .card .card-icon {
    flex-shrink: 0;
  }

  #services .card > .wp-block-group {
    flex: 1;
    min-width: 0;
  }
}

@media screen and (min-width: 1024px) {
  .wp-block-columns:has(.card) {
    flex-wrap: nowrap !important;

  }

  .wp-block-columns:has(.card) > .card {
    flex-basis: 0 !important;
    flex-grow: 1;
  }

  #services .card {
    display: block;
  }
}

.card {

  border-radius: 24px;

  background-color: var(--color-surface);
  box-shadow: 0px 1px 20px rgba(0, 102, 204, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem;
  transition: border-color 0.2s ease;
}

.card:hover,
.card:active {
  border-color: rgba(51, 136, 255, 0.7);
}

.card img {
  object-fit: fill !important;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.card h4 {

  color: var(--color-electric-blue) !important;

  font-size: 1rem !important;
}

@media screen and (min-width: 600px) {
  .card h4 {
    font-size: 1.06rem !important;
  }
}

.card-icon {
  width: 36px;
  height: 36px;
  color: #4a9eff;
  margin-bottom: 28px;
}

.cta-banner {

  border-radius: 24px !important;
}

.cta-banner .wp-block-buttons {
  margin-top: 2rem;
}

.is-style-rounded img {
  border-radius: 24px !important;
}

#about .position {
  margin-top: 0.25rem;
  font-size: 1.05rem;
}

@media screen and (min-width: 600px) {
  #about .position {
    font-size: 1.2rem;
  }
}

@media screen and (min-width: 1024px) {
  #about .position {
    font-size: 1.35rem;
  }
}

@media screen and (min-width: 600px) {
  #about .wp-block-columns {
    display: grid;

    grid-template-columns: 50fr 50fr;
    column-gap: var(--wp--preset--spacing--40);
    row-gap: 0;
  }

  #about .wp-block-columns > .wp-block-column:first-child {
    display: contents;
  }

  #about .wp-block-columns > .wp-block-column:first-child > * {
    grid-column: 1;
  }

  #about .wp-block-columns > .wp-block-column:first-child > p:nth-of-type(4) {
    grid-column: 1 / -1;
  }

  #about .wp-block-columns > .wp-block-column:last-child {
    grid-column: 2;
    grid-row: 1 / 5;
  }
}

@media screen and (min-width: 1024px) {
  #about .wp-block-columns {
    display: flex;
  }

  #about .wp-block-columns > .wp-block-column:first-child {
    display: block;
  }
}

@media screen and (min-width: 600px) {
  #services > .wp-block-spacer:last-of-type,
  #about .wp-block-spacer:last-of-type {
    display: none;
  }
}

@media screen and (max-width: 599px) {
  body:not(.page-template-industry-page) #about h2 + .wp-block-spacer,
  body:not(.page-template-industry-page) #about .wp-block-spacer:has(+ h2) {
    height: 2rem !important;
  }
}

.about-link,
.page-template-text-based-page .wp-block-post-content a:not(:hover) {
  color: var(--color-text-body);
  text-decoration: underline;
  text-decoration-color: var(--color-text-secondary);
  text-underline-offset: 5px;
}

.about-link {
  display: inline-block;
  margin-top: var(--wp--preset--spacing--20);
}

footer p,
footer time,
footer .wp-block-post-date,
footer .wp-block-navigation-item__content,
footer .wp-block-navigation-item__label,
.footer-nav + a.copyright,
.last-update {
  font-size: 0.85rem;
}

@media screen and (min-width: 600px) {
  footer p,
  footer time,
  footer .wp-block-post-date,
  footer .wp-block-navigation-item__content,
  footer .wp-block-navigation-item__label,
  .footer-nav + a.copyright,
  .last-update {
    font-size: unset;
  }
}

.footer-nav {
  text-align: center;
}

.footer-nav .wp-block-navigation__container::before {
  content: "|";
  padding: 0 var(--wp--style--block-gap) 0 0;
  align-self: center;
  display: none;
}

.footer-nav .wp-block-navigation__container {
  gap: 0;
}

.footer-nav .wp-block-navigation-item {
  display: flex;
  align-items: center;
}

.footer-nav .wp-block-navigation-item__label {
  color: inherit;
}

.footer-nav .wp-block-navigation-item__content {
  color: #a0a8b0;
  transition: color 0.2s ease;
}

.footer-nav .wp-block-navigation-item__content:hover {
  color: var(--color-electric-blue);
  text-decoration: underline;
  text-decoration-color: var(--color-electric-blue);
  text-underline-offset: 5px;
}

.footer-nav .wp-block-navigation-item + .wp-block-navigation-item::before {
  content: "|";
  padding: 0 var(--wp--style--block-gap);
}

.footer-nav + a.copyright {

  order: 4;

  margin-left: calc(-1 * var(--wp--style--block-gap));

  cursor: pointer;
}

.footer-nav + a.copyright::before {
  content: "|";
  padding: 0 var(--wp--style--block-gap);

  color: #a0a8b0;
  text-decoration: none;

  display: inline-block;
}

.footer-nav + a.copyright:hover {
  color: var(--color-electric-blue);
  text-decoration: underline;
  text-decoration-color: var(--color-electric-blue);
  text-underline-offset: 5px;
}

@media screen and (min-width: 600px) {
  .footer-nav {
    font-size: unset;
    opacity: 1;
  }
}

@media screen and (min-width: 1024px) {
  .footer-nav {
    text-align: unset;
  }

  .footer-nav .wp-block-navigation__container::before {
    display: unset;
  }
}

footer,
footer p,
footer a,
footer .wp-block-navigation-item__label,
footer .wp-block-post-date,
.last-update {
  color: #a0a8b0;
}

footer .wp-block-group.alignwide {
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.35rem;
}

@media screen and (max-width: 1023px) {
  footer .wp-block-group.alignwide {
    justify-content: center;
  }
  footer .footer-nav {
    flex: 0 0 auto;
    justify-content: center;
  }
  footer .footer-nav .wp-block-navigation__container {
    justify-content: center;
  }
}

footer .wp-block-site-logo {
  order: 1;
  flex-basis: 100%;
  text-align: center;
}
footer .gradient-line.footer {
  display: none;
}

footer .wp-block-group.copyright {
  order: 2;
  gap: 0.25em;
  flex-basis: 100%;
  justify-content: center;
}
footer .wp-block-navigation {
  order: 3;
}

@media screen and (min-width: 1024px) {
  footer .wp-block-group.alignwide {
    flex-wrap: nowrap;
    align-items: center;
  }

  footer .wp-block-site-logo {
    order: unset;
    flex-basis: auto;
  }
  footer .gradient-line.footer {
    display: block;
  }
  footer .wp-block-group.copyright {
    order: unset;
    flex-basis: auto;
  }
  footer .wp-block-navigation {
    order: unset;
  }
}

footer .wp-block-image img {
  width: 130px;
  max-width: 100%;
  height: auto;
}

.gradient-line.footer {
  background-image: linear-gradient(90deg, var(--color-electric-blue), #050909);
  flex: 1;
  width: 100%;
}

.gradient-line {
  height: 2px;
}

body.error404 header.wp-block-template-part {
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

body.error404 .wp-site-blocks {
  height: 100svh;
  overflow-y: auto;
}

body.error404 main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.error404 .card p {
  font-size: clamp(0.95rem, 2.4svh, 1.35rem);
}

body.error404 h1 {
  font-size: clamp(1.6rem, 5svh, 2.5rem) !important;
}

body.error404 .btn.cta a {
  padding-top: clamp(0.4rem, 1.2svh, 1rem) !important;
  padding-bottom: clamp(0.4rem, 1.2svh, 1rem) !important;
}

.page-template-text-based-page .wp-block-post-content.is-layout-constrained > :not(.alignfull) {
  max-width: 50rem;
  margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
  margin-right: auto !important;
}

.page-template-text-based-page .wp-block-post-content h2 {
  font-size: 2rem;
  line-height: 1.3;
}

.page-template-text-based-page .wp-block-post-content h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.page-template-text-based-page .wp-block-post-content > h2 {
  margin-top: 3rem;
}

.page-template-text-based-page .wp-block-post-content > h3 {
  margin-top: 2rem;
}

.page-template-text-based-page .wp-block-post-content > h2 + h3 {
  margin-top: 1rem;
}

.page-template-text-based-page .wp-block-post-content > :is(h2, h3) + :is(p, ul, ol) {
  margin-top: 0.75rem;
}

.page-template-text-based-page .wp-block-post-content > p {
  margin-top: 0.75rem;
}

.page-template-text-based-page .wp-block-post-content > :first-child {
  margin-top: 0;
}

.page-template-text-based-page .wp-block-post-content li {
  color: var(--color-text-body);
  font-size: 1rem;
}

@media screen and (min-width: 600px) {
  .page-template-text-based-page .wp-block-post-content li {
    font-size: 1.06rem;
  }
}

.page-template-text-based-page .wp-block-post-content :is(ul, ol) {
  padding-left: 2rem;
}

.page-template-text-based-page .wp-block-post-content > :is(ul, ol) {
  margin-top: 0.75rem;
}

.page-template-text-based-page .wp-block-post-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  color: var(--color-electric-blue);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
}

.confirm {
  color: red !important;
}

/* CookieYes cookie table: keep plugin sizes (sitewide p rule would override) */
.cky-audit-table .cky-cookie-des-table p {
  font-size: 12px;
  line-height: 24px;
}

.page-template-text-based-page .wp-block-post-content [id] {
  scroll-margin-top: var(--header-height-real, 6.75rem);
}
