/*
Theme Name: Virali AI Platform
Theme URI: https://bviral.co.il
Author: BViral
Author URI: https://bviral.co.il
Description: תבנית אם White-Label של Virali למערכות WhatsApp ו-AI. המיתוג מנוהל מתוך הגדרות הסוכנות.
Version: 0.4.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: aley-shalechet-platform
*/

:root {
  --aley-text: #590808;
  --aley-background: #f1efe3;
  --aley-button: #c99249;
  --aley-white: #fffdf8;
  --aley-muted: #79675c;
  --aley-border: rgba(89, 8, 8, 0.14);
  --aley-shadow: 0 24px 70px rgba(89, 8, 8, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--aley-text);
  background: var(--aley-background);
  font-family: Arial, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.aley-site {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.aley-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.aley-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--aley-border);
  background: rgba(241, 239, 227, 0.92);
  backdrop-filter: blur(14px);
}

.aley-header__inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.aley-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.aley-brand img {
  width: 125px;
  height: 70px;
  object-fit: contain;
}

.aley-brand strong,
.aley-brand small {
  display: block;
}

.aley-brand strong {
  font-size: 18px;
}

.aley-brand small {
  color: var(--aley-muted);
  font-size: 12px;
}

.aley-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.aley-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.aley-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--aley-button);
  color: var(--aley-text);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(201, 146, 73, 0.24);
  transition: 180ms ease;
}

.aley-button:hover,
.aley-button:focus {
  transform: translateY(-2px);
  background: var(--aley-text);
  color: #fff;
}

.aley-button--quiet {
  background: transparent;
  border: 1px solid var(--aley-border);
  box-shadow: none;
}

.aley-public-home {
  min-height: calc(100vh - 184px);
  display: grid;
  place-items: center;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.aley-public-home::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(201, 146, 73, 0.16);
  inset-block-start: -270px;
  inset-inline-end: -170px;
}

.aley-public-home__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.aley-public-home__inner img {
  width: min(390px, 78vw);
  max-height: 290px;
  object-fit: contain;
}

.aley-public-home__inner h1 {
  margin: 24px 0 4px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.035em;
}

.aley-public-home__inner p {
  margin: 0;
  color: var(--aley-muted);
  font-size: clamp(15px, 2vw, 19px);
}

.aley-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(70px, 10vw, 150px) 0;
}

.aley-hero::before,
.aley-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.aley-hero::before {
  width: 460px;
  height: 460px;
  top: -170px;
  inset-inline-start: -100px;
  background: rgba(201, 146, 73, 0.2);
}

.aley-hero::after {
  width: 520px;
  height: 520px;
  bottom: -330px;
  inset-inline-end: -170px;
  background: rgba(89, 8, 8, 0.08);
}

.aley-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(40px, 7vw, 95px);
  align-items: center;
}

.aley-eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid var(--aley-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 800;
}

.aley-hero h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.aley-hero h1 span {
  color: var(--aley-button);
}

.aley-hero p {
  max-width: 660px;
  margin: 0;
  color: var(--aley-muted);
  font-size: clamp(17px, 2vw, 21px);
}

.aley-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.aley-hero__card {
  position: relative;
  min-height: 450px;
  padding: 38px;
  border: 1px solid var(--aley-border);
  border-radius: 38px;
  background: rgba(255, 253, 248, 0.8);
  box-shadow: var(--aley-shadow);
  display: grid;
  place-items: center;
}

.aley-hero__card > img {
  width: min(360px, 100%);
}

.aley-status-card {
  position: absolute;
  inset-inline-start: -25px;
  bottom: 32px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(89, 8, 8, 0.14);
}

.aley-status-card b,
.aley-status-card small {
  display: block;
}

.aley-status-card b::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: #2f9368;
  box-shadow: 0 0 0 5px rgba(47, 147, 104, 0.12);
}

.aley-status-card small {
  margin-top: 5px;
  color: var(--aley-muted);
}

.aley-features {
  padding: 0 0 110px;
}

.aley-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.aley-feature {
  padding: 28px;
  border: 1px solid var(--aley-border);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.66);
}

.aley-feature__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--aley-button);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.aley-feature h2 {
  margin: 18px 0 9px;
  font-size: 19px;
}

.aley-feature p {
  margin: 0;
  color: var(--aley-muted);
}

.aley-content {
  padding: 70px 0 110px;
}

.aley-content article {
  max-width: 900px;
  padding: 36px;
  border-radius: 24px;
  background: var(--aley-white);
  box-shadow: var(--aley-shadow);
}

.aley-footer {
  padding: 28px 0;
  border-top: 1px solid var(--aley-border);
}

.aley-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--aley-muted);
  font-size: 13px;
}

.aley-footer img {
  width: 118px;
  border-radius: 7px;
}

@media (max-width: 820px) {
  .aley-hero__grid,
  .aley-feature-grid {
    grid-template-columns: 1fr;
  }

  .aley-nav > a:not(.aley-button) {
    display: none;
  }

  .aley-hero__card {
    min-height: 340px;
  }

  .aley-status-card {
    inset-inline-start: 18px;
  }
}

@media (max-width: 520px) {
  .aley-container {
    width: min(100% - 28px, 1180px);
  }

  .aley-brand small {
    display: none;
  }

  .aley-brand img {
    width: 90px;
  }

  .aley-hero {
    padding-top: 55px;
  }

  .aley-hero h1 {
    font-size: 44px;
  }

  .aley-hero__card {
    min-height: 280px;
    padding: 24px;
  }

  .aley-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
