/* =========================================================
HOME PAGE
STUDIO-ECOARC
========================================================= */

/* ---------- Base ---------- */

.home-hero,
.home-projects,
.home-statement,
.home-approach,
.home-featured,
.home-services,
.home-team,
.home-journal,
.home-contact {
width: 100%;
}

.container {
width: min(1280px, calc(100% - 80px));
margin: 0 auto;
}

.eyebrow {
margin: 0 0 18px;
font-size: 11px;
font-weight: 600;
letter-spacing: .16em;
text-transform: uppercase;
color: #777;
}

.text-link {
display: inline-flex;
align-items: center;
gap: 10px;
color: #151515;
text-decoration: none;
font-size: 13px;
font-weight: 600;
transition: opacity .25s ease;
}

.text-link span {
font-size: 17px;
line-height: 1;
transition: transform .25s ease;
}

.text-link:hover {
opacity: .65;
}

.text-link:hover span {
transform: translate(3px, -3px);
}

/* =========================================================
HERO
========================================================= */

.home-hero {
min-height: 88vh;
display: flex;
align-items: flex-end;
padding: 150px 0 72px;
background: #f4f3f0;
}

.home-hero__content {
width: 100%;
}

.home-hero h1 {
max-width: 900px;
margin: 0;
font-size: clamp(64px, 8vw, 128px);
line-height: .92;
letter-spacing: -.055em;
font-weight: 500;
color: #111;
}

.home-hero__bottom {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 40px;
margin-top: 70px;
padding-top: 24px;
border-top: 1px solid #d5d3ce;
}

.home-hero__intro {
max-width: 390px;
margin: 0;
font-size: 15px;
line-height: 1.7;
color: #555;
}

/* =========================================================
SECTION HEADING
========================================================= */

.section-heading {
display: flex;
justify-content: space-between;
align-items: flex-end;
gap: 30px;
margin-bottom: 55px;
}

.section-heading h2 {
margin: 0;
font-size: clamp(42px, 5vw, 72px);
line-height: .95;
letter-spacing: -.045em;
font-weight: 500;
color: #111;
}

/* =========================================================
PROJECTS
========================================================= */

.home-projects {
padding: 130px 0;
background: #fff;
}

.project-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 70px 28px;
}

.project-card {
display: block;
color: inherit;
text-decoration: none;
}

.project-card--large {
grid-column: span 2;
}

.project-card--wide {
grid-column: span 2;
}

.project-card__image {
position: relative;
overflow: hidden;
aspect-ratio: 16 / 10;
background: #e9e8e4;
}

.project-card--large .project-card__image {
aspect-ratio: 2 / 1;
}

.project-card--wide .project-card__image {
aspect-ratio: 2.1 / 1;
}

.project-card__image img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform .7s cubic-bezier(.2,.65,.2,1);
}

.project-card:hover .project-card__image img {
transform: scale(1.035);
}

.project-card__meta {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
padding-top: 17px;
border-top: 1px solid #d9d8d4;
margin-top: 13px;
}

.project-card__meta h3 {
margin: 0 0 6px;
font-size: 19px;
font-weight: 500;
letter-spacing: -.02em;
}

.project-card__meta p {
margin: 0;
font-size: 12px;
color: #777;
}

.project-card__meta > span {
font-size: 11px;
color: #999;
}

/* =========================================================
STUDIO STATEMENT
========================================================= */

.home-statement {
padding: 150px 0;
background: #171717;
color: #fff;
}

.statement-grid {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 80px;
}

.statement-grid .eyebrow {
color: #999;
}

.statement-grid h2 {
max-width: 850px;
margin: 0;
font-size: clamp(42px, 5.2vw, 78px);
line-height: 1;
letter-spacing: -.045em;
font-weight: 400;
}

.statement-grid > div > p:not(.eyebrow) {
max-width: 560px;
margin: 40px 0 35px;
font-size: 17px;
line-height: 1.8;
color: #aaa;
}

.text-link--light {
color: #fff;
}

/* =========================================================
APPROACH
========================================================= */

.home-approach {
padding: 130px 0;
background: #f4f3f0;
}

.approach-list {
border-top: 1px solid #ceccc7;
}

.approach-item {
display: grid;
grid-template-columns: 100px 1fr;
gap: 50px;
padding: 42px 0;
border-bottom: 1px solid #ceccc7;
}

.approach-item__number {
font-size: 11px;
color: #888;
}

.approach-item h3 {
margin: 0 0 14px;
font-size: 27px;
font-weight: 500;
letter-spacing: -.025em;
}

.approach-item p {
max-width: 530px;
margin: 0;
font-size: 14px;
line-height: 1.8;
color: #666;
}

/* =========================================================
FEATURED PROJECT
========================================================= */

.home-featured {
padding: 130px 0;
background: #fff;
}

.featured-project {
display: grid;
grid-template-columns: 1.35fr .65fr;
min-height: 650px;
}

.featured-project__image {
overflow: hidden;
background: #e8e7e3;
}

.featured-project__image img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
}

