:root{
    /* ---- Colors (extracted from Figma tokens) ---- */
    --yellow-9:      #ffd400; /* brand/blue/dark-9  - primary */
    --yellow-10:     #ffe74c; /* brand/blue/dark-10 */
    --yellow-11:     #fff5b2; /* brand/blue/dark-11 */
    --yellow-12:     #fffdf2; /* brand/blue/dark-12 */
    --yellow-7:      #665800; /* brand/blue/dark-7  - text on light yellow */

    --black-4:       #1e1e1e; /* neutral/black-4 */
    --black-5:       #282828; /* neutral/black-5 */

    --gray-300:      #535353; /* neutral/300-2 */
    --gray-200:      #7e7e7e; /* neutral/200-2 */
    --gray-200-alt:  #a5a5a5; /* neutral/200 */
    --gray-50-2:     #a9a9a9; /* neutral/50-2 */
    --gray-50-3:     #f5f5f5; /* neutral/50-3 */
    --white:         #ffffff;
    --border-gray:   #dfdfdf;

    /* ---- Layout ---- */
    --page-max: 1600px;
    --gutter: 20px;

    /* ---- Type ---- */
    --font-main: 'Peyda', 'Vazirmatn', Tahoma, sans-serif;
}

*{box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
    font-family: var(--font-main);
    color: var(--black-4);
    background: var(--white);
    direction: rtl;
    text-align: right;
    overflow-x:hidden;
}

a{ text-decoration:none; color:inherit; }
ul{ list-style:none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; }

/* ---- Typography scale (per Figma text styles) ---- */
.h1{ font-size:32px; line-height:56px; font-weight:600; }
.h2{ font-size:28px; line-height:48px; font-weight:600; }
.h3{ font-size:24px; line-height:40px; font-weight:600; }
.h4{ font-size:20px; line-height:36px; font-weight:500; }
.h5{ font-size:18px; line-height:32px; font-weight:500; }
.h6{ font-size:16px; line-height:28px; font-weight:500; }
.body-text{ font-size:16px; line-height:28px; font-weight:400; }
.text-sm{ font-size:14px; line-height:26px; font-weight:600; }
.caption{ font-size:10px; line-height:16px; font-weight:600; }

/* ---- Page container (contained sections, max 1600px) ---- */
.container-page{
    max-width: var(--page-max);
    margin-inline:auto;
    padding-inline: var(--gutter);
}

/* ---- Buttons (Component 393 variants) ---- */
.btn-safa{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 18px;
    font-size:14px;
    line-height:26px;
    font-weight:600;
    white-space:nowrap;
    border:1px solid transparent;
    transition: all .2s ease;
    flex-direction: row-reverse;
}
.btn-safa svg{ width:20px; height:20px; flex-shrink:0; }

.btn-safa--outline{
    border-color: var(--yellow-10);
    color: var(--yellow-10);
    background:transparent;
}
.btn-safa--outline:hover{ background: rgba(255,231,76,.1); }

.btn-safa--soft{
    border-color: var(--yellow-9);
    color: var(--yellow-9);
    background: rgba(255,212,0,.15);
}
.btn-safa--soft:hover{ background: rgba(255,212,0,.25); }

.btn-safa--solid{
    background: var(--yellow-9);
    color: var(--black-5);
}
.btn-safa--solid:hover{ background: var(--yellow-10); }

.btn-safa--ghost-dark{
    border-color: var(--gray-300);
    color: var(--gray-300);
    background: transparent;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
    position: relative;
    background: var(--black-4);
    z-index: 50;
}
.site-header .header-inner{
    max-width: var(--page-max);
    margin-inline:auto;
    padding: 20px var(--gutter);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}
.site-header .logo img{ height:44px; width:auto; }

.site-header .header-icons{
    display:flex;
    align-items:center;
    gap:8px;
    order:3;
}
.icon-btn{
    width:44px; height:44px;
    display:flex; align-items:center; justify-content:center;
    background: rgba(255,212,0,.8);
    color: var(--black-5);
    border:none;
}
.icon-btn svg{ width:22px; height:22px; }

