/* ==========================================================================
   Landing page styles (maken)
   ========================================================================== */

:root {
    /* Neutrals */
    --brand: #2a63d4; /* لغير الهيرو */
    --muted: #6b6e76;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);

    /* Landing palette (from reference) */
    --bg-main: #f4a2b4; /* hero base */
    --bg-edge: #e78fa3; /* hero mid */
    --bg-deep: #6a1b2a; /* hero edge wine */

    --accent: #cc4a4f; /* #e55a78; /* logo / highlights */
    --accent-strong: #c6283c; /* strong red (optional) */

    --text-white: #fff4f6;
    --hero-title: #fff4f6;
}

/* Base */
html,
body {
    overflow-x: hidden;
}
body {
    background: #e0e0e0;
}
body.bg-light {
    background-color: #f8f9fa !important;
}

#brandTitle {
    letter-spacing: 0.2px;
}

/* Cards/tiles (non-hero sections) */
.card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: none;
}
.card-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.tile {
    background: #fff;
    border: 1px solid var(--border) !important;
    border-radius: 1rem;
    transition:
        box-shadow 0.15s ease,
        transform 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}
a:hover .tile,
.tile:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: rgba(42, 99, 212, 0.35) !important;
    background-color: rgba(42, 99, 212, 0.02);
}
.tile-icon {
    color: var(--brand);
    transition: transform 0.15s ease;
}
a:hover .tile-icon,
.tile:hover .tile-icon {
    transform: translateY(-1px);
}

/* Problems */
.problem-row {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 0.9rem;
    background: #fff;
}
.problem-badge {
    font-weight: 800;
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
}
.problem-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 99, 212, 0.08);
    border: 1px solid rgba(42, 99, 212, 0.18);
    font-weight: 800;
    color: var(--brand);
    flex: 0 0 auto;
}

/* RTL helper */
[dir="rtl"] .text-end {
    text-align: left !important;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.015),
        rgba(255, 255, 255, 0.015) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.hero-section {
    position: relative;
    padding: 1.2rem 0 5rem;
    color: var(--text-white);
    overflow: hidden;

    /* EXACT vibe: clean rose + soft center + gentle edges */
    background:

    /* warm light (yellow-ish but very subtle) */
        radial-gradient(
            900px 520px at 70% 28%,
            rgba(255, 248, 235, 0.18),
            transparent 62%
        ),
        /* clean white wash */
        linear-gradient(
                180deg,
                rgba(255, 244, 246, 0.12),
                rgba(255, 244, 246, 0) 52%
            ),
        /* soft gray depth (NOT black) */
        radial-gradient(
                1400px 900px at 50% 55%,
                rgba(45, 40, 42, 0.1),
                transparent 72%
            ),
        /* base rose gradient */
        radial-gradient(
                ellipse at center,
                #f8bac6 0%,
                #f4a2b4 52%,
                #e78fa3 100%
            );
}
/* Ensure direction swapping works consistently */
.hero-row {
    display: flex;
}

/* Header inside hero */
#hero #brandTitle {
    color: #f4a2b4 !important;
    font-weight: 850;
    line-height: 1.05;
    font-size: 2.45rem;
    letter-spacing: 0.3px;
    text-shadow:
        0 1px 0 #cc4a4f,
        0 2px 0 rgba(204, 74, 79, 0.55);
}
#hero #brandTitle.brand-invert {
    color: #cc4a4f !important;
    text-shadow: 0 2px 0 #a03034;
}

@media (min-width: 992px) {
    #hero #brandTitle {
        font-size: 2.45rem;
    }
}
#hero #brandSub {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Language buttons */
#hero .btn-outline-dark {
    color: rgba(255, 255, 255, 0.86) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
    background: transparent !important;
    border-radius: 0.75rem !important;
}
#hero .btn-outline-dark:hover {
    border-color: rgba(244, 162, 180, 0.75) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

/* Auth buttons glass */
#hero .btn-dark {
    background: rgba(255, 244, 246, 0.14) !important;
    border-color: rgba(255, 244, 246, 0.18) !important;
    color: #fff !important;
}
#hero .btn-dark:hover {
    background: rgba(255, 244, 246, 0.2) !important;
    border-color: rgba(255, 244, 246, 0.22) !important;
}
#hero .btn-primary {
    background: rgba(255, 244, 246, 0.24) !important;
    border-color: rgba(255, 244, 246, 0.26) !important;
    color: #fff !important;
    box-shadow: none !important;
}
#hero .btn-primary:hover {
    background: rgba(255, 244, 246, 0.32) !important;
    border-color: rgba(255, 244, 246, 0.32) !important;
}

/* Title */
.hero-content {
    max-width: 560px;
}
.hero-title {
    color: var(--hero-title);
    font-weight: 850;
    line-height: 1.12;
    margin-bottom: 1rem;
    text-shadow: 0 10px 28px rgba(60, 8, 20, 0.22);
}
.hero-title-line {
    display: block;
}
.hero-content .text-muted {
    color: #3f3a3c !important;
}
.hero-title-accent {
    color: var(--accent);
}
.hero-title-accent {
    color: #e6e1e3;
    text-shadow: 0 2px 0 #cc4a4f;
}

