/*
Theme Name: Najla
Author: 
Author URI: 
Theme URI: 
Tags: full-site-editing, block-patterns
Text Domain: najla
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 1.0.1

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
html {
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark light;

    --wp--preset--color--primary: #00a6f4;
    --wp--preset--color--text-1: #90a1b9;
    --wp--preset--color--text-2: #e2e8f0;
    --wp--preset--color--text-4: #cad5e2;
    --wp--preset--color--background-1: #0f172b;
    --wp--preset--color--background-2: #1d293d;
    --wp--preset--color--border-1: #334155;
    --wp--preset--color--primary-background: #00598a;
  }

  .gutena-forms-contact-form,
  .gutena-forms-join-waitlist {
    --wp--gutena-forms--input-border-color: var(--wp--preset--color--border-1) !important;
    --wp--gutena-forms--placeholder-color: var(--wp--preset--color--text-1) !important;
  }
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

.m-logo {
  display: flex;
  align-items: center;
  justify-content: left;
  color: var(--wp--preset--color--text-2);
}

.m-logo svg {
  width: 130px !important;
  height: auto;
}

.m-logo svg #logo {
  fill: var(--wp--preset--color--primary);
}

.m-logo svg #text {
  fill: var(--wp--preset--color--text-2);
}

.m-preview {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-1) !important;
  border: 1px solid var(--wp--preset--color--border-1) !important;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
}

.m-header {
  position: sticky !important;
  top: 0;
  z-index: 100;
}

.m-flex-reverse {
  flex-direction: row-reverse;
}

.m-overflow-hidden {
  overflow: hidden !important;
}

.m-overflow-y-scroll {
  overflow-y: auto !important;
}

.m-border-radius {
  border-radius: 6px !important;
  overflow: hidden;
}

.wp-block-button a {
  transition: all 0.2s ease-in-out;
}

.wp-block-button a:hover {
  opacity: 0.8;
}
.wp-block-button a:active {
  transform: scale(0.99);
}

.m-mega-menu-wrapper {
  position: absolute;
  top: 80%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  z-index: 100;
  display: none;
  transition: all;
}

.m-mega-menu-wrapper.open {
  display: block;
}

.m-mega-menu-content {
  display: none;
}

.open-on-mobile .m-mega-menu-wrapper,
.open-on-mobile .m-mega-menu-content {
  display: block !important;
}

body:has(.open-on-mobile) {
  overflow: hidden;
}

@media (max-width: 781px) {
  .m-mega-menu-nav {
    display: none;
  }
  .m-mobile-menu {
    display: block !important;
  }
  .m-mega-menu-wrapper {
    border: 0 !important;
    border-radius: 0 !important;
    top: calc(100% + 1px) !important;
  }
  .m-logo-wrapper .m-preview{
    display: none;
  }
}

.m-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: var(--wp--preset--spacing--30);
}

.m-mobile-menu {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: none;
  color: var(--wp--preset--color--text-2);
  width: 20px;
  height: 30px;
  position: relative;
}

.m-mobile-menu .hamburger {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.m-mobile-menu .line {
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.open-on-mobile .m-mobile-menu .line-1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.open-on-mobile .m-mobile-menu .line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.open-on-mobile .m-mobile-menu .line-3 {
  transform: rotate(-45deg) translate(5px, -5px);
}

.gutena-forms-contact-form .wp-block-gutena-form-field .gutena-forms-field:not(.textarea-field):not(.checkbox-field) {
  height: 40px;
  padding: 0 12px;
}

.gutena-forms-join-waitlist .wp-block-gutena-form-field .gutena-forms-field:not(.textarea-field):not(.checkbox-field) {
  text-align: center;
}

.m-checkmark-icon {
  width: 80px;
  height: 80px;
  color: #00a63e;
}

.m-faq details {
  padding: var(--wp--preset--spacing--30);
  border: 1px solid var(--wp--preset--color--border-1);
  border-radius: 6px;
  transition: background-color 0.3s ease-in-out;
}

.m-faq details summary {
  font-weight: 500;
}
.m-faq details[open] {
  background-color: var(--wp--preset--color--background-1);
}

.m-coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m-coming-soon:after {
  content: "Coming Soon";
  font-size: 9px;
  text-transform: uppercase;
  color: var(--wp--preset--color--text-1) !important;
  border: 1px solid var(--wp--preset--color--border-1) !important;
  padding: 3px;
  border-radius: 3px;
  white-space: nowrap;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-left: 6px;
  line-height: 1;
}

#how-it-works:target {
  scroll-margin-top: 64px;
}

.m-feature-icon{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--wp--preset--spacing--20);
  border-radius: 6px;
  color: var(--wp--preset--color--primary);
  border: 1px solid var(--wp--preset--color--border-1);
  width: fit-content;
}

.m-feature-icon svg{
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

code{
  font-family: var(--wp--preset--font-family--monospace) !important;
  font-weight: 600;
  border: 1px solid var(--wp--preset--color--border-1) !important;
  padding: 2px 4px;
  border-radius: 3px;
  background-color: var(--wp--preset--color--background-1) !important;
}

.m-avatar .wp-block-post-author__avatar{
  display: flex;
  justify-content: center;
  align-items: center;
}

.m-avatar img{
  border-radius: 50%;
}

.m-blog-menu .current-menu-item{
  font-weight: 700;
}