:root {
    --accent: #2f6fd6;
    --text: #0f172a;
    --muted: #6b7280;
    --radius: 16px;
    --glass-shadow: 0 8px 30px rgba(31, 49, 96, 0.14);
    --max-width: 1150px;
}


/* پایه */

* {
    box-sizing: border-box
}

@font-face {
    font-family: 'Yekan';
    src: url('../fonts/Yekan.ttf');
    /* IE9 Compat Modes */
    font-weight: normal;
    font-style: normal;
    text-rendering: optimizeLegibility;
    font-display: auto;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-image: url(../image/photo-1482977036925-e8fcaa643657.png);
    color: var(--text);
    font-family: 'Yekan';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* container */

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 22px;
}


/* language icons */

.language-switcher-icons {
    position: absolute;
    top: 5px;
    right: 15px;
    z-index: 999;
    display: flex;
    gap: 10px;
}

.language-switcher-icons a img {
    width: 26px;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.language-switcher-icons a:hover img {
    transform: scale(1.2);
    cursor: pointer;
}

.dropdown {
    position: relative;
    display: inline-block;
    margin-top: 3px;
}

.drop-btn {
    background-color: transparent;
    color: inherit;
    padding: 0.5rem 1rem;
    font-size: inherit;
    font-family: inherit;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.drop-btn:hover {
    color: #4a90e2;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
    right: 0;
    text-align: center;
    font-size: 14px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* ===== services: force description to appear visually on the LEFT (even in RTL pages) ===== */

.dropdown-content.services-menu {
    min-width: 420px;
    max-width: 760px;
    padding: 12px;
    /* make inner layout LTR so grid column 1 becomes left visually */
}

.navbar-container {
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 1rem;
    flex-wrap: wrap;
    color: #fff;
}

.navbar a {
    padding: 0.5rem 0rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar a:hover {
    color: #4a90e2;
}

.hamburger-btn {
    display: none;
    /* hidden on desktop */
    width: 48px;
    height: 42px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: all .22s ease;
}


/* Open/close styles */

.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: #fff;
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: #fff;
}

.hamburger-btn.open {
    background: var(--brand-blue);
    color: #fff;
    box-shadow: 0 10px 28px rgba(11, 61, 98, 0.12);
}

@media (max-width: 880px),
(max-width: 1265px) {
    .navbar {
        display: none !important;
    }
    /* ensure desktop nav hidden */
    .hamburger-btn {
        display: flex;
        gap: 4px;
        align-items: center;
        justify-content: center;
    }
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    display: none;
    z-index: 9999;
    align-items: flex-start;
    justify-content: flex-end;
}

.mobile-overlay[aria-hidden="false"] {
    display: flex;
}

.mobile-panel {
    width: 92%;
    max-width: 350px;
    height: 100vh;
    background: #fff;
    padding: 18px;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
    overflow: auto;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    transform: translateX(16px);
    transition: transform .28s cubic-bezier(.22, .9, .3, 1);
}

.mobile-overlay[aria-hidden="false"] .mobile-panel {
    transform: translateX(0);
}

.mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.panel-logo {
    max-height: 44px;
}

.mobile-close {
    background: transparent;
    border: 0;
    font-size: 24px;
    cursor: pointer;
    color: #303030;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-list li a,
.mobile-nav-list li button {
    display: block;
    text-align: right;
    padding: 12px;
    border-radius: 8px;
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 800;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li button:hover {
    background: rgba(10, 61, 98, 0.04);
    color: var(--brand-blue);
}


/* mobile dropdown styling (collapsible) */

.mobile-nav-list .dropdown {
    display: block;
}

.mobile-nav-list .dropdown>button {
    width: 100%;
    background: transparent;
    border: 0;
    text-align: right;
    font-weight: 800;
}

.mobile-nav-list .dropdown .dropdown-content {
    display: none;
    padding-left: 10px;
    margin-top: 6px;
}

.mobile-nav-list .dropdown.open .dropdown-content {
    display: block;
}


/* ensure dropdown links styled mobile */

.mobile-nav-list .dropdown .dropdown-content li a {
    padding: 8px 4px;
    display: block;
    font-weight: 600;
}


/* small tweaks */

.mobile-panel {
    font-size: 15.6px;
}


/* mobile submenu */

.mobile-parent-dropdown {
    width: 100%;
}

.mobile-subtoggle {
    font-family: 'Yekan';
    width: 100%;
    text-align: right;
    padding: 12px;
    background: transparent;
    border: 0;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.mobile-subtoggle .caret {
    display: inline-block;
    transition: transform .25s ease;
}

.mobile-submenu {
    display: none;
    list-style: none;
    padding-right: 12px;
    margin: 6px 0 12px 0;
    border-right: 2px solid rgba(0, 0, 0, 0.03);
}

.mobile-submenu li a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #1a2a3a;
    font-weight: 600;
    border-radius: 8px;
}

.mobile-parent-dropdown.open>.mobile-submenu {
    display: block;
}


/* rotate caret on open */

.mobile-parent-dropdown.open>.mobile-subtoggle .caret {
    transform: rotate(180deg);
}


/* small visual for nested links hover */

.mobile-submenu li a:hover {
    background: rgba(68, 114, 196, 0.06);
    color: var(--tohfeh-brand-blue);
}

@media (max-width: 880px) {
    .hamburger-btn {
        display: flex;
    }
}

main {
    padding: 28px 0
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 22px;
    align-items: start
}

@media (max-width:980px) {
    .services-grid {
        grid-template-columns: 1fr
    }
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px
}

.svc-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.6));
    padding: 16px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--glass-shadow);
    cursor: pointer;
    transition: transform .14s, box-shadow .14s;
    position: relative;
}

.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(23, 40, 80, 0.16)
}

