/* Base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background-color: #f8fafc;
    line-height: 1.6;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    background-color: #0f172a;
    color: #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ecfdf5;
}

.logo-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logo-text span {
    color: #22c55e;
}

.nav-toggle {
    border: none;
    background: transparent;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background-color: #e5e7eb;
    border-radius: 999px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #e5e7eb;
    text-decoration: none;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
    border-color: #22c55e;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-contact {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.8rem;
}

.header-contact-item {
    color: #cbd5f5;
    text-decoration: none;
}

.header-contact-item:hover {
    color: #e5e7eb;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
}

.language-switcher a {
    color: #cbd5f5;
}

.language-switcher a.active {
    color: #22c55e;
    font-weight: 600;
}

.language-switcher .divider {
    color: #4b5563;
}

.header-tagline {
    background: linear-gradient(to right, #111827, #0f172a);
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.header-tagline p {
    margin: 0.4rem 0 0.6rem;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.site-main {
    padding: 2.5rem 0 4.5rem;
}

.hero {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2rem, 2.8vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0.9rem 0 0.5rem;
    color: #020617;
}

.hero-subtitle {
    margin: 0 0 1.5rem;
    color: #4b5563;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.12s ease, color 0.12s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ecfdf5;
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.35);
}

.btn-outline {
    background-color: white;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    text-decoration: none;
}

.hero-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    font-size: 0.9rem;
}

.hero-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #4b5563;
}

.hero-check-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background-color: #dcfce7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #15803d;
    font-size: 0.7rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background-color: #e5e7eb;
    font-size: 0.75rem;
    color: #374151;
}

.hero-panel {
    position: relative;
    padding: 1.4rem 1.2rem;
    border-radius: 1rem;
    background: radial-gradient(circle at top left, #22c55e1c, transparent 50%), #020617;
    color: #e5e7eb;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.hero-panel h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.hero-panel-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    display: grid;
    gap: 0.35rem;
}

.hero-panel-list li::before {
    content: "•";
    margin-inline-end: 0.4rem;
    color: #4ade80;
}

.section {
    margin-top: 3rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    margin: 0 0 0.4rem;
    color: #020617;
}

.section-subtitle {
    margin: 0;
    color: #6b7280;
    max-width: 640px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.card {
    background-color: #ffffff;
    border-radius: 0.9rem;
    padding: 1.15rem 1.15rem 1.2rem;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
}

.card h3 {
    margin-top: 0.3rem;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.card p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    background-color: #eff6ff;
    color: #1d4ed8;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.step {
    background-color: #ffffff;
    border-radius: 0.9rem;
    padding: 1.1rem 1.1rem 1.2rem;
    border: 1px dashed #d1d5db;
}

.step h3 {
    margin: 0.25rem 0 0.4rem;
    font-size: 1rem;
}

.step p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.trust-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.trust-point {
    background-color: #0f172a;
    color: #e5e7eb;
    padding: 1.1rem 1.15rem 1.2rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.trust-point h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.trust-point p {
    margin: 0;
    font-size: 0.9rem;
    color: #cbd5f5;
}

.cta-panel {
    margin-top: 2.5rem;
    padding: 1.6rem 1.4rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e5e7eb;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .cta-panel {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        align-items: center;
    }
}

.cta-panel h2 {
    margin: 0 0 0.45rem;
}

.cta-panel p {
    margin: 0;
    color: #cbd5f5;
    font-size: 0.95rem;
}

.cta-panel .btn {
    justify-content: flex-start;
}

.site-footer {
    background-color: #020617;
    color: #9ca3af;
    padding: 2.5rem 0 1.5rem;
}

.footer-top {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1.1fr);
    }
}

.footer-brand p {
    margin-top: 0.75rem;
    max-width: 420px;
    color: #d1d5db;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-contact h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.3rem;
    font-size: 0.88rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-links a:hover {
    color: #e5e7eb;
}

.footer-contact p {
    margin: 0 0 0.3rem;
    font-size: 0.88rem;
}

.footer-contact a {
    color: #e5e7eb;
}

.footer-bottom {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid #111827;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.85rem;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom-links a {
    color: #9ca3af;
}

.footer-bottom-links span {
    color: #4b5563;
}

.whatsapp-button {
    position: fixed;
    inset-inline-end: 1.2rem;
    inset-block-end: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background-color: #22c55e;
    color: #022c22;
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.4);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 60;
}

.whatsapp-button:hover {
    text-decoration: none;
    background-color: #16a34a;
}

.whatsapp-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background-color: #ecfdf5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon svg {
    width: 17px;
    height: 17px;
    fill: #22c55e;
}

.whatsapp-label {
    display: none;
}

@media (min-width: 640px) {
    .whatsapp-label {
        display: inline;
    }
}

/* Forms */
form {
    display: grid;
    gap: 0.9rem;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1f2933;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.55rem;
    border: 1px solid #cbd5e1;
    font: inherit;
    color: #0f172a;
    background-color: #ffffff;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #22c55e;
    outline-offset: 1px;
    border-color: #16a34a;
}