.main-nav{
    order:2;
    flex:1;
}
.main-nav ul{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:4px;
}
.main-nav a{
    display:flex;
    align-items:center;
    padding:8px;
    font-size:14px;
    line-height:24px;
    font-weight:600;
    color: var(--white);
    white-space:nowrap;
}
.main-nav a.active{ color: var(--yellow-12); }

.navbar-toggler-safa{
    display:none;
    order:1;
    background:transparent;
    border:1px solid var(--yellow-9);
    color:var(--yellow-9);
    padding:6px 10px;
}



/* =========================================================
   SOLUTIONS ACCORDION ("راهکارهای سازه‌ای سافا")
   ========================================================= */
.solutions{
    background: var(--white);
    padding: 64px 0 0;
}
.solutions-head{
    max-width: 1598px;
    margin: 0 auto 48px;
    padding-inline: var(--gutter);
    text-align:right;
}
.solutions-head h2{ color:var(--black-5); }
.solutions-head p{ color:var(--gray-300); margin-top:8px; }

.solutions-cards{
    position:relative;
    display:flex;
    width:100%;
    border-top:1px solid #eee;
    overflow:hidden;
}

/* ---- Shared full-section background image (per active card) ---- */
.solutions-bg{
    position:absolute;
    inset:0;
    z-index:0;
}
.solutions-bg .bg-layer{
    position:absolute; inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition: opacity .6s ease;
}
.solutions-bg .bg-layer.active{ opacity:1; }
.solutions-bg::after{
    content:"";
    position:absolute; inset:0;
    background: linear-gradient(to top, rgba(30,30,30,.94), rgba(30,30,30,.6));
}

/* ---- Card ---- */
.solution-card{
    position:relative;
    z-index:1;
    flex: 1 1 0;
    min-width:0;
    padding: 56px 40px;
    /*border-left:1px solid rgba(255,255,255,.15);*/
    border-left: 1px solid;
    border-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1),
        rgba(255, 212, 0, 1) 100%
    ) 1;
    cursor:pointer;
    overflow:hidden;
    background: transparent; /* transparent always so the shared bg shows across the whole row */
    transition: flex-grow .6s ease;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    min-height: 820px;
}
.solution-card:last-child{ border-left:none; }
.solution-card.active{
    flex-grow: 1.6;
}

/* ---- Icon + title block (rotates when inactive) ---- */
.card-head{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
    min-height:220px;
}
.solution-card .icon-wrap{
    width:96px; height:96px;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
}
.solution-card:not(.active) .icon-wrap img {
    transform: translateY(-80px);
}
.solution-card:not(.active) .card-titles {
    transform: rotate(90deg) translatex(40px);
}


    .card-titles{
    display:flex;
    flex-direction:column;
    gap:4px;
    white-space:nowrap;
    transform: rotate(90deg);
    transition: transform .5s ease, color .4s ease;
}
.solution-card.active .card-titles{ transform: rotate(0deg); }

.card-titles h3{
    color: var(--white);
    font-size:22px; line-height:36px; font-weight:600;
    margin:0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    z-index: 2;
}
.card-titles .en-title{
    white-space: normal;
    width: 290px;
    line-height: 2em;
    font-size: 36px;
    font-weight: 200;
    text-align: center;
}
.solution-card.active .card-titles h3{ color: var(--white); }
.solution-card.active .card-titles .en-title{ color: rgba(40, 40, 40, 1);text-align: center; }





.solution-card:not(.active) .card-titles {
    position: relative;
    transform: rotate(90deg) translateX(40px);
}

.solution-card:not(.active) .card-titles .en-title {
    white-space: normal;
    width: 290px;
    line-height: 2em;
    font-size: 36px;
    color: rgba(40, 40, 40, 1);
    font-weight: 200;
    text-align: center;
}

.solution-card:not(.active) .card-titles h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    z-index: 2;
}

