/* =========================================================
   FONT — IRANSansX (client-supplied)
========================================================= */

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

@font-face{
  font-family:'IRANSansX';
  src:url('../fonts/IRANSansXFaNum-Bold.woff2') format('woff2'),
      url('../fonts/IRANSansXFaNum-Bold.woff') format('woff');
  font-weight:700;
  font-style:normal;
  font-display:swap;
}

/* ==================================================
   FORGE INDUSTRIAL — MAIN STYLE
================================================== */

:root {
    --primary:#14293B;
    --secondary:#5B6570;
    --accent:#E1550A;
    --light:#F5F7F9;
    --dark:#1B1F23;
    --border:#E5E9EE;
    --white:#ffffff;
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:IRANSansX,Vazirmatn,Tahoma,Arial,sans-serif;
    color:var(--dark);
    background:#fff;
    line-height:1.8;
}

img{
    max-width:100%;
    height:auto;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    margin:0;
    padding:0;
    list-style:none;
}

.container{
    width:min(90%,1280px);
    margin:auto;
}


/* ==================================================
   BUTTONS (used across every page)
================================================== */

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--accent);
    color:#fff;
    padding:15px 35px;
    border-radius:10px;
    font-weight:600;
    box-shadow:0 10px 25px rgba(225,85,10,.25);
    border:2px solid var(--accent);
    transition:.3s;
}

.btn:hover{
    background:#c2470a;
    color:#fff;
    transform:translateY(-2px);
}

.btn-outline{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:transparent;
    color:var(--primary);
    padding:15px 35px;
    border-radius:10px;
    font-weight:600;
    border:2px solid var(--primary);
    transition:.3s;
}

.btn-outline:hover{
    background:var(--primary);
    color:#fff;
}

.section-badge{
    display:inline-block;
    padding:6px 15px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:50px;
    color:var(--accent);
    font-size:14px;
    font-weight:700;
    margin-bottom:20px;
}


/* ==================================================
   SECTION TITLE
================================================== */

.section-header,
.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-header h2,
.section-title h2,
section h2{
    color:var(--primary);
    font-size:32px;
    margin-bottom:15px;
}

.section-header p,
.section-title p{
    color:var(--secondary);
    font-size:17px;
}


/* ==================================================
   PRODUCTS GRID (shared card pattern)
================================================== */

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

.product-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    overflow:hidden;
    transition:.3s;
    height:100%;
    display:flex;
    flex-direction:column;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(0,0,0,.10);
}

.product-card a{
    display:flex;
    flex-direction:column;
    height:100%;
}

.product-card img{
    width:100%;
    height:230px;
    object-fit:cover;
    display:block;
    background:var(--light);
}

.product-card h3{
    font-size:20px;
    color:var(--primary);
    padding:20px 22px 5px;
    margin:0;
}

.product-card p{
    padding:0 22px 22px;
    color:var(--secondary);
    font-size:15px;
    line-height:1.9;
    margin-top:auto;
}


/* ==================================================
   WHY / VALUE GRID
================================================== */

.why-grid,
.capability-grid,
.advantages-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.why-grid > div,
.capability-grid > div,
.advantages-grid > div{
    padding:32px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:15px;
}

.why-grid strong,
.capability-grid span,
.advantages-grid span{
    color:var(--accent);
    font-size:32px;
    font-weight:800;
}

.why-grid h3,
.capability-grid h3,
.advantages-grid h3{
    color:var(--primary);
    margin:12px 0 8px;
    font-size:19px;
}

.why-grid p,
.capability-grid p,
.advantages-grid p{
    color:var(--secondary);
    font-size:15px;
    margin:0;
}


/* ==================================================
   CTA SECTIONS
================================================== */

.home-cta,
.cta-section{
    padding:70px 0;
    background:var(--primary);
    color:#fff;
    text-align:center;
}

.home-cta h2,
.cta-section h2{
    color:#fff;
}

.home-cta p,
.cta-section p{
    color:#c9d3db;
}

.home-cta a,
.cta-section a{
    display:inline-block;
    margin-top:20px;
    font-size:26px;
    color:var(--accent);
    font-weight:700;
}


