/* ----------------------------------------------------
   1. DESIGN TOKENS & RESET
---------------------------------------------------- */
:root {
    --bg-body: #f8f7f4;
    --bg-surface: #ffffff;
    --bg-element: #f0efeb;

    --gold-primary: #d4af37;
    --gold-hover: #e5c158;
    --gold-active: #aa841b;
    --gold-glow: rgba(212, 175, 55, 0.12);
    --border-gold: var(--gold-primary);

    --text-main: #1c1c1e;
    --text-muted: #6b7280;
    --text-dark: #0b0c10;

    --border-color: #e5e3dc;
    --radius-main: 12px;
    --radius-button: 8px;
    --transition-smooth: all 0.25s ease-in-out;
}

body {
    background:
        radial-gradient(ellipse at 15% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 45%),
        radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-body) 0%, var(--bg-surface) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base resets & typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    margin-top: 0;
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--gold-hover);
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ----------------------------------------------------
   2. REUSABLE UTILITIES & COMPONENTS
---------------------------------------------------- */
.premium-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-main);
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: var(--transition-smooth);
}

.premium-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 8px 30px var(--gold-glow);
    transform: translateY(-4px);
}

.btn-gold {
    background-color: var(--gold-primary);
    color: var(--text-dark);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-button);
    padding: 14px 28px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px var(--gold-glow);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    color: var(--text-dark);
}

.btn-gold:active {
    background-color: var(--gold-active);
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-button);
    padding: 14px 28px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.btn-secondary:hover {
    background: var(--gold-glow);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input, .form-textarea {
    background-color: var(--bg-element);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px;
    border-radius: var(--radius-button);
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-glow);
}

.text-gold {
    color: var(--gold-primary);
}

/* ----------------------------------------------------
   3. FLEXIBLE LAYOUTS
---------------------------------------------------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}



.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ----------------------------------------------------
   4. HOME PAGE UNIQUE LAYOUT STYLES
---------------------------------------------------- */
/* Navigation */
header.main-nav {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 100px 0;
    background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.08) 0%, rgba(248, 247, 244, 0) 70%);
    text-align: center;
}

.hero-tag {
    color: var(--gold-primary);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin: 48px;
    margin-top: 0;
    display: inline-block;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--gold-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Section Common */
.section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.section-alt {
    background:
        radial-gradient(ellipse at 70% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
        var(--bg-element);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--gold-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Services */
.service-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
    display: inline-block;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

/* Philosophy */
.philosophy-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.philosophy-quote {
    font-style: italic;
    border-left: 3px solid var(--gold-primary);
    padding-left: 20px;
    margin: 24px 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Contact Block */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item-icon {
    font-size: 1.5rem;
    color: var(--gold-primary);
    width: 24px;
    text-align: center;
    margin-top: 4px;
}

.contact-item-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

/* Footer */
footer.main-footer {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
        var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-brand-text {
    margin-top: 16px;
    max-width: 320px;
}

.footer-col-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--gold-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-muted);
}

.footer-link:hover {
    color: var(--gold-primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-link:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    background-color: var(--gold-glow);
    transform: translateY(-2px);
}

/* ----------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
---------------------------------------------------- */

/* Tablet & below adjustments */
@media (max-width: 768px) {
    /* Reduce hero padding */
    .hero {
        padding: 80px 0 60px 0;
    }

    /* Reduce section padding */
    .section {
        padding: 60px 0;
    }

    /* Scale down section titles */
    .section-title {
        font-size: 1.8rem;
    }

    /* Scale down hero subtitle */
    .hero-subtitle {
        font-size: 1rem;
    }

    /* Footer bottom: stack vertically */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .social-links {
        justify-content: center;
    }

    /* Contact form: tighter spacing */
    .contact-grid {
        gap: 24px;
    }
}

/* Small mobile: further adjust */
@media (max-width: 576px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero {
        padding: 60px 0 40px 0;
    }

    .section {
        padding: 40px 0;
    }

    .premium-card {
        padding: 20px;
    }
}

/* ----------------------------------------------------
   6. RESPONSIVE UTILITY CLASSES
---------------------------------------------------- */
.heading-responsive {
    font-size: 2.2rem;
}

@media (max-width: 768px) {
    .heading-responsive {
        font-size: 1.6rem;
    }
}

/* ----------------------------------------------------
   7. LANGUAGE-SPECIFIC TYPOGRAPHY
---------------------------------------------------- */
html[lang="en"] body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html[lang="en"] .hero-title,
html[lang="en"] .section-title,
html[lang="en"] .service-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

html[lang="ar"] body {
    font-family: 'Tajawal', sans-serif;
}

html[lang="ar"] .hero-title,
html[lang="ar"] .section-title,
html[lang="ar"] .service-title,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6 {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
}

html[lang="ar"] p,
html[lang="ar"] .hero-subtitle,
html[lang="ar"] .section-subtitle {
    font-weight: 400;
    line-height: 1.7;
}
