/**
 * Hoshyar Plus — Landing page design system (v3: complete/refined pass).
 * Scoped to public marketing pages only (see is_simano_public_page()).
 * Independent from style.css / the in-app data-color theming system.
 * See PRD-Landing-Page.md sections 1.1–1.3, the hasanshah.ir-inspired
 * bold redesign, and the follow-up refinement brief (spacing, typography,
 * color variety, modern inputs/buttons, background shapes, off-canvas
 * mobile nav — with navy re-affirmed as the dominant brand color).
 */

@import url('../font/Peyda/style.css');

:root {
    /* Light: navy is the dominant, buttons/links/brand color. */
    --l-bg: #fbfbfc;
    --l-surface: #ffffff;
    --l-surface-2: #f2f4f8;
    --l-text: #10162a;
    --l-muted: #5b6478;
    --l-border: #e1e4ec;
    --l-accent: #16233f;
    --l-accent-pressed: #0d1626;
    --l-accent-contrast: #ffffff;
    --l-accent-soft: rgba(22, 35, 63, 0.07);
    --l-highlight: #0d6d66;
    --l-highlight-soft: rgba(13, 109, 102, 0.09);
    --l-teal: #0d6d66;
    --l-teal-soft: rgba(13, 109, 102, 0.09);
    --l-rose: #a1315a;
    --l-rose-soft: rgba(161, 49, 90, 0.08);
    --l-success: #1c8a4b;
    --l-success-soft: rgba(28, 138, 75, 0.1);
    --l-danger: #c23b3b;
    --l-danger-soft: rgba(194, 59, 59, 0.09);
    --l-glass-bg: rgba(251, 251, 252, 0.72);
    --l-glass-border: rgba(18, 24, 42, 0.08);
    --l-glow: rgba(22, 35, 63, 0.16);
    --l-shadow: 0 20px 44px -24px rgba(16, 22, 42, 0.28);
    --l-pattern-opacity: 0.05;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-landing-theme="light"]) {
        /* Dark: near-black canvas; navy stays the dominant surface/button
           color, teal is reserved for accents (numbers, highlight word,
           glows) rather than taking over every button. */
        --l-bg: #070b16;
        --l-surface: #10182c;
        --l-surface-2: #141d35;
        --l-text: #f4f6fb;
        --l-muted: #9aa4c0;
        --l-border: rgba(244, 246, 251, 0.1);
        --l-accent: #3a548c;
        --l-accent-pressed: #4a68ac;
        --l-accent-contrast: #ffffff;
        --l-accent-soft: rgba(58, 84, 140, 0.22);
        --l-highlight: #3fb8ae;
        --l-highlight-soft: rgba(63, 184, 174, 0.15);
        --l-teal: #3fb8ae;
        --l-teal-soft: rgba(63, 184, 174, 0.15);
        --l-rose: #d97fa0;
        --l-rose-soft: rgba(217, 127, 160, 0.13);
        --l-success: #3fbf76;
        --l-success-soft: rgba(63, 191, 118, 0.14);
        --l-danger: #e2685f;
        --l-danger-soft: rgba(226, 104, 95, 0.14);
        --l-glass-bg: rgba(10, 15, 28, 0.55);
        --l-glass-border: rgba(244, 246, 251, 0.1);
        --l-glow: rgba(63, 184, 174, 0.22);
        --l-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
        --l-pattern-opacity: 0.08;
    }
}

:root[data-landing-theme="dark"] {
    --l-bg: #070b16;
    --l-surface: #10182c;
    --l-surface-2: #141d35;
    --l-text: #f4f6fb;
    --l-muted: #9aa4c0;
    --l-border: rgba(244, 246, 251, 0.1);
    --l-accent: #3a548c;
    --l-accent-pressed: #4a68ac;
    --l-accent-contrast: #ffffff;
    --l-accent-soft: rgba(58, 84, 140, 0.22);
    --l-highlight: #3fb8ae;
    --l-highlight-soft: rgba(63, 184, 174, 0.15);
    --l-teal: #3fb8ae;
    --l-teal-soft: rgba(63, 184, 174, 0.15);
    --l-rose: #d97fa0;
    --l-rose-soft: rgba(217, 127, 160, 0.13);
    --l-success: #3fbf76;
    --l-success-soft: rgba(63, 191, 118, 0.14);
    --l-danger: #e2685f;
    --l-danger-soft: rgba(226, 104, 95, 0.14);
    --l-glass-bg: rgba(10, 15, 28, 0.55);
    --l-glass-border: rgba(244, 246, 251, 0.1);
    --l-glow: rgba(63, 184, 174, 0.22);
    --l-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
    --l-pattern-opacity: 0.08;
}