.featured-project__content {
display: flex;
flex-direction: column;
justify-content: center;
padding: 70px;
background: #f1f0ec;
}

.featured-project__content h2 {
margin: 0;
font-size: clamp(48px, 5vw, 76px);
line-height: .95;
letter-spacing: -.05em;
font-weight: 500;
}

.featured-project__description {
max-width: 390px;
margin: 35px 0 45px;
font-size: 14px;
line-height: 1.8;
color: #666;
}

.project-details {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 22px 30px;
margin: 0 0 45px;
padding: 22px 0;
border-top: 1px solid #d4d2cd;
border-bottom: 1px solid #d4d2cd;
}

.project-details div {
display: flex;
flex-direction: column;
gap: 6px;
}

.project-details dt {
font-size: 10px;
text-transform: uppercase;
letter-spacing: .1em;
color: #999;
}

.project-details dd {
margin: 0;
font-size: 13px;
color: #222;
}

/* =========================================================
SERVICES
========================================================= */

.home-services {
padding: 130px 0;
background: #f4f3f0;
}

.service-list {
border-top: 1px solid #ceccc7;
}

.service-item {
display: grid;
grid-template-columns: 80px 1fr 40px;
align-items: center;
gap: 35px;
padding: 30px 0;
color: inherit;
text-decoration: none;
border-bottom: 1px solid #ceccc7;
transition: padding .3s ease;
}

.service-item:hover {
padding-left: 12px;
}

.service-item > span:first-child {
font-size: 11px;
color: #999;
}

.service-item h3 {
margin: 0 0 7px;
font-size: 25px;
font-weight: 500;
letter-spacing: -.025em;
}

.service-item p {
margin: 0;
max-width: 570px;
font-size: 13px;
line-height: 1.7;
color: #777;
}

.service-item__arrow {
justify-self: end;
font-size: 19px;
transition: transform .25s ease;
}

.service-item:hover .service-item__arrow {
transform: translate(4px, -4px);
}

/* =========================================================
TEAM
========================================================= */

.home-team {
padding: 130px 0;
background: #fff;
}

.team-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

.team-member__image {
aspect-ratio: 4 / 5;
overflow: hidden;
background: #e8e7e3;
}

.team-member__image img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
filter: grayscale(100%);
transition: filter .4s ease, transform .6s ease;
}

.team-member:hover img {
filter: grayscale(0);
transform: scale(1.025);
}

.team-member__meta {
padding-top: 15px;
}

.team-member__meta h3 {
margin: 0 0 5px;
font-size: 14px;
font-weight: 600;
}

.team-member__meta p {
margin: 0;
font-size: 11px;
color: #888;
}

/* =========================================================
JOURNAL
========================================================= */

.home-journal {
padding: 130px 0;
background: #f4f3f0;
}

.journal-preview {
border-top: 1px solid #ceccc7;
}

.journal-preview__item {
display: flex;
justify-content: space-between;
align-items: center;
gap: 30px;
padding: 30px 0;
color: inherit;
text-decoration: none;
border-bottom: 1px solid #ceccc7;
transition: padding .3s ease;
}

.journal-preview__item:hover {
padding-left: 12px;
}

.journal-preview__item > div > span {
display: block;
margin-bottom: 8px;
font-size: 10px;
letter-spacing: .1em;
text-transform: uppercase;
color: #999;
}

.journal-preview__item h3 {
margin: 0;
font-size: 25px;
font-weight: 500;
letter-spacing: -.025em;
}

.journal-preview__arrow {
font-size: 19px;
transition: transform .25s ease;
}

.journal-preview__item:hover .journal-preview__arrow {
transform: translate(4px, -4px);
}

/* =========================================================
CONTACT CTA
========================================================= */

.home-contact {
padding: 130px 0;
background: #fff;
}

.contact-cta {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 80px;
padding: 80px 0;
border-top: 1px solid #ceccc7;
border-bottom: 1px solid #ceccc7;
}

.contact-cta h2 {
margin: 0;
font-size: clamp(50px, 6vw, 90px);
line-height: .92;
letter-spacing: -.055em;
font-weight: 500;
}

.contact-cta__right {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-end;
}

.contact-cta__right p {
max-width: 390px;
margin: 0 0 30px;
font-size: 15px;
line-height: 1.8;
color: #666;
}

.button {
display: inline-flex;
align-items: center;
gap: 16px;
padding: 15px 22px;
text-decoration: none;
font-size: 12px;
font-weight: 600;
transition: opacity .25s ease, transform .25s ease;
}

.button--dark {
background: #151515;
color: #fff;
}

.button:hover {
opacity: .8;
transform: translateY(-2px);
}

/* =========================================================
TABLET
========================================================= */

