/*
Theme Name: Smartex Astra Child
Theme URI: https://smartexsolutions.ae
Description: Astra child theme for Smartex Solutions corporate engineering website.
Author: Smartex Solutions
Template: astra
Version: 1.2.0
Text Domain: smartex-astra-child
*/

:root {
  --smx-navy: #040463;
  --smx-ink: #0a1740;
  --smx-blue: #1264ff;
  --smx-cyan: #18b7ff;
  --smx-steel: #63718a;
  --smx-line: #dce5f2;
  --smx-soft: #f4f8fd;
  --smx-white: #ffffff;
  --smx-shadow: 0 18px 45px rgba(6, 22, 56, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--smx-ink);
  font-family: Montserrat, "Source Sans Pro", Arial, sans-serif;
}

a {
  color: var(--smx-blue);
}

.smx-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 20px;
}

.smx-header__inner {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  position: relative;
}

.smx-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--smx-line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-bar .smx-header {
  top: 32px;
}

.smx-header__inner {
  min-height: 68px;
}

.smx-logo {
  flex: 0 0 auto;
}

.smx-logo img {
  display: block;
  max-height: 38px;
  max-width: 168px;
  width: auto;
}

.smx-nav {
  flex: 1;
  min-width: 0;
}

.smx-nav ul {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.smx-menu-toggle {
  background: var(--smx-white);
  border: 1px solid var(--smx-line);
  border-radius: 8px;
  display: none;
  height: 42px;
  margin-left: auto;
  padding: 8px;
  width: 46px;
}

.smx-menu-toggle span {
  background: var(--smx-navy);
  border-radius: 2px;
  display: block;
  height: 2px;
  margin: 6px 0;
}

.smx-nav li {
  position: relative;
}

.smx-nav a {
  color: var(--smx-ink);
  display: block;
  font-size: 10.4px;
  font-weight: 750;
  letter-spacing: 0;
  padding: 24px 5.5px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.smx-nav a:hover,
.smx-nav a:focus {
  color: var(--smx-blue);
}

.smx-nav .sub-menu {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--smx-line);
  border-radius: 8px;
  box-shadow: var(--smx-shadow);
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  left: 0;
  min-width: 235px;
  padding: 8px;
  position: absolute;
  top: 100%;
  z-index: 70;
}

.smx-nav li.is-open > .sub-menu {
  display: flex;
}

@media (min-width: 901px) {
  .smx-nav li:hover > .sub-menu,
  .smx-nav li:focus-within > .sub-menu {
    display: flex;
  }
}

.smx-nav .sub-menu a {
  border-radius: 6px;
  color: var(--smx-ink);
  font-size: 12px;
  line-height: 1.3;
  padding: 11px 12px;
  text-transform: none;
  white-space: normal;
}

.smx-nav .sub-menu a:hover {
  background: #dff1ff;
  color: var(--smx-blue);
}

.smx-btn {
  align-items: center;
  background: var(--smx-blue);
  border: 1px solid var(--smx-blue);
  border-radius: 8px;
  color: var(--smx-white);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  line-height: 1;
  min-height: 46px;
  padding: 14px 20px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.smx-btn:hover {
  background: #0a50d4;
  box-shadow: var(--smx-shadow);
  color: var(--smx-white);
  transform: translateY(-1px);
}

.smx-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--smx-white);
}

.smx-btn--light {
  background: var(--smx-white);
  border-color: var(--smx-white);
  color: var(--smx-navy);
}

.smx-hero {
  background:
    linear-gradient(90deg, rgba(6, 22, 56, 0.96), rgba(6, 22, 56, 0.72)),
    url("assets/images/optimized/main-theme-pic.webp") center/cover;
  color: var(--smx-white);
  overflow: hidden;
  padding: 92px 0 46px;
  position: relative;
}

.smx-hero__grid {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.smx-eyebrow {
  color: var(--smx-cyan);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.smx-hero h1 {
  color: var(--smx-white);
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0 0 20px;
  max-width: 820px;
}

.smx-hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 720px;
}

.smx-hero__actions,
.smx-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.smx-hero__panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
}

