/* Inner pages: services index, service / solution pages, 404 */
a.lang-btn { display: inline-flex; align-items: center; justify-content: center; }
.nav a[aria-current="page"] { color: var(--yellow); }

/* Solution cards on the home page are links now */
.solution-more { display: inline-flex; align-items: center; gap: .4em; font-size: .88rem; font-weight: 600; color: var(--yellow); opacity: .85; transition: opacity .2s; }
.solution-more .icon { width: 16px; height: 16px; }
.solution:hover .solution-more { opacity: 1; }
.step h3 a:hover { color: var(--green-600); }
.step-more { display: inline-flex; align-items: center; gap: .4em; margin-top: .4rem; font-weight: 600; color: var(--green-600); }
.step-more .icon { width: 18px; height: 18px; transition: translate .2s var(--ease); }
.step-more:hover .icon { translate: 4px 0; }
[dir="rtl"] .step-more:hover .icon { translate: -4px 0; }

/* Footer: all service links */
.footer-services { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem; max-width: 900px; font-size: .9rem; opacity: .75; }
.footer-services a:hover { color: var(--yellow); opacity: 1; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; font-size: .95rem; text-align: center; }
.footer-contact li { display: inline-flex; align-items: center; gap: .45rem; }
.footer-contact .icon { width: 18px; height: 18px; flex: none; color: var(--yellow); }
.footer-contact a:hover { color: var(--yellow); }

/* Page hero */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  padding-block: clamp(140px, 16vw, 170px) clamp(3.5rem, 7vw, 5.5rem);
  background: var(--green); border-bottom: 3px solid var(--yellow);
}
.page-hero .hero-title { font-size: clamp(2.2rem, 5vw, 3.9rem); }
html[lang="en"] .page-hero .hero-title { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.page-hero .hero-ctas { margin-bottom: 0; }
.page-hero .hero-lead { max-width: 600px; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.page-hero-media { position: relative; margin: 0; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--green-600); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(229, 205, 130, .35); pointer-events: none; }
.page-hero-badge {
  position: absolute; inset-block-end: -22px; inset-inline-start: -22px; width: 76px; height: 76px; border-radius: 22px;
  display: grid; place-items: center; background: var(--yellow); color: var(--green); box-shadow: 0 18px 40px -16px rgba(229, 205, 130, .8);
}
.page-hero-badge .icon { width: 36px; height: 36px; }
.page-hero-center .page-hero-copy { max-width: 760px; margin-inline: auto; text-align: center; }
.page-hero-center .hero-lead { margin-inline: auto; }
.page-hero-center .hero-ctas { justify-content: center; }
.page-hero-center .crumbs ol { justify-content: center; }
.page-hero-tall { min-height: 78svh; display: flex; align-items: center; }
.page-hero-tall > .container { width: min(100% - 2.5rem, var(--max)); }

/* Breadcrumb */
.crumbs { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); font-size: .92rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .6rem; color: rgba(255, 255, 255, .6); }
.crumbs li { display: inline-flex; align-items: center; gap: .6rem; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a:hover { color: var(--yellow); }
.crumbs [aria-current] { color: rgba(255, 255, 255, .92); }

/* Overview + features */
.page-overview { background: var(--paper); }
.overview-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.prose { color: var(--ink); max-width: 72ch; }
.prose-lead { font-size: clamp(1.12rem, 1.5vw, 1.28rem); color: var(--muted); }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); color: var(--green); margin: 2.2rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; color: var(--green); margin: 1.6rem 0 .6rem; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green-600); }
.prose strong { color: var(--green); }
.prose a { color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; }
.feature-card {
  position: sticky; top: 100px; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius); color: #fff;
  background: var(--green); box-shadow: var(--shadow);
}
.feature-card h2 { font-size: 1.5rem; color: var(--yellow); margin-bottom: 1.2rem; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.feature-list li { display: flex; gap: .8rem; align-items: flex-start; line-height: 1.55; }
.feature-list .icon { width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: rgba(229, 205, 130, .16); color: var(--yellow); margin-top: .1em; }

/* Body + help card */
.page-body { background: var(--cream); }
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.help-card { position: sticky; top: 100px; padding: 2rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: .9rem; }
.help-card h2 { font-size: 1.35rem; color: var(--green); }
.help-card p { color: var(--muted); margin: 0; }
.help-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--yellow-soft); color: var(--green); }
.help-icon .icon { width: 28px; height: 28px; }
.help-phone { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; color: var(--green); padding-top: .3rem; }
.help-phone .icon { width: 20px; height: 20px; }

/* FAQ */
.page-faq { background: var(--paper); }
.faq-wrap { max-width: 900px; }
.faq-list { display: grid; gap: .9rem; }
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: rgba(21, 55, 13, .3); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; font-family: var(--font-display); font-weight: 700; color: var(--green); font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow-soft); position: relative; transition: transform .25s var(--ease), background-color .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2px; background: var(--green); border-radius: 2px; translate: -50% -50%; }
.faq summary i::after { rotate: 90deg; transition: rotate .25s var(--ease); }
.faq[open] summary i { background: var(--yellow); }
.faq[open] summary i::after { rotate: 0deg; }
.faq p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--muted); }

