@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

:root{
    --bg-color: #FDFDFD;
    --btn-color: #FDFDFD;
    --btn-bg: #25d967;
    --primary-text-color: #25d967;
    --primary-dark: #1B5B3D;
    --orange: #E66C00;
    --header-link-hover: #25d967;
    --input-hover-bd-color: #25d967;
    --outline-color: #e5e7eb;
}

/* Site-wide language toggle: show only current language blocks (default: English) */
html:not([lang="ar"]) .lang-ar { display: none !important; }
html[lang="ar"] .lang-en { display: none !important; }

html[lang="ar"] body { font-family: "Noto Sans Arabic", "Ubuntu", sans-serif; }


html {
    scroll-behavior: smooth;
    font-family: "Ubuntu", sans-serif;
}

header {
    color: #4a4a4a;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    min-height: 60px;
    box-sizing: border-box;
}


header > .collapsible-header{
    display: flex;
    gap: 1rem;
    width: 100%;
    flex: 1;
    min-width: 0;
    background-color: inherit;
    place-content: center;
    transition: width 0.3s ease;
}

/* Mobile: hide nav + actions in header bar (only logo + hamburger visible) */
@media (max-width: 1023px) {
    header > .collapsible-header {
        display: none !important;
    }
}

/* Desktop only: clip overflow so nav stays centered in header */
@media (min-width: 1024px) {
    header > .collapsible-header {
        overflow: hidden;
    }
}

/* Desktop: center nav links relative to full header width (header is already position: absolute or sticky) */
@media (min-width: 1024px) {
    header > .collapsible-header {
        place-content: stretch;
        justify-content: flex-end;
    }
    header > .collapsible-header .header-nav-center {
        position: absolute;
        left: 50%;
        right: auto;
        top: 0;
        bottom: 0;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        flex: none;
        z-index: 1;
    }
    header > .collapsible-header .header-actions {
        flex-shrink: 0;
        position: relative;
        z-index: 2;
    }
}

.animated-collapse{
    transition: width 0.3s ease;
}


.header-links {
    display: flex;
    align-items: center;
    min-width: fit-content;
    border-radius: 5px;
    padding: 5px 10px;
    transition: background-color 0.5s, color 0.5s;
}


.header-links:hover {
    color: var(--primary-dark);
}

.primary-text-color{
    color: var(--primary-text-color);
}