/* ---- Revealed content on active ---- */
.card-body{
    max-height:0;
    opacity:0;
    /* overflow:hidden; */
    width:100%;
    transition: max-height .6s ease, opacity .5s ease, margin .6s ease;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:16px;
}
.solution-card.active .card-body{
    max-height:275px;
    opacity:1;
    margin-top:24px;
    justify-content: center;
}

.card-label{
    display:inline-flex;
    align-items:center;
    height:32px;
    padding:0 12px;
    background: rgba(255, 255, 255, 0.3);
    color: rgba(245, 245, 245, 1);
    font-size:14px; line-height:28px; font-weight:500;
}

.card-desc{
    text-align:justify;
    color: var(--gray-50-3);
    font-size:16px;
    line-height:28px;
    max-width:420px;
}

.card-actions{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin-top:8px;
}


/* =========================================================
   SPECS STRIP ("مشخصات فنی و استانداردهای تولید")
   ========================================================= */
.specs{
    padding: 64px 0;
    background: var(--white);
}
.specs h2{ color:var(--black-5); margin-bottom:40px; }
.specs-list{
    display:flex;
    align-items:stretch;
    justify-content:center;
    flex-wrap:wrap;
}
.spec-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    padding:32px;
    width:240px;
    text-align:center;
}
.spec-item .spec-icon {
    transition: all ease-in-out 0.3s;
}
.spec-item:hover .spec-icon{
    background-color:var(--yellow-9);
    transition: all ease-in-out 0.3s;

}
.spec-item:hover .spec-icon svg path[stroke="#FFD400"]{
    stroke: #FFF;
}
.spec-item:hover h4 , .spec-item:hover p {

}

.spec-divider{
    width:1px;
    background:#e2e2e2;
    align-self:center;
    height:120px;
}
.spec-icon{
    width:56px; height:56px;
    border-radius:2px;
    background: rgba(255,212,0,.2);
    display:flex; align-items:center; justify-content:center;
    color:var(--yellow-9);
}
.spec-icon svg{ width:40px; height:40px; }
.spec-item h4{ font-size:20px; line-height:36px; font-weight:500; color:var(--black-5); margin:0; }
.spec-item p{ font-size:16px; line-height:28px; color:var(--black-5); margin:0; }

/* =========================================================
   WHY SAFA ("چرا سافا را برای پروژه خود انتخاب کنید؟")
   ========================================================= */
.why-safa{
    position:relative;
    display:flex;
    align-items:stretch;
    min-height: 535px;
    overflow:hidden;
}

.why-safa-content{
    flex: 0 0 40%;
    max-width:40%;
    position:relative;
    z-index:2;
    background: var(--black-4);
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding: 48px calc((100vw - min(100vw, var(--page-max))) / 2 + var(--gutter)) 48px 64px;
}
.why-safa-content h2{ color:var(--white); text-align:right;margin-bottom: 32px; }

.why-item{
    display:flex;
    align-items:flex-start;
    justify-content:flex-end;
    gap:24px;
    padding: 16px 0;
    text-align:right;
    flex-direction:row-reverse;
}
.why-item .icon-badge{
    width:56px; height:56px;
    background: rgba(255,212,0,.2);
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
    color: var(--yellow-9);
}
.why-item .icon-badge svg{ width:40px; height:40px; }
.why-item .why-text h4{ color:var(--white); font-size:20px; line-height:36px; font-weight:500; margin:0; }
.why-item .why-text p{ color:var(--gray-50-2); font-size:16px; line-height:28px; margin:0; }

