/*
Theme Name: YAZUZ
Theme URI: https://www.yazuz.com/
Author: Shaka Time, Inc.
Author URI: https://www.yazuz.com/
Description: A lightweight block theme for the YAZUZ AI commerce platform.
Version: 0.1.10
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yazuz
*/

:root {
  --yazuz-navy: #071629;
  --yazuz-blue: #075ee8;
  --yazuz-cyan: #16d8f4;
  --yazuz-purple: #7226ff;
  --yazuz-ink: #111827;
  --yazuz-muted: #5c677d;
  --yazuz-surface: #f5f8ff;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-underline-offset: 0.18em;
}

.wp-site-blocks {
  min-height: 100vh;
}

.yazuz-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 22, 41, 0.96);
  backdrop-filter: blur(16px);
}

.yazuz-site-header .wp-block-navigation {
  color: #ffffff;
}

.yazuz-site-header .wp-block-site-logo img {
  width: auto;
  max-height: 54px;
}

.yazuz-site-header .wp-block-navigation-item__content {
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.yazuz-site-header .wp-block-navigation-item__content:hover,
.yazuz-site-header .wp-block-navigation-item__content:focus-visible {
  color: var(--yazuz-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.yz-mobile-menu {
  display: none;
}

.yazuz-site-footer {
  margin-block-start: 0;
  color: #dfe9ff;
  background:
    radial-gradient(circle at 10% 10%, rgba(22, 216, 244, 0.13), transparent 32%),
    radial-gradient(circle at 90% 90%, rgba(114, 38, 255, 0.15), transparent 32%),
    var(--yazuz-navy);
}

.yazuz-site-footer a {
  color: #ffffff;
}

.yazuz-site-footer .wp-block-site-logo img {
  width: auto;
  max-height: 58px;
}

.yazuz-page-shell {
  overflow: clip;
}

.yazuz-page-shell > .wp-block-post-content {
  margin-block-start: 0;
}

.wp-block-button__link {
  box-shadow: 0 10px 28px rgba(7, 94, 232, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(7, 94, 232, 0.25);
}

/* Classic Editor can insert an empty paragraph between a step number and copy. */
.yz-step > p:empty {
  display: none;
}

.yz-step > div {
  grid-column: 2;
  min-width: 0;
}

/* Keep the hero product preview visually level on every screen size. */
.yazuz-home .yz-chat-card {
  transform: none;
}

:where(button, a, input, textarea, select):focus-visible {
  outline: 3px solid var(--yazuz-cyan);
  outline-offset: 3px;
}

@media (max-width: 781px) {
  .yazuz-site-header {
    position: relative;
    backdrop-filter: none;
  }

  .yazuz-site-header .wp-block-site-logo img {
    max-height: 44px;
  }

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

  .yz-mobile-menu {
    display: block;
  }

  .yz-mobile-menu summary {
    position: relative;
    z-index: 100001;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    font-size: 1.7rem;
    line-height: 1;
  }

  .yz-mobile-menu summary::-webkit-details-marker,
  .yz-mobile-menu .yz-menu-close {
    display: none;
  }

  .yz-mobile-menu[open] .yz-menu-open {
    display: none;
  }

  .yz-mobile-menu[open] .yz-menu-close {
    display: inline;
    color: var(--yazuz-cyan);
  }

  .yz-mobile-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
    color: #ffffff;
    background: var(--yazuz-navy);
  }

  .yz-mobile-menu-panel a {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
  }

  .yz-mobile-menu-panel a:hover,
  .yz-mobile-menu-panel a:focus-visible {
    color: var(--yazuz-cyan);
  }

  .yazuz-site-footer .wp-block-navigation,
  .yazuz-site-footer .wp-block-navigation__container {
    width: 100%;
  }

  .yazuz-site-footer .wp-block-navigation__container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
  }

  .yazuz-site-footer .wp-block-navigation-item {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Keep the Support page policy actions readable on narrow screens. */
@media (max-width: 520px) {
  .page-id-19 .yp-cta p:has(.yp-btn) {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
  }

  .page-id-19 .yp-cta p:has(.yp-btn) .yp-btn {
    width: min(100%, 15rem);
    margin: 0;
  }
}
