/* Pars Sanat Mahan — Brand Design System */

@font-face {
    font-family: 'IranYekan';
    src: url('../fonts/iranyekanwebregular.woff2') format('woff2'),
         url('../fonts/iranyekanwebregular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IranYekan';
    src: url('../fonts/iranyekanweblight.woff2') format('woff2'),
         url('../fonts/iranyekanweblight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --psm-blue:        #50668f;
    --psm-blue-dark:   #3d4f6f;
    --psm-blue-light:  #6b82a8;
    --psm-blue-muted:  #8fa3be;
    --psm-gold:        #d4af37;
    --psm-gold-hover:  #c9a030;
    --psm-bg-light:    #f2f4f7;
    --psm-bg-white:    #ffffff;
    --psm-text:        #2c3e50;
    --psm-text-muted:  #6c7a89;
    --psm-border:      #e2e8f0;
    --psm-shadow:      0 4px 24px rgba(61, 79, 111, 0.10);
    --psm-shadow-lg:   0 8px 40px rgba(61, 79, 111, 0.15);
    --psm-radius:      12px;
    --psm-radius-lg:   20px;
    --psm-nav-height:  72px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'IranYekan', Tahoma, sans-serif;
    color: var(--psm-text);
    background-color: var(--psm-bg-white);
    line-height: 1.7;
}

/* ── Navbar ── */
.site-navbar {
    background: var(--psm-bg-white);
    box-shadow: 0 2px 16px rgba(61, 79, 111, 0.08);
    padding: 0.5rem 0;
    transition: box-shadow 0.3s ease;
}

.site-navbar.scrolled {
    box-shadow: var(--psm-shadow);
}

.site-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--psm-blue-dark);
    text-decoration: none;
}

.site-navbar .navbar-brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
}

.site-navbar .nav-link {
    color: var(--psm-text);
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--psm-blue);
    background: rgba(80, 102, 143, 0.08);
}

.site-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--psm-shadow);
    border-radius: var(--psm-radius);
    padding: 0.5rem;
    min-width: 220px;
}

.site-navbar .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--psm-text);
    transition: background 0.2s, color 0.2s;
}

.site-navbar .dropdown-item:hover {
    background: rgba(80, 102, 143, 0.1);
    color: var(--psm-blue-dark);
}

.navbar-toggler {
    border: none;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(80, 102, 143, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233d4f6f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-cta-nav {
    background: var(--psm-gold);
    color: #fff !important;
    border-radius: 8px !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
}

.btn-cta-nav:hover {
    background: var(--psm-gold-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

/* ── Hero Carousel ── */
.hero-carousel {
    position: relative;
    overflow: hidden;
}

.hero-carousel .carousel {
    position: relative;
}

.hero-carousel .carousel-item {
    height: clamp(280px, 55vw, 560px);
}

.hero-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(61, 79, 111, 0.55);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s, background 0.2s;
    z-index: 3;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-control-prev { right: 1.5rem; left: auto; }
.hero-carousel .carousel-control-next { left: 1.5rem; right: auto; }

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: var(--psm-blue-dark);
}

.hero-carousel .carousel-indicators {
    z-index: 3;
    margin-bottom: 1rem;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 4px;
}

.hero-carousel .carousel-indicators .active {
    background: var(--psm-gold);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(61, 79, 111, 0.75) 0%, rgba(80, 102, 143, 0.45) 100%);
    display: flex;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay-content {
    padding: 2rem;
    max-width: 640px;
}

.hero-overlay-content h1 {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.hero-overlay-content p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    margin-bottom: 1.5rem;
}

.btn-gold {
    background: var(--psm-gold);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.75rem;
    font-size: 0.95rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
    pointer-events: all;
}

.btn-gold:hover {
    background: var(--psm-gold-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.btn-outline-blue {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    pointer-events: all;
}

.btn-outline-blue:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header .section-tag {
    display: inline-block;
    background: rgba(80, 102, 143, 0.1);
    color: var(--psm-blue);
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    color: var(--psm-blue-dark);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--psm-text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.section-header-light h2 { color: #fff; }
.section-header-light p  { color: rgba(255,255,255,0.75); }
.section-header-light .section-tag {
    background: rgba(255,255,255,0.15);
    color: var(--psm-gold);
}

/* ── Features / Intro (flyer-style blue block) ── */
.features-section {
    background: var(--psm-blue);
    padding: 4rem 0;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.feature-item .feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--psm-gold);
    font-size: 1.25rem;
}

.feature-item h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    margin: 0;
}

.features-image-wrap {
    border-radius: var(--psm-radius-lg);
    overflow: hidden;
    box-shadow: var(--psm-shadow-lg);
}

.features-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── News Cards ── */
.news-section {
    background: var(--psm-bg-light);
    padding: 4rem 0;
}

.news-card {
    background: var(--psm-bg-white);
    border-radius: var(--psm-radius);
    padding: 1.5rem;
    box-shadow: var(--psm-shadow);
    border: 1px solid var(--psm-border);
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--psm-shadow-lg);
}

.news-card .news-icon {
    width: 40px;
    height: 40px;
    background: rgba(80, 102, 143, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--psm-blue);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.news-card h5 {
    font-size: 1rem;
    color: var(--psm-blue-dark);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.news-card p {
    color: var(--psm-text-muted);
    font-size: 0.9rem;
    margin: 0;
    text-align: justify;
}

/* ── Products ── */
.products-section {
    padding: 4rem 0;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: var(--psm-bg-light);
    color: var(--psm-text);
    border: 1px solid var(--psm-border);
    border-radius: 20px;
    padding: 0.45rem 1.25rem;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--psm-blue);
    color: #fff;
    border-color: var(--psm-blue);
}

.product-card {
    background: var(--psm-bg-white);
    border-radius: var(--psm-radius);
    overflow: hidden;
    box-shadow: var(--psm-shadow);
    border: 1px solid var(--psm-border);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--psm-shadow-lg);
}

.product-card .product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--psm-bg-light);
}

.product-card .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.05);
}