/* ================= Base ================= */
.simano-landing {
    background: var(--l-bg);
    color: var(--l-text);
    font-family: 'Peyda', Tahoma, 'IRANSans', sans-serif;
    direction: rtl;
    text-align: right;
    overflow-x: clip;
    position: relative;
}

.simano-landing * {
    box-sizing: border-box;
}

/* Subtle dot-grid pattern behind the whole page, plus soft color blobs
   behind key sections — decorative, low-opacity, never affecting layout. */
.simano-landing::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: var(--l-pattern-opacity);
    background-image: radial-gradient(currentColor 1px, transparent 1px);
    background-size: 26px 26px;
    color: var(--l-text);
}

.simano-landing > * {
    position: relative;
    z-index: 1;
}

.simano-landing .shape-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.22;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-landing-theme="light"]) .simano-landing .shape-blob {
        opacity: 0.32;
    }
}

:root[data-landing-theme="dark"] .simano-landing .shape-blob {
    opacity: 0.32;
}

/* ================= Typography ================= */
.simano-landing h1,
.simano-landing h2,
.simano-landing h3 {
    text-wrap: balance;
    letter-spacing: -0.01em;
}

.simano-landing p {
    text-wrap: pretty;
}

.simano-landing a {
    color: var(--l-accent);
    text-decoration: none;
}

.simano-landing a:hover {
    text-decoration: none;
}

.simano-landing .landing-h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.simano-landing .landing-h2 {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
}

.simano-landing .landing-h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.simano-landing .landing-lead {
    font-size: clamp(16px, 1.6vw, 18.5px);
    line-height: 2;
    color: var(--l-muted);
    max-width: 62ch;
}

.simano-landing .section-lead {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.simano-landing .landing-section {
    padding-top: clamp(56px, 8vw, 96px);
    padding-bottom: clamp(56px, 8vw, 96px);
}

.simano-landing .landing-surface {
    background: var(--l-surface);
    border: 1px solid var(--l-border);
}

/* Slightly denser dot texture than the page-wide pattern, layered directly
   on these sections (rather than raising the global fixed pattern) so the
   variation reads as deliberate rhythm between sections, not just noise. */
.simano-landing .landing-surface-alt {
    background-color: var(--l-surface-2);
    background-image: radial-gradient(var(--l-border) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
}

.simano-landing .landing-muted {
    color: var(--l-muted);
}

.simano-landing .landing-highlight {
    color: var(--l-highlight);
}

/* ================= Buttons (modern: pill, sheen, icon) ================= */
.simano-landing .btn-landing-primary,
.simano-landing .btn-landing-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.simano-landing .btn-landing-primary svg,
.simano-landing .btn-landing-ghost svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.simano-landing .btn-landing-primary {
    background: var(--l-accent);
    color: var(--l-accent-contrast);
    border: 1px solid var(--l-accent);
    box-shadow: 0 10px 30px -12px var(--l-glow);
}

.simano-landing .btn-landing-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
    transform: translateX(-120%);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.simano-landing .btn-landing-primary:hover {
    background: var(--l-accent-pressed);
    border-color: var(--l-accent-pressed);
    transform: translateY(-2px);
    box-shadow: 0 16px 38px -14px var(--l-glow);
    color: var(--l-accent-contrast);
}

.simano-landing .btn-landing-primary:hover::before {
    transform: translateX(120%);
}

.simano-landing .btn-landing-primary:hover svg {
    transform: translateX(-3px);
}

.simano-landing .btn-landing-ghost {
    background: transparent;
    color: var(--l-text);
    border: 1.5px solid var(--l-border);
}

.simano-landing .btn-landing-ghost:hover {
    border-color: var(--l-accent);
    color: var(--l-accent);
    transform: translateY(-2px);
    background: var(--l-accent-soft);
}

/* ================= Icon badges (with color variety) ================= */
.simano-landing .icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--l-accent-soft);
    color: var(--l-accent);
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.simano-landing .icon-badge svg {
    width: 28px;
    height: 28px;
}

.simano-landing .icon-badge.icon-badge-sm {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.simano-landing .icon-badge.icon-badge-sm svg {
    width: 20px;
    height: 20px;
}

.simano-landing .icon-badge.badge-highlight {
    background: var(--l-highlight-soft);
    color: var(--l-highlight);
}

.simano-landing .icon-badge.badge-teal {
    background: var(--l-teal-soft);
    color: var(--l-teal);
}

.simano-landing .icon-badge.badge-rose {
    background: var(--l-rose-soft);
    color: var(--l-rose);
}

/* ================= Status pills (check / x) ================= */
.simano-landing .status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
}

.simano-landing .status-pill svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.4;
}

