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

:root {
    --primary-gold: #c5a059;
    --dark-bg: #000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IRANSans', Tahoma, Arial, sans-serif !important;
}

html,
body {
    direction: rtl;
    text-align: right;
    background-color: var(--dark-bg);
    color: white;
    overflow-x: hidden;
    unicode-bidi: plaintext;
}

.container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    display: block !important;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }
}

/* ===================== HEADER ===================== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent);
    transition: background 0.3s;
}

.header-inner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo,
.logo-display {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
    pointer-events: auto;
}

.logo-img {
    height: 50px;
    width: auto;
    opacity: 1;
    filter: sepia(1) saturate(3) brightness(1.2);
    display: block;
}

.site-title {
    font-size: 1.45rem;
    color: var(--primary-gold);
    margin: 0;
    white-space: nowrap;
    text-decoration: none !important;
    border-bottom: none !important;
    line-height: 1;
}

.main-navigation ul,
.main-navigation .nav-list,
.main-navigation .menu {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.main-navigation a,
.main-navigation li a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none !important;
    display: inline-block;
}

.main-navigation a:hover,
.main-navigation li a:hover {
    color: var(--primary-gold);
    transform: translateY(-2px);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #000;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100000;
    }

    .main-navigation.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 30px;
    }

    .main-navigation a {
        font-size: 1.8rem;
        color: var(--primary-gold) !important;
        text-decoration: none !important;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* ===================== CINEMATIC SCROLL (FRONT PAGE) ===================== */
.cinematic-scroll {
    height: 100vh !important;
    position: relative;
    background: #000;
    overflow: visible;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.frame-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hearing-aid-frame {
    width: 100%;
    height: 100%;
    background-image: url('../img/upscale.png');
    background-repeat: no-repeat;
    background-size: 100% 700%;
    background-position: center 0%;
    filter: brightness(0.6);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollMove 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes scrollMove {
    0% {
        opacity: 1;
        top: 10px;
    }

    100% {
        opacity: 0;
        top: 25px;
    }
}

/* Cinematic Navigation Overlay */
.cinematic-nav-overlay {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    z-index: 100;
    pointer-events: none;
    width: 90%;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-button-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0) translateY(100px);
}

.cinematic-nav-btn {
    position: relative;
    z-index: 10;
    width: 140px;
    height: 140px;
    background: transparent;
    border: none;
    color: var(--primary-gold);
    font-size: 1.3rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8), 0 0 10px var(--primary-gold);
    pointer-events: auto;
    transition: transform 0.3s;
}

.cinematic-nav-btn:hover {
    transform: scale(1.1);
    color: white;
}

.sun-rays {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-gold) 0%, transparent 70%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.sun-rays.visible {
    opacity: 0.6;
    animation: pulseRays 4s infinite;
}

.sun-rays::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: repeating-conic-gradient(from 0deg, var(--primary-gold) 0deg 5deg, transparent 5deg 20deg);
    opacity: 0.3;
    animation: rotateRays 20s linear infinite;
}