/* Cards (related + services index) */
.page-related, .page-list-alt { background: var(--cream); }
.page-list { background: var(--paper); }
.page-list-alt { background: var(--cream); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); transition: box-shadow .25s var(--ease), border-color .25s; }
.card:hover { box-shadow: var(--shadow); border-color: rgba(21, 55, 13, .25); }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-600); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.card-kind { display: inline-flex; align-items: center; gap: .45em; font-size: .85rem; font-weight: 600; color: var(--green-600); }
.card-kind .icon { width: 18px; height: 18px; }
.card h3 { font-size: 1.28rem; color: var(--green); }
.card-text { color: var(--muted); font-size: .98rem; line-height: 1.6; flex: 1; }
.card-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--green); }
.card-more .icon { width: 18px; height: 18px; color: var(--green-600); transition: translate .2s var(--ease); }
.card:hover .card-more .icon { translate: 4px 0; }
[dir="rtl"] .card:hover .card-more .icon { translate: -4px 0; }

/* Contact form: the service it is about */
.form-service { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; margin: 0 0 1rem; border-radius: var(--radius-sm); background: var(--yellow-soft); color: var(--green); }
.form-service .icon { width: 22px; height: 22px; }

@media (max-width: 1080px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .body-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .page-hero-grid, .overview-grid, .body-grid { grid-template-columns: 1fr; }
  .page-hero-media { max-width: 620px; }
  .feature-card, .help-card { position: static; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .page-hero-badge { width: 60px; height: 60px; inset-inline-start: 14px; inset-block-end: -18px; }
  .page-hero-badge .icon { width: 28px; height: 28px; }
  .page-hero .hero-ctas .btn { flex: 1 1 auto; }
  .faq summary { padding: 1rem 1.1rem; font-size: 1rem; }
  .faq p { padding: 0 1.1rem 1.1rem; }
}

/* "Join us" page */
.join-why { background: var(--cream); }
.join-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.join-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage); box-shadow: var(--shadow); }
.join-photo img { width: 100%; height: 100%; object-fit: cover; }
.join-ready { max-width: 640px; margin: 1.8rem auto 0; padding: 1.3rem 1.5rem; border-radius: var(--radius-sm); border: 1px solid rgba(229, 205, 130, .35); background: #214119; }
.join-ready h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); color: var(--yellow); margin: 0 0 .4rem; }
.join-ready p { margin: 0; color: rgba(255, 255, 255, .82); line-height: 1.7; }
.join-text { color: var(--muted); font-size: 1.08rem; line-height: 1.8; margin: 0 0 1rem; }
.join-reasons { background: var(--paper); }
.reason-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.reason { grid-column: span 2; display: flex; flex-direction: column; gap: .7rem; padding: 1.6rem; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.reason:nth-child(4) { grid-column: 2 / span 2; }
.reason:hover { border-color: var(--yellow); background: var(--yellow-soft); transform: translateY(-3px); }
.reason-top { display: flex; align-items: center; justify-content: space-between; }
.reason .icon { width: 50px; height: 50px; padding: 12px; border-radius: 14px; background: var(--green); color: var(--yellow); flex: none; }
.reason-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--yellow); -webkit-text-stroke: 1px var(--green); }
.reason h3 { font-size: 1.15rem; color: var(--green); margin: 0; }
.reason p { margin: 0; color: var(--muted); line-height: 1.7; }
.join-grow { background: var(--green); color: #fff; border-block: 3px solid var(--yellow); }
.join-grow-inner { max-width: 780px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.join-grow .section-title { color: #fff; margin: 0; }
.join-grow-text { margin: 0; font-size: 1.12rem; line-height: 1.8; color: rgba(255, 255, 255, .8); }
.join-grow-end { margin: 0 0 .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--yellow); }
.field-hint { font-size: .85rem; color: var(--muted); }

/* Attachment field on the Join us form: the native input stays focusable but invisible */
.field .file-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); inset-inline-start: 0; }
.field .file-drop {
  display: flex; align-items: center; gap: .75rem; padding: 1em 1.1em; border-radius: 12px; cursor: pointer;
  border: 1.5px dashed rgba(21, 55, 13, .35); background: var(--cream); color: var(--muted); font-weight: 500;
  transition: border-color .2s, background-color .2s, color .2s;
}
.file-drop .icon { width: 22px; height: 22px; flex: none; color: var(--green); }
.file-drop .file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field .file-drop:hover { border-color: var(--green); background: var(--yellow-soft); }
.field .file-drop.has-file { border-style: solid; border-color: var(--green); background: #fff; color: var(--green); font-weight: 600; }
.file-input:focus-visible + .file-drop { border-color: var(--green); box-shadow: 0 0 0 4px rgba(229, 205, 130, .45); }
.file-input[aria-invalid="true"] + .file-drop { border-color: #b3261e; }
.file-field { position: relative; }
@media (max-width: 980px) {
  .join-why-grid { grid-template-columns: 1fr; }
  .reason-grid { grid-template-columns: 1fr 1fr; }
  .reason, .reason:nth-child(4) { grid-column: auto; }
  .reason:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .reason-grid { grid-template-columns: 1fr; } }