.simano-landing .status-pill.is-yes {
    background: var(--l-success-soft);
    color: var(--l-success);
}

.simano-landing .status-pill.is-no {
    background: var(--l-danger-soft);
    color: var(--l-danger);
}

/* ================= Cards ================= */
.simano-landing .landing-card {
    background: var(--l-surface);
    border: 1px solid var(--l-border);
    border-radius: 20px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.simano-landing .landing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--l-shadow);
    border-color: var(--l-accent);
}

.simano-landing .landing-card:hover .icon-badge {
    transform: scale(1.08) rotate(-4deg);
}

.simano-landing .landing-card.is-featured {
    border-color: var(--l-highlight);
    box-shadow: 0 0 0 1px var(--l-highlight), var(--l-shadow);
    position: relative;
}

.simano-landing .landing-card-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--l-highlight);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
}

/* ================= Hero badge pill ================= */
.simano-landing .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--l-accent-soft);
    color: var(--l-highlight);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--l-border);
}

.simano-landing .hero-badge svg {
    width: 16px;
    height: 16px;
}

/* ================= Animated stat counters ================= */
.simano-landing .stat-number {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    color: var(--l-highlight);
    font-variant-numeric: tabular-nums;
    display: inline-block;
}

.simano-landing .landing-stat-card {
    border-radius: 24px;
    padding: 32px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ================= Glassmorphism ================= */
.landing-glass {
    background: var(--l-glass-bg);
    border: 1px solid var(--l-glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

@supports not (backdrop-filter: blur(1px)) {
    .landing-glass {
        background: var(--l-surface);
    }
}

/* ================= Header ================= */
/* NOT using the shared .landing-glass class here on purpose: backdrop-filter
   on an element also makes it a containing block for position:fixed
   descendants (same rule as `filter`), which trapped the off-canvas mobile
   nav (a fixed-position child) inside the header's own box instead of the
   viewport. Applying the blur via ::before instead keeps <header> filter-free
   so position:fixed inside it resolves against the viewport as expected. */
.simano-landing .landing-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--l-glass-bg);
    border-bottom: 1px solid var(--l-glass-border);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

/* The logo's own bottom-heavy visual weight (a tagline sits under the
   wordmark) reads as taller than the nav's plain text, so centering both
   on the row's cross-axis leaves the nav looking pulled toward the top. */
.simano-landing .landing-nav-desktop {
    margin-top: 10px;
}

.simano-landing .landing-header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.simano-landing .landing-header.is-scrolled {
    box-shadow: 0 8px 24px -16px rgba(18, 24, 42, 0.25);
}

.simano-landing .landing-header a,
.simano-landing .landing-nav-drawer a {
    color: var(--l-text);
    text-decoration: none;
}

/* .btn-landing-primary's own white-on-navy text (--l-accent-contrast) loses
   to the header/drawer link-color rule above on specificity (three
   selectors there vs. two on .btn-landing-primary), leaving the "ثبت‌نام"
   button rendering near-black text on its own navy background — the
   contrast bug reported for the register button. Restore it explicitly,
   at higher specificity, for both the resting and hover states. */
.simano-landing .landing-header a.btn-landing-primary,
.simano-landing .landing-nav-drawer a.btn-landing-primary {
    color: var(--l-accent-contrast);
}

.simano-landing .landing-header a.btn-landing-primary:hover,
.simano-landing .landing-nav-drawer a.btn-landing-primary:hover {
    color: var(--l-accent-contrast);
}

.simano-landing .landing-nav-desktop > ul > li > a {
    position: relative;
    padding-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.simano-landing .landing-nav-desktop > ul > li > a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.75;
}

.simano-landing .landing-nav-desktop > ul > li > a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--l-accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.simano-landing .landing-header a:hover,
.simano-landing .landing-nav-drawer a:hover {
    color: var(--l-accent);
}

.simano-landing .landing-nav-desktop > ul > li > a:hover::after {
    width: 100%;
}

/* ================= Hero background glow ================= */
.simano-landing .hero-glow {
    position: relative;
    isolation: isolate;
}

.simano-landing .hero-glow::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 560px;
    background: radial-gradient(closest-side, var(--l-glow), transparent 70%);
    opacity: 0.42;
    z-index: -1;
    pointer-events: none;
}

/* ================= Dark/light toggle button ================= */
.simano-landing .theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--l-border);
    background: transparent;
    color: var(--l-text);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.simano-landing .theme-toggle-btn:hover {
    transform: rotate(20deg);
    border-color: var(--l-accent);
}

