/* ================================
   Ghannam Advanced Investment - Real Estate Styles
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --color-brown-dark: #2f2319;
    --color-brown: #3b2a1f;
    --color-gold: #c9a15d;
    --color-gold-soft: #e2c994;
    --color-bg: #f7f5f2;
    --color-white: #ffffff;
    --color-text-main: #1f2933;
    --color-text-muted: #6b7280;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-main);
}

body { direction: rtl; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.container { width: 90%; max-width: 1180px; margin: 0 auto; }

/* HEADER */

.site-header {
    background-color: var(--color-brown-dark);
    color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

/* Logo */
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.logo-img{
    width: 200px !important;
    height: 200px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
}


.logo-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-gold);
    letter-spacing: 0.02em;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #e5e7eb;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a.active,
.main-nav a:hover {
    background-color: rgba(201, 161, 93, 0.16);
    color: var(--color-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 999px;
    color: #e5e7eb;
    font-size: 1.4rem;
    padding: 0.1rem 0.7rem;
    cursor: pointer;
}

/* HERO */

.hero {
    background: radial-gradient(circle at 10% 10%, #4b3726 0, #2f2319 40%, #221812 100%);
    color: var(--color-white);
    padding: 4.5rem 0 4rem;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
    text-align: center;
}

.hero h1 { font-size: 2.4rem; margin-bottom: 1rem; }

.hero p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.7rem;
    color: #e5e7eb;
}

/* BUTTONS */

.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-soft));
    color: var(--color-brown-dark);
    box-shadow: 0 10px 25px rgba(201, 161, 93, 0.35);
}

.btn.secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn.secondary.light {
    background-color: var(--color-white);
    color: var(--color-brown-dark);
    border-color: var(--color-white);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    opacity: 0.96;
}

.hero-actions .btn { margin: 0 0.3rem; }

.mt-2 { margin-top: 1.6rem; }

/* SECTIONS */

.section { padding: 3.2rem 0; background-color: var(--color-bg); }

.section.bg-light { background-color: var(--color-white); }

.section.bg-accent {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-soft));
    color: var(--color-brown-dark);
}

.section h1, .section h2 { margin-bottom: 1rem; font-weight: 700; }

.section p { line-height: 1.9; color: var(--color-text-main); }

/* TEXT LINK */

.text-link {
    display: inline-block;
    margin-top: 0.7rem;
    color: var(--color-brown);
    font-weight: 500;
    border-bottom: 1px solid rgba(59, 42, 31, 0.15);
    padding-bottom: 0.1rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover { color: var(--color-gold); border-color: var(--color-gold); }

/* CARDS */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
    margin-top: 1.8rem;
}

.card {
    background-color: var(--color-white);
    border-radius: 14px;
    padding: 1.7rem 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card h3 { margin-top: 0; margin-bottom: 0.6rem; color: var(--color-brown-dark); }

.card p { margin: 0; color: var(--color-text-muted); }

/* Bullets */

.bullet-list { list-style: disc; padding-right: 1.3rem; color: var(--color-text-main); }

.bullet-list li { margin-bottom: 0.4rem; }

/* CTA */

.cta-container { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }

/* Contact Form */

.contact-form {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-soft);
    margin-top: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group { margin-bottom: 1rem; }

.form-group label { display: block; font-size: 0.9rem; margin-bottom: 0.25rem; color: var(--color-brown-dark); }

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.65rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    background-color: #f9fafb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 1px rgba(201, 161, 93, 0.4);
    background-color: var(--color-white);
}

.alert {
    background-color: #f0fdf4;
    border: 1px solid #22c55e;
    color: #166534;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Footer */

.site-footer {
    background-color: #21170f;
    color: #e5e7eb;
    padding: 2.2rem 0 1.1rem;
    margin-top: 2.5rem;
    border-top: 4px solid var(--color-gold);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.6rem;
}

.footer-container h3, .footer-container h4 { margin-top: 0; color: var(--color-gold-soft); }

.footer-container p { margin: 0.25rem 0; color: #e5e7eb; font-size: 0.9rem; }

.footer-container ul { list-style: none; padding: 0; margin: 0; }

.footer-container li { margin-bottom: 0.35rem; }

.footer-container a { color: #e5e7eb; font-size: 0.9rem; transition: color 0.2s ease; }

.footer-container a:hover { color: var(--color-gold); }

.footer-bottom {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 0.85rem;
    border-top: 1px solid rgba(55, 65, 81, 0.7);
    padding-top: 0.8rem;
    color: #9ca3af;
}

/* Footer brand logo */
.footer-brand { display: flex; flex-direction: column; gap: 0.6rem; }

/* شعار الفوتر */
.footer-logo{
    width: 200px !important;
    height: 200px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
}


/* About brand panel */
.brand-panel {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 1.3rem 1.2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 1.5rem;
}

/* شعار صفحة من نحن */
.brand-panel-logo{
    width: 120px !important;
    height: 120px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
}


.brand-panel-text h1 { margin: 0 0 0.35rem 0; }

.text-muted { color: var(--color-text-muted); margin: 0; }

/* Responsive */

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 56px;
        right: 0;
        background-color: var(--color-brown-dark);
        width: 100%;
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    }

    .main-nav.open { display: block; }

    .main-nav ul { flex-direction: column; padding: 0.8rem 1rem 1.2rem; }

    .main-nav li { margin-bottom: 0.3rem; }

    .menu-toggle { display: block; }

    .cta-container { flex-direction: column; align-items: flex-start; }

    .hero { padding: 3.5rem 0 3rem; }

    .hero h1 { font-size: 2rem; }

    .brand-panel { flex-direction: column; align-items: flex-start; }
}