.form-row {
    display: grid;
    gap: 0.9rem;
}

@media (min-width: 640px) {
    .form-row--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.alert {
    padding: 0.7rem 0.85rem;
    border-radius: 0.6rem;
    font-size: 0.88rem;
}

.alert-success {
    background-color: #ecfdf5;
    color: #14532d;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

/* Blog */
.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.3rem;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 0.9rem;
    padding: 1.1rem 1.15rem 1.2rem;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.blog-card h2 {
    margin: 0;
    font-size: 1.05rem;
}

.blog-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.blog-card-footer {
    margin-top: 0.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6b7280;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.blog-meta span::before {
    content: "•";
    margin-inline-end: 0.25rem;
}

.blog-meta span:first-child::before {
    content: "";
    margin-inline-end: 0;
}

.blog-content h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.blog-content h2 {
    margin-top: 1.6rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.blog-content h3 {
    margin-top: 1.3rem;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.blog-content p {
    margin: 0.4rem 0;
    color: #4b5563;
}

.blog-content ul {
    padding-left: 1.2rem;
}

body.rtl .blog-content ul {
    padding-left: 0;
    padding-right: 1.2rem;
}

.blog-content li {
    margin: 0.25rem 0;
}

.blog-cta {
    margin-top: 1.6rem;
    padding: 1.1rem 1rem;
    border-radius: 0.8rem;
    background-color: #eff6ff;
}

.blog-cta h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.blog-cta p {
    margin: 0 0 0.6rem;
}

/* Analytics */
.analytics-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 960px) {
    .analytics-grid {
        grid-template-columns: 1.1fr minmax(0, 2fr);
    }
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.stat-card {
    background-color: #ffffff;
    border-radius: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid #e5e7eb;
}

.stat-card h3 {
    margin: 0 0 0.2rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.stat-card p {
    margin: 0.15rem 0 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.traffic-sources {
    margin-top: 1.1rem;
}

.traffic-sources ul {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
    font-size: 0.9rem;
}

.traffic-sources li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

.traffic-sources li:last-child {
    border-bottom: none;
}

.analytics-filter {
    background-color: #ffffff;
    border-radius: 0.85rem;
    padding: 1.1rem 1rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.analytics-chart {
    background-color: #ffffff;
    border-radius: 0.85rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
}

/* Layout helpers */
.page-header {
    margin-bottom: 1.4rem;
}

.page-header h1 {
    margin: 0 0 0.4rem;
}

.page-header p {
    margin: 0;
    color: #6b7280;
}

.two-column {
    display: grid;
    gap: 1.7rem;
}

@media (min-width: 880px) {
    .two-column {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    }
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
}

.list-check li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.list-check span {
    font-size: 1rem;
    color: #16a34a;
}

.muted {
    color: #6b7280;
    font-size: 0.88rem;
}

.legal-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
}

.legal-content p {
    margin: 0.35rem 0;
    color: #4b5563;
}

/* Responsive header tweaks */
@media (max-width: 960px) {
    .header-meta {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background-color: #020617;
        border-top: 1px solid #111827;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }

    .main-nav.open {
        max-height: 260px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0.4rem 1.25rem 0.6rem;
    }

    .site-main {
        padding-top: 2rem;
    }
}