/* ================= Logo swap between light/dark variants ================= */
.simano-landing .landing-logo-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-landing-theme="light"]) .simano-landing .landing-logo-light {
        display: none;
    }
    :root:not([data-landing-theme="light"]) .simano-landing .landing-logo-dark {
        display: inline-block;
    }
}

:root[data-landing-theme="dark"] .simano-landing .landing-logo-light {
    display: none;
}

:root[data-landing-theme="dark"] .simano-landing .landing-logo-dark {
    display: inline-block;
}

/* ================= Off-canvas mobile nav drawer =================
   .landing-nav-drawer and .nav-drawer-backdrop are top-level siblings of
   <header> (see the comment in landing-header.php) — both position:fixed,
   both compared at the SAME stacking level, so their z-index values
   (1500 vs 1400) resolve correctly against each other regardless of
   where <header> itself sits. Always position:fixed (not just under the
   max-width media query) since it's a dedicated element now, just hidden
   entirely above the desktop breakpoint. */
.simano-landing .landing-nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--l-text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.simano-landing .landing-nav-toggle:hover {
    background: var(--l-accent-soft);
}

.simano-landing .nav-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 12, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.simano-landing .nav-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.simano-landing .landing-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: var(--l-surface);
    border-left: 1px solid var(--l-border);
    box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.35);
    z-index: 1500;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
}

.simano-landing .landing-nav-drawer.is-open {
    transform: translateX(0);
}

.simano-landing .landing-nav-drawer ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
}

.simano-landing .landing-nav-drawer ul li {
    width: 100%;
}

.simano-landing .landing-nav-drawer ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--l-border);
}

.simano-landing .landing-nav-drawer ul li a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.75;
}

.simano-landing .nav-drawer-close {
    position: absolute;
    top: 24px;
    left: 22px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--l-border);
    background: var(--l-surface);
    color: var(--l-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.simano-landing .nav-drawer-close svg {
    width: 18px;
    height: 18px;
}

body.nav-drawer-locked {
    overflow: hidden;
}

/* ================= Consultation request modal =================
   Fixed + centered, same top-level-sibling-of-footer reasoning as the nav
   drawer above. */
.simano-landing .consultation-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 12, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.simano-landing .consultation-modal-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.simano-landing .consultation-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(420px, 90vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--l-surface);
    border-radius: 24px;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5);
    z-index: 1700;
    padding: 32px 28px;
    transform: translate(-50%, -46%) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.simano-landing .consultation-modal.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.simano-landing .consultation-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
}

body.consultation-modal-locked {
    overflow: hidden;
}

/* ================= Consultation request — inline variant =================
   Alternative to the modal above: name / phone / submit in one RTL row
   (DOM order right → left: name field first, then phone, then submit —
   matches source order under direction:rtl with no extra markup needed).
   See simano_render_consultation_cta() in landing-functions.php. */
.simano-landing .consultation-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    max-width: 680px;
    margin: 0 auto;
}

.simano-landing .consultation-inline-field {
    flex: 1 1 200px;
    min-width: 160px;
    text-align: right;
}

.simano-landing .consultation-inline-submit {
    flex: 0 0 auto;
}

.simano-landing .consultation-inline-status {
    text-align: center;
}

