/* DARCHIN HOME — visual identity: #0e3b2e forest, #b64e2e cinnamon,
   #f4ebdd cream, #c97f4f copper. Deliberately no :root variables. */

/* GLOBAL HOME ELEMENTS */
.section-intro { text-align: center; }
.section-intro h2 { margin: 4px 0 12px; font-size: clamp(27px, 3vw, 44px); font-weight: 900; line-height: 1.6; letter-spacing: -.6px; }
.section-intro p:not(.section-eyebrow) { font-size: 13px; margin: 0 auto; line-height: 2.1; }
.section-intro--light { color: #f8efe3; }
.section-eyebrow { color: #a66a40; font-size: 12px; font-weight: 800; margin: 0; }

/* HERO — replacement for old styles; background is a real image in pictures/ */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 760px;
    overflow: hidden;
    background: #081710;
    color: #f4ebdd;
}
.hero::before, .hero::after { content: none; }
.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(270deg, rgba(0, 14, 10, .58) 0%, rgba(0, 10, 8, .25) 38%, rgba(0, 0, 0, .02) 80%),
                linear-gradient(180deg, rgba(0, 0, 0, .23), transparent 28%, rgba(0, 0, 0, .16));
}
.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 760px;
    padding-top: 100px;
    padding-bottom: 70px;
    direction: rtl;
}
.hero-copy {
    width: min(100%, 600px);
    margin: 0;
    padding: 0;
    text-align: right;
}
.hero h1 {
    margin: 0 0 24px;
    color: #f4ebdd;
    font-size: clamp(58px, 6.2vw, 112px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.32;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .26);
}
.hero-text {
    margin: 0 0 30px;
    font-size: clamp(19px, 1.75vw, 26px);
    font-weight: 700;
    line-height: 1.9;
    color: #f4ebdd;
    text-shadow: 0 2px 15px rgba(0, 0, 0, .35);
}
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 47px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #f4ebdd;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn-primary { background: #0e3b2e; border-color: #266b54; }
.hero-btn-primary:hover { background: #17664f; }
.hero-btn-secondary { background: rgba(24, 18, 12, .32); border-color: rgba(244,235,221,.45); }
.hero-btn-secondary:hover { background: rgba(244,235,221,.16); }
.hero-side {
    position: absolute;
    top: 50%;
    z-index: 2;
    writing-mode: vertical-rl;
    font-size: 12px;
    letter-spacing: .6px;
    color: #d7c7b7;
    pointer-events: none;
}
.hero-side-right { right: 24px; transform: translateY(-50%); }
.hero-side-left { left: 24px; transform: translateY(-50%) rotate(180deg); }

@media (max-width: 1100px) {
    .hero, .hero-content { min-height: 680px; }
    .hero-copy { width: min(100%, 510px); }
    .hero h1 { font-size: clamp(58px, 7vw, 82px); }
}
@media (max-width: 768px) {
    .hero, .hero-content { min-height: 730px; }
    .hero-background { object-position: 38% center; }
    .hero-overlay {
        background: linear-gradient(0deg, rgba(1, 14, 10, .94) 0%, rgba(1, 14, 10, .72) 34%, rgba(1, 14, 10, .10) 80%),
                    linear-gradient(270deg, rgba(0, 0, 0, .12), transparent 70%);
    }
    .hero-content { align-items: flex-end; padding-top: 120px; padding-bottom: 70px; }
    .hero-copy { width: 100%; max-width: 550px; padding: 0; }
    .hero h1 { font-size: clamp(52px, 10vw, 76px); line-height: 1.25; margin-bottom: 14px; }
    .hero-text { font-size: clamp(16px, 3.3vw, 21px); margin-bottom: 23px; }
    .hero-side { display: none; }
}
@media (max-width: 480px) {
    .hero, .hero-content { min-height: 680px; }
    .hero-background { object-position: 34% center; }
    .hero-content { padding-bottom: 58px; }
    .hero h1 { font-size: clamp(46px, 12vw, 62px); }
    .hero-text { font-size: 16px; }
    .hero-actions { gap: 10px; }
    .hero-btn { padding: 10px 17px; font-size: 12px; }
}

/* BRANDS */
.brands { background: #f1e5d4; color: #312015; padding: 25px 0 20px; overflow: hidden; }
.brands__title { font-size: 13px; text-align: center; margin: 0 0 18px; font-weight: 700; }
.brands__carousel { display: flex; gap: 15px; align-items: center; }
.brands__arrow { flex: none; width: 26px; height: 36px; border: 0; display: grid; place-items: center; background: transparent; color: #a47954; }
.brands__arrow:hover { color: #0e3b2e; }
.brands__track { overflow-x: auto; scrollbar-width: none; flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; scroll-snap-type: x mandatory; }
.brands__track::-webkit-scrollbar { display: none; }
.brand-chip { min-width: 130px; flex: 1 0 130px; display: flex; flex-direction: column; align-items: center; gap: 2px; scroll-snap-align: center; white-space: nowrap; font-size: 12px; font-weight: 800; }
.brand-chip__visual { position: relative; display: grid; place-items: center; height: 43px; width: 65px; }
.brand-chip__visual img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; }
.brand-chip__emblem { display: block; height: 43px; line-height: 40px; font-size: 37px; font-family: Georgia,serif; color: #24261b; filter: grayscale(1); }

/* SERVICES */
.services { position: relative; padding: 51px 0 76px; min-height: 615px; background: radial-gradient(ellipse at 50% 0%, #073329 0%, #051c17 56%, #03110d 100%); isolation: isolate; overflow: hidden; }
.services__leaves { position: absolute; z-index: -1; inset: 0; opacity: .25; background: radial-gradient(ellipse 55% 32% at -9% 36%, #1b5d49, transparent 78%), radial-gradient(ellipse 56% 42% at 105% 43%, #1b5342, transparent 79%); }
.services__leaves::before, .services__leaves::after { position: absolute; content: ''; width: 55%; height: 190px; border: 1px solid #478166; border-radius: 100% 3% 100% 3%; transform: rotate(-19deg); }
.services__leaves::before { left: -24%; top: 50px; }
.services__leaves::after { right: -24%; top: 100px; transform: rotate(21deg) scaleX(-1); }
.services__intro { position: relative; margin-bottom: 35px; }
.services__intro h2 { font-size: clamp(27px, 2.9vw, 42px); line-height: 1.4; margin: 4px 0 10px; }
.services__intro p:not(.section-eyebrow) { max-width: 550px; color: #d7d7cd; }
.services__more { position: absolute; left: 0; bottom: -1px; }
.services-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 15px; }
.service-card { min-height: 340px; position: relative; overflow: hidden; border-radius: 15px; isolation: isolate; border: 1px solid rgba(255,255,255,.07); background: #252016; transition: transform .3s ease, border-color .3s; }
.service-card:hover { transform: translateY(-6px); border-color: rgba(216,155,100,.7); }
.service-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,18,14,.68) 0%, rgba(22,20,15,.66) 38%, rgba(9,11,9,.08) 100%), radial-gradient(ellipse at 60% 90%, #745337 0%, #2b281d 40%, #1b221a 100%); }
.service-card--marketing::before { background: linear-gradient(180deg, #26231ddc, transparent), radial-gradient(ellipse at 35% 87%, #617044, #2b3023 53%, #111815); }
.service-card--branding::before { background: linear-gradient(180deg, #2a221ddd, transparent), radial-gradient(ellipse at 32% 86%, #995b37, #34241e 49%, #181918); }
.service-card--content::before { background: linear-gradient(180deg, #29231bdf, transparent), radial-gradient(ellipse at 65% 93%, #62533e, #25241d 50%, #131b17); }
.service-card--development::before { background: linear-gradient(180deg, #25201de5, transparent), radial-gradient(ellipse at 40% 90%, #3a5061, #2e302a 53%, #111a18); }
.service-card__photo { position: absolute; inset: 0; z-index: 0; }
.service-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.service-card__photo::after { content: ''; position: absolute; bottom: -35px; left: 12%; width: 76%; height: 48%; border-radius: 24px 24px 6px 6px; box-shadow: 0 16px 30px rgba(0,0,0,.45); border: 2px solid rgba(229,189,142,.15); background: linear-gradient(135deg, rgba(229,204,163,.17), rgba(0,0,0,.5)); transform: rotate(-8deg); pointer-events: none; }
.service-card--content .service-card__photo::after { border-radius: 55% 55% 12px 12px; transform: rotate(8deg); }
.service-card--branding .service-card__photo::after { width: 60%; left: 20%; transform: rotate(-21deg); }
.service-card__content { position: relative; z-index: 2; padding: 28px 10px 0; text-align: center; }
.service-card__icon { display: grid; place-items: center; margin: 0 auto 15px; width: 46px; height: 46px; background: #d7c0a8; color: #47301e; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.service-card__icon .icon { width: 24px; height: 24px; }
.service-card h3 { font-size: clamp(12px, 1.16vw, 16px); font-weight: 800; color: #fff3e4; line-height: 1.55; margin: 0 0 5px; }
.service-card p { font-size: 10px; line-height: 1.7; color: #e3d4c0; margin: 0; }
.service-card__number { position: absolute; left: 14px; bottom: 8px; opacity: .37; font: 12px Arial,sans-serif; z-index: 1; }

/* PORTFOLIO */
.portfolio { position: relative; margin-top: -24px; padding: 47px 0 69px; background: #f1e6d8; color: #261a13; border-radius: 44% 44% 0 0 / 23px 23px 0 0; z-index: 1; overflow: hidden; }
.portfolio::before { content: ''; position: absolute; left: -6%; top: 80px; width: 23%; height: 80%; border: 1px solid rgba(181,133,96,.17); border-radius: 80% 0 80% 0; transform: rotate(-30deg); pointer-events: none; }
.portfolio__container { position: relative; }
.portfolio__intro h2 { margin-bottom: 12px; font-size: clamp(27px, 2.8vw, 42px); }
.portfolio-controls { display: flex; align-items: center; justify-content: center; margin-bottom: 19px; position: relative; }
.portfolio-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.portfolio-filter { background: transparent; border: none; border-radius: 30px; padding: 5px 15px; color: #65574e; font-size: 12px; font-weight: 600; transition: background .2s; }
.portfolio-filter.is-active { background: #70412d; color: #fff7eb; }
.portfolio-filter:hover:not(.is-active) { background: #e5d2bf; }
.portfolio-next { position: absolute; left: 0; top: -57px; display: grid; place-items: center; width: 53px; height: 53px; border-radius: 50%; background: #693923; color: #fff3e6; border: 0; transition: background .2s; }
.portfolio-next .icon { width: 23px; height: 23px; }
.portfolio-next:hover { background: #98603d; }
.portfolio-track { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #bd9d7c transparent; padding: 4px 0 15px; }
.project-card { flex: 1 0 calc((100% - 60px) / 5); min-width: 0; max-width: 320px; scroll-snap-align: start; background: #e6d7c5; border-radius: 13px; overflow: hidden; box-shadow: 0 8px 18px rgba(56,37,24,.11); }
.project-card[hidden] { display: none !important; }
.project-card__image { position: relative; height: 225px; overflow: hidden; background: #2e251c; isolation: isolate; }
.project-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.project-card__image::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 58%, rgba(0,0,0,.18)); }
.project-card__art { position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; font-weight: 900; font-size: clamp(24px, 2.6vw, 43px); }
.project-card__art--negar { color: #743b2f; background: radial-gradient(circle at 40% 40%, #f5dfd0, #b99f83 68%, #7d5346); }
.project-card__art--sayyad { color: #f2d8b5; background: radial-gradient(circle at 50% 75%, #2370a0, #2e5066 32%, #c9c39f 68%, #a88e71); }
.project-card__art--dorban { color: #ad602e; background: linear-gradient(35deg, #f5d9c3, #f6f0e8 61%, #c4a18a); font-size: 36px; }
.project-card__art--abrisham { color: #bd8b53; background: radial-gradient(ellipse at 50% 75%, #4a2613, #12130f 68%); font-size: 33px; }
.project-card__art--meta { color: #ebfff3; background: linear-gradient(135deg, #13534e, #6eb8ad 60%, #122e2e); font-size: 34px; }
.project-card__body { padding: 9px 12px 11px; background: #e9daca; }
.project-card h3 { font-size: 15px; line-height: 1.45; margin: 0; }
.project-card p { margin: 2px 0 0; font-size: 11px; color: #76665b; }
.portfolio-empty { margin-top: 14px; text-align: center; color: #734f3e; }
.portfolio-empty[hidden] { display: none; }

/* PROCESS */
.process { position: relative; padding: 58px 0 65px; min-height: 330px; background: radial-gradient(ellipse at 52% 0%, #492818, #24150f 72%, #160f0c); overflow: hidden; }
.process::before { position: absolute; content: ''; left: -14%; top: -3%; width: 40%; height: 160%; border-radius: 50%; background: radial-gradient(ellipse, rgba(142,88,44,.39), transparent 64%); }
.process::after { content: ''; position: absolute; left: -140px; bottom: -100px; width: 440px; height: 200px; border-radius: 50%; transform: rotate(30deg); border: 36px solid rgba(155,101,56,.15); pointer-events: none; }
.process .section-intro h2 { font-size: clamp(27px, 2.6vw, 39px); }
.process-steps { padding: 0; margin: 39px 0 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; position: relative; }
.process-steps::before { position: absolute; content: ''; z-index: 0; width: 77%; left: 12%; top: 34px; height: 42px; border-top: 1px solid #956c4f; border-radius: 50% 50% 0 0; opacity: .8; }
.process-steps li { text-align: center; position: relative; z-index: 1; }
.process-step__icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: linear-gradient(135deg, #a65f3c, #512e21); color: #f9efe2; margin: 0 auto 12px; box-shadow: 0 8px 25px rgba(0,0,0,.26); }
.process-step__icon .icon { width: 26px; height: 26px; }
.process-steps strong { color: #f8e9db; font-size: 14px; }
.process-steps p { color: #d1bdad; margin: 0; font-size: 12px; }

/* STATS */
.stats { position: relative; background: linear-gradient(100deg, #f3e7d6, #e8d3bd, #f2e5d5); padding: 23px 0; color: #2d1b14; overflow: hidden; }
.stats::after { content: ''; position: absolute; left: -4%; top: 0; width: 23%; height: 190%; transform: rotate(24deg); background: linear-gradient(90deg, transparent, rgba(126,75,39,.12), transparent); pointer-events: none; }
.stats__grid { display: grid; grid-template-columns: repeat(4,1fr); align-items: center; text-align: center; }
.stats__grid div { display: flex; flex-direction: column; gap: 0; }
.stats__grid div strong { font-size: clamp(27px, 3vw, 46px); line-height: 1.3; font-weight: 900; }
.stats__grid div strong span { color: #91532f; margin-right: 2px; }
.stats__grid div > span { color: #665347; font-size: 12px; }

/* TECHNOLOGIES */
.technology { min-height: 325px; background: radial-gradient(ellipse at 49% 20%, #064239 0%, #04241d 38%, #041310 90%); overflow: hidden; }
.technology__grid { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 325px; align-items: center; gap: 30px; }
.technology__copy { padding-block: 54px; align-self: center; }
.technology__copy h2 { color: #f5eadd; font-size: clamp(26px, 2.8vw, 43px); margin: 4px 0 9px; line-height: 1.5; }
.technology__copy > p:not(.section-eyebrow) { font-size: 13px; max-width: 510px; color: #d2ded5; line-height: 2.15; }
.tech-list { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 13px; margin-top: 21px; }
.tech-list span { padding: 5px 12px; border: 1px solid rgba(191,211,194,.27); border-radius: 20px; font: 700 11px Arial,sans-serif; color: #f3f1e7; direction: ltr; background: rgba(14,59,46,.28); }
.technology__scene { min-height: 325px; align-self: stretch; position: relative; isolation: isolate; }
.technology__scene::before { content: ''; position: absolute; inset: 14% -10% -4% 0; z-index: -1; background: radial-gradient(ellipse, rgba(182,103,49,.19), transparent 70%); }
.technology__scene img { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; z-index: 2; }
.technology__code { position: absolute; left: 0; top: 10%; width: 74%; min-height: 230px; padding: 12px 24px 20px; z-index: 0; background: rgba(4,15,13,.85); border: 1px solid rgba(174,142,102,.7); border-radius: 15px; box-shadow: 0 12px 28px rgba(0,0,0,.45); direction: ltr; }
.technology__dots { color: #b56c4a; font-size: 8px; letter-spacing: 5px; display: block; border-bottom: 1px solid rgba(255,255,255,.08); padding-bottom: 8px; }
.technology__code code { color: #afe2c8; display: block; line-height: 1.7; margin-top: 14px; font: 13px/1.8 Consolas,monospace; }
.technology__code code span { color: #697f77; margin-right: 18px; }
.technology__ring { position: absolute; left: 18%; bottom: -54%; width: 78%; aspect-ratio: 1; border-radius: 50%; transform: rotate(-29deg); border: 42px ridge #704025; box-shadow: 13px 10px 0 #2c190e, inset 18px 8px 30px rgba(0,0,0,.55), 0 0 44px rgba(0,0,0,.6); }

/* FINAL CTA */
.final-cta { position: relative; isolation: isolate; overflow: hidden; min-height: 245px; background: linear-gradient(95deg, #3d261c, #76503c 47%, #482d20); display: flex; align-items: center; }
.final-cta::after { position: absolute; content: ''; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent, rgba(40,20,13,.07) 40%, rgba(28,17,10,.42) 100%); }
.final-cta__picture { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.final-cta__inner { position: relative; min-height: inherit; display: flex; align-items: center; justify-content: flex-start; }
.final-cta__copy { padding-block: 36px; position: relative; z-index: 2; width: 65%; }
.final-cta h2 { font-size: clamp(23px, 2.9vw, 41px); line-height: 1.5; margin: 0 0 12px; color: #f6e9da; }
.final-cta p { color: #e5d5c3; margin: 0 0 22px; font-size: 13px; }
.final-cta__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.final-cta__art { position: absolute; left: 6%; bottom: -115px; transform: rotate(-15deg); font: 900 380px Georgia,serif; line-height: 1; color: #5c351e; text-shadow: 5px 0 #8e603d, 12px 4px 22px #170e0a; opacity: .68; }

@media (min-width: 1600px) {
 .service-card { min-height: 380px; }
 .project-card__image { height: 245px; }
}
@media (max-width: 1180px) {
 .services-grid { gap: 10px; }
 .service-card { min-height: 310px; }
 .service-card__content { padding: 24px 7px 0; }
 .service-card__icon { margin-bottom: 12px; }
 .services__more { position: static; margin-top: 18px; }
 .project-card { flex-basis: calc((100% - 30px) / 3); }
}
@media (max-width: 900px) {
 .brands__track { justify-content: flex-start; }
 .services { padding-block: 48px 58px; }
 .services-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
 .service-card { min-height: 320px; }
 .service-card h3 { font-size: 15px; }
 .service-card p { font-size: 11px; }
 .project-card { flex: 0 0 35%; }
 .portfolio-filters { margin-left: 60px; }
 .process-steps { gap: 8px; }
 .technology__grid { grid-template-columns: 1.2fr 1fr; }
 .technology__code { width: 92%; left: -14%; }
}
@media (max-width: 680px) {
 .brands { padding: 22px 0 19px; }
 .brands__title { font-size: 12px; }
 .brand-chip { min-width: 118px; flex-basis: 118px; }
 .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .services__intro { margin-bottom: 23px; }
 .service-card { min-height: 295px; }
 .service-card__content { padding-inline: 10px; }
 .service-card h3 { font-size: 13px; }
 .service-card p { font-size: 10px; }
 .portfolio { padding-block: 44px 55px; }
 .portfolio-controls { display: block; }
 .portfolio-filters { margin-left: 0; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
 .portfolio-filter { white-space: nowrap; flex: none; }
 .portfolio-next { top: -84px; width: 43px; height: 43px; }
 .project-card { flex-basis: 57%; }
 .project-card__image { height: 200px; }
 .process { padding: 46px 0 50px; }
 .process-steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 27px 12px; margin-top: 30px; }
 .process-steps::before { display: none; }
 .stats__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 6px; }
 .technology__grid { grid-template-columns: 1fr; gap: 0; }
 .technology__copy { padding: 38px 0 10px; }
 .technology__scene { min-height: 285px; }
 .technology__code { left: 5%; top: 15%; width: 74%; }
 .technology__ring { bottom: -90%; left: 33%; }
 .final-cta__copy { width: 100%; text-align: center; }
 .final-cta__actions { justify-content: center; }
 .final-cta__art { left: -20%; font-size: 280px; opacity: .28; }
}
@media (max-width: 420px) {
 .services-grid { gap: 10px; }
 .service-card { min-height: 273px; }
 .service-card__icon { width: 41px; height: 41px; }
 .service-card h3 { font-size: 12px; }
 .service-card p { font-size: 9px; }
 .project-card { flex-basis: 77%; }
 .process-steps strong { font-size: 12px; }
 .process-steps p { font-size: 10px; }
 .tech-list { gap: 7px; }
 .tech-list span { font-size: 10px; }
 .final-cta { min-height: 265px; }
}
/* Small-screen polish: prevent the portfolio arrow from covering the heading. */
@media (max-width: 680px) {
  .services-grid .service-card:last-child { grid-column: 1 / -1; width: calc((100% - 12px) / 2); justify-self: center; }
  .portfolio-controls { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
  .portfolio-filters { flex: 1; min-width: 0; }
  .portfolio-next { position: static; flex: none; width: 40px; height: 40px; }
}
.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    border-radius: 0 0 36px 36px;
    background: #041512;
}

.hero-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 28% center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 720px;
    display: flex;
    align-items: center;
justify-content: flex-start;    padding: 40px 0 10px;
}

/* Darchin - Brands Carousel */

.brand-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.brand-swiper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    direction: rtl;
}

.brand-swiper .swiper-wrapper {
    align-items: stretch;
}

.brand-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.brand-item {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 3px;
    text-align: center;
}

.brand-item img {
    width: 130px;
    max-width: 100%;
    height: 70px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-item:hover img {
    transform: scale(1.06);
}

.brand-item span {
    font-size: 12px;
    font-weight: 700;
    color: #30241C;
    line-height: 1.6;
}

.brand-carousel__arrow {
    flex: 0 0 32px;
    width: 32px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #A47B56;
    font-size: 17px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.brand-carousel__arrow:hover {
    color: #0E3B2E;
}

.brand-carousel__arrow:focus-visible {
    outline: 2px solid #0E3B2E;
    outline-offset: 3px;
    border-radius: 6px;
}

/* Tablet */
@media (max-width: 768px) {
    .brand-carousel {
        gap: 8px;
    }

    .brand-item img {
        width: 105px;
        height: 60px;
    }

    .brand-item span {
        font-size: 11px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .brand-carousel__arrow {
        flex-basis: 24px;
        width: 24px;
    }

    .brand-item img {
        width: 95px;
        height: 54px;
    }

    .brand-item span {
        font-size: 10px;
    }
}

/* ===== DARCHIN SERVICES REDESIGN ===== */

.services {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 64px 0 82px;
    background: radial-gradient(
        ellipse at center 10%,
        #073329 0%,
        #041F19 56%,
        #031610 100%
    );
}

.services__leaves {
    pointer-events: none;
    opacity: 0.32;
}

.services > .container {
    position: relative;
    z-index: 1;
}

/* Section heading */

.services__intro {
    position: relative;
    margin-bottom: 36px;
    text-align: center;
}

.services__intro h2 {
    margin: 7px 0 14px;
    font-size: clamp(27px, 3vw, 43px);
    line-height: 1.45;
    color: #F4EBDD;
}

.services__intro p:not(.section-eyebrow) {
    max-width: 620px;
    margin: 0 auto;
    line-height: 2;
    color: #E4D9CA;
}

.services__more {
    position: absolute;
    left: 0;
    bottom: 0;
    background: #775039;
    border: 1px solid #B58053;
    color: #FFF1DF;
}

.services__more:hover {
    background: #986542;
}

/* Five service cards */

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    direction: rtl;
}

.service-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    min-height: 405px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(215,174,131,0.15);
    background: #211E18;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(215,174,131,0.65);
    box-shadow: 0 20px 36px rgba(0,0,0,0.22);
}

/* Dark overlay for readable text */

.service-card::before,
.service-card--marketing::before,
.service-card--branding::before,
.service-card--content::before,
.service-card--development::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(13,17,13,0.93) 0%,
        rgba(14,18,15,0.83) 25%,
        rgba(15,16,13,0.22) 65%,
        rgba(10,11,9,0.10) 100%
    );
}

/* Card images */

.service-card__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Remove old decorative shapes */

.service-card__photo::after,
.service-card--content .service-card__photo::after,
.service-card--branding .service-card__photo::after {
    display: none;
    content: none;
}

.service-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 54%;
    filter: brightness(0.92);
    transition: transform 0.5s ease;
}

.service-card:hover .service-card__photo img {
    transform: scale(1.045);
}

/* Card heading and icon */

.service-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 10px 0;
    text-align: center;
}

.service-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #E4CDB5;
    color: #30251D;
    box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}

.service-card__icon .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    font-size: 20px;
}

.service-card h3 {
    margin: 0 0 4px;
    font-size: clamp(13px, 1.05vw, 17px);
    font-weight: 800;
    line-height: 1.6;
    color: #FFF1E2;
}

.service-card p {
    margin: 0;
    font-size: clamp(10px, 0.76vw, 12px);
    line-height: 1.8;
    color: #E6D7C7;
}

.service-card__number {
    position: absolute;
    z-index: 2;
    left: 12px;
    bottom: 10px;
    font: 11px Arial, sans-serif;
    color: #FFF0DC;
    opacity: 0.55;
}

/* Medium laptops and tablets */

@media (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .services__more {
        position: static;
        margin-top: 20px;
    }

    .service-card {
        min-height: 410px;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .service-card p {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 48px 0 65px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .service-card {
        min-height: 355px;
    }

    .service-card__icon {
        width: 46px;
        height: 46px;
        margin-bottom: 10px;
    }

    .service-card__content {
        padding: 25px 9px 0;
    }

    .service-card h3 {
        font-size: 14px;
    }

    .service-card p {
        font-size: 11px;
    }
}

/* Mobile phones */

@media (max-width: 520px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .services-grid .service-card:last-child {
        grid-column: auto;
        width: 100%;
        justify-self: stretch;
    }

    .service-card {
        min-height: 365px;
    }

    .service-card__content {
        padding-top: 27px;
    }

    .service-card h3 {
        font-size: 17px;
    }

    .service-card p {
        font-size: 12px;
    }

    .services__intro {
        margin-bottom: 28px;
    }
}
