/* ===============================
   GLOBAL
=============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Lato", Arial, sans-serif;
    background: radial-gradient(circle at top, #f4faf6 0%, #ffffff 55%, #f8fbf9 100%);
    color: #0f3d2e;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Image soft animation */
img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    animation: fadeZoom .8s ease both;
}

img:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 26px rgba(0,0,0,0.13);
}

section {
    padding: 70px 0;
}

.container,
.about-container,
.services-container,
.contact-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ===============================
   TOP BAR
=============================== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #022c1c;
    padding: 4px 0;
    font-size: 13px;
    color: #d2f5e6;
    z-index: 10000;
}

.topbar-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

/* ===============================
   NAVBAR
=============================== */
.navbar {
    position: fixed;
    top: 24px; /* تحت الـ topbar */
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, #033924 0%, #0a7e4a 55%, #10a85e 100%);
    padding: 6px 0;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.navbar-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo with capsule background */
.navbar-logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo {
    width: 135px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.03));
    box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 6px 14px rgba(0,0,0,0.18);
    transition: transform .3s ease, background .3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
}

.navbar-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.navbar-subtitle {
    font-size: 11px;
}

/* NAV LINKS */
.navbar-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-menu a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-bottom: 3px;
}

.navbar-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #ffd76a;
    transition: width .25s ease;
}

.navbar-menu a:hover::after {
    width: 100%;
}

/* ===============================
   HERO
=============================== */
.hero {
    margin-top: 100px; /* علشان topbar + navbar */
    height: calc(100vh - 100px);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(0,60,20,0.7), rgba(0,0,0,0.55));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp .9s ease both;
}

.hero-title {
    font-size: 46px;
    font-family: "Playfair Display", serif;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 17px;
    opacity: .96;
}

/* ===============================
   ABOUT
=============================== */
.about {
    background: #f6fbf7;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.section-title {
    font-size: 30px;
    font-family: "Playfair Display", serif;
    color: #0a4a2a;
    margin-bottom: 20px;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0a4a2a, #00a86b);
    display: block;
    border-radius: 999px;
    margin-top: 8px;
}

.about-text {
    font-size: 15px;
    color: #234436;
}

/* ===============================
   SERVICES
=============================== */
.services-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.services .section-title {
    text-align: center;
}

.services .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: #f6fbf7;
    border-radius: 14px;
    padding: 0 0 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    border-top: 3px solid rgba(0,168,107,.45);
    transition: .25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    border-color: #00c174;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 14px 16px 0;
}

.service-title {
    font-size: 19px;
    margin-bottom: 6px;
    color: #0a4a2a;
}

.service-description {
    font-size: 14px;
    color: #345445;
}

/* ===============================
   CONTACT
=============================== */
.contact {
    background: #f6fbf7;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* معلومات الاتصال */
.contact-info .contact-item {
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #d0dfd7;
}

.contact-label {
    font-size: 16px;
    color: #0a4a2a;
    font-weight: 600;
    margin-bottom: 3px;
}

.contact-name {
    font-size: 15px;
    font-weight: 600;
    color: #234436;
}

.contact-detail {
    font-size: 14px;
    color: #345347;
    margin-top: 3px;
}

/* أيقونات الاتصال (لو استخدمتها) */
.icon-contact {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: middle;
}

/* فورم الاتصال */
.contact-form-wrapper .section-title {
    margin-bottom: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-label {
    font-size: 14px;
    color: #234436;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfd9d5;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #00a86b;
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.18);
    background: #f9fffc;
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

.submit-btn {
    padding: 12px;
    border: none;
    background: linear-gradient(135deg, #01a35a, #00c173);
    color: #fff;
    font-size: 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-top: 6px;
    box-shadow: 0 6px 16px rgba(0, 163, 90, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #008c4c, #00af68);
    transform: translateY(-1px);
    box-shadow: 0 9px 22px rgba(0, 140, 76, 0.45);
    opacity: 0.98;
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(0, 140, 76, 0.35);
}

/* ===============================
   WHATSAPP FLOAT BUTTON
=============================== */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 99999;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0,140,76,0.45);
    transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 22px rgba(0,140,76,0.6);
}

/* ===============================
   FOOTER
=============================== */
.footer {
    background: #0a4a2a;
    color: #fff;
    text-align: center;
    padding: 14px 0;
    margin-top: 40px;
}

/* ===============================
   ANIMATIONS
=============================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeZoom {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: scale(1); }
}

/* Scroll Reveal */
.reveal {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.about-container, .services-grid, .contact-container,
.service-card, .about-img {
    opacity: 0;
    transform: translateY(30px) scale(.98);
    transition: all .8s ease;
}

/* ===============================
   RTL TWEAKS (للنسخة العربية)
=============================== */
html[dir="rtl"] .navbar-container {
    flex-direction: row-reverse;
}

html[dir="rtl"] .navbar-menu {
    flex-direction: row-reverse;
}

html[dir="rtl"] .navbar-logo-section {
    flex-direction: row-reverse;
}

html[dir="rtl"] .navbar-text {
    text-align: right;
}

/* ===============================
   RESPONSIVE
=============================== */
@media(max-width: 900px) {

    .topbar-container {
        justify-content: center;
        gap: 12px;
        font-size: 12px;
    }

    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .navbar-logo { width: 115px; }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
        gap: 14px;
    }

    .hero {
        margin-top: 110px;
        min-height: 70vh;
    }

    .hero-title {
        font-size: 34px;
    }

    .about-container,
    .services-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    section { padding: 55px 0; }
}