@media (max-width: 575px) {
    .simano-landing .consultation-inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .simano-landing .consultation-inline-submit {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .simano-landing .landing-nav-toggle {
        display: inline-flex;
    }
}

@media (min-width: 992px) {
    .simano-landing .landing-nav-drawer,
    .simano-landing .nav-drawer-backdrop {
        display: none;
    }

    /* Center the nav links in the header regardless of how wide the logo
       or the auth-actions group are, by taking the <ul> out of nav's own
       flex flow and centering it against the row itself. */
    .simano-landing .landing-header .container {
        position: relative;
    }

    .simano-landing .landing-nav-desktop > ul {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.simano-landing .landing-nav-desktop > ul {
    padding-top: 10px;
}

/* ================= Modern inputs ================= */
.simano-landing .form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.simano-landing .form-control {
    background: var(--l-surface-2);
    border: 1.5px solid var(--l-border);
    color: var(--l-text);
    border-radius: 14px;
    padding: 13px 16px;
    font-size: 15px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.simano-landing .form-control::placeholder {
    color: var(--l-muted);
    opacity: 0.8;
}

.simano-landing .form-control:focus {
    background: var(--l-surface);
    border-color: var(--l-accent);
    box-shadow: 0 0 0 4px var(--l-accent-soft);
    outline: none;
    color: var(--l-text);
}

/* ================= FAQ (native <details>) ================= */
.simano-landing details.landing-surface {
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
}

.simano-landing details.landing-surface summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
}

.simano-landing details.landing-surface summary::-webkit-details-marker {
    display: none;
}

.simano-landing details.landing-surface summary .faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--l-muted);
}

.simano-landing details.landing-surface[open] summary .faq-chevron {
    transform: rotate(180deg);
    color: var(--l-accent);
}

.simano-landing details.landing-surface .faq-answer {
    padding: 0 20px 18px;
}

/* ================= Footer =================
   Deliberately always dark, in both landing themes — a plain white/light
   footer read as flat and forgettable. Scoping the same --l-* custom
   properties locally to .landing-footer means every descendant that
   already uses them (landing-muted, footer-social, links, the enamad
   slot, icon-badge if ever used here) re-themes for free, no need to
   touch each element individually. */
.simano-landing .landing-footer {
    position: relative;
    overflow: hidden;
    --l-surface: #0b1220;
    --l-surface-2: #0f1830;
    --l-text: #f4f6fb;
    --l-muted: #a7b0c7;
    --l-border: rgba(244, 246, 251, 0.12);
    --l-accent: #3fb8ae;
    --l-accent-soft: rgba(63, 184, 174, 0.14);
    --l-highlight: #3fb8ae;
    background: var(--l-surface);
    color: var(--l-text);
}

.simano-landing .landing-footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--l-highlight) 35%, var(--l-highlight) 65%, transparent);
    opacity: 0.8;
}

.simano-landing .landing-footer .shape-blob {
    opacity: 0.28;
}

.simano-landing .landing-footer a {
    color: var(--l-text);
}

.simano-landing .landing-footer a:hover {
    color: var(--l-highlight);
}

.simano-landing .landing-footer hr {
    opacity: 1;
}

.simano-landing .footer-heading {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 34px;
}

.simano-landing .footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--l-border);
    color: var(--l-text);
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.simano-landing .footer-social svg {
    width: 16px;
    height: 16px;
}

.simano-landing .footer-social:hover {
    border-color: var(--l-accent);
    color: var(--l-accent);
    transform: translateY(-2px);
}

.simano-landing .landing-footer-contact-text a {
    color: var(--l-text);
}

.simano-landing .landing-footer-contact-text a:hover {
    color: var(--l-highlight);
}

/* A plain trust-seal badge is invisible against the footer's dark surface
   (it renders on a transparent background) — frame it in a light card of
   its own so it reads clearly. */
.simano-landing .footer-enamad-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.45);
}

.simano-landing .footer-enamad-card img {
    display: block;
    width: 76px;
    height: 76px;
}

.simano-landing .footer-divider {
    width: 70%;
    max-width: 620px;
    height: 2px;
    margin: 30px auto 0;
    background: linear-gradient(90deg, transparent, var(--l-accent) 15%, var(--l-highlight) 50%, var(--l-accent) 85%, transparent);
    opacity: 0.6;
}