/* ---- Left side: full image ---- */
.why-safa-image{
    flex: 0 0 60%;
    max-width:60%;
    position:relative;
    overflow:hidden;
}
.why-safa-image:before {
    content:"";
    position:absolute;
    right:0;
    width:340px;
    height:100%;
    background: linear-gradient(270deg, #1E1E1E 42.65%, rgba(30, 30, 30, 0) 100%);
    z-index:1;
    pointer-events:none;
}
.why-safa-image img{
    width:100%; height:100%;
    object-fit:cover;
    display:block;
}

/* ---- White corner triangles cut into the left image ---- */
.why-safa::before,
.why-safa::after{
    content:"";
    position:absolute;
    left:0;
    width:140px;
    height:60px;
    background: var(--white);
    z-index:3;
    pointer-events:none;
}
.why-safa::before{
    width: 100%;
    top:0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}
.why-safa::after{
    width: 100%;
    bottom:0;
    clip-path: polygon(0 100%, 100% 100%, 0 0);
}

/* ---- Responsive ---- */
@media (max-width: 991.98px){
    .why-safa{ flex-direction:column; min-height:auto; }
    .why-safa-content,
    .why-safa-image{ flex:1 1 100%; max-width:100%; }
    .why-safa-content{ padding: 48px 24px; }
    .why-safa-image{ height:320px; }
    .why-safa::before{ clip-path: polygon(0 0, 100% 0, 0 50%); }
    .why-safa::after{ clip-path: polygon(0 100%, 100% 100%, 0 50%); }
}

@media (max-width: 575.98px){
    .why-safa-content{ padding: 32px 16px; }
    .why-safa-image{ height:240px; }
}

/* =========================================================
   PROJECT GALLERY ("نمونه پروژه‌های اجرا شده")
   ========================================================= */
.gallery{ padding: 64px 0 0; background:var(--white); }
.gallery-head{
    max-width:1598px;
    margin:0 auto 48px;
    padding-inline: var(--gutter);
    display:flex;
    align-items:center;
    gap:40px;
    flex-direction: row-reverse;
}
.gallery-head .btn-safa{ flex-shrink:0; }
.gallery-head .texts{ text-align:right; flex:1; }
.gallery-head h2{ color:var(--black-5); }
.gallery-head p{ color:var(--gray-300); margin-top:8px; }

.gallery-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
}
.gallery-grid img{
    width:100%; height:360px; object-fit:cover;
}


/* =========================================================
   PROJECT GUIDE TABS ("راهنمای انتخاب سازه بر اساس نوع پروژه")
   ========================================================= */
.guide{
    display:flex;
    min-height: 700px;
    background: var(--yellow-9);
    flex-direction: row-reverse;
}
.guide-image{
    flex: 0 0 50%;
    max-width:50%;
    position:relative;
    overflow:hidden;
}
.guide-image img{
    width:100%; height:100%; object-fit:cover;
    position:absolute; inset:0;
    opacity:0;
    transition: opacity .4s ease;
}
.guide-image img.active{ opacity:1; }

.guide-content{
    flex:1 1 50%;
    display:flex;
    align-items:center;
    padding: 64px calc((100vw - min(100vw, var(--page-max))) / 2 + var(--gutter)) 64px 96px;;
}
.guide-content-inner{ width:100%; display:flex; flex-direction:column; gap:24px; }
.guide-content h2{ color:var(--black-5); text-align:right; }
.guide-content > .guide-content-inner > p{ color:var(--black-5); text-align:justify; }

.guide-panel{
    background: var(--yellow-9);
    width:100%;
}
.guide-tabs{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:8px;
}
.guide-tabs button{
    background:transparent;
    border:none;
    border-bottom:2px solid transparent;
    padding:8px 12px;
    font-size:20px;
    line-height:36px;
    font-weight:500;
    color: var(--black-5);
    opacity:.35;
    white-space:nowrap;
    transition: opacity .2s ease;
}
.guide-tabs button.active{
    opacity:1;
    border-bottom-color: var(--black-4);
}

.guide-panel-body{ padding:24px 8px; }
.guide-pane{ display:none; }
.guide-pane.active{ display:flex;flex-direction:column;align-items:flex-start; }

