/*
Theme Name: Dr Hababi Enhanced
Theme URI: https://drhababi.com
Author: Dr Hababi Team
Description: A fully functional WordPress theme for Dr. Mohammed Al-Hababi Al-Qahtani - Plastic Surgery Consultant. Features custom post types for services, testimonials, and articles, with full WordPress integration and editable content.
Version: 2.0
Text Domain: drhababi
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: medical, healthcare, rtl-language-support, custom-post-types, one-page
*/

:root {
    --primary: #f5c66a;
    --primary-dark: #e0ae4f;
    --bg-main: #050818;
    --bg-section: #0b0f24;
    --text-main: #ffffff;
    --text-muted: #a2aac6;
    --border-soft: rgba(255,255,255,0.08);
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-soft: 0 20px 40px rgba(0,0,0,0.5);
}

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

body {
    font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    direction: rtl;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 100% - 40px);
    margin-inline: auto;
}

/* Header / Navigation */
header {
    position: sticky;
    top: 0;
    background: rgba(5,8,24,0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 15px;
}

.nav-links a {
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--bg-section);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    border: 1px solid var(--border-soft);
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-primary, .btn-outline {
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245,198,106,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-soft);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-meta {
    display: flex;
    gap: 32px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero-meta strong {
    color: var(--primary);
    font-size: 24px;
    display: block;
}

.hero-photo-card {
    position: relative;
}

.hero-photo-inner {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.hero-photo-inner img {
    width: 100%;
    height: auto;
}

.hero-photo-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    left: 20px;
    background: rgba(5,8,24,0.9);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 12px;
    font-size: 13px;
    border: 1px solid var(--border-soft);
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-photo img {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
}

.about-card {
    background: var(--bg-section);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
}

.about-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--primary);
}

.about-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-card ul {
    list-style: none;
}

.about-card li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-section);
}

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

.section-title h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-main);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-soft);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Videos/Articles Section */
.videos {
    padding: 80px 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.video-card {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumb {
    width: 100%;
    height: 200px;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-content {
    padding: 24px;
}

.video-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.video-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--bg-section);
}

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

.testimonial-card {
    background: var(--bg-main);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.testimonial-author {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-inner {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-section);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
}

.contact-inner h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-inner > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    background: var(--bg-main);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

.form-message {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.form-message.success {
    background: rgba(0, 208, 132, 0.1);
    border: 1px solid rgba(0, 208, 132, 0.3);
    color: #00d084;
}

.form-message.error {
    background: rgba(207, 46, 46, 0.1);
    border: 1px solid rgba(207, 46, 46, 0.3);
    color: #cf2e2e;
}

/* Footer */
footer {
    background: var(--bg-section);
    padding: 40px 0;
    border-top: 1px solid var(--border-soft);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-nav a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary);
}

.footer-copy {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-inner,
    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .nav-links {
        display: none;
    }
    
    .services-grid,
    .videos-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}