.svc-title {
    font-family: 'Yekan';
    font-size: 18px;
}

.svc-teaser {
    text-align: justify;
    font-family: 'Yekan';
}

.svc-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0
}

.svc-ico-1 {
    background: linear-gradient(135deg, #ffb703, #ff6b6b)
}

.svc-ico-2 {
    background: linear-gradient(135deg, #6dd3ff, #2f6fd6)
}

.svc-ico-3 {
    background: linear-gradient(135deg, #9be15d, #3ac47d)
}

.svc-ico-4 {
    background: linear-gradient(135deg, #b39cff, #6d7bff)
}

.svc-body h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800
}

.svc-body p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45
}

.svc-card.active {
    outline: 3px solid rgba(47, 111, 214, 0.08)
}

.desc-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(23, 40, 80, 0.08);
    min-height: 220px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
}

.desc-header {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.desc-header h2 {
    margin: 0;
    color: var(--accent)
}

.desc-sub {
    color: var(--muted);
    margin: 0;
    font-size: 0.95rem
}

.desc-block {
    text-align: justify;
}

.desc-content {
    margin-top: 12px;
    color: var(--text);
    line-height: 1.8
}

.desc-content p {
    margin: 0 0 12px 0
}

.cta {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.cta .btn {
    background: linear-gradient(135deg, var(--accent), #1a2a3a);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    cursor: pointer
}

.cta .contact-info {
    color: var(--muted);
    font-size: 0.95rem
}


/* responsive tweaks */

@media (max-width:700px) {
    .svc-icon {
        width: 48px;
        height: 48px
    }
    .desc-panel {
        order: 2;
        margin-top: 10px
    }
}

footer {
    background-color: #2c3e50;
    color: #fff;
    padding-top: 3%;
}

.copyright {
    background-color: #1a2a3a;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.copyright p {
    margin: 0;
}

.footer-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.right-footer {
    margin-top: 3%;
    flex: 2;
    min-width: 300px;
}

.left-footer {
    margin-right: 5%;
    margin-top: 3%;
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: space-between;
}

.right,
.left {
    flex: 1;
    text-align: center;
    padding-top: 20px;
}

.right a,
.left a {
    display: block;
    margin-bottom: 2rem;
    color: #bdc3c7;
    transition: color 0.3s;
    font-size: 14px;
}

.right a:hover,
.left a:hover {
    color: #4a90e2;
}

.outro {
    display: flex;
    /* justify-content: space-around; */
    margin-bottom: 1.5rem;
}

.outro img {
    max-width: 125px;
    margin-bottom: 1rem;
}

@media (max-width: 1050px) {
    .outro img {
           display: none;
       }
   }

.outro p {
    text-align: justify;
    padding: 20px;
    color: #ecf0f1;
    font-size: 16px;
}

.map p {
    margin-bottom: 1.5rem;
    color: #bdc3c7;
}

.info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
}

.info-tel {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.info a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.info a:hover {
    color: #4a90e2;
}

.info i {
    color: #4a90e2;
}

.footer-social-icons img {
    margin: 5px;
    transition: color 0.3s;
    color: #bdc3c7;
}

.namad {
    padding: 30px 0;
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.namad img {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 15px;
}

.btn {
    font-family: 'Yekan';
}

.btn:hover {
    color: aquamarine;
}