@media (max-width: 900px) {

```
.container {
    width: min(100% - 48px, 760px);
}

.home-hero {
    min-height: 80vh;
    padding: 130px 0 55px;
}

.home-hero h1 {
    font-size: clamp(56px, 10vw, 92px);
}

.home-hero__bottom {
    margin-top: 55px;
}

.statement-grid {
    grid-template-columns: 1fr;
    gap: 45px;
}

.featured-project {
    grid-template-columns: 1fr;
}

.featured-project__image {
    min-height: 500px;
}

.featured-project__content {
    padding: 55px;
}

.team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 45px 20px;
}

.contact-cta {
    grid-template-columns: 1fr;
    gap: 55px;
}
```

}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 600px) {

```
.container {
    width: calc(100% - 36px);
}

.eyebrow {
    margin-bottom: 14px;
    font-size: 10px;
}

.home-hero {
    min-height: 78vh;
    padding: 110px 0 40px;
}

.home-hero h1 {
    font-size: clamp(48px, 15vw, 70px);
    letter-spacing: -.06em;
}

.home-hero__bottom {
    display: block;
    margin-top: 45px;
    padding-top: 20px;
}

.home-hero__intro {
    max-width: 330px;
    margin-bottom: 24px;
    font-size: 14px;
}

.section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 38px;
}

.section-heading h2 {
    font-size: 45px;
}

.home-projects,
.home-approach,
.home-featured,
.home-services,
.home-team,
.home-journal,
.home-contact {
    padding: 85px 0;
}

.home-statement {
    padding: 90px 0;
}

.project-grid {
    grid-template-columns: 1fr;
    gap: 48px;
}

.project-card--large,
.project-card--wide {
    grid-column: auto;
}

.project-card__image,
.project-card--large .project-card__image,
.project-card--wide .project-card__image {
    aspect-ratio: 1.15 / 1;
}

.project-card__meta h3 {
    font-size: 17px;
}

.statement-grid {
    gap: 35px;
}

.statement-grid h2 {
    font-size: 43px;
}

.statement-grid > div > p:not(.eyebrow) {
    margin: 30px 0;
    font-size: 15px;
}

.approach-item {
    grid-template-columns: 45px 1fr;
    gap: 15px;
    padding: 30px 0;
}

.approach-item h3 {
    font-size: 22px;
}

.approach-item p {
    font-size: 13px;
}

.featured-project__image {
    min-height: 380px;
}

.featured-project__content {
    padding: 42px 28px;
}

.featured-project__content h2 {
    font-size: 52px;
}

.featured-project__description {
    margin: 28px 0 35px;
}

.project-details {
    margin-bottom: 35px;
}

.service-item {
    grid-template-columns: 38px 1fr 25px;
    gap: 14px;
    padding: 25px 0;
}

.service-item h3 {
    font-size: 20px;
}

.service-item p {
    font-size: 12px;
}

.team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 14px;
}

.team-member__meta h3 {
    font-size: 12px;
}

.team-member__meta p {
    font-size: 10px;
}

.journal-preview__item {
    padding: 25px 0;
}

.journal-preview__item h3 {
    font-size: 19px;
    line-height: 1.25;
}

.contact-cta {
    padding: 55px 0;
    gap: 40px;
}

.contact-cta h2 {
    font-size: 55px;
}

.contact-cta__right p {
    font-size: 14px;
}
```

}

/* =========================================================
SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

```
.container {
    width: calc(100% - 28px);
}

.home-hero h1 {
    font-size: 45px;
}

.section-heading h2 {
    font-size: 40px;
}

.statement-grid h2 {
    font-size: 38px;
}

.team-grid {
    gap: 30px 10px;
}
```

}
/* =========================================================
   RTL SUPPORT (فارسی)
   ========================================================= */

html[dir="rtl"] {
    text-align: right;
}

/* معکوس کردن جهت حرکت فلش‌ها در هاور */
html[dir="rtl"] .text-link span {
    transform: translate(-3px, -3px);
}
html[dir="rtl"] .text-link:hover span {
    transform: translate(-3px, -3px);
}

/* اصلاح پدینگ و جهت فلش در لیست خدمات */
html[dir="rtl"] .service-item:hover {
    padding-left: 0;
    padding-right: 12px;
}
html[dir="rtl"] .service-item__arrow {
    transform: translate(-4px, -4px);
}
html[dir="rtl"] .service-item:hover .service-item__arrow {
    transform: translate(-4px, -4px);
}

/* اصلاح پدینگ و جهت فلش در لیست مجله */
html[dir="rtl"] .journal-preview__item:hover {
    padding-left: 0;
    padding-right: 12px;
}
html[dir="rtl"] .journal-preview__arrow {
    transform: translate(-4px, -4px);
}
html[dir="rtl"] .journal-preview__item:hover .journal-preview__arrow {
    transform: translate(-4px, -4px);
}

/* اطمینان از راست‌چین بودن بخش تماس */
html[dir="rtl"] .contact-cta__right {
    align-items: flex-start; /* در RTL این یعنی راست‌چین */
    text-align: right;
}

/* اصلاحات اختصاصی برای حالت موبایل */
@media (max-width: 600px) {
    html[dir="rtl"] .home-hero__bottom {
        text-align: right;
    }
    
    html[dir="rtl"] .section-heading {
        text-align: right;
        align-items: flex-start;
    }

    html[dir="rtl"] .contact-cta {
        text-align: right;
    }
}