/* =========================================================
   GAITMAXIMA — COMMON SITE-WIDE STYLES
   Shared header, footer, modal, forms and resource motion.
   Keep this file free of page-specific rules.
   ========================================================= */


/* =========================================================
   GLOBAL PAGE RESET — SITE-WIDE
   Prevent browser default body margins from creating white
   gutters around headers, sections and footer on inner pages.
   ========================================================= */

html {
  width: 100%;
}

body {
  width: 100%;
  margin: 0;
}

#site-header,
#site-footer {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* =========================================================
   SITE HEADER — MASTER / SITE-WIDE
   This is the single source of truth for header sizing and visual rules.
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(7, 26, 50, 0.09);
  transition: transform 0.32s ease, opacity 0.25s ease;
}

.site-header.header-hidden {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

.site-header .nav-wrap {
  width: min(1200px, calc(100% - 48px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.site-header .brand {
  width: 165px;
  flex: none;
  display: block;
}

.site-header .brand img {
  width: 100%;
  height: auto;
  display: block;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.site-header .main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header .main-nav a {
  position: relative;
  display: block;
  padding: 11px 12px;
  border-radius: 999px;
  color: #26384f;
  text-decoration: none;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header .main-nav a:hover {
  color: #0877c8;
  background: #f0f7fa;
  transform: translateY(-2px);
}


/* =========================================================
   ACTIVE NAVIGATION
   ========================================================= */

.site-header .main-nav a.active {
  color: #f17931;
  background: rgba(241, 121, 49, 0.10);
  box-shadow: 0 8px 20px rgba(241, 121, 49, 0.10);
  transform: translateY(-2px);
}

.site-header .main-nav a.active::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: #f17931;
}


/* =========================================================
   REQUEST DEMO CTA
   ========================================================= */

.site-header .main-nav .nav-cta {
  position: relative;
  margin-left: 5px;
  color: #fff;
  border: 1px solid #e66f2d;
  background: linear-gradient(
    135deg,
    #f17931 0%,
    #e86d28 55%,
    #d95c20 100%
  );
  box-shadow: 0 8px 22px rgba(241, 121, 49, 0.22);
  overflow: hidden;
}

.site-header .main-nav .nav-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  transform: skewX(-20deg);
  background: rgba(255, 255, 255, 0.24);
  transition: left 0.55s ease;
}

.site-header .main-nav .nav-cta:hover::before {
  left: 125%;
}

.site-header .main-nav .nav-cta:hover,
.site-header .main-nav .nav-cta.active {
  color: #fff;
  background: linear-gradient(
    135deg,
    #ff8a3d 0%,
    #f17931 55%,
    #dc6024 100%
  );
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 11px 28px rgba(241, 121, 49, 0.30);
}

.site-header .main-nav .nav-cta.active::after {
  display: none;
}


/* =========================================================
   MOBILE NAV TOGGLE
   ========================================================= */

.site-header .nav-toggle {
  display: none;
  margin-left: auto;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.site-header .nav-toggle span {
  display: block;
  width: 27px;
  height: 2px;
  margin: 5px;
  background: #0b2344;
}


/* =========================================================
   SITE FOOTER — MASTER / SITE-WIDE
   This is the single source of truth for footer sizing and visual rules.
   ========================================================= */

.site-footer {
  position: relative;
  padding: 75px 0 20px;
  overflow: hidden;
  color: #536174;
  background: linear-gradient(
    180deg,
    #fbfaf7,
    #eff0ee
  );
  border-top: 1px solid #dfe3e5;
}

.site-footer .container {
  width: min(calc(100% - 48px), 1200px);
  margin: 0 auto;
}


/* =========================================================
   FOOTER GAIT ART
   ========================================================= */

.footer-gait-art {
  position: absolute;
  right: 2%;
  bottom: 70px;
  width: 300px;
  height: 175px;
  opacity: 0.12;
}

.footer-gait-art::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #1557c7,
    #18b77a,
    transparent
  );
}

.footer-gait-art span {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid #1557c7;
  border-radius: 50%;
}

.footer-gait-art span:nth-child(1) {
  left: 126px;
  top: 14px;
}

.footer-gait-art span:nth-child(2) {
  left: 116px;
  top: 49px;
}

.footer-gait-art span:nth-child(3) {
  left: 114px;
  top: 84px;
}

.footer-gait-art span:nth-child(4) {
  left: 95px;
  top: 120px;
}

.footer-gait-art span:nth-child(5) {
  left: 150px;
  top: 120px;
}


/* =========================================================
   FOOTER GRID
   ========================================================= */

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.25fr;
  gap: 50px;
  padding-bottom: 55px;
}

.footer-brand img {
  width: 220px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.footer-brand p,
.site-footer p {
  font-size: 13px;
  line-height: 1.8;
}

.site-footer h4 {
  margin: 4px 0 22px;
  color: #0c2342;
  font: 800 11px Manrope, Arial, sans-serif;
  letter-spacing: 0.17em;
}

.site-footer a {
  display: block;
  margin: 0 0 5px;
  color: #4d5d70;
  font-size: 13px;
  line-height: 1.8;
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.site-footer a:hover {
  color: #1557c7;
  transform: translateX(2px);
}


/* =========================================================
   SOCIAL ICONS
   ========================================================= */

.socials {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid !important;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid #c7d0d9;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  font-size: 10px !important;
}

.socials a svg {
  width: 17px;
  height: 17px;
  display: block;
}

.socials .social-whatsapp {
  color: #25d366;
}

.socials .social-linkedin {
  color: #0a66c2;
}

.socials .social-youtube {
  color: #ff0000;
}


/* =========================================================
   FOOTER BOTTOM
   Copyright | Legal Links | Developer Credit
   ========================================================= */

.footer-bottom {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);

  align-items: center;
  gap: 24px;

  padding-top: 18px;

  border-top: 1px solid #d6dce0;

  color: #738094;
  font-size: 11px;
  line-height: 1.4;
}

.footer-bottom > span {
  justify-self: start;
  white-space: nowrap;
}

.footer-bottom > div {
  justify-self: center;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom > div a {
  display: inline-block;
  margin: 0;
  font-size: 11px !important;
  line-height: 1.4;
}

.footer-bottom > strong {
  justify-self: end;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
}

.footer-bottom > strong a {
  display: inline-block;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
}


/* =========================================================
   COMMON CONTAINERS
   ========================================================= */

.container,
.wrap {
  width: min(1180px, calc(100% - 40px));
  max-width: 100%;
}


/* =========================================================
   FORMS
   ========================================================= */

.gm-form,
.demo-form {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.gm-form input,
.gm-form select,
.gm-form textarea,
.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


/* =========================================================
   CTA LAYOUT
   ========================================================= */

.cta-inner {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
}


/* =========================================================
   RESOURCE PAGES
   ========================================================= */

.resource-page,
.resource-page .container {
  overflow-x: hidden;
}

.resource-panel,
.video-card,
.faq details {
  animation: resourceFloat 0.8s ease both;
}

.resource-panel:nth-child(2),
.video-card:nth-child(2),
.faq details:nth-child(2) {
  animation-delay: 0.08s;
}

.resource-panel:nth-child(3),
.video-card:nth-child(3),
.faq details:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes resourceFloat {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   FAQ
   ========================================================= */

.faq details {
  padding: 1rem 1.2rem;
  border: 1px solid #e6d8ce;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    #fff,
    #fff8f2
  );
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.faq details:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(241, 121, 49, 0.15);
}

.resource-icon {
  color: #f17931 !important;
  font-size: 2.2rem;
  font-weight: 800;
}


/* =========================================================
   DEMO MODAL
   ========================================================= */

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  place-items: center;

  padding: 4vh 4vw;
  overflow: auto;

  background: rgba(4, 20, 32, 0.72);
}

.demo-modal.is-open {
  display: grid;
}

.demo-modal-card {
  position: relative;

  width: 100%;
  max-width: 680px;
  max-height: 92vh;

  padding: 2rem;

  overflow: auto;

  border-radius: 24px;
  background: #fff;
}

.demo-close {
  position: absolute;
  top: 0.6rem;
  right: 1rem;

  border: 0;
  background: none;

  font-size: 2rem;
  cursor: pointer;
}

.form-success {
  margin-top: 1rem;
  padding: 1rem;

  border-radius: 12px;

  background: #e8f7ee;
  color: #176b3a;

  font-weight: 700;
}


/* =========================================================
   DESKTOP / TABLET — <= 1100px
   ========================================================= */

@media (max-width: 1100px) {

  .site-header .main-nav a {
    padding: 9px 7px;
    font-size: 11px;
  }

  .site-header .brand {
    width: 180px;
  }

  .footer-grid {
    grid-template-columns:
      1.2fr
      1fr
      1fr
      1fr;
  }
}


/* =========================================================
   TABLET / MOBILE — <= 850px
   ========================================================= */

@media (max-width: 850px) {

  /* Header */

  .site-header .nav-wrap {
    height: 76px;
  }

  .site-header .nav-toggle {
    display: block;
  }

  .site-header .main-nav {
    position: absolute;
    top: 76px;
    left: 19px;
    right: 19px;

    display: none;
    flex-direction: column;
    align-items: stretch;

    padding: 18px;

    border: 1px solid #e2e7eb;
    background: #fff;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
  }

  .site-header .main-nav.open {
    display: flex;
  }

  .site-header .main-nav a {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .site-header .main-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .site-header .main-nav a.active {
    transform: none;
  }

  .site-header .main-nav a.active::after {
    display: none;
  }


  /* Footer */

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

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-bottom > span,
  .footer-bottom > div,
  .footer-bottom > strong {
    justify-self: center;
  }

  .footer-bottom > span {
    white-space: normal;
  }

  .footer-bottom > div {
    margin: 2px 0;
  }


  /* CTA */

  .cta-inner {
    grid-template-columns: 1fr;
  }


  /* Modal */

  .demo-modal {
    padding: 12px;
  }

  .demo-modal-card {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem;
  }
}


/* =========================================================
   MOBILE — <= 800px
   ========================================================= */

@media (max-width: 800px) {

  .container,
  .wrap {
    width: calc(100% - 28px);
  }
}


/* =========================================================
   SMALL MOBILE — <= 560px
   ========================================================= */

@media (max-width: 560px) {

  .site-header .nav-wrap {
    height: 76px;
  }

  .site-header .brand {
    width: 155px;
  }

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

  .footer-brand img {
    width: 205px;
  }

  .footer-gait-art {
    right: -80px;
  }

  .footer-bottom > div {
    gap: 11px;
  }
}

/* =========================================================
   FIRST-SECTION BACKGROUND — FULL BLEED
   Only the outer section width is normalized.
   Existing inner containers/content remain unchanged.
   ========================================================= */

body > main > section:first-child,
body > main > .page-hero:first-child,
body > main > .hero:first-child,
body > main > .ga-hero:first-child,
body > main > .about-hero:first-child,
body > main > .contact-hero:first-child,
body > main > .resources-hero:first-child {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

