/* ============================================================
   HADAF TRADE — ABOUT PAGE STYLES
   Aligned with products.html topbar & header structure
   ============================================================ */

/* RESET & BASE STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "DM Sans", "Manrope", Arial, sans-serif;
    background-color: #061a35;
    color: #e2e8f0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.wrap {
    width: min(1240px, calc(100% - 48px));
    margin: auto;
}

/* ------------------------------------------------------------
   TOPBAR + HEADER (matches products.html exactly)
   These rules live here so about.html doesn't rely on inline CSS.
   ------------------------------------------------------------ */
.catalog-wrap {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
}

.topbar {
    height: 38px;
    background: #041329;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    font-size: 11px;
    color: #e4e9f1;
}

.topbar-inner,
.top-contact,
.top-actions,
.header-inner,
.catalog-nav,
.catalog-brand {
    display: flex;
    align-items: center;
}

.topbar-inner {
    height: 100%;
    justify-content: space-between;
}

.top-contact {
    gap: 19px;
}

.top-contact span,
.top-contact a {
    white-space: nowrap;
}

.top-contact b {
    font-weight: 500;
}

.top-contact i {
    height: 17px;
    width: 1px;
    background: rgba(255, 255, 255, .35);
}

.top-contact a:first-letter {
    color: #efb957;
}

.top-actions {
    gap: 6px;
}

.topbar .lang {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .32);
    color: #fff;
    border-radius: 5px;
    padding: 7px 13px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.topbar .lang.active {
    background: #efb957;
    border-color: #efb957;
    color: #14243b;
}

.top-quote {
    margin-left: 12px;
    background: #efb957;
    color: #15243a;
    border-radius: 5px;
    padding: 9px 14px;
    font-weight: 800;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
}

.catalog-header {
    height: 70px;
    background: rgba(5, 23, 47, .98);
    border-bottom: 1px solid rgba(220, 232, 248, .25);
    position: relative;
    z-index: 100;
}

.header-inner {
    height: 100%;
    justify-content: space-between;
    gap: 28px;
}

.catalog-brand {
    gap: 10px;
    min-width: 285px;
    text-decoration: none;
}

.catalog-brand img {
    width: 51px;
    height: 51px;
    object-fit: contain;
}

.catalog-brand span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.catalog-brand strong {
    font-size: 24px;
    letter-spacing: 1.1px;
    font-weight: 800;
    color: #fff;
}

.catalog-brand em {
    font-style: normal;
    color: #efb957;
}

.catalog-brand small {
    font-size: 9px;
    letter-spacing: 2px;
    color: #d2d9e4;
}

.catalog-nav {
    height: 100%;
    gap: 34px;
    font-size: 13px;
    color: #e1e7f0;
    margin-right: 60px;
}

.catalog-nav a {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: color .2s;
    text-decoration: none;
}

.catalog-nav a:hover,
.catalog-nav a.current {
    color: #efb957;
}

.catalog-nav a.current::after {
    content: "";
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    height: 3px;
    background: #efb957;
}

.mobile-menu {
    display: none;
    background: none;
    border: 1px solid rgba(220, 232, 248, .25);
    color: white;
    border-radius: 5px;
    padding: 7px 11px;
    font-size: 21px;
    cursor: pointer;
}

/* ------------------------------------------------------------
   PAGE CONTAINER (VERTICAL LAYOUT)
   ------------------------------------------------------------ */
.page-container {
    padding: 60px 0 80px 0;
    display: flex;
    flex-direction: column;
    gap: 65px;
}

.content-block {
    display: flex;
    flex-direction: column;
}

.main-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.section-heading {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}

.sub-block {
    margin-bottom: 20px;
}

.sub-title {
    font-size: 18px;
    font-weight: 700;
    color: #e5b255;
    margin-bottom: 8px;
}

.desc-text {
    font-size: 14px;
    color: #ffffff;
    max-width: 900px;
    line-height: 1.7;
}

/* ------------------------------------------------------------
   STRATEGIC EXCELLENCE CARDS & HOVER EFFECT
   ------------------------------------------------------------ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    background: rgba(12, 27, 48, 0.6);
    border: 1px solid rgba(229, 178, 85, 0.25);
    border-radius: 8px;
    padding: 24px 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(229, 178, 85, 0.8);
    transform: translateY(-5px);
}

.card-icon {
    width: 44px;
    height: 44px;
    background: rgba(229, 178, 85, 0.08);
    border: 1px solid rgba(229, 178, 85, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 15px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 14px;
}

.feature-card ul {
    list-style: none;
}

.feature-card li {
    font-size: 12px;
    color: #94a3b8;
    position: relative;
    padding-left: 12px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.feature-card li::before {
    content: "•";
    color: #e5b255;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ------------------------------------------------------------
   PORTFOLIO / BUSINESS MODEL
   ------------------------------------------------------------ */
.portfolio-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.portfolio-item {
    display: flex;
    background: rgba(12, 27, 48, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.portfolio-img {
    width: 240px;
    min-height: 140px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.portfolio-info {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-info h3 {
    font-size: 17px;
    color: #e5b255;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

/* ------------------------------------------------------------
   METRICS (3 columns, centered)
   ------------------------------------------------------------ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 10px;
    text-align: center;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-number {
    font-size: 48px;
    font-weight: 800;
    color: #e5b255;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.metric-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    max-width: 280px;
}

/* ------------------------------------------------------------
   RTL / RU LANGUAGE SUPPORT
   ------------------------------------------------------------ */
body.ru {
    font-family: "Vazirmatn", "DM Sans", Arial, sans-serif;
}

body.ru .catalog-page,
body.ru.page-container {
    direction: rtl;
}

body.ru .topbar-inner,
body.ru .header-inner {
    direction: rtl;
}

body.ru .catalog-brand {
    direction: ltr;
}

body.ru .catalog-nav a.current::after {
    left: 0;
    right: 0;
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .catalog-wrap {
        width: calc(100% - 32px);
    }

    .topbar {
        height: auto;
        min-height: 38px;
    }

    .topbar-inner {
        min-height: 38px;
    }

    .top-contact {
        gap: 9px;
        font-size: 9px;
    }

    .top-contact a:last-child,
    .top-contact i:last-of-type {
        display: none;
    }

    .top-quote {
        display: none;
    }

    .catalog-header {
        height: 70px;
    }

    .catalog-brand {
        min-width: 0;
    }

    .catalog-brand img {
        width: 43px;
        height: 43px;
    }

    .catalog-brand strong {
        font-size: 19px;
    }

    .catalog-brand small {
        font-size: 7px;
        letter-spacing: 1.4px;
    }

    .mobile-menu {
        display: block;
        margin-left: auto;
    }

    .catalog-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        height: auto;
        padding: 18px 22px;
        background: #061a35;
        border-top: 1px solid rgba(220, 232, 248, .25);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 100;
        margin: 0;
    }

    .catalog-nav.open {
        display: flex;
    }

    .catalog-nav a {
        padding: 12px 0;
        height: auto;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .catalog-nav a.current::after {
        display: none;
    }

    /* Page content */
    .page-container {
        padding: 40px 0 60px 0;
        gap: 45px;
    }

    .main-title {
        font-size: 26px;
    }

    .section-heading {
        font-size: 22px;
    }

    .cards-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        flex-direction: column;
    }

    .portfolio-img {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 390px) {
    .top-contact span,
    .top-contact a span {
        font-size: 8px;
    }

    .main-title {
        font-size: 22px;
    }

    .section-heading {
        font-size: 19px;
    }

    .metric-number {
        font-size: 38px;
    }
}