/* ===========================================================
   ۱. متغیرها و پایه (Design Tokens)
   =========================================================== */
:root {
    --ink: #12171c;
    --steel-900: #1b232b;
    --steel-800: #232d37;
    --steel-600: #4a5966;
    --concrete-100: #f6f5f0;
    --concrete-200: #edeae0;
    --line: #ddd7c8;
    --line-dark: rgba(255, 255, 255, .12);
    --amber: #e2962f;
    --amber-dark: #b97b21;
    --text: #262b30;
    --muted: #666d73;
    --muted-light: #a7b0b8;
    --white: #ffffff;

    --radius-sm: 6px;
    --container: 1180px;
    --shadow-1: 0 1px 2px rgba(18, 23, 28, .06), 0 8px 24px rgba(18, 23, 28, .06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Vazirmatn", "Tahoma", sans-serif;
    color: var(--text);
    background: var(--concrete-100);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

section {
    position: relative;
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

/* دسترسی‌پذیری: فوکوس قابل مشاهده */
a:focus-visible,
button:focus-visible,
label:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    inset-inline-start: 12px;
    top: -48px;
    background: var(--amber);
    color: var(--ink);
    font-weight: 700;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    z-index: 999;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 12px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ===========================================================
   ۲. تایپوگرافی
   =========================================================== */
.eyebrow {
    display: inline-block;
    color: var(--amber-dark);
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 10px;
}

h1 {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    font-weight: 800;
    line-height: 1.35;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 800;
    line-height: 1.4;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.section-head {
    max-width: 640px;
    margin-bottom: 44px;
}

.section-head p {
    color: var(--muted);
    margin-top: 14px;
    font-size: 1.02rem;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

/* ===========================================================
   ۳. دکمه‌ها و اجزای مشترک (چَمفِر گوشه، به‌جای گردی یکنواخت)
   =========================================================== */
.chamfer-sm {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.chamfer-lg {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    font-family: inherit;
    font-weight: 700;
    font-size: .98rem;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease;
}

.btn-primary {
    background: var(--amber);
    color: var(--ink);
}

.btn-primary:hover {
    background: var(--amber-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, .55);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, .08);
}

.btn-dark {
    background: var(--ink);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--steel-800);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* دکمه‌های تلفن هدر */
.tel-link {
    font-weight: 700;
    white-space: nowrap;
}

/* ===========================================================
   ۴. هدر و ناوبری  →  header.php
   =========================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 245, 240, .92);
    backdrop-filter: saturate(160%) blur(6px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 14px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--ink);
    flex-shrink: 0;
}

.logo-mark {
    width: 60px;
    height: 46px;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.logo-mark svg {
    width: 20px;
    height: 20px;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.main-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--concrete-100);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px 24px 18px;
}

.main-nav a {
    display: block;
    padding: 12px 4px;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}

.main-nav a:last-child {
    border-bottom: none;
}

.nav-toggle:checked~.main-nav {
    display: flex;
}

.hamburger {
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    display: block;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle:checked~.hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked~.hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked~.hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-cta {
    display: none;
}

.nav-mobile-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 16px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
}

@media (min-width:960px) {
    .main-nav {
        display: flex;
        position: static;
        flex-direction: row;
        gap: 28px;
        background: none;
        border: none;
        padding: 0;
    }

    .main-nav a {
        padding: 6px 0;
        border-bottom: none;
        position: relative;
    }

    .main-nav a::after {
        content: "";
        position: absolute;
        right: 0;
        left: 0;
        bottom: -4px;
        height: 2px;
        background: var(--amber);
        transform: scaleX(0);
        transition: transform .2s ease;
    }

    .main-nav a:hover::after {
        transform: scaleX(1);
    }

    .hamburger {
        display: none;
    }

    .header-cta {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .nav-mobile-cta {
        display: none;
    }
}

/* ===========================================================
   ۵. هیرو
   =========================================================== */
   /* https://images.pexels.com/photos/14213937/pexels-photo-14213937.jpeg?auto=compress&cs=tinysrgb&w=1900 */
.hero {
    position: relative;
    background:
        linear-gradient(to left, rgba(18, 23, 28, .92) 15%, rgba(18, 23, 28, .55) 70%, rgba(18, 23, 28, .35) 100%),
        url("../img/photo_2026-09-24_12-47-53.jpg") center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

.hero-inner {
    padding-block: 88px 76px;
    max-width: 680px;
    margin-inline: 0 auto;
    position: relative;
    z-index: 2;
}

.hero .eyebrow {
    color: var(--amber);
}

.hero p.lead {
    margin-top: 20px;
    font-size: 1.08rem;
    color: #dfe3e6;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-note {
    margin-top: 26px;
    color: var(--muted-light);
    font-size: .92rem;
    border-inline-start: 2px solid var(--amber);
    padding-inline-start: 12px;
}

.truss-deco {
    position: absolute;
    inset-inline-end: -40px;
    bottom: -10px;
    width: min(48vw, 560px);
    height: auto;
    stroke: var(--amber);
    stroke-width: 1.4;
    fill: none;
    opacity: .35;
    z-index: 1;
}

/* ===========================================================
   ۶. نوار آمار
   =========================================================== */
.stats {
    background: var(--steel-900);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 36px;
}

.stat-item {
    text-align: center;
    padding-inline: 8px;
    border-bottom: 1px solid var(--line-dark);
    padding-bottom: 24px;
}

.stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--amber);
    display: block;
}

.stat-label {
    color: var(--muted-light);
    font-size: .92rem;
    margin-top: 4px;
}

@media (min-width:720px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat-item {
        border-bottom: none;
        border-inline-start: 1px solid var(--line-dark);
        padding-bottom: 0;
    }

    .stat-item:first-child {
        border-inline-start: none;
    }
}

/* ===========================================================
   ۷. خدمات — به‌صورت ردیف مشخصات فنی، نه کارت‌های یک‌شکل
   =========================================================== */
.services {
    padding-block: 88px;
}

.service-list {
    border-top: 1px solid var(--line);
}

.service-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding-block: 28px;
    border-bottom: 1px solid var(--line);
}

.service-icon {
    width: 52px;
    height: 52px;
    background: var(--concrete-200);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.service-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--ink);
}

.service-row h3 {
    margin-bottom: 8px;
}

.service-row p {
    color: var(--muted);
    max-width: 640px;
}

@media (min-width:720px) {
    .service-row {
        grid-template-columns: 64px 1fr;
        align-items: start;
    }
}

/* ===========================================================
   ۸. خرید سوله — دو پنل کنار هم
   =========================================================== */
.buy-sole {
    background: var(--concrete-200);
    padding-block: 88px;
}

.buy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width:860px) {
    .buy-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.buy-panel {
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.buy-panel-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.buy-panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buy-panel-body {
    padding: 30px 28px 34px;
}

.buy-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.buy-panel p {
    color: var(--muted-light);
}

.buy-panel ul {
    margin-top: 18px;
    margin-bottom: 26px;
}

.buy-panel li {
    position: relative;
    padding-inline-start: 22px;
    margin-bottom: 10px;
    font-size: .95rem;
    color: #d9dde0;
}

.buy-panel li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 9px;
    width: 9px;
    height: 9px;
    background: var(--amber);
}

/* ===========================================================
   ۹. اجرای سوله — مراحل + تصویر
   =========================================================== */
.build-sole {
    padding-block: 88px;
}

.build-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 56px;
}

.step {
    display: flex;
    gap: 18px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
}

.step:last-child {
    border-bottom: 1px solid var(--line);
}

.step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--ink);
}