.guide-badge{
    display:inline-flex;
    align-items:center;
    height:32px;
    padding:0 12px;
    background: var(--yellow-10);
    color: var(--yellow-7);
    font-size:16px; line-height:28px; font-weight:500;
    margin-bottom:16px;
}
.guide-pane h3{ color:var(--black-4); text-align:right; margin-bottom:8px; }
.guide-pane .guide-summary{ color:var(--black-4); text-align:justify; margin-bottom:16px; }
.guide-features{ display:flex; flex-direction:column; gap:16px; margin-bottom:24px; align-items:flex-start;}
.guide-features li{
    display:flex; align-items:center; justify-content:flex-end; gap:8px;
    font-size:14px; font-weight:600; color:var(--black-4);flex-direction: row-reverse;
}
.guide-features li svg{ width:20px; height:20px; flex-shrink:0; color:var(--black-4); }

/* =========================================================
   QUOTE FORM ("فرم استعلام قیمت سازه خورشیدی")
   ========================================================= */
.quote{
    background: var(--gray-50-3);
    padding: 64px 0;
}
.quote-wrap{
    display:flex;
    gap:32px;
    align-items:flex-start;
    justify-content:space-between;
    flex-wrap:wrap;
    flex-direction: row-reverse;
}
.quote-form, .quote-info{ flex:1 1 480px; max-width:624px; }

.quote-info h2{ color:var(--black-5); text-align:right; }
.quote-info > p{ color:var(--black-5); text-align:right; margin-top:16px; margin-bottom:24px; }
.quote-info ul{ display:flex; flex-direction:column; gap:16px;align-items:flex-start;}
.quote-info li{
    display:flex; align-items:center; justify-content:flex-end; gap:8px;
    font-size:14px; font-weight:600; color:var(--black-4); text-align:justify;flex-direction:row-reverse;
}
.quote-info li svg{ width:20px; height:20px; color: var(--yellow-9); flex-shrink:0; }

.field{ display:flex; flex-direction:column; align-items:flex-end; gap:0; width:100%; }
.field label{ font-size:12px; line-height:22px; font-weight:500; color: var(--gray-200); width:100%; text-align:right; }
.field .control{
    border:1px solid var(--border-gray);
    height:40px; width:100%;
    padding:0 12px;
    display:flex; align-items:center;
    background:transparent;
}
.field input, .field select, .field textarea{
    border:none; outline:none; width:100%; background:transparent;
    font-family:inherit; font-size:14px; color:var(--black-4); text-align:right;
}
.field select{ appearance:none; -webkit-appearance:none; }
.form-row{ display:flex; gap:17px; width:100%; margin-bottom:16px; flex-wrap:wrap; }
.form-row .field{ flex:1 1 200px; }

.quote-form .btn-safa{ width:100%; margin-top:16px; }

/* =========================================================
   PROCESS STEPS ("فرآیند همکاری با سافا")
   ========================================================= */
.process{ padding:64px 0; background:var(--white); }
.process h2{ text-align:center; color:var(--black-5); margin-bottom:40px; }
.process-steps{
    position:relative;
    display:flex;
    gap:32px;
    flex-wrap:wrap;
}
.process-steps::before{
    content:"";
    position:absolute;
    top:20px; right:12%; left:12%;
    height:1px;
    background:#e2e2e2;
    z-index:0;
}
.process-step{
    position:relative;
    z-index:1;
    flex:1 1 220px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:24px;
    text-align:center;
}
.step-number{
    width:40px; height:40px;
    background: var(--yellow-11);
    color: var(--gray-200);
    display:flex; align-items:center; justify-content:center;
    font-size:26px; font-weight:200;
}
.step-card{
    background:var(--white);
    padding:32px 16px;
    display:flex; flex-direction:column; align-items:center; gap:24px;
    width:100%;
    border: 1px solid rgba(169, 169, 169, 0.1);
}
.step-card:hover{
    border: 1px solid #FFD400;
    box-shadow: 4px 4px 20px rgba(255, 212, 0, 0.2);
}
.step-card .step-icon {
    transition: all ease-in-out 0.3s;
}
.step-card:hover .step-icon{
    background: var(--yellow-9);
    transition: all ease-in-out 0.3s;
}
.step-card:hover .step-icon img{
    filter: brightness(0);
}
.process-step:hover .step-number{
    background: var(--yellow-9);
    color: #000;
}


    .step-icon{
    width:96px; height:96px;
    background: var(--yellow-12);
    display:flex; align-items:center; justify-content:center;
    color: var(--yellow-9);
}
.step-icon svg{ width:56px; height:56px; }
.step-card h4{ font-size:20px; line-height:36px; font-weight:500; color:var(--black-4); margin:0; }
.step-card p{ font-size:16px; line-height:28px; color:var(--gray-300); margin:0; max-width:304px; text-align: center;}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--black-5); position:relative; }