.simano-landing .footer-bottom-bar {
    padding-top: 20px;
    padding-bottom: 20px;
}

.simano-landing .footer-bottom-bar a {
    color: var(--l-muted);
}

.simano-landing .footer-bottom-bar a:hover {
    color: var(--l-highlight);
}

/* ================= Scroll-reveal + count-up motion ================= */
.simano-landing .reveal {
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.simano-landing .reveal.is-armed {
    opacity: 0;
    transform: translateY(22px);
}

.simano-landing .reveal.is-armed.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .simano-landing * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .simano-landing .reveal.is-armed {
        opacity: 1;
        transform: none;
    }
}

/* ================= Knowledge base: article cards ================= */
.simano-landing .knowledge-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.simano-landing .knowledge-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--l-shadow);
    border-color: var(--l-accent);
}

.simano-landing .knowledge-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--l-surface-2);
}

.simano-landing .knowledge-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.simano-landing .knowledge-card:hover .knowledge-card-thumb img {
    transform: scale(1.06);
}

.simano-landing .knowledge-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 22px 20px;
}

.simano-landing .knowledge-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12.5px;
    color: var(--l-muted);
    margin-bottom: 12px;
}

.simano-landing .knowledge-card-meta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.simano-landing .knowledge-card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.simano-landing .knowledge-card-meta .meta-dot {
    opacity: 0.6;
}

.simano-landing .knowledge-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.simano-landing .knowledge-card-excerpt {
    font-size: 14px;
    line-height: 2;
    color: var(--l-muted);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.simano-landing .knowledge-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--l-border);
}

.simano-landing .knowledge-card-date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12.5px;
    color: var(--l-muted);
}

.simano-landing .knowledge-card-date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.simano-landing .knowledge-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--l-highlight);
}

.simano-landing .knowledge-card-more svg {
    width: 16px;
    height: 16px;
    scale: -1 1;
    transition: translate 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.simano-landing .knowledge-card:hover .knowledge-card-more svg {
    translate: -4px 0;
}

/* ================= Knowledge base: single article ================= */
.simano-landing .knowledge-article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--l-border);
}

.simano-landing .knowledge-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--l-muted);
}

.simano-landing .knowledge-article-meta svg {
    width: 15px;
    height: 15px;
}

.simano-landing .knowledge-article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.simano-landing .knowledge-article-meta .meta-dot {
    opacity: 0.6;
}

.simano-landing .knowledge-article-title {
    font-size: clamp(24px, 3.5vw, 34px);
    line-height: 1.6;
    text-align: center;
}

.simano-landing .knowledge-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.simano-landing .knowledge-share-label {
    font-size: 13px;
    color: var(--l-muted);
    margin-inline-end: 2px;
}

.simano-landing .knowledge-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: var(--l-surface-2);
    border: 1px solid var(--l-border);
    color: var(--l-text);
    font: inherit;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.simano-landing .knowledge-share-btn:hover {
    transform: translateY(-3px);
    color: var(--l-highlight);
    border-color: var(--l-highlight);
    background: var(--l-highlight-soft);
}

.simano-landing .knowledge-share-btn svg {
    width: 17px;
    height: 17px;
}

.simano-landing .knowledge-share-btn.is-copied {
    color: var(--l-success);
    border-color: var(--l-success);
    background: var(--l-success-soft);
}

.simano-landing .knowledge-share-copied-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--l-success);
    white-space: nowrap;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.25s ease, transform 0.25s ease, max-width 0.25s ease;
}

.simano-landing .knowledge-share-copied-label.is-visible {
    max-width: 120px;
    opacity: 1;
    transform: translateX(0);
}

.simano-landing .knowledge-toc {
    padding: 0;
    margin-bottom: 32px;
}

.simano-landing .knowledge-toc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
}

.simano-landing .knowledge-toc-summary::-webkit-details-marker {
    display: none;
}

.simano-landing .knowledge-toc-summary::marker {
    content: '';
}

.simano-landing .knowledge-toc-title {
    font-size: 14px;
    font-weight: 700;
}

.simano-landing .knowledge-toc-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--l-muted);
    transition: transform 0.3s ease;
}

.simano-landing .knowledge-toc[open] .knowledge-toc-chevron {
    transform: rotate(180deg);
}