@keyframes pulseRays {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

@keyframes rotateRays {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.nav-button-wrapper .sun-rays {
    width: 160px;
    height: 160px;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .hearing-aid-frame {
        background-size: auto 700%;
    }

    .cinematic-nav-overlay {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 1vw !important;
        bottom: 15% !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .nav-button-wrapper {
        width: 23vw !important;
        height: 23vw !important;
        max-width: 100px !important;
        max-height: 100px !important;
    }

    .cinematic-nav-btn {
        width: 18vw !important;
        height: 18vw !important;
        max-width: 80px !important;
        max-height: 80px !important;
        font-size: 2.8vw !important;
    }

    .nav-button-wrapper .sun-rays {
        width: 20vw !important;
        height: 20vw !important;
    }
}

/* ===================== SECTION COMMON ===================== */
.section-title {
    text-align: center !important;
    margin: 0 auto 30px !important;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--primary-gold);
    width: 100% !important;
    display: block !important;
    clear: both;
}

.content-box {
    padding: clamp(20px, 5vw, 50px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================== GLOBAL FADED BACKGROUND ===================== */
body:not(.home):not(.front-page)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hearing-aid-faded-bg.png');
    background-size: 800px;
    background-repeat: repeat;
    opacity: 0.05;
    z-index: -2;
    pointer-events: none;
}

/* ===================== SERVICES ZIGZAG ===================== */
.services-zigzag {
    padding: 140px 0 150px;
}

.zigzag-section {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 120px;
    margin-bottom: 220px;
}

.zigzag-section.reversed {
    flex-direction: row-reverse !important;
}

.zigzag-content {
    flex: 1.2;
}

.zigzag-content h2 {
    color: var(--primary-gold);
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    font-size: 1.4rem;
    line-height: 2;
    margin-bottom: 25px;
    color: #eee;
}

.zigzag-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.glass-frame {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 60px;
    box-shadow: 0 60px 150px rgba(0, 0, 0, 0.85);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.glass-frame img {
    width: 100%;
    height: auto;
    border-radius: 40px;
    display: block;
}

.zigzag-section:hover .glass-frame {
    transform: scale(1.04) translateY(-12px);
    border-color: var(--primary-gold);
    box-shadow: 0 80px 180px rgba(197, 160, 89, 0.2);
}

@media (max-width: 1024px) {

    .zigzag-section,
    .zigzag-section.reversed {
        flex-direction: column !important;
        gap: 60px;
        margin-bottom: 130px;
        text-align: center;
    }

    .zigzag-image {
        order: -1;
    }

    .zigzag-content h2 {
        font-size: 2.2rem;
    }
}

/* ===================== BLOG ===================== */
.blog-header {
    padding: 120px 0 60px;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    display: block;
    text-decoration: none !important;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
}

.blog-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.blog-info {
    padding: 25px;
}

.blog-title {
    font-size: 1.25rem;
    color: white;
    margin: 0;
    line-height: 1.5;
    text-align: right;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 100px;
    direction: ltr;
}

.pagination .page-numbers {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border-radius: 12px;
    text-decoration: none;
}

.pagination .page-numbers.current {
    background: var(--primary-gold);
    color: black;
    font-weight: bold;
}

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

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================== FOOTER ===================== */
.footer-info {
    background: #050505;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contacts-row {
    gap: 40px;
    flex-wrap: wrap;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-item a {
    color: #ccc;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: var(--primary-gold);
}

.address-row p {
    font-size: 1rem;
    color: #eee;
    margin: 0;
}

/* ===================== CONTACT PAGE - INFO BLOCKS W/ ICONS ===================== */
.info-blocks {
    display: grid !important;
    grid-template-columns: 75px 1fr !important;
    grid-column-gap: 20px !important;
    grid-row-gap: 30px !important;
    direction: rtl !important;
    text-align: right !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.info-item {
    display: contents !important;
}

.icon-premium {
    grid-column: 1 !important;
    width: 65px !important;
    height: 65px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6) !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.info-item p,
.info-item a,
.info-item span {
    grid-column: 2 !important;
    font-size: 1.15rem !important;
    margin: 0 !important;
    align-self: center !important;
    text-align: right !important;
}

.icon-loc {
    background-image: url('../img/location.png') !important;
}

.icon-phone {
    background-image: url('../img/phone.png') !important;
}

.icon-mobile {
    background-image: url('../img/mobile.png') !important;
}

.icon-mail {
    background-image: url('../img/email.png') !important;
}

.icon-clock {
    background-image: url('../img/clock.png') !important;
}

.icon-insta-p {
    background-image: url('../img/instagram.png') !important;
}

.map-container {
    margin-top: 50px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
    height: 480px !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .info-blocks {
        grid-template-columns: 55px 1fr !important;
        grid-column-gap: 15px !important;
        grid-row-gap: 20px !important;
    }

    .icon-premium {
        width: 50px !important;
        height: 50px !important;
    }

    .info-item p,
    .info-item a {
        font-size: 0.95rem !important;
    }

    .site-title {
        font-size: 1.1rem !important;
    }
}

/* ===================== FLOATING BUTTONS ===================== */
.whatsapp-btn,
.call-btn {
    position: fixed !important;
    bottom: 30px !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    z-index: 1000 !important;
    transition: transform 0.3s !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7) !important;
}

.whatsapp-btn {
    right: 30px !important;
    background: url('../img/whatsapp-gold.png') center/cover no-repeat !important;
}

.call-btn {
    left: 30px !important;
    background: url('../img/mobile.png') center/cover no-repeat !important;
}

.whatsapp-btn:hover,
.call-btn:hover {
    transform: scale(1.1) !important;
}

/* ===================== COPYRIGHT ===================== */
.copyright {
    text-align: center !important;
    padding: 25px !important;
    background: #000 !important;
    color: #555 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}