@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

:root {
    --bg: #f6f2ea;
    --text: #0b1220;
    --muted: #4b5563;
    --accent: #0f766e;
    --accent-dark: #0b5f58;
    --gold: #d4a017;
    --navy: #0b1a33;
    --card: #ffffff;
    --border: #e7e1d6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html[lang="ar"] {
    direction: rtl;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    background: radial-gradient(1200px 600px at 10% 0%, #fff7e6 0%, transparent 60%),
                radial-gradient(900px 500px at 90% 10%, #e6fff9 0%, transparent 55%),
                var(--bg);
    color: var(--text);
    line-height: 1.6;
}

html[lang="ar"] body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px;
}

.hero {
    position: relative;
    padding: 90px 0 70px;
    background: linear-gradient(135deg, #0b1a33 0%, #0f2b47 55%, #103b2f 100%);
    color: #f8fafc;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(212,160,23,0.35) 0%, rgba(212,160,23,0.05) 60%, transparent 70%);
    filter: blur(6px);
    opacity: 0.9;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto auto -45% -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(15,118,110,0.35) 0%, rgba(15,118,110,0.08) 65%, transparent 72%);
    filter: blur(8px);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.hero .badge {
    display: inline-block;
    background: rgba(212, 160, 23, 0.18);
    color: #fef3c7;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    border: 1px solid rgba(212, 160, 23, 0.4);
}

h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.subtitle {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.target-line {
    font-size: 1rem;
    color: #cbd5f5;
    margin-bottom: 24px;
}

.btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #0f9b8e 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, #0b857a 100%);
    cursor: pointer;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #e2e8f0;
    border-color: rgba(226, 232, 240, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transform: translateY(-1px);
}

.btn:hover {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

section {
    padding: 32px 0;
}

.audit-offer {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(21, 198, 194, 0.12) 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    padding: 24px;
    display: grid;
    gap: 12px;
    align-items: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.audit-offer h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin: 0;
}

.audit-offer p {
    color: var(--muted);
    margin: 0;
}

.audit-offer .audit-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent);
}

#why ,#process, #audit{
    background: linear-gradient(135deg, rgba(15,118,110,0.06) 0%, rgba(212,160,23,0.05) 100%);
    border-top: 1px solid rgba(212,160,23,0.15);
    border-bottom: 1px solid rgba(212,160,23,0.15);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--navy);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.grid-testimonials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #defb90, var(--accent));
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.card h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.grid-why {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .grid-why {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: white;
    padding: 20px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
    border-radius: 15px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15,118,110,0.12), rgba(212,160,23,0.18));
    border-radius: 12px;
    border: 1px solid  rgb(46, 138, 115);
    color: var(--navy);
}

.why-icon i {
    font-size: 30px;
    color: #2e8a73;
}

.why-item h3 {
    margin-bottom: 6px;
    font-size: 1.05rem;
    color: var(--navy);
}

.why-item p {
    color: var(--muted);
    line-height: 1.6;
}

.list {
    display: grid;
    gap: 10px;
}

.list-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.list-item .dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(180deg, var(--accent), var(--accent));
    border-radius: 999px;
    margin-top: 8px;
    flex: 0 0 8px;
}

.timeline {
    position: relative;
    padding: 24px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent));
    z-index: 1;
}

.steps {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
    position: relative;
}

.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.step-number {
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
    box-shadow: 0 6px 14px rgba(212, 160, 23, 0.3);
}

.icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.icon i {
    font-size: 20px;
}

.testimonial {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonial::before {
    content: "\201C";
    position: absolute;
    top: -12px;
    left: 12px;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.stars {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    color: var(--navy);
    font-size: 1rem;
}

.testimonial-company {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    /* background: linear-gradient(135deg, rgba(15,118,110,0.12), rgba(212,160,23,0.18)); */
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    /* border: 1px solid rgba(212,160,23,0.35); */
}

.icon-badge i {
    font-size: 30px;
    color: #2e8a73;
}

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

.whatsapp-float i {
    font-size: 28px;
    color: #fff;
}

form {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

input, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

form .btn {
    width: auto;
    padding: 10px 20px;
    justify-self: end;
}

html[lang="ar"] form .btn {
    justify-self: start;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.success {
    background: #ecfeff;
    color: #0e7490;
    border: 1px solid #a5f3fc;
    padding: 10px 12px;
    border-radius: 8px;
    margin: 10px 0 0;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 0.8s ease forwards;
}

.reveal.delay-1 { animation-delay: 0.1s; }
.reveal.delay-2 { animation-delay: 0.2s; }
.reveal.delay-3 { animation-delay: 0.3s; }

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

footer {
    padding: 32px 0 40px;
    color: #f8fafc;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #0b1a33 0%, #0f2b47 55%, #103b2f 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-logo-ar-wrapper {
    flex: 0 0 auto;
    display: none;
}

html[lang="ar"] .footer-logo-ar-wrapper {
    display: block;
}

.footer-logo-ar {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo-ar:hover {
    opacity: 1;
}

.footer-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #f8fafc;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #0b1a33;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 18px;
}

.footer-vision {
    flex: 0 0 auto;
}

.vision-logo {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.vision-logo:hover {
    opacity: 1;
}

html[lang="ar"] .footer-content {
    flex-direction: row-reverse;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal a {
    color: #e2e8f0;
    font-weight: 600;
}

.footer-legal a:hover {
    color: var(--gold);
}

.legal-page {
    padding: 32px 0 60px;
}

.legal-header {
    margin-bottom: 18px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.legal-nav a {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    background: #fff;
    font-weight: 600;
}

.legal-nav a.active {
    border-color: var(--accent);
    color: var(--accent);
}

.legal-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.legal-section h2 {
    margin-bottom: 8px;
}

.legal-section ul {
    padding-left: 20px;
}

html[lang="ar"] .legal-section ul {
    padding-right: 20px;
    padding-left: 0;
}

html[lang="ar"] .footer-content {
    flex-direction: row-reverse;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .grid-3 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-testimonials {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-why {
        grid-template-columns: repeat(4, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .timeline::before {
        top: 50%;
        transform: translateY(-50%);
    }
}

.lang-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.lang-btn {
    padding: 6px 10px;
    background: transparent;
    border: 1px solid rgba(212, 160, 23, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lang-btn:hover {
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.6);
    transform: scale(1.1);
}

.lang-btn.active {
    background: rgba(15, 118, 110, 0.15);
    border-color: var(--accent);
}