.simano-landing .knowledge-toc-list {
    list-style: none;
    margin: 0;
    padding: 0 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.simano-landing .knowledge-toc-item a {
    display: block;
    font-size: 14px;
    line-height: 1.8;
    color: var(--l-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.simano-landing .knowledge-toc-item a:hover,
.simano-landing .knowledge-toc-item a.is-active {
    color: var(--l-accent);
}

.simano-landing .knowledge-toc-item a.is-active {
    font-weight: 700;
}

.simano-landing .knowledge-toc-item.is-level-3 {
    padding-inline-start: 18px;
    font-size: 13px;
}

@media (min-width: 992px) {
    .simano-landing details.knowledge-toc {
        position: sticky;
        top: 96px;
        max-height: calc(100vh - 116px);
        overflow-y: auto;
    }

    .simano-landing .knowledge-toc-summary {
        cursor: default;
        pointer-events: none;
    }

    .simano-landing .knowledge-toc-chevron {
        display: none;
    }

    .simano-landing .knowledge-toc-list {
        display: flex !important;
    }

    .simano-landing .knowledge-toc::details-content {
        content-visibility: visible;
        block-size: auto;
    }
}

.simano-landing .knowledge-article-content {
    line-height: 2.1;
    font-size: 16px;
}

.simano-landing .knowledge-article-content h2,
.simano-landing .knowledge-article-content h3,
.simano-landing .knowledge-article-content h4 {
    scroll-margin-top: 96px;
}

.simano-landing .knowledge-article-content p {
    margin-bottom: 1.5em;
}

.simano-landing .knowledge-article-content h2,
.simano-landing .knowledge-article-content h3,
.simano-landing .knowledge-article-content h4 {
    line-height: 1.7;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 700;
}

.simano-landing .knowledge-article-content ul,
.simano-landing .knowledge-article-content ol {
    margin-bottom: 1.5em;
    padding-inline-start: 1.4em;
}

.simano-landing .knowledge-article-content li {
    margin-bottom: 0.6em;
}

.simano-landing .knowledge-article-content img {
    border-radius: 12px;
}

/* ================= Knowledge single: related-articles carousel ================= */
.simano-landing .knowledge-related-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.simano-landing .knowledge-related-nav[hidden] {
    display: none;
}

.simano-landing .knowledge-related-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: var(--l-surface-2);
    border: 1px solid var(--l-border);
    color: var(--l-text);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.simano-landing .knowledge-related-nav-btn:hover {
    color: var(--l-highlight);
    border-color: var(--l-highlight);
    background: var(--l-highlight-soft);
}

.simano-landing .knowledge-related-nav-btn svg {
    width: 16px;
    height: 16px;
}

.simano-landing .knowledge-related-nav-btn[data-direction="prev"] svg {
    transform: rotate(180deg);
}

.simano-landing .knowledge-related-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    margin-inline: -4px;
    padding-inline: 4px;
    -webkit-overflow-scrolling: touch;
}

.simano-landing .knowledge-related-track::-webkit-scrollbar {
    height: 6px;
}

.simano-landing .knowledge-related-track::-webkit-scrollbar-thumb {
    background: var(--l-border);
    border-radius: 999px;
}

.simano-landing .knowledge-related-card {
    flex: 0 0 auto;
    width: min(78vw, 260px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.simano-landing .knowledge-related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--l-shadow);
    border-color: var(--l-accent);
}

.simano-landing .knowledge-related-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.simano-landing .knowledge-related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.simano-landing .knowledge-related-card-body {
    padding: 14px 16px 16px;
}

.simano-landing .knowledge-related-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 992px) {
    .simano-landing .knowledge-related-card {
        width: calc((100% - 2 * 16px) / 3.3);
    }
}

/* ================= Scroll-to-top button (landing pages) =================
   style.css defines #scrollTopBtn too, but style.css isn't enqueued on
   landing-design pages (header.php loads landing.css instead) — so the
   button needs its own copy here, themed with the landing accent vars. */
#scrollTopBtn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9998;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--l-accent);
    color: var(--l-accent-contrast);
    cursor: pointer;
    box-shadow: var(--l-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, filter 0.2s ease;
}

#scrollTopBtn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
}

#scrollTopBtn svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

@media (max-width: 575px) {
    #scrollTopBtn {
        bottom: 16px;
        right: 14px;
        width: 42px;
        height: 42px;
    }
}
