/*
Theme Name: Panah Tejarat
Theme URI: https://example.com/panah-tejarat
Author: Panah Tejarat
Author URI: https://example.com/
Description: قالب تک‌صفحه‌ای فارسی و راست‌چین برای شرکت پناه تجارت، واردکننده و توزیع‌کننده لوازم یدکی پمپ و انژکتور.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: panah-tejarat
Tags: rtl-language-support, custom-logo, custom-menu, one-column, responsive-layout
*/

:root {
    --pt-primary: #102A43;
    --pt-primary-dark: #0a1c2d;
    --pt-light: #EEF1F4;
    --pt-white: #FFFFFF;
    --pt-text: #1F2933;
    --pt-muted: #52606D;
    --pt-accent: #D9A441;
    --pt-border: #d9e0e7;
    --pt-radius: 18px;
    --pt-shadow: 0 14px 40px rgba(16, 42, 67, .10);
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--pt-text);
    background: var(--pt-white);
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(217,164,65,.55); outline-offset: 3px; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; scroll-margin-top: 92px; }
.section--light { background: var(--pt-light); }
.section-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-heading h2 { margin: 0 0 12px; color: var(--pt-primary); font-size: clamp(28px, 4vw, 40px); line-height: 1.35; }
.section-heading p { margin: 0; color: var(--pt-muted); font-size: 17px; }

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(16,42,67,.08);
    box-shadow: 0 4px 18px rgba(16,42,67,.05);
    backdrop-filter: blur(12px);
    transition: box-shadow .2s ease, background .2s ease;
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 52px; width: auto; }
.brand-mark {
    width: 44px; height: 44px; border-radius: 12px; background: var(--pt-primary);
    color: var(--pt-white); display: grid; place-items: center; font-weight: 900; font-size: 20px;
}
.brand-name { color: var(--pt-primary); font-weight: 900; font-size: 20px; white-space: nowrap; }
.brand-tagline { display: block; color: var(--pt-muted); font-size: 11px; line-height: 1.4; }

.primary-nav ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; gap: 6px; }
.primary-nav a { display: block; padding: 8px 10px; color: var(--pt-text); font-size: 14px; font-weight: 700; border-radius: 10px; }
.primary-nav a:hover, .primary-nav a:focus { color: var(--pt-primary); background: var(--pt-light); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
    cursor: pointer; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pt-primary); color: #fff; }