/* ==================================================
   FEATURED CATEGORY CARDS (home + about + services)
================================================== */

.forge-featured-category-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:30px;
}

.forge-featured-category-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    background:#fff;
    border:1px solid var(--border);
    border-radius:20px;
    overflow:hidden;
    padding:30px;
    transition:transform .3s ease, box-shadow .3s ease;
}

.forge-featured-category-media{
    display:block;
    height:180px;
    margin:-30px -30px 24px;
    overflow:hidden;
    background:var(--light);
}

.forge-featured-category-media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.forge-featured-category-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 42px rgba(0,0,0,.10);
}

.forge-featured-category-icon{
    width:56px;
    height:56px;
    border-radius:14px;
    background:var(--light);
    color:var(--accent);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    margin-bottom:18px;
}

.forge-featured-category-card h3{
    margin:0 0 10px;
    color:var(--primary);
    font-size:22px;
}

.forge-featured-category-card p{
    margin:0;
    color:var(--secondary);
    line-height:1.9;
    font-size:15px;
}

.forge-featured-category-link{
    margin-top:auto;
    display:inline-block;
    margin-top:18px;
    color:var(--accent);
    font-weight:700;
    font-size:15px;
}


/* ==================================================
   TABLE (used on standards / comparison sections)
================================================== */

.table-wrapper{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

table th{
    background:var(--primary);
    color:#fff;
    text-align:center;
}

table td,
table th{
    padding:16px;
    border:1px solid var(--border);
    text-align:center;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media(max-width:992px){

    .products-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .why-grid,
    .capability-grid,
    .advantages-grid,
    .forge-featured-category-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .main-navigation{
        display:none;
    }

}

@media(max-width:600px){

    .products-grid,
    .why-grid,
    .capability-grid,
    .advantages-grid,
    .forge-featured-category-grid{
        grid-template-columns:1fr;
    }

    .header-phone{
        display:none;
    }

}

@media(prefers-reduced-motion:reduce){

    html{
        scroll-behavior:auto;
    }

    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
        scroll-behavior:auto !important;
    }

}


/* ==================================================
   MOBILE STICKY CONTACT BAR
================================================== */

.mobile-contact-bar{
    display:none;
}

@media(max-width:768px){

    .mobile-contact-bar{
        display:flex;
        position:fixed;
        bottom:0;
        left:0;
        right:0;
        height:65px;
        background:#fff;
        z-index:9999;
        box-shadow:0 -5px 20px rgba(0,0,0,.12);
    }

    .mobile-contact-bar a{
        flex:1;
        display:flex;
        align-items:center;
        justify-content:center;
        gap:8px;
        font-size:15px;
        font-weight:700;
        color:#fff;
    }

    .whatsapp-btn{
        background:#25D366;
    }

    .call-btn{
        background:var(--primary);
    }

    .mobile-contact-bar span{
        font-size:20px;
    }

    body{
        padding-bottom:65px;
    }

}

/* ==================================================
   CONTENT SYSTEM / ACCESSIBILITY / EDITORIAL CARDS
================================================== */

::selection{
    background:var(--accent);
    color:#fff;
}

:focus-visible{
    outline:3px solid rgba(225,85,10,.55);
    outline-offset:3px;
}

.skip-link{
    position:fixed;
    top:12px;
    right:12px;
    z-index:10000;
    transform:translateY(-180%);
    background:var(--accent);
    color:#fff;
    padding:10px 16px;
    border-radius:8px;
    font-weight:700;
}

.skip-link:focus{
    transform:translateY(0);
}

.breadcrumbs{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    color:var(--secondary);
    font-size:13px;
    line-height:1.8;
}

.breadcrumbs a{
    color:var(--accent);
    font-weight:600;
}

.breadcrumbs span[aria-hidden="true"]{
    color:#a9b3ba;
}

.content-breadcrumb-wrap{
    padding-top:24px;
}

.content-reading-shell{
    max-width:980px;
    margin:0 auto;
}

.content-toc{
    max-width:980px;
    margin:0 auto 34px;
    padding:22px 26px;
    background:#f8fafb;
    border:1px solid var(--border);
    border-right:4px solid var(--accent);
    border-radius:14px;
}

.content-toc strong{
    display:block;
    color:var(--primary);
    margin-bottom:10px;
}

.content-toc ol{
    margin:0;
    padding-right:22px;
    color:var(--secondary);
}

.content-toc li{
    margin:4px 0;
}

.content-toc .toc-level-3{
    margin-right:20px;
    font-size:14px;
}

.content-toc a{
    color:var(--primary);
}

.content-toc a:hover{
    color:var(--accent);
}

.internal-links-section,
.related-articles-section{
    padding:72px 0;
    background:#fff;
}

.related-articles-section{
    background:var(--light);
}

.internal-links-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}

