/**
 * Tamweh.com — Public Pages Stylesheet
 * Professional marketing pages with animations
 */

/* ============================================= */
/* Animations                                     */
/* ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(22, 75, 44, 0.1); }
    50% { box-shadow: 0 0 40px rgba(22, 75, 44, 0.25); }
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes count-up {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* Public Navbar                                  */
/* ============================================= */
.pub-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 0.9rem 0;
    transition: all 0.3s ease;
    background: transparent;
}
.pub-nav.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
    padding: 0.6rem 0;
}
[data-theme="light"] .pub-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.pub-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pub-nav-logo img {
    height: 38px;
    filter: brightness(2) contrast(1.4);
}

.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.pub-nav-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}
.pub-nav-links a:hover,
.pub-nav-links a.active {
    color: var(--text-heading);
}
.pub-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--brand-green-light);
    transition: width 0.3s ease;
    border-radius: 1px;
}
.pub-nav-links a:hover::after,
.pub-nav-links a.active::after {
    width: 100%;
}

.pub-nav-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-arabic);
    text-decoration: none;
}
.btn-ghost:hover {
    color: var(--text-heading);
    border-color: var(--brand-green);
}

.btn-cta {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
    color: white;
    border: none;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-arabic);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(22, 75, 44, 0.3);
}
.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22, 75, 44, 0.4);
}

/* ============================================= */
/* Container                                      */
/* ============================================= */
.pub-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================= */
/* Hero Section                                   */
/* ============================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(22, 75, 44, 0.08) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(45, 139, 85, 0.05) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(22, 75, 44, 0.12);
    border: 1px solid rgba(22, 75, 44, 0.25);
    color: var(--brand-green-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 1.2rem;
    font-family: var(--font-arabic-heading);
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--brand-green-light), var(--brand-green-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-actions .btn-cta {
    font-size: 1rem;
    padding: 0.75rem 2rem;
}

/* ============================================= */
/* Stats Row                                      */
/* ============================================= */
.pub-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 2rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.pub-stat {
    text-align: center;
}

.pub-stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-green-light);
    font-family: var(--font-english);
    line-height: 1;
}

.pub-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* ============================================= */
/* Section                                        */
/* ============================================= */
.pub-section {
    padding: 5rem 0;
}

.pub-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.pub-section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-heading);
    font-family: var(--font-arabic-heading);
    margin-bottom: 0.75rem;
}

.pub-section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.pub-section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-green-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* ============================================= */
/* Feature Cards Grid                             */
/* ============================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-green-light), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: var(--brand-green);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(22, 75, 44, 0.12);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(22, 75, 44, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.6rem;
    font-family: var(--font-arabic-heading);
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--brand-green-light);
    background: rgba(22, 75, 44, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.8rem;
    font-family: var(--font-english);
}

/* ============================================= */
/* Steps                                          */
/* ============================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 1rem;
    font-family: var(--font-english);
}

.step-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
    font-family: var(--font-arabic-heading);
}

.step-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================= */
/* Pricing                                        */
/* ============================================= */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--brand-green);
    box-shadow: 0 0 30px rgba(22, 75, 44, 0.15);
    transform: scale(1.03);
}

.pricing-card.featured::before {
    content: 'الأكثر طلبًا';
    position: absolute;
    top: -12px;
    right: 50%;
    transform: translateX(50%);
    background: var(--brand-green);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.3rem;
    font-family: var(--font-arabic-heading);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-green-light);
    font-family: var(--font-english);
    margin: 1rem 0 0.3rem;
}

.pricing-period {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    text-align: right;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.83rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-secondary);
}

.pricing-features li::before {
    content: '✓ ';
    color: var(--brand-green-light);
    font-weight: 700;
}

/* ============================================= */
/* Compliance Logos Bar                           */
/* ============================================= */
.compliance-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 3rem 2rem;
    opacity: 0.6;
}

.compliance-bar:hover { opacity: 1; transition: opacity 0.3s; }

.compliance-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.compliance-logo .logo-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-secondary);
    font-family: var(--font-english);
    transition: all 0.3s;
}

.compliance-logo:hover .logo-circle {
    border-color: var(--brand-green);
    color: var(--brand-green-light);
    box-shadow: 0 0 15px rgba(22, 75, 44, 0.2);
}

.compliance-logo .logo-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ============================================= */
/* CTA Section                                    */
/* ============================================= */
.pub-cta {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(22, 75, 44, 0.06) 0%, rgba(5, 5, 5, 0) 100%);
    border-radius: 24px;
    margin: 2rem auto;
    max-width: 1200px;
}

.pub-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-family: var(--font-arabic-heading);
}

.pub-cta p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ============================================= */
/* Footer                                         */
/* ============================================= */
.pub-footer {
    background: #070A08;
    border-top: 1px solid #1A2E22;
    padding-top: 4rem;
    padding-bottom: 2rem;
    color: #C0D4C8;
}

/* Force light text/icons in footer regardless of theme */
.pub-footer, .pub-footer * { --_ft-heading: #E8F0EC; --_ft-text: #8BA89D; --_ft-muted: #4A6B58; --_ft-border: #1A2E22; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-brand img {
    height: 34px;
    margin-bottom: 0.8rem;
    filter: brightness(2) contrast(1.4);
}

.footer-brand p {
    font-size: 0.82rem;
    color: #8BA89D;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #E8F0EC;
    margin-bottom: 1rem;
    font-family: var(--font-arabic-heading);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #8BA89D;
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #34D399;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #1A2E22;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8BA89D;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.footer-social a:hover {
    border-color: #2D8B55;
    color: #34D399;
    background: rgba(22, 75, 44, 0.15);
}

/* App download buttons */
.app-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #0F1410;
    border: 1px solid #1A2E22;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.7rem;
    color: #8BA89D;
    text-decoration: none;
    transition: all 0.2s;
}

.app-btn:hover {
    border-color: #2D8B55;
    color: #E8F0EC;
}

/* Footer bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid #1A2E22;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-text {
    font-size: 0.72rem;
    color: #4A6B58;
}

.footer-compliance-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-compliance-logos span {
    font-size: 0.6rem;
    font-weight: 700;
    color: #8BA89D;
    font-family: var(--font-english);
    padding: 0.25rem 0.6rem;
    border: 1px solid #1A2E22;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* ============================================= */
/* Responsive                                     */
/* ============================================= */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .pub-nav-links { display: none; }
    .pub-stats { gap: 1.5rem; }
    .pricing-card.featured { transform: scale(1); }
}