.btn-primary:hover { background: var(--pt-primary-dark); }
.btn-accent { background: var(--pt-accent); color: var(--pt-primary-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.10); border-color: #fff; }
.btn-light { background: #fff; color: var(--pt-primary); border-color: var(--pt-border); }

.menu-toggle {
    display: none; border: 0; background: transparent; color: var(--pt-primary);
    width: 44px; height: 44px; border-radius: 10px; cursor: pointer; font-size: 24px;
}

.hero {
    position: relative; min-height: 720px; display: flex; align-items: center;
    padding-top: 110px; background: var(--pt-primary) center/cover no-repeat;
    color: #fff; overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,18,30,.90), rgba(16,42,67,.78), rgba(16,42,67,.52)); }
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #f5d993; font-weight: 800; font-size: 14px; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--pt-accent); }
.hero h1 { margin: 0 0 22px; max-width: 800px; font-size: clamp(38px, 6vw, 68px); line-height: 1.22; letter-spacing: -1px; }
.hero p { max-width: 780px; margin: 0 0 30px; color: rgba(255,255,255,.88); font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: rgba(255,255,255,.82); font-size: 13px; }
.hero-meta strong { color: #fff; display: block; font-size: 15px; }

.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 58px; align-items: center; }
.media-card { border-radius: var(--pt-radius); overflow: hidden; box-shadow: var(--pt-shadow); background: var(--pt-light); min-height: 390px; }
.media-card img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; display: block; }
.about-copy h2 { color: var(--pt-primary); font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }
.about-copy > p { color: var(--pt-muted); font-size: 17px; }
.feature-list { display: grid; gap: 14px; margin-top: 26px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.icon-box { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #e6edf3; color: var(--pt-primary); font-weight: 900; }
.feature-item h3 { margin: 0 0 2px; color: var(--pt-primary); font-size: 17px; }
.feature-item p { margin: 0; color: var(--pt-muted); font-size: 14px; }

.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.brand-card { background: #fff; border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 32px; display: grid; grid-template-columns: 120px 1fr; gap: 26px; align-items: center; box-shadow: var(--pt-shadow); }
.brand-logo { height: 100px; border-radius: 14px; background: var(--pt-light); display: grid; place-items: center; overflow: hidden; }
.brand-logo img { width: 90px; height: 90px; object-fit: contain; }
.brand-logo-placeholder { color: var(--pt-primary); font-weight: 900; font-size: 20px; }
.brand-card h3 { margin: 0; color: var(--pt-primary); font-size: 28px; }
.brand-country { color: var(--pt-accent); font-weight: 800; font-size: 13px; }
.brand-card p { margin: 8px 0 0; color: var(--pt-muted); }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { overflow: hidden; border: 1px solid var(--pt-border); border-radius: var(--pt-radius); background: #fff; display: flex; flex-direction: column; box-shadow: 0 8px 26px rgba(16,42,67,.06); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--pt-shadow); }
.product-image { aspect-ratio: 4/3; background: var(--pt-light); overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-content h3 { margin: 0 0 8px; color: var(--pt-primary); font-size: 19px; line-height: 1.5; }
.product-content p { margin: 0 0 18px; color: var(--pt-muted); font-size: 14px; flex: 1; }
.product-content .btn { width: 100%; min-height: 42px; font-size: 13px; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { background: #fff; border: 1px solid var(--pt-border); border-radius: 16px; padding: 26px; }
.why-card .icon-box { margin-bottom: 18px; }
.why-card h3 { margin: 0 0 7px; color: var(--pt-primary); font-size: 17px; }
.why-card p { margin: 0; color: var(--pt-muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: start; }
.contact-panel { background: var(--pt-primary); color: #fff; border-radius: var(--pt-radius); padding: 34px; }
.contact-panel h2 { margin: 0 0 12px; font-size: 32px; }
.contact-panel > p { margin: 0 0 24px; color: rgba(255,255,255,.78); }
.contact-cards { display: grid; gap: 10px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.06); }
.contact-card .icon-box { background: rgba(255,255,255,.10); color: #fff; }
.contact-card small { display: block; color: rgba(255,255,255,.64); font-size: 11px; }
.contact-card strong { display: block; font-size: 17px; direction: ltr; text-align: right; }
.socials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.socials a { padding: 8px 13px; border-radius: 9px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.socials a:hover { background: rgba(255,255,255,.16); }
.form-card { background: #fff; border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 30px; box-shadow: var(--pt-shadow); }
.form-card h3 { margin: 0 0 20px; color: var(--pt-primary); font-size: 23px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 800; color: var(--pt-text); font-size: 13px; }
.form-field input, .form-field textarea {
    width: 100%; border: 1px solid var(--pt-border); border-radius: 10px; padding: 12px 13px;
    background: #fff; color: var(--pt-text); transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--pt-primary); box-shadow: 0 0 0 3px rgba(16,42,67,.08); outline: 0; }
.form-field textarea { min-height: 145px; resize: vertical; }
.form-actions { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.form-note { margin: 0; color: var(--pt-muted); font-size: 11px; }

.location { padding-top: 0; }
.location-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: stretch; }
.address-card { border-radius: var(--pt-radius); padding: 30px; background: var(--pt-light); }
.address-card h2 { margin: 0 0 14px; color: var(--pt-primary); }
.address-card p { color: var(--pt-muted); margin: 0 0 22px; }
.address-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.address-line .icon-box { width: 40px; height: 40px; flex-basis: 40px; }
.map-frame { min-height: 390px; border: 0; width: 100%; height: 100%; border-radius: var(--pt-radius); background: var(--pt-light); }

.site-footer { background: #0b1d2e; color: #fff; padding: 52px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 40px; }
.site-footer h3 { margin: 0 0 13px; font-size: 18px; }
.site-footer p, .site-footer li, .site-footer a { color: rgba(255,255,255,.72); font-size: 13px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.10); display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 12px; }

.notice { padding: 12px 15px; border-radius: 10px; margin-bottom: 18px; font-size: 13px; }
.notice-success { background: #e8f5ec; color: #1e6b3c; border: 1px solid #b8e0c5; }
.notice-error { background: #fff0f0; color: #9b1c1c; border: 1px solid #f1b6b6; }

.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 !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; display: block; height: auto; left: 5px; top: 5px; width: auto; z-index: 100000; padding: 10px 15px; background: #fff; color: #000; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
    .primary-nav { position: absolute; top: 78px; right: 20px; left: 20px; background: #fff; border: 1px solid var(--pt-border); border-radius: 14px; box-shadow: var(--pt-shadow); padding: 12px; display: none; }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { display: grid; }
    .primary-nav a { padding: 11px 12px; }
    .menu-toggle { display: inline-grid; place-items: center; }
    .header-actions .btn { display: none; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
    .section { padding: 70px 0; }
    .container { width: min(100% - 28px, 1180px); }
    .hero { min-height: 680px; }
    .about-grid, .contact-grid, .location-grid { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: 1fr; }
    .brand-card { grid-template-columns: 95px 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .header-inner { min-height: 68px; }
    .primary-nav { top: 68px; right: 14px; left: 14px; }
    .brand-tagline { display: none; }
    .brand-name { font-size: 18px; }
    .hero { min-height: 650px; padding-top: 90px; }
    .hero h1 { font-size: 38px; }
    .hero-actions, .hero-actions .btn { width: 100%; }
    .products-grid, .why-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
    .form-field.full { grid-column: auto; }
    .brand-card { padding: 22px; grid-template-columns: 80px 1fr; gap: 16px; }
    .brand-logo { height: 80px; }
    .brand-logo img { width: 70px; height: 70px; }
    .contact-panel, .form-card, .address-card { padding: 23px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
