/*
 Theme Name: Numthaja Profile EN
 Theme URI: https://numthaja.com
 Author: ChatGPT Assistant
 Description: Single-page English corporate theme for Numthaja Environmental Consulting.
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: numthaja-profile-en
*/

/* Make all elements use border-box so padding doesn't cause overflow */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f3f4f6;
    color: #111827;
    line-height: 1.6;
}

a {
    color: #047857;
    text-decoration: none;
}
a:hover { text-decoration: underline; }

.site-header {
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6, #e5e7eb); /* تدرج رمادي من الفاتح للأغمق */
    color: #111827;   /* أو #000000 لو تبي أسود صريح */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;

}

.site-tagline {
    font-size: 1.0rem;
	color: #000000;      /* نص أسود */
    margin: 0.25rem 0 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}
/* تخانة الخط في المنيو (تشمل كلمة عربي) */
.main-nav a {
    font-weight: 600;     /* سمكه أكثر */
    font-size: 0.95rem;   /* أكبر شوي من قبل */
    color: #111827;       /* غامق وواضح */
}

/* شكل الروابط عند مرور الماوس */
.main-nav a:hover {
    color: #047857;       /* أخضر بسيط للهفر */
    text-decoration: none;
}

.hero {
    background: radial-gradient(circle at top left, #059669, #0f766e, #022c22);
    color: white;
    padding: 4rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2.5rem;
    align-items: center;
}

.hero h1 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    max-width: 38rem;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.badge {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    font-size: 0.8rem;
}

.btn-primary {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: #facc15;
    color: #111827;
    font-weight: 600;
}

.hero-side-card {
    background: rgba(15, 23, 42, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.section {
    padding: 3rem 0;
}

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

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.section-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    border-radius: 0.9rem;
    padding: 1.5rem;
    box-shadow: 0 18px 30px -18px rgba(15, 23, 42, 0.35);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    background: #e5e7eb;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.callout {
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 1rem;
    padding: 1.75rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.site-footer {
    background: linear-gradient(to bottom, #e5e7eb, #f3f4f6, #f9fafb); /* التدرج بالعكس */
    color: #4b5563;              /* رمادي غامق ومقروء */
    padding: 2rem 0;
    font-size: 0.85rem;
    margin-top: 3rem;
    text-align: center;
}

/* الروابط نفس لون النص تقريبًا */
.site-footer a {
    color: #4b5563;
}
.site-footer a:hover {
    color: #047857;              /* أخضر بسيط عند الهفر */
}


@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2.5rem;
    }
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .brand-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav ul {
        flex-wrap: wrap;
    }
}
.brand-row-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.custom-logo {
    height: 48px;
    width: auto;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    background-color: #25d366; /* لون واتساب */
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.whatsapp-float:hover {
    background-color: #22c55e;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

/* Make regular pages (like Arabic & Contact) flat without the big white card */
.page article.card {
    background: transparent;
    box-shadow: none;
    padding: 0;
	margin-top: 0;   /* 👈 هذا هو اللي يشيل الفراغ الأبيض */
}

/* Hide the automatic big page title inside that card */
.page article.card > h1 {
    display: none;
}
/* Arabic landing page layout */
.rtl-page {
    direction: rtl;
    text-align: right;

    /* Full-width trick so hero background spans the whole screen */
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
/* على الشاشات الصغيرة لا نستخدم حيلة الـ 100vw حتى لا يظهر قص من اليمين */
@media (max-width: 768px) {
    .rtl-page {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

/* تأكد أن العناوين وبطاقات الخدمة تكون يمين */
.rtl-page .section-header,
.rtl-page .card,
.rtl-page .hero-side-card {
    text-align: right;
}
/* إزالة البادينج العلوي عن غلاف الصفحات مثل صفحة العربي و Contact */
.page .site-main > .section:first-of-type {
    padding-top: 0;
}
/* Social icons row in footer */
/* صف أيقونات السوشيال في الفوتر */
/* Social icons in footer – Font Awesome, clean & unified */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 1.1rem;  /* أيقونات فوق، بعدها النص */
}

/* الحاوية لكل أيقونة */
.footer-social .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: transparent;
    border: none;
}

/* الأيقونة نفسها (Font Awesome) */
.footer-social .social-icon i {
    font-size: 22px;        /* حجم قياسي */
    color: #111827;         /* أسود/رمادي غامق مثل المثال اللي أرسلته */
}

/* تأثير بسيط عند المرور */
.footer-social .social-icon:hover i {
    transform: translateY(-1px) scale(1.07);
    color: #047857;         /* أخضر خفيف عند الهفر (تقدر تخليه أسود لو تحب) */
}
/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background-color: #25d366; /* لون واتساب */
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.whatsapp-float:hover {
    background-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.service-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card-link:hover {
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 22px 36px -20px rgba(15, 23, 42, 0.45);
}

.service-card-link h3,
.service-card-link p {
    color: inherit;
}

.rtl-page .service-card-link {
    text-align: right;
    direction: rtl;
}

.rtl-page .wp-element-caption,
.page .wp-element-caption {
  text-align: center !important;
}

.wp-block-columns .wp-block-image {
  text-align: center;
}

.wp-block-columns .wp-block-image img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  display: block;
  margin: 0 auto;
}

.wp-block-columns .wp-element-caption {
  text-align: center !important;
  min-height: 52px;
  margin-top: 10px;
  line-height: 1.6;
}

.wp-block-columns {
  gap: 24px;
  margin-bottom: 24px;
}

.wp-block-column {
  display: flex;
  flex-direction: column;
}

.wp-block-columns .wp-block-image {
  margin-bottom: 0;
}

.wp-block-columns .wp-element-caption {
  padding: 0 8px;
}

.wp-block-group p + .wp-block-columns {
  margin-top: 16px;
}

.research-grid .research-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 260px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, font-weight 0.2s ease;
    cursor: pointer;
}

.research-grid .research-card-link:hover {
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 22px 36px -20px rgba(15, 23, 42, 0.45);
}

.research-grid .research-card-link:hover h3,
.research-grid .research-card-link:hover p {
    font-weight: 700;
}