.internal-link-card{
    display:flex;
    align-items:flex-start;
    gap:14px;
    min-height:112px;
    padding:22px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.internal-link-card:hover{
    transform:translateY(-5px);
    border-color:rgba(225,85,10,.45);
    box-shadow:0 16px 32px rgba(20,41,59,.09);
}

.internal-link-arrow{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    flex:0 0 34px;
    border-radius:10px;
    background:#fff1e9;
    color:var(--accent);
    font-size:18px;
}

.internal-link-card strong,
.internal-link-card small{
    display:block;
}

.internal-link-card strong{
    color:var(--primary);
    margin-bottom:5px;
}

.internal-link-card small{
    color:var(--secondary);
    line-height:1.8;
    font-size:13px;
}

.posts-grid{
    align-items:stretch;
}

/* Related article cards are also rendered on pages and service landings.
   Keep this grid self-contained because archive-post.css is not loaded there. */
.related-articles-section .related-articles-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:28px;
}

.related-articles-section .post-card{
    display:flex;
    min-width:0;
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    overflow:hidden;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.related-articles-section .post-card:hover{
    transform:translateY(-6px);
    border-color:rgba(225,85,10,.38);
    box-shadow:0 15px 35px rgba(20,41,59,.10);
}

.related-articles-section .post-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.related-articles-section .post-card h3{
    font-size:19px;
}

.post-card{
    height:100%;
}

.post-card > a{
    display:flex;
    flex-direction:column;
    height:100%;
}

.post-card img{
    display:block;
    background:#e9eef1;
}

.post-card-body{
    display:flex;
    flex:1;
    flex-direction:column;
    padding:20px 22px 22px;
}

.post-card-kicker{
    display:block;
    margin-bottom:8px;
    color:var(--accent);
    font-size:13px;
    font-weight:700;
}

.post-card h2,
.post-card h3{
    padding:0;
    margin:0 0 9px;
    color:var(--primary);
    font-size:19px;
    line-height:1.75;
}

.post-card p{
    padding:0;
    margin:0;
    color:var(--secondary);
    font-size:14px;
    line-height:1.95;
}

.post-card-meta{
    display:block;
    margin-top:auto;
    padding-top:15px;
    color:#89959d;
    font-size:12px;
}

.read-more{
    display:inline-block;
    margin-top:12px;
    color:var(--accent);
    font-size:14px;
    font-weight:700;
}

.pagination{
    margin-top:42px;
    text-align:center;
}

.pagination ul{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:7px;
}

.pagination li{
    margin:0;
}

.pagination a,
.pagination span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:40px;
    min-height:40px;
    padding:6px 12px;
    border:1px solid var(--border);
    border-radius:9px;
    color:var(--primary);
    background:#fff;
    font-size:13px;
}

.pagination .current,
.pagination a:hover{
    color:#fff;
    background:var(--accent);
    border-color:var(--accent);
}

@media(max-width:992px){

    .internal-links-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .related-articles-section .related-articles-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}

@media(max-width:600px){

    .content-breadcrumb-wrap{
        padding-top:18px;
    }

    .internal-links-grid{
        grid-template-columns:1fr;
    }

    .related-articles-section .related-articles-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .internal-links-section,
    .related-articles-section{
        padding:52px 0;
    }

}
