/* Sheikh Dr. Mohammad Hawarey - Distinctive Gold/Navy Theme */
/* Google Fonts: Playfair Display, Source Sans 3, Amiri */

:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --accent: #c8a45e;
    --accent-light: #e8c47e;
    --bg: #fafaf7;
    --bg-alt: #f0efe8;
    --text: #2d2d2d;
    --text-light: #6b6b6b;
    --white: #ffffff;
    --border: #e0ddd4;
    --shadow: rgba(26, 58, 92, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(26, 58, 92, 0.97);
    backdrop-filter: blur(12px);
    padding: 0 2rem;
    border-bottom: 1px solid rgba(200, 164, 94, 0.25);
}
nav .nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    height: 60px;
}
nav .logo {
    font-family: 'Playfair Display', serif;
    color: var(--white); font-size: 1.15rem; font-weight: 600;
    text-decoration: none; letter-spacing: 0.5px;
}
nav .logo span { color: var(--accent); }
nav ul {
    list-style: none; display: flex; gap: 1.8rem;
}
nav ul li a {
    color: rgba(255,255,255,0.8); text-decoration: none;
    font-size: 0.85rem; font-weight: 400; letter-spacing: 0.3px;
    transition: color 0.3s;
}
nav ul li a:hover { color: var(--accent); }

/* ── HERO ── */
.hero {
    padding: 140px 2rem 80px;
    background: linear-gradient(160deg, var(--primary) 0%, #0d2740 100%) !important;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(200,164,94,0.08) 0%, transparent 50%);
}
.hero-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; gap: 60px;
    position: relative;
}
.hero-text { flex: 1; }
.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem; font-weight: 700;
    color: var(--white); line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-text h1 span { color: var(--accent); }
.hero-text .subtitle {
    font-size: 1.1rem; color: rgba(255,255,255,0.7);
    font-weight: 300; margin-bottom: 1.5rem; max-width: 500px;
}
.hero-text .dates {
    font-size: 0.9rem; color: var(--accent-light);
    font-weight: 400; margin-bottom: 2rem;
    letter-spacing: 1px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-btns a {
    padding: 0.7rem 1.6rem; border-radius: 4px;
    text-decoration: none; font-size: 0.9rem; font-weight: 600;
    transition: all 0.3s;
}
.btn-primary {
    background: var(--accent); color: var(--primary);
}
.btn-primary:hover { background: var(--accent-light); }
.btn-outline {
    border: 1px solid rgba(255,255,255,0.3); color: var(--white);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-img {
    width: 220px; height: 220px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-img img {
    width: 100%; height: 100%; object-fit: cover; object-position: center -10px;
}

/* ── SECTIONS ── */
section { padding: 70px 2rem; }
section:nth-child(even):not(.hero) { background: var(--bg-alt); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; font-weight: 700;
    color: var(--primary); margin-bottom: 0.5rem;
}
.section-line {
    width: 50px; height: 3px;
    background: var(--accent); margin-bottom: 2rem;
}

/* ── ABOUT ── */
.about-content {
    font-size: 1.05rem; line-height: 1.9;
    color: var(--text); max-width: 850px;
}
.about-content p { margin-bottom: 1rem; }

.note-box {
    background: var(--white);
    border-left: 4px solid var(--accent);
    padding: 1.2rem 1.5rem;
    margin-top: 2rem;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 2px 12px var(--shadow);
}
.note-box p {
    font-size: 0.95rem; color: var(--text-light);
    margin-bottom: 0.5rem;
}
.note-box p:last-child { margin-bottom: 0; }

/* ── BOOKS ── */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.book-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow);
    border-color: var(--accent);
}
.book-num {
    font-family: 'Playfair Display', serif;
    font-size: 2rem; font-weight: 700;
    color: var(--accent); opacity: 0.5;
    margin-bottom: 0.5rem;
}
.book-card h3 {
    font-family: 'Amiri', serif;
    font-size: 1.15rem; font-weight: 700;
    color: var(--primary); line-height: 1.5;
    margin-bottom: 0.5rem;
    direction: rtl;
}
.book-card .book-en {
    font-size: 0.88rem; color: var(--text-light);
    margin-bottom: auto;
}
.book-card a {
    display: inline-block; margin-top: 1rem;
    color: var(--accent); text-decoration: none;
    font-size: 0.85rem; font-weight: 600;
}
.book-card a:hover { text-decoration: underline; }

/* ── MEDIA ── */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.media-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}
.media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow);
}
.media-icon {
    font-size: 2.5rem; margin-bottom: 1rem;
}
.media-card h3 {
    font-size: 1.1rem; color: var(--primary);
    margin-bottom: 0.5rem;
}
.media-card p {
    font-size: 0.9rem; color: var(--text-light);
    margin-bottom: 1rem;
}
.media-card a {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.3s;
}
.media-card a:hover { background: var(--primary-light); }

/* ── BIOGRAPHY LINKS ── */
.bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.bio-link {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    direction: rtl;
    font-family: 'Amiri', serif;
}
.bio-link span {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
    direction: ltr;
    margin-top: 0.3rem;
}
.bio-link:hover {
    border-color: var(--accent);
    background: #fdfcf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow);
}

/* ── FAMILY ── */
.family-links {
    display: flex; gap: 1rem; flex-wrap: wrap;
}
.family-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.2rem 1.8rem;
    text-decoration: none;
    transition: all 0.3s;
}
.family-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--shadow);
}
.family-card .name-ar {
    font-family: 'Amiri', serif;
    font-size: 1.1rem; color: var(--primary);
    direction: rtl;
}
.family-card .name-en {
    font-size: 0.85rem; color: var(--text-light);
}

/* ── FOOTER ── */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero-inner { flex-direction: column-reverse; text-align: center; gap: 30px; }
    .hero-text h1 { font-size: 2rem; }
    .hero-text .subtitle { margin: 0 auto 1.5rem; }
    .hero-btns { justify-content: center; }
    nav ul { gap: 1rem; }
    nav ul li a { font-size: 0.78rem; }
    .books-grid { grid-template-columns: 1fr; }
    .bio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    nav ul { display: none; }
    .bio-grid { grid-template-columns: 1fr; }
}