.smx-hero__panel img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.smx-statbar {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
}

.smx-stat {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
}

.smx-stat strong {
  color: var(--smx-white);
  display: block;
  font-size: 26px;
}

.smx-stat span {
  color: rgba(255, 255, 255, 0.76);
  display: block;
  font-size: 13px;
}

.smx-section--soft .smx-stat {
  background: var(--smx-navy);
}

.smx-section {
  padding: 62px 0;
}

.smx-section--soft {
  background: var(--smx-soft);
}

.smx-section--dark {
  background: var(--smx-navy);
  color: var(--smx-white);
}

.smx-heading {
  margin-bottom: 28px;
  max-width: 800px;
}

.smx-heading h2 {
  color: inherit;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0 0 14px;
}

.smx-heading p {
  color: var(--smx-steel);
  font-size: 17px;
  line-height: 1.72;
  margin: 0;
}

.smx-heading p + p {
  margin-top: 12px;
}

.smx-narrow {
  max-width: 920px;
}

.smx-narrow h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.14;
  margin: 0 0 18px;
}

.smx-narrow p {
  color: var(--smx-steel);
  font-size: 17px;
  line-height: 1.72;
  margin: 0 0 12px;
}

.smx-page-grid {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.smx-page-grid h2,
.smx-section-inner h2 {
  font-size: 32px;
  margin: 0 0 14px;
}

.smx-page-grid p,
.entry-content p {
  color: var(--smx-steel);
  font-size: 16px;
  line-height: 1.72;
  margin: 0 0 13px;
}

.smx-page-panel {
  background: var(--smx-soft);
  border: 1px solid var(--smx-line);
  border-radius: 8px;
  padding: 22px;
}

.smx-page-panel h3 {
  margin-top: 0;
}

.smx-section-inner {
  margin-top: 42px;
}

.smx-info-tile {
  background: var(--smx-white);
  border: 1px solid var(--smx-line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(6, 22, 56, 0.05);
  color: var(--smx-ink);
  font-weight: 750;
  line-height: 1.35;
  padding: 18px;
}

.smx-section--dark .smx-heading p,
.smx-section--dark p {
  color: rgba(255, 255, 255, 0.74);
}

.smx-grid {
  display: grid;
  gap: 20px;
}

.smx-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smx-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.smx-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smx-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.smx-card {
  background: var(--smx-white);
  border: 1px solid var(--smx-line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(6, 22, 56, 0.05);
  overflow: hidden;
  text-decoration: none;
}

.smx-card__body {
  padding: 22px;
}

.smx-card h3 {
  color: var(--smx-ink);
  font-size: 19px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 10px;
}

.smx-card p,
.smx-card li {
  color: var(--smx-steel);
  font-size: 15px;
  line-height: 1.65;
}

.smx-card img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.smx-icon {
  align-items: center;
  background: rgba(18, 100, 255, 0.1);
  border-radius: 8px;
  color: var(--smx-blue);
  display: inline-flex;
  font-size: 16px;
  font-weight: 850;
  height: 48px;
  justify-content: center;
  margin-bottom: 14px;
  width: 48px;
}

.smx-service {
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.smx-service:hover {
  border-color: rgba(18, 100, 255, 0.38);
  box-shadow: var(--smx-shadow);
  transform: translateY(-3px);
}

.smx-split {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.smx-split img {
  border-radius: 8px;
  box-shadow: var(--smx-shadow);
  display: block;
  width: 100%;
}

.smx-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.smx-list li {
  border-bottom: 1px solid var(--smx-line);
  color: var(--smx-steel);
  padding: 0 0 12px 30px;
  position: relative;
}

.smx-list li::before {
  background: var(--smx-blue);
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 4px;
  position: absolute;
  top: 10px;
  width: 8px;
}

.smx-industries span {
  background: var(--smx-white);
  border: 1px solid var(--smx-line);
  border-radius: 8px;
  color: var(--smx-ink);
  display: block;
  font-weight: 750;
  padding: 18px;
}

.smx-mini-card {
  align-items: center;
  background: var(--smx-white);
  border: 1px solid var(--smx-line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 16px;
}

.smx-mini-card img {
  border-radius: 8px;
  height: 58px;
  object-fit: cover;
  width: 74px;
}

.smx-mini-card strong {
  display: block;
  line-height: 1.25;
}

.smx-project {
  min-height: 310px;
  position: relative;
}

.smx-project::after {
  background: linear-gradient(180deg, rgba(6, 22, 56, 0), rgba(6, 22, 56, 0.86));
  content: "";
  inset: 0;
  position: absolute;
}

.smx-project img {
  height: 310px;
}

.smx-project__label {
  bottom: 0;
  color: var(--smx-white);
  left: 0;
  padding: 22px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.smx-project__label h3,
.smx-project__label p {
  color: var(--smx-white);
}

.smx-cta {
  background:
    linear-gradient(90deg, rgba(6, 22, 56, 0.97), rgba(18, 100, 255, 0.82)),
    url("assets/images/robotics-integrations.jpg") center/cover;
  color: var(--smx-white);
  padding: 72px 0;
}

.smx-cta h2 {
  color: var(--smx-white);
}

.smx-contact {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.smx-contact__box {
  background: var(--smx-white);
  border-radius: 8px;
  box-shadow: var(--smx-shadow);
  max-width: 520px;
  max-height: none;
  min-height: 0;
  overflow-y: visible;
  padding: 20px;
}

.smx-modal {
  align-items: center;
  background: rgba(3, 16, 42, 0.72);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 100;
}

.smx-modal.is-open {
  display: flex;
}

.smx-modal__panel {
  background: var(--smx-white);
  border-radius: 8px;
  box-shadow: var(--smx-shadow);
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 18px;
  position: relative;
  width: 100%;
}

.smx-modal__close {
  align-items: center;
  background: var(--smx-soft);
  border: 1px solid var(--smx-line);
  border-radius: 8px;
  color: var(--smx-ink);
  display: flex;
  font-weight: 850;
  height: 28px;
  justify-content: center;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
}

.smx-contact__box label {
  color: var(--smx-ink);
  display: block;
  font-weight: 750;
  font-size: 13px;
  margin-bottom: 5px;
}

.smx-contact__box h2 {
  font-size: 24px;
  line-height: 1.15;
  margin: 0 32px 12px 0;
}

.smx-contact__box .smx-btn {
  min-height: 42px;
  padding: 11px 14px;
  width: 100%;
}

.smx-contact__box input,
.smx-contact__box textarea,
.smx-contact__box select {
  border: 1px solid var(--smx-line);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  min-height: 42px;
  padding: 10px;
  width: 100%;
}

.smx-contact__box textarea {
  min-height: 92px;
}

.smx-form-success {
  background: #e9fbf1;
  border: 1px solid #a7e6bf;
  border-radius: 8px;
  color: #0f6b35;
  font-weight: 750;
  margin: 0 0 12px;
  padding: 12px 14px;
}

.smx-form-error {
  background: #fdecec;
  border: 1px solid #f2a8a8;
  border-radius: 8px;
  color: #9f1d1d;
  font-weight: 750;
  margin: 0 0 12px;
  padding: 12px 14px;
}

.smx-form-status {
  display: none;
  border-radius: 8px;
  font-weight: 750;
  margin: 0 0 12px;
  padding: 12px 14px;
}

.smx-form-status--success {
  display: block;
  background: #e9fbf1;
  border: 1px solid #a7e6bf;
  color: #0f6b35;
}

.smx-form-status--error {
  display: block;
  background: #fdecec;
  border: 1px solid #f2a8a8;
  color: #9f1d1d;
}

.smx-contact-details {
  background: var(--smx-soft);
  border: 1px solid var(--smx-line);
  border-radius: 8px;
  margin-top: 22px;
  padding: 18px;
}

.smx-contact-details p {
  margin-bottom: 8px;
}

.smx-contact-cards .smx-info-tile {
  font-size: 14px;
  line-height: 1.5;
}

.smx-smart-contact-form {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

.smx-contact__box--smart {
  max-width: 640px;
  padding: 18px;
}

.smx-contact__box--smart h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.smx-contact__box--smart input,
.smx-contact__box--smart textarea,
.smx-contact__box--smart select {
  margin-bottom: 8px;
  min-height: 38px;
  padding: 9px 10px;
}

.smx-contact__box--smart textarea {
  min-height: 82px;
}

.smx-footer {
  background: #03102a;
  color: rgba(255, 255, 255, 0.76);
  padding: 44px 0 22px;
}

.smx-footer img {
  background: var(--smx-white);
  border-radius: 8px;
  max-width: 220px;
  padding: 8px;
}

.smx-footer .smx-social img,
.smx-footer .smx-wa img {
  background: transparent;
  max-width: none;
  padding: 0;
}

.smx-footer a {
  color: var(--smx-white);
}

.smx-footer h3 {
  color: var(--smx-white);
}

.smx-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.smx-socials a {
  align-items: center;
  background: var(--smx-white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--smx-navy);
  display: inline-flex;
  font-size: 13px;
  font-weight: 850;
  height: 32px;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  width: 32px;
}

.smx-social img {
  border-radius: 50%;
  display: block;
  height: 26px;
  object-fit: cover;
  width: 26px;
}

.smx-map {
  border: 0;
  border-radius: 8px;
  height: 190px;
  width: 100%;
}

.smx-copyright {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  margin-top: 18px;
}

.smx-wa {
  align-items: center;
  background: transparent;
  border-radius: 50%;
  bottom: 22px;
  box-shadow: 0 12px 30px rgba(25, 184, 86, 0.36);
  display: flex;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 22px;
  text-decoration: none;
  width: 58px;
  z-index: 60;
}

.smx-wa img {
  border-radius: 50%;
  display: block;
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.smx-wa:hover {
  color: var(--smx-white);
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .smx-hero__grid,
  .smx-split,
  .smx-contact,
  .smx-page-grid,
  .smx-grid--4,
  .smx-grid--3 {
    grid-template-columns: 1fr;
  }

  .smx-grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smx-grid--2,
  .smx-statbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smx-header__inner {
    align-items: center;
    padding: 10px 0;
  }

  .smx-nav ul {
    flex-wrap: wrap;
  }

  .smx-nav a {
    padding: 8px;
  }

  .smx-nav .sub-menu {
    position: static;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .smx-menu-toggle {
    display: block;
    order: 2;
  }

  .smx-header__inner {
    flex-wrap: wrap;
  }

  .smx-logo {
    order: 1;
  }

  .smx-nav {
    display: none;
    flex-basis: 100%;
    order: 3;
    width: 100%;
  }

  .smx-nav.is-open {
    display: block;
  }

  .smx-nav ul {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }

  .smx-nav a {
    border-top: 1px solid var(--smx-line);
    padding: 12px 8px;
    white-space: normal;
  }

  .smx-nav .sub-menu {
    box-shadow: none;
    margin: 0 0 8px;
    position: static;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .smx-nav .menu-item-has-children.smx-tablet-open > .sub-menu,
  .smx-nav li.smx-tablet-open > .sub-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 767px) {
  .smx-header__inner,
  #masthead .smx-header__inner,
  .site-header .smx-header__inner {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    min-width: 0;
    width: 100%;
    -webkit-box-align: center;
    -webkit-box-pack: justify;
  }

  .smx-logo,
  .site-branding {
    align-items: center;
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    -webkit-box-align: center;
  }

  .smx-menu-toggle,
  .menu-toggle,
  .ast-mobile-menu-trigger-fill {
    align-self: center;
    flex: 0 0 auto;
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .admin-bar .smx-header {
    top: 0;
  }

  .smx-hero {
    padding: 58px 0 34px;
  }

  .smx-section {
    padding: 54px 0;
  }

  .smx-grid--2,
  .smx-grid--5,
  .smx-statbar {
    grid-template-columns: 1fr;
  }

  .smx-nav ul {
    align-items: flex-start;
    flex-direction: column;
  }

  .smx-header__inner {
    align-items: center;
    flex-direction: row;
  }
}