.gradient-text{
    background: linear-gradient(90deg, var(--primary-dark) 18%, var(--primary-text-color) 71%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-img-section{
    background: linear-gradient(135deg, #FDFDFD 0%, #EAEAEA 50%, rgba(37, 217, 103, 0.08) 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.store-download-badge {
    width: 160px;
    height: 47px;
    border-radius: 12px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.store-download-badge--appstore {
    border: 0;
    appearance: none;
    background-color: #000;
}

.hero-img-bg-grad{
    background: linear-gradient(90deg, #25d96780 8%, #1B5B3D90 31%, #E66C0060 76%, #25d96770 89%);
    filter: blur(50px);
    opacity: 0.5;
}

.why-ideal-phone-image {
    width: 75%;
    max-width: 425px;
}

@media (max-width: 1023px) {
    .why-ideal-phone-image {
        width: 100%;
        max-width: 320px;
    }
}

#dashboard {
    /* transform-origin: bottom center; */
    transform: perspective(1200px) translateX(0px) translateY(12px) scale(0.8)
        rotate(0deg) rotateX(70deg);
    transition: transform 0.5;
}

.border-gradient{
    background: rgb(219,215,213);
    background: linear-gradient(180deg, rgba(219,215,213,1) 35%, rgba(214,211,233,0) 71%);
    /* background-image: linear-gradient(90deg, #7e22ce91 8%, #625aafae 31%, #7badbbbc 76%, #54d2d0ca 89%); */
    padding: 2px;
    border-radius: 10px;
}
.border-gradient>div{
    /* background-color: var(--bg-color); */
    background-color: var(--bg-color);
    border-radius: inherit;
}

.opacity-0{
    opacity: 0 !important;
}

.opacity-100{
    opacity: 100 !important;
}

.btn{
    padding: 10px 15px;
    width: max-content;
    border-radius: 5px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.btn:hover{

}

.btn:disabled{
    cursor: default;
}

.input{
    padding: 10px;
    background-color: transparent;
    border-radius: 5px;
    /* outline: none; */
    min-width: 100px;
    border: 1px solid #818080;
    /* transition: border 0.3s; */
}

.input:active, .input:focus, .input:focus-within{
    border: 1px solid var(--input-hover-bd-color) !important;
}

.carousel-container {
    width: 100%;
    max-width: 800px;
}

.carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

.carousel-img {
    flex-shrink: 0;
}

.footer-link{
    color: #6b7280;
    transition: color 0.3s;
}

.footer-link:hover{
    color: var(--primary-dark);
}


/* Style for the collapsible content such as faq commonly known as: accordion */

.faq-accordion {
    background-color: inherit;
    color: #1f2937;
    cursor: pointer;
    padding: 15px 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: height 0.4s;
}

.faq .content {
    padding: 0px 18px;
    color: #4b5563;
    height: max-content;
    overflow: hidden;
    background-color: transparent;
    text-align: justify;
    max-height: 0px;
    transition: max-height 0.4s, padding 0.4s;
}

.faq-accordion .active,
.faq-accordion:hover {
    /* background-color: #2e2c2c; */
}

/* Wrapper for header + mobile overlay (replaces single header in include) */
.header-wrapper {
    position: relative;
}

/* ---------- Mobile menu overlay (separate panel, not the header) ---------- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.2);
    align-items: flex-end;
    justify-content: flex-end;
}

.mobile-menu-overlay.is-open {
    display: flex;
}

@media (min-width: 1024px) {
    .mobile-menu-overlay.is-open {
        display: none !important;
    }
}

.mobile-menu-panel {
    width:  min(320px, 85vw);
    max-width: 100%;
    height: 100%;
    background-color: #FDFDFD;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 5rem 1.5rem 2rem 1.5rem;
    box-sizing: border-box;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: #1f2937;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 0.5rem;
    font-size: 1.125rem;
    color: #1f2937;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s, color 0.2s;
}

.mobile-menu-link:hover {
    color: var(--primary-dark);
    background-color: rgba(37, 217, 103, 0.08);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

.mobile-menu-lang {
    cursor: pointer;
}

.mobile-menu-lang:hover {
    border-color: var(--primary-dark);
}

.mobile-menu-download {
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

.header-links {
    color: rgb(31, 41, 55);
}

/* Header logo: consistent, compact size across all pages (32px) */
.site-logo {
    flex: 0 0 auto;
    height: 2rem;
    width: 2rem;
    min-height: 2rem;
    min-width: 2rem;
}
.site-logo img {
    display: block;
    height: 2rem;
    width: 2rem;
    max-height: 2rem;
    max-width: 2rem;
    object-fit: contain;
}

/* RTL: keep menu button on the opposite side from logo so they don’t overlap */
[dir="rtl"] header #collapse-btn {
    right: auto;
    left: 0.75rem;
}

/* Mobile: ensure header has enough horizontal padding (logo and menu don’t touch edges) */
@media (max-width: 1023px) {
    header {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* Desktop: hide menu button (show only nav links + actions), ensure horizontal padding */
@media (min-width: 1024px) {
    header #collapse-btn {
        display: none !important;
    }
    header {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Mobile: ensure footer has enough horizontal padding */
@media (max-width: 768px) {
    footer {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}

/* Language switch button */
#lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--outline-color);
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    color: #374151;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#lang-switch:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 1px var(--primary-dark);
}

/* Mobile header: Member + language (mirrors Tailwind lg:tw-hidden if partials were not in the build) */
#header-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
@media (min-width: 1024px) {
    #header-mobile-actions {
        display: none !important;
    }
}

#lang-switch-mobile {
    display: inline-flex;
}

/* Legal pages: readable content width and cards — proper whitespace (v2) */
.legal-page main {
    max-width: 42rem;
    /* Space above title: clear gap below absolute header; responsive */
    padding-top: 4rem !important; /* ~64px: header 60px + small gap */
}
@media (max-width: 768px) {
    .legal-page main {
        padding-top: 3.75rem !important; /* 60px: clear header height, no extra gap on small screens */
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
}
@media (min-width: 1024px) {
    .legal-page main {
        padding-top: 4.5rem !important; /* slightly more on large screens */
    }
}

/* Title block: clear space above title, below subtitle, and between title and subtitle */
.legal-page .legal-page-title {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: start;
}
.legal-page .legal-page-title h1 {
    margin-bottom: 1.25rem !important;
    margin-top: 0 !important;
}
.legal-page .legal-page-title p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Cards: generous internal padding and space between heading and body */
.legal-page .legal-card {
    background: #fff;
    border: 1px solid var(--outline-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    padding: 2rem 1.75rem !important;
}
@media (min-width: 640px) {
    .legal-page .legal-card {
        padding: 2.25rem 2.25rem !important;
    }
}
.legal-page .legal-card h2 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.25rem !important;
    margin-top: 0 !important;
}
.legal-page .legal-card p {
    line-height: 1.8 !important;
    color: #374151;
    margin-bottom: 0 !important;
}
/* Only force alert red when the paragraph is styled as an error; success/info lines use role="alert"
   or other roles without .tw-text-red-600 and must not inherit this rule. */
.legal-page .legal-card p[role="alert"].tw-text-red-600 {
    color: #dc2626 !important;
}
.legal-page .legal-card p + p {
    margin-top: 0.875rem !important;
}
.legal-page .legal-card .legal-policy-list {
    line-height: 1.8;
    color: #374151;
    margin-top: 0.875rem !important;
    margin-bottom: 0 !important;
    padding-left: 1.25rem;
    list-style-type: disc;
}
.legal-page .legal-card .legal-policy-list li + li {
    margin-top: 0.5rem;
}
[dir="rtl"] .legal-page .legal-card .legal-policy-list {
    padding-right: 1.25rem;
    padding-left: 0;
}
[dir="rtl"] .legal-page .legal-card p { text-align: right; }
[dir="ltr"] .legal-page .legal-card p { text-align: left; }

/* Space between cards: use CSS so it works without relying on Tailwind purge */
.legal-page .legal-sections {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* Contact card: extra margin above so it’s separated from previous cards */
.legal-page .legal-contact-card {
    margin-top: 3.5rem;
}

/* Spacer below last content, above footer */
.legal-page .legal-bottom-spacer {
    margin-top: 2rem;
    height: 3rem;
    min-height: 3rem;
}
@media (min-width: 640px) {
    .legal-page .legal-bottom-spacer {
        height: 4rem;
        min-height: 4rem;
    }
}