.step h3 {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.step p {
    color: var(--muted);
    font-size: .94rem;
    max-width: 560px;
}

@media (min-width:960px) {
    .build-steps {
        grid-template-columns: repeat(5, 1fr);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .step {
        flex-direction: column;
        border-top: none;
        border-bottom: none;
        border-inline-start: 1px solid var(--line);
        padding: 26px 20px;
    }

    .step:first-child {
        border-inline-start: none;
    }

    .step:last-child {
        border-bottom: none;
    }
}

.build-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    background: var(--steel-900);
    color: var(--white);
    padding: 8px;
}

.build-feature-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.build-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.build-feature-body {
    padding: 26px 28px 34px;
}

.build-feature-body h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.build-feature-body ul {
    margin-bottom: 26px;
}

.build-feature-body li {
    position: relative;
    padding-inline-start: 22px;
    margin-bottom: 10px;
    color: #d9dde0;
    font-size: .95rem;
}

.build-feature-body li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 9px;
    width: 9px;
    height: 9px;
    background: var(--amber);
}

@media (min-width:860px) {
    .build-feature {
        grid-template-columns: 1fr 1fr;
    }

    .build-feature-img {
        aspect-ratio: auto;
        height: 100%;
    }
}

/* ===========================================================
   ۱۰. نمونه‌کارها
   =========================================================== */