.footer-catalog{
    background:var(--white);
    position:relative;
    overflow:hidden;
}
.footer-catalog-inner{
    max-width: var(--page-max);
    margin-inline:auto;
    padding: 20px var(--gutter);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    flex-wrap:wrap;
}
.footer-catalog-cta{
    display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}
.footer-catalog-cta p{ color:var(--gray-300); font-size:20px; font-weight:500; margin:0; }
.footer-catalog .logo img{ height:60px; }

.footer-main{ padding: 48px 0 0; }
.footer-nav ul{
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
    max-width: var(--page-max); margin:0 auto; padding-inline:var(--gutter);
}
.footer-nav a{ color: var(--gray-50-3); font-size:16px; font-weight:500; padding:8px 12px; }

.footer-divider{ border:none; border-top:1px solid rgba(255,255,255,.12); margin:32px 0; }

.footer-contact{
    max-width: var(--page-max); margin:0 auto; padding-inline:var(--gutter);
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px;
}
.footer-email{
    display:flex; align-items:center; gap:12px;
    background: var(--yellow-9);
    color: var(--black-4);
    padding: 12px 24px;
}
.footer-email span{ font-weight:500; font-size:18px; }
.footer-social{ display:flex; align-items:center; gap:16px; }
.footer-social a{ width:36px; height:36px; display:flex; align-items:center; justify-content:center; color:var(--black-4); background:var(--white); border-radius:50%; }
.footer-social a svg{ width:18px; height:18px; }

