/*
Theme Name: Medico Elementor
Theme URI: https://example.com/medico-elementor
Author: Your Company
Author URI: https://example.com
Description: قالب سبک و سازگار با المنتور برای شرکت‌های تجهیزات پزشکی. هدر، فوتر و تایپوگرافی پایه توسط قالب مدیریت می‌شود و کل محتوای صفحات (هیرو، محصولات، درباره ما و...) کاملاً با المنتور قابل ویرایش و طراحی است — بدون هیچ تداخل یا خطای دسترسی به محتوا.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: medico-elementor
Tags: medical, corporate, business, custom-menu, custom-logo, translation-ready, rtl-language-support

Compatible with Elementor: templates only output the_content(), so Elementor
fully controls the page body. Header/footer are provided by the theme.
*/

/* =========================================
   VARIABLES & RESET
========================================= */
:root {
    --color-primary: #0e3a53;
    --color-primary-light: #145b82;
    --color-accent: #0fa3a3;
    --color-accent-light: #e6f7f7;
    --color-text: #2b2f36;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-border: #e5e9ec;
    --font-main: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    --container-width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.8;
    font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: all .25s ease; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-primary); }

/* =========================================
   HEADER
========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(6px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding img { max-height: 46px; }
.site-title { font-size: 22px; font-weight: 800; color: var(--color-primary); margin: 0; }
.site-title span { color: var(--color-accent); }

.main-navigation ul { display: flex; gap: 34px; align-items: center; }
.main-navigation a { font-weight: 600; color: var(--color-primary); font-size: 15px; }
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--color-accent); }
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
}
.main-navigation li:hover > .sub-menu { display: block; }
.main-navigation .sub-menu li { padding: 0 18px; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--color-primary); cursor: pointer; }

/* =========================================
   FOOTER
========================================= */
.site-footer { background: #08283a; color: #a9bdc7; padding: 70px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul li a:hover { color: var(--color-accent); }
.footer-logo { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.social-icons { display: flex; gap: 12px; margin-top: 20px; }
.social-icons a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.social-icons a:hover { background: var(--color-accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================================
   GENERIC ENTRY CONTENT (used only on templates
   NOT built with Elementor, e.g. plain blog posts)
========================================= */
.entry-content { max-width: 820px; margin: 0 auto; padding: 60px 24px; }
.entry-content img { border-radius: 10px; margin: 20px 0; }
.page-hero { background: var(--color-bg-alt, #f5f8fa); padding: 50px 0; text-align: center; }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 767px) {
    .main-navigation { display: none; }
    .menu-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
}
