/* Home: خدماتنا (towers, Figma 42:758) and منهجيتنا (method, Figma 44:912).
   Positions are percentages of the 1307 x 340 tower frame and the 1440 x 390 method frame. */

/* ---------- خدماتنا: towers on a wall, dark panel with a notch ---------- */
.ramah-home-services { background: #e0dad4; }
.ramah-home-services__stage { position: relative; aspect-ratio: 1307 / 372; margin-block: 56px 40px; }
.ramah-home-services__walls { position: absolute; inset: 0; pointer-events: none; }
.ramah-home-services__walls img { position: absolute; top: 42.9%; inline-size: 10.63%; block-size: 42.4%; }
.ramah-home-services__walls img:nth-child(1) { inset-inline-start: 7.88%; }
.ramah-home-services__walls img:nth-child(2) { inset-inline-start: 18.3%; top: 41.4%; block-size: 42.4%; }
.ramah-home-services__walls img:nth-child(3) { inset-inline-start: 26.17%; }
.ramah-home-services__walls img:nth-child(4) { inset-inline-start: 40.47%; }
.ramah-home-services__walls img:nth-child(5) { inset-inline-start: 47.51%; }
.ramah-home-services__walls img:nth-child(6) { inset-inline-start: 60.46%; }
.ramah-home-services__walls img:nth-child(7) { inset-inline-start: 73.37%; }
.ramah-home-services__walls img:nth-child(8) { inset-inline-start: 87.15%; }
.ramah-home-services__towers { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: stretch; margin: 0; padding: 0 0.92%; background: none; box-shadow: none; overflow: visible; }
.ramah-home-tower { flex: 0 0 9.82%; inline-size: 9.82%; min-inline-size: 0; max-inline-size: none; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; background: none; border: 0; box-shadow: none; color: #222325; cursor: pointer; }
.ramah-home-tower__art { display: block; block-size: 90%; inline-size: 100%; }
.ramah-home-tower__svg [stroke-width] { stroke-width: 1.6; }
.ramah-home-tower__svg { display: block; block-size: 100%; inline-size: auto; aspect-ratio: 110 / 290; margin-inline: auto; transition: transform 0.3s var(--ramah-ease); }
.ramah-home-tower:hover .ramah-home-tower__svg, .ramah-home-tower:focus-visible .ramah-home-tower__svg { transform: translateY(-4px); }
.ramah-home-tower[aria-selected="true"] .ramah-home-tower__svg { transform: translateY(-6px); }
.ramah-home-tower__label { padding-block-start: 10px; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center; color: #3b3935; }
.ramah-home-tower[aria-selected="true"] .ramah-home-tower__label { color: #9b1b28; }
/* Active tower turns red: body and door fills of the bundled tower art. */
.ramah-home-services__towers .ramah-home-tower__svg [fill="#E0DAD4"] { fill: #e0dad4; }
.ramah-home-tower[aria-selected="true"] .ramah-home-tower__svg [fill="#DED7C8"] { fill: #9b1b28; }
.ramah-home-tower[aria-selected="true"] .ramah-home-tower__svg [fill="#BFB8A9"] { fill: #78121d; }
.ramah-home-tower:focus-visible { outline: 2px solid #941c1e; outline-offset: 4px; }

.ramah-home-services__panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 96px; row-gap: 28px; align-items: center; min-block-size: 341px; padding: 56px 80px; background: #222325; color: #d8d3cf; border-block-start: 3px solid #941c1e; }
.ramah-home-services__panel::before { content: ""; position: absolute; inset-block-start: -31px; left: calc(var(--ramah-notch-x, 94.4%) - 37px); inline-size: 74px; block-size: 31px; background: #941c1e; clip-path: polygon(50% 0, 100% 100%, 0 100%); pointer-events: none; }
.ramah-home-services__panel::after { content: ""; position: absolute; inset-block-start: -27px; left: calc(var(--ramah-notch-x, 94.4%) - 31px); inline-size: 62px; block-size: 28px; background: #222325; clip-path: polygon(50% 0, 100% 100%, 0 100%); pointer-events: none; }
.ramah-home-services__panel[hidden] { display: none; }
.ramah-home-services__panel:not([hidden]) { animation: ramah-panel-in 0.55s var(--ramah-ease) both; }
.ramah-home-services__copy { display: contents; }
.ramah-home-services__name { grid-column: 1; grid-row: 1; align-self: end; margin: 0; font-size: 34px; line-height: 1.3; font-weight: 700; color: #f1e6d4; }
.ramah-home-services__sub { grid-column: 1; grid-row: 2; align-self: start; margin: 0; font-size: 18px; color: #e6a3a9; }
.ramah-home-services__excerpt { grid-column: 1; grid-row: 3; align-self: start; margin: 0; font-size: 20px; line-height: 1.7; color: #a9a39c; }
.ramah-home-services__list { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; margin: 0; padding: 0; list-style: none; }
.ramah-home-services__list li { position: relative; padding-inline-end: 40px; font-size: 20px; line-height: 1.4; color: #a9a39c; }
.ramah-home-services__list li::after { content: ""; position: absolute; inset-block-start: 50%; inset-inline-end: 0; inline-size: 22px; block-size: 22px; transform: translateY(-50%); border: 2px solid #941c1e; border-radius: 50%; }
.ramah-home-services__copy .ramah-btn { grid-column: 2; grid-row: 4; justify-self: start; margin: 0; }
@keyframes ramah-panel-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* ---------- منهجيتنا: frame with horseman, title block, four steps on a route ---------- */
.ramah-home-method { position: relative; isolation: isolate; overflow: hidden; min-block-size: 390px; padding: 0; background: #ebe5dc; }
.ramah-home-method__bg { position: absolute; inset: 0; z-index: -2; }
.ramah-home-method__texture { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.ramah-home-method__mountains { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: center bottom; mix-blend-mode: multiply; opacity: 0.22; }
.ramah-home-method__horse { position: absolute; left: -20.42%; top: 36%; inline-size: 55.56%; block-size: auto; z-index: -1; pointer-events: none; }
.ramah-home-method__head { position: absolute; inset-block-start: 14.6%; inset-inline: auto 78px; left: auto; right: 78px; inline-size: 343px; display: flex; flex-direction: column; align-items: flex-start; gap: 21px; text-align: end; }
.ramah-home-method__head .ramah-btn { align-self: flex-start; }
.ramah-home-method__title { margin: 0; font-size: 44px; line-height: 1.5; font-weight: 700; color: #222325; }
.ramah-home-method__text { margin: 0; max-inline-size: 350px; font-size: 20px; font-weight: 500; line-height: 32px; color: #6e6a69; }
.ramah-home-method__steps { position: absolute; left: 14.51%; top: 25.9%; inline-size: 53.82%; block-size: 172px; }
.ramah-home-method__route { position: absolute; inset: auto; display: block; pointer-events: none; }
.ramah-home-method__route svg { display: block; inline-size: 100%; block-size: 100%; overflow: visible; }
.ramah-home-method__route--1 { left: 91px; top: 38px; inline-size: 129px; block-size: 41px; }
.ramah-home-method__route--2 { left: 292px; top: 40px; inline-size: 139px; block-size: 41px; }
.ramah-home-method__route--3 { left: 506px; top: 44px; inline-size: 161px; block-size: 41px; }
.ramah-home-method__route svg path, .ramah-home-method__route svg circle { stroke: #941c1e; }
.ramah-home-method__list { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.ramah-home-method__step { position: absolute; top: 0; inline-size: 146px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ramah-home-method__step:nth-child(1) { left: calc(90.58% - 73px); }
.ramah-home-method__step:nth-child(2) { left: calc(60.52% - 73px); }
.ramah-home-method__step:nth-child(3) { left: calc(33.16% - 73px); }
.ramah-home-method__step:nth-child(4) { left: calc(6.97% - 73px); }
.ramah-home-method__dot { display: grid; place-items: center; inline-size: 76px; block-size: 76px; border-radius: 50%; background: none; }
.ramah-home-method__dot img { inline-size: 76px; block-size: 76px; }
.ramah-home-method__name { margin-block-start: 16px; font-size: 24px; line-height: 32px; font-weight: 700; color: #222325; }
.ramah-home-method__desc { font-size: 17px; line-height: 32px; color: #6e6a69; }

@media (max-width: 1279px) {
	.ramah-home-services__panel { padding: 48px 48px; column-gap: 56px; }
	.ramah-home-services__name { font-size: 32px; }
}
@media (max-width: 1023px) {
	.ramah-home-services__stage { aspect-ratio: auto; margin-block: 32px 24px; }
	.ramah-home-services__walls { display: none; }
	.ramah-home-services__towers { position: relative; inset: auto; justify-content: flex-start; gap: 4px; overflow-x: auto; padding: 8px 0 12px; scrollbar-width: none; }
	.ramah-home-tower { flex: 0 0 104px; inline-size: 104px; }
	.ramah-home-tower__art { block-size: auto; }
	.ramah-home-tower__svg { block-size: auto; inline-size: 100%; }
	.ramah-home-services__panel { grid-template-columns: 1fr; padding: 40px 28px; min-block-size: 0; row-gap: 24px; }
	.ramah-home-services__name, .ramah-home-services__sub, .ramah-home-services__excerpt, .ramah-home-services__list, .ramah-home-services__copy .ramah-btn { grid-column: 1; grid-row: auto; justify-self: start; }
	.ramah-home-services__name { font-size: 28px; }
	.ramah-home-services__panel::before, .ramah-home-services__panel::after { display: none; }
	.ramah-home-services__list { align-items: flex-start; }
	.ramah-home-services__list li { font-size: 18px; }
	.ramah-home-method { min-block-size: 0; padding-block: 56px 40px; }
	.ramah-home-method__bg { display: none; }
	.ramah-home-method__horse { display: none; }
	.ramah-home-method__head { position: relative; inset: auto; inline-size: auto; max-inline-size: 560px; margin-inline: var(--ramah-gutter, 16px); margin-block-end: 40px; }
	.ramah-home-method__title { font-size: 32px; line-height: 1.4; }
	.ramah-home-method__steps { position: relative; inset: auto; inline-size: auto; block-size: auto; margin-inline: var(--ramah-gutter, 16px); }
	.ramah-home-method__route { display: none; }
	.ramah-home-method__list { position: relative; inset: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
	.ramah-home-method__step { position: static; inline-size: auto; }
	.ramah-home-method__step:nth-child(n) { left: auto; }
}
@media (max-width: 639px) {
	.ramah-home-method__list { grid-template-columns: 1fr; }
	.ramah-home-method__step { align-items: flex-start; text-align: start; }
}
@media (prefers-reduced-motion: reduce) {
	.ramah-home-services__panel:not([hidden]) { animation: none; }
}

/* Panel list + button share one start edge (Figma 42:758): rings at the start of each line, button under the list. */
.ramah-home-services__list { align-items: flex-start; }
.ramah-home-services__list li { padding-inline-end: 0; padding-inline-start: 40px; }
.ramah-home-services__list li::after { inset-inline-end: auto; inset-inline-start: 0; }
.ramah-home-services__copy .ramah-btn { justify-self: start; }