.footer-meta{ display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.footer-meta-item{ display:flex; align-items:center; gap:8px; color: var(--gray-50-3); font-size:16px; }
.footer-meta-item svg{ width:22px; height:22px; color:var(--yellow-9); }

.footer-bottom{
    background: var(--black-5);
    border-top:1px solid rgba(255,255,255,.08);
    margin-top:36px;
    padding: 20px var(--gutter);
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
}
.footer-copy{ color:var(--white); font-size:16px; }
.footer-copy .brand{ color: var(--yellow-9); }
.footer-behido{ display:flex; align-items:center; gap:8px; color:var(--gray-50-3); font-size:12px; }
.back-to-top{
    width:40px; height:40px;
    background: var(--yellow-9);
    color: var(--black-4);
    display:flex; align-items:center; justify-content:center;
    border:none;
}

/* =========================================================
   RESPONSIVE — TABLET (<=991px) & MOBILE (<=767px)
   ========================================================= */
@media (max-width: 991.98px){
    .container-page{ padding-inline: 24px; }

    .navbar-toggler-safa{ display:inline-flex; align-items:center; }
    .main-nav{ order:4; flex-basis:100%; display:none; }
    .main-nav.open{ display:block; margin-top:16px; }
    .main-nav ul{ flex-direction:column; align-items:flex-end; }
    .site-header .header-inner{ flex-wrap:wrap; }

    .hero{ min-height:520px; }
    .hero-inner{ padding:80px 24px 48px; gap:24px; }
    .hero-titles h1{ font-size:26px; line-height:42px; }
    .hero-titles h2{ font-size:20px; line-height:34px; }


    .solution-card:not(.active) .card-titles .en-title {
        line-height: 1.7em;
        font-size: 31px;
    }
    .solution-card{ border-left:none; border-bottom:1px solid #eee; min-height:20svh;height:20svh; padding:32px 24px; }
    .solution-card:last-child{ border-bottom:none; }
    .solutions-cards{ flex-direction:column; }
    .solution-card.active{ flex-grow:1;min-height:90svh;height:90svh; }
    .card-titles{ transform:none !important; }
    .card-head{ min-height:auto; }
    .solution-card:not(.active) .icon-wrap img {transform: translateY(6px);}
    .solution-card .icon-wrap {
        width: 70px;
        height: 70px;
    }
    .solution-card.active .card-body {
	    max-height: 100%;
    }

    .card-titles .en-title {line-height: 1em;}
    .solution-card:not(.active) .card-titles .en-title {line-height: 1.3em;}
    .card-titles h3 {top: 25%;font-size: 18px;}
    .solution-card:not(.active) .card-titles h3 {top: 40%;}
    .solution-card.active .card-body {
	max-height: 100%;
	justify-content: flex-start;
	margin-top: 50px;
}


    .specs-list{ justify-content:flex-start; }
    .spec-divider{ display:none; }
    .spec-item{ width:33.33%; padding:16px; }

    .why-safa{ clip-path:none; min-height:auto; }
    .why-safa-content{ margin-inline:auto; padding:48px 24px; max-width:100%; }
    .why-safa .bg-imgs{ position:absolute; inset:0; opacity:.25; }

    .gallery-head{ flex-direction:column; align-items:flex-start;}
    .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
    .gallery-grid img{ height:280px; }

    .guide{ flex-direction:column; }
    .guide-image{ max-width:100%; flex:0 0 320px; height:320px; position:relative; }
    .guide-content{ padding:40px 24px; }
    .guide-tabs{ justify-content:flex-start; gap:16px; }
    .guide-tabs button{ font-size:16px; line-height:28px; padding:6px 4px; }

    .process-steps::before{ display:none; }
    .process-steps{ gap:24px; }
    .process-step{ flex:1 1 45%; }

    .footer-catalog-inner{ flex-direction:column; text-align:center; }
    .footer-nav ul{ justify-content:flex-start; }
    .footer-contact{ flex-direction:column; align-items:flex-end; }
}

@media (max-width: 575.98px){
    .hero-titles h1{ font-size:22px; line-height:34px; }
    .hero-titles h2{ font-size:17px; line-height:28px; }
    .hero-cta{ flex-direction:column; width:100%; }
    .hero-cta [class^="btn-sfe-yellow"]{ width:100%; }

    .solutions-head, .gallery-head, .process h2, .specs h2{ text-align:center; }
    .spec-item{ width:50%; gap: 5px;}
    .spec-item h4 {
  font-size: 18px;
    }
    .spec-item p {
        font-size: 15px;
        line-height: 23px;
        text-align: center;
    }

    .gallery-grid{ grid-template-columns: 1fr; }
    .gallery-grid img{ height:240px; }

    .guide-content{ padding:32px 16px; }
    .guide-tabs{ gap:8px; }

    .quote-wrap{ flex-direction:column; }
    .form-row{ flex-direction:column; gap:12px; }

    .process-step{ flex:1 1 100%; }

    .footer-nav ul{ flex-direction:column; align-items:flex-end; }
    .footer-meta{ flex-direction:column; align-items:flex-end; }
    .footer-bottom{ flex-direction:column; text-align:center; }

    .why-safa-image::before {
        width: 100%;
        background: linear-gradient(180deg, #1E1E1E 42.65%, rgba(30, 30, 30, 0) 100%);
        height: 20%;
    }
    .form-row .field { flex: 1 1 0;}
    .quote-form, .quote-info {
        width: 100%;
    }
    .step-icon {
  width: 70px;
  height: 70px;
    }
    .step-icon svg {
	width: 45px;
	height: 45px;
}
.step-card {
    padding: 16px 16px;
	gap: 12px;
}
}