/* Strict / inspection tone */
.hero-title-strict {
    color: #e6e1e3; /* رمادي دافئ فاتح */
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22); /* حد خفيف جدًا للوضوح */
}
.hero-title-main {
    color: #cc4a4f;
    text-shadow:
        0 1px 0 #3f3a3c,
        0 2px 0 rgba(204, 74, 79, 0.45);
}
/* Visual (paper only) */
.hero-visual {
    min-height: 380px;
    max-width: 520px;
    background-image: url("/assets/img/paper-chaos-transparent.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    animation: floatSoft 8s ease-in-out infinite;
    will-change: transform;
}
.strike-accent {
    position: relative;
    display: inline-block;
    line-height: 1.1;
}

.strike-accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 60%; /* يمر في منتصف الكلمة */
    transform: translateY(-50%);
    height: 3.5px; /* سماكة الخط */
    background: #cc4a4f; /* دموي نظيف */
}

/* Swap RTL/LTR */
html[dir="ltr"] .hero-row {
    flex-direction: row;
}
html[dir="ltr"] .hero-visual {
    margin-right: auto;
}

html[dir="rtl"] .hero-row {
    flex-direction: row-reverse;
}
html[dir="rtl"] .hero-visual {
    background-position: right center;
    margin-left: auto;
}

/* Outline button in hero */
.hero-btn-outline {
    border-color: rgba(255, 255, 255, 0.65) !important;
    color: #fff !important;
}
.hero-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.95) !important;
    color: #fff !important;
}

/* Badges */
.hero-badge {
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Motion */
@keyframes floatSoft {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 991px) {
    .hero-section {
        padding: 1rem 0 3rem;
        text-align: center;
    }
    .hero-row {
        flex-direction: column !important;
    }
    .hero-content {
        margin: 0 auto;
    }
    .hero-visual {
        min-height: 260px;
        background-position: center !important;
        margin: 0 auto 1.5rem auto;
        animation: none;
    }
}

/* Language toggle: show ONLY the opposite language button */
html[dir="rtl"] .js-locale[data-locale="ar"] {
    display: none !important;
}
html[dir="ltr"] .js-locale[data-locale="en"] {
    display: none !important;
}

.hero-bg-a {
    background:
        linear-gradient(
            180deg,
            rgba(255, 244, 246, 0.1),
            rgba(255, 244, 246, 0) 48%
        ),
        radial-gradient(
            1200px 620px at 62% 40%,
            rgba(255, 244, 246, 0.18),
            transparent 62%
        ),
        radial-gradient(
            1500px 900px at 50% 50%,
            rgba(60, 8, 20, 0.14),
            transparent 70%
        ),
        radial-gradient(
            ellipse at center,
            #f4a2b4 0%,
            #e78fa3 58%,
            #6a1b2a 100%
        ) !important;
}

.hero-bg-b {
    background:
        linear-gradient(
            180deg,
            rgba(255, 244, 246, 0.08),
            rgba(255, 244, 246, 0) 48%
        ),
        radial-gradient(
            1200px 620px at 62% 40%,
            rgba(255, 244, 246, 0.16),
            transparent 62%
        ),
        radial-gradient(
            1500px 900px at 50% 50%,
            rgba(60, 8, 20, 0.16),
            transparent 70%
        ),
        radial-gradient(
            ellipse at center,
            #f6a0b0 0%,
            #d86a7c 55%,
            #4b121d 100%
        ) !important;
}

.hero-bg-c {
    background:
        linear-gradient(
            180deg,
            rgba(255, 244, 246, 0.1),
            rgba(255, 244, 246, 0) 46%
        ),
        radial-gradient(
            1200px 620px at 62% 40%,
            rgba(255, 244, 246, 0.16),
            transparent 62%
        ),
        radial-gradient(
            1500px 900px at 50% 50%,
            rgba(25, 4, 10, 0.18),
            transparent 70%
        ),
        radial-gradient(
            ellipse at center,
            #f3a1b2 0%,
            #c85a6c 56%,
            #2e0b12 100%
        ) !important;
}

/* ===== Features grid (matches your palette + clean) ===== */

.section-features{
  padding: 2.75rem 0 3.25rem;
  background: #fff;
}

.section-title{
  font-weight: 850;
  letter-spacing: .2px;
  color: #2b2a2b;
}

.section-sub{
  color: #3F3A3C; /* رمادي غامق نظيف */
  max-width: 56ch;
}

.feature-tile{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 1rem;
  padding: 1.15rem 1.15rem;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.feature-tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 .6rem 1.2rem rgba(0,0,0,.08);
  border-color: rgba(204,74,79,.25);
}

.feature-icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #CC4A4F;              /* دموي نظيف */
  background: rgba(244,162,180,.16); /* وردي خفيف */
  border: 1px solid rgba(244,162,180,.28);
  margin-bottom: .8rem;
}

.feature-title{
  font-weight: 850;
  color: #2b2a2b;
  margin-bottom: .35rem;
  font-size: 1.05rem;
}

.feature-desc{
  color: #3F3A3C; /* نفس رمادي النص الصغير */
  line-height: 1.65;
  font-size: .95rem;
}

/* RTL tweak: keep icon/title aligned natural */
html[dir="rtl"] .feature-tile{ text-align: right; }
html[dir="ltr"] .feature-tile{ text-align: left; }