.portfolio {
    background: var(--concrete-200);
    padding-block: 88px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

@media (min-width:640px) {
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width:960px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    position: relative;
    overflow: hidden;
    background: var(--ink);
}

.project-card .img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.project-card:hover img {
    transform: scale(1.06);
}

.project-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 18px 18px 16px;
    background: linear-gradient(to top, rgba(18, 23, 28, .92), rgba(18, 23, 28, 0));
    color: var(--white);
}

.project-caption h3 {
    font-size: 1.02rem;
    margin-bottom: 4px;
}

.project-caption span {
    color: var(--muted-light);
    font-size: .85rem;
}

/* ===========================================================
   ۱۱. وبلاگ
   =========================================================== */
.blog {
    padding-block: 88px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

@media (min-width:720px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:1080px) {
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.post-card {
    border-top: 3px solid var(--ink);
    background: var(--white);
    box-shadow: var(--shadow-1);
}

.post-card .img-wrap {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-body {
    padding: 20px;
}

.post-body h3 {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.post-body p {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 14px;
}

.post-link {
    font-weight: 700;
    color: var(--amber-dark);
    font-size: .9rem;
}

/* ===========================================================
   ۱۲. تماس با ما
   =========================================================== */
.contact {
    background: var(--steel-900);
    color: var(--white);
    padding-block: 88px;
}

.contact .section-head p {
    color: var(--muted-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width:900px) {
    .contact-grid {
        grid-template-columns: .85fr 1.15fr;
    }
}

.info-list {
    margin-top: 8px;
}

.info-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-block: 16px;
    border-bottom: 1px solid var(--line-dark);
}

.info-list li:first-child {
    padding-top: 0;
}

.info-list svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    stroke: var(--amber);
    margin-top: 2px;
}

.info-list strong {
    display: block;
    margin-bottom: 2px;
}

.info-list span {
    color: var(--muted-light);
    font-size: .94rem;
}

.contact-form {
    background: var(--ink);
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width:560px) {
    .form-row.two {
        grid-template-columns: 1fr 1fr;
    }
}

.field label {
    display: block;
    font-size: .88rem;
    color: var(--muted-light);
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: var(--steel-800);
    border: 1px solid var(--line-dark);
    color: var(--white);
    padding: 12px 14px;
    font-family: inherit;
    font-size: .95rem;
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted-light);
}

/* ===========================================================
   ۱۳. فوتر  →  footer.php
   =========================================================== */
.site-footer {
    background: var(--ink);
    color: var(--muted-light);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 56px;
    border-bottom: 1px solid var(--line-dark);
}

@media (min-width:720px) {
    .footer-top {
        grid-template-columns: 1.3fr 1fr 1fr 1fr;
    }
}

.footer-col h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: .92rem;
    line-height: 1.9;
}

.footer-col li {
    margin-bottom: 10px;
    font-size: .92rem;
}

.footer-col a:hover {
    color: var(--amber);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-bottom {
    padding-block: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    font-size: .85rem;
}