/*
Theme Name: EgyWalls Theme
Theme URI: https://egy-w.com
Author: EgyWalls Team
Description: قالب ووردبريس مخصص لشركة إيجى وولْز لتشطيب واجهات الحجر الطبيعي.
Version: 1.0
Text Domain: https://egy-w.com
*/

/* Reset & Variables */
:root {
    --primary-color: #b8860b;
    --primary-hover: #966d09;
    --secondary-color: #1a1a1a;
    --bg-light: #f8f9fa;
    --text-dark: #2b2b2b;
    --text-muted: #666666;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Topbar */
.top-bar {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 8px 8%;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}
.top-bar-info span { margin-left: 15px; }
.top-bar-info i { color: var(--primary-color); margin-left: 5px; }

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo { font-size: 26px; font-weight: 800; color: var(--secondary-color); text-decoration: none; }
.logo span { color: var(--primary-color); }

nav ul { display: flex; list-style: none; gap: 25px; }
nav a { text-decoration: none; color: #4a4a4a; font-weight: 600; transition: var(--transition); }
nav a:hover { color: var(--primary-color); }

.header-btn {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
}

/* Hero Section */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(15, 15, 15, 0.65), rgba(15, 15, 15, 0.65)), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}
.hero h1 { font-size: 48px; margin-bottom: 15px; font-weight: 800; }
.hero p { font-size: 20px; margin-bottom: 30px; max-width: 700px; }
.hero-btns { display: flex; gap: 15px; }

.btn {
    padding: 12px 32px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}
.btn-outline { background-color: transparent; border: 2px solid var(--white); color: var(--white); }

/* About & Services & Portfolio & Contact */
.about, .services, .portfolio, .contact { padding: 80px 8%; }
.about { display: flex; align-items: center; gap: 50px; background-color: var(--white); }
.about-img { flex: 1; }
.about-img img { width: 100%; border-radius: 8px; }
.about-content { flex: 1; }

.section-title { font-size: 34px; margin-bottom: 10px; font-weight: 800; text-align: center; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 40px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.06); }
.card img { width: 100%; height: 230px; object-fit: cover; }
.card-content { padding: 22px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.portfolio-item { position: relative; border-radius: 8px; overflow: hidden; height: 250px; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; }

.contact-container { display: flex; gap: 40px; background-color: var(--white); border-radius: 8px; overflow: hidden; }
.contact-info { flex: 1; background-color: var(--secondary-color); color: var(--white); padding: 40px; }
.contact-form { flex: 1.5; padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; }

.whatsapp-float {
    position: fixed; bottom: 30px; left: 30px; background-color: #25d366; color: var(--white);
    width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center;
    align-items: center; font-size: 30px; z-index: 999; text-decoration: none;
}

footer { background-color: #111111; color: #888888; text-align: center; padding: 30px 20px; }

@media (max-width: 992px) { .about, .contact-container { flex-direction: column; } .top-bar { display: none; } }
@media (max-width: 768px) { header { flex-direction: column; gap: 15px; } .hero h1 { font-size: 32px; } }
/* Pagination Styling */
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    background-color: var(--white);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-weight: 700;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--primary-color);
    color: var(--white);
}
/* Styling for Auto Table of Contents */
.egywalls-toc {
    background-color: #fdfdfd;
    border: 1px solid #e2e2e2;
    border-right: 4px solid var(--primary-color); /* خط ذهبي جانبي */
    border-radius: 6px;
    padding: 20px 25px;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.egywalls-toc h3 {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.egywalls-toc h3 i {
    color: var(--primary-color);
}

.egywalls-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.egywalls-toc ul li {
    margin-bottom: 8px;
    position: relative;
    padding-right: 15px;
}

.egywalls-toc ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    right: 0;
}

.egywalls-toc ul li a {
    color: #4a4a4a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.egywalls-toc ul li a:hover {
    color: var(--primary-color);
    padding-right: 3px;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}