.product-card .product-body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-category {
    font-size: 0.78rem;
    color: var(--psm-blue-muted);
    margin-bottom: 0.35rem;
}

.product-card h5 {
    font-size: 0.95rem;
    color: var(--psm-blue-dark);
    font-weight: 400;
    margin-bottom: 0.5rem;
    flex: 1;
}

.product-card .product-link {
    color: var(--psm-gold);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s;
}

.product-card .product-link:hover {
    color: var(--psm-gold-hover);
}

/* ── Footer ── */
.site-footer {
    background: var(--psm-blue-dark);
    color: rgba(255, 255, 255, 0.85);
    padding-top: 3rem;
}

.site-footer h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--psm-gold);
    display: inline-block;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.site-footer a:hover {
    color: var(--psm-gold);
}

.site-footer .footer-links li {
    margin-bottom: 0.5rem;
}

.site-footer .footer-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.site-footer .footer-brand p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    text-align: justify;
}

.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

.site-footer .social-links a:hover {
    background: var(--psm-gold);
    color: #fff;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    margin-top: 2.5rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Utilities ── */
.text-gold { color: var(--psm-gold) !important; }
.bg-psm-blue { background-color: var(--psm-blue) !important; }

.product-item.product-item-hidden {
    display: none !important;
}

/* ── Inner Pages ── */
.page-hero {
    background: linear-gradient(135deg, var(--psm-blue-dark) 0%, var(--psm-blue) 100%);
    padding: 3.5rem 0;
    text-align: center;
}

.page-hero-content h1 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.page-hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
    max-width: 560px;
    margin-inline: auto;
}

.page-content {
    padding: 4rem 0;
}

.about-image-wrap {
    border-radius: var(--psm-radius-lg);
    overflow: hidden;
    box-shadow: var(--psm-shadow-lg);
}

.about-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text p {
    color: var(--psm-text-muted);
    text-align: justify;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.stat-card {
    background: var(--psm-bg-light);
    border-radius: var(--psm-radius);
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--psm-border);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    color: var(--psm-blue);
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--psm-text-muted);
}

.value-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--psm-radius);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.value-card h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.value-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    margin: 0;
}

.contact-info-card,
.contact-form-card {
    background: var(--psm-bg-white);
    border-radius: var(--psm-radius);
    padding: 2rem;
    box-shadow: var(--psm-shadow);
    border: 1px solid var(--psm-border);
    height: 100%;
}

.contact-info-card h3,
.contact-form-card h3 {
    color: var(--psm-blue-dark);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--psm-gold);
    display: inline-block;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(80, 102, 143, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--psm-blue);
    font-size: 1.1rem;
}

.contact-info-item strong {
    display: block;
    color: var(--psm-blue-dark);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.contact-info-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--psm-text-muted);
}

.contact-info-item a {
    color: var(--psm-blue);
    text-decoration: none;
}

.contact-info-item a:hover {
    color: var(--psm-gold);
}

.contact-form-card .form-label {
    font-size: 0.9rem;
    color: var(--psm-text);
}

.contact-form-card .form-control {
    border-radius: 8px;
    border-color: var(--psm-border);
    padding: 0.65rem 1rem;
    font-family: inherit;
}

.contact-form-card .form-control:focus {
    border-color: var(--psm-blue);
    box-shadow: 0 0 0 3px rgba(80, 102, 143, 0.15);
}

.guide-card {
    background: var(--psm-bg-white);
    border-radius: var(--psm-radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--psm-shadow);
    border: 1px solid var(--psm-border);
    text-align: center;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--psm-shadow-lg);
}

.guide-icon {
    width: 56px;
    height: 56px;
    background: rgba(80, 102, 143, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--psm-blue);
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}

.guide-card h5 {
    color: var(--psm-blue-dark);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 400;
}

.btn-gold.btn-sm {
    padding: 0.45rem 1.25rem;
    font-size: 0.85rem;
}

a.filter-btn {
    text-decoration: none;
    display: inline-block;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--psm-text-muted);
    margin-bottom: 0.75rem;
    text-align: justify;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--psm-text-muted);
}

.empty-state i {
    font-size: 3.5rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 1rem;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

.alert-success-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(80, 102, 143, 0.08);
    border: 1px solid rgba(80, 102, 143, 0.25);
    border-right: 4px solid var(--psm-gold);
    border-radius: var(--psm-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    color: var(--psm-blue-dark);
    font-size: 0.95rem;
}

.alert-success-banner i {
    font-size: 1.5rem;
    color: var(--psm-gold);
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        background: var(--psm-bg-white);
        border-radius: var(--psm-radius);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--psm-shadow);
    }

    .site-navbar .nav-link {
        padding: 0.6rem 0.75rem !important;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        opacity: 1;
        width: 36px;
        height: 36px;
    }

    .features-section,
    .news-section,
    .products-section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 575.98px) {
    .filter-bar {
        gap: 0.35rem;
    }

    .filter-btn {
        font-size: 0.82rem;
        padding: 0.35rem 0.9rem;
    }
}
