/*
Theme Name: Dr. Heidari Clinic
Theme URI: https://example.com
Author: Cline
Author URI: https://example.com
Description: A fully native, dynamic, RTL Persian WordPress theme for the orthopedic clinic of Dr. Heresh Heidari, based on UI 1 (Classic).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dr-heidari
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ---- UI 1 base + custom styles ---- */
* {
    font-family: 'Vazirmatn', 'Figtree', sans-serif;
    -moz-font-feature-settings: "ss01";
    -webkit-font-feature-settings: "ss01";
    font-feature-settings: "ss01";
}
html { scroll-behavior: smooth; }

.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(8, 145, 178, 0.12); }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-box { background: #fff; border-radius: 20px; max-width: 520px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 32px 24px; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.25); }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 24px; cursor: pointer; color: #94a3b8; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-close:hover { background: #f1f5f9; color: #334155; }

/* Back to top */
.btt { position: fixed; bottom: 24px; right: 24px; z-index: 50; width: 44px; height: 44px; border-radius: 50%; background: #0891B2; color: #fff; border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(8,145,178,0.35); display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0; transform: translateY(20px); transition: all 0.3s; pointer-events: none; }
.btt.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Sticky mobile CTA */
.mobile-cta { display: none; }
@media (max-width:1024px) {
    .mobile-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: #fff; border-top: 1px solid #e2e8f0; padding: 10px 16px; gap: 8px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
}

/* ---- Navigation menu items (real WP menus) ---- */
.main-nav a { color: #0E7490; transition: color 0.2s; text-decoration: none; }
.main-nav a:hover { color: #06B6D4; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: #06B6D4; }

#mobileMenu .menu-item { display: block; padding: 0.625rem 0.75rem; border-radius: 0.5rem; color: #0E7490; text-decoration: none; }
#mobileMenu .menu-item:hover { background: #CFFAFE; }

/* Footer menu */
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.75rem; }
.footer-menu a { color: #94A3B8; text-decoration: none; transition: color 0.2s; }
.footer-menu a:hover { color: #67E8F9; }

/* ---- WordPress core alignment ---- */
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -1rem; margin-right: -1rem; max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: #64748b; text-align: center; margin-top: 0.5rem; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.sticky { display: block; }
.bypostauthor { display: block; }
.gallery-caption { display: block; }

/* Simple content styling for blog/single */
.entry-content a { color: #0891B2; text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 0.75rem; }
.entry-content p { margin: 0 0 1rem; line-height: 1.9; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-weight: 800; margin: 1.5rem 0 0.75rem; color: #164E63; }
.entry-content ul, .entry-content ol { margin: 0 0 1rem; padding-right: 1.5rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }