/* Shared return links use real destinations, including on direct visits. */
.return-navigation { display:flex; align-items:center; flex-wrap:wrap; gap:12px 24px; padding:16px clamp(22px,7vw,110px); background:#fff; border-bottom:1px solid var(--line); font-size:.88rem; }
.return-navigation a { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--navy); font-weight:750; }
.return-navigation a:hover { text-decoration:underline; text-underline-offset:5px; }
.return-parent { padding:0 18px; border:1px solid var(--line); border-radius:999px; }
.return-current { margin-inline-start:auto; color:var(--muted); overflow-wrap:anywhere; }
.return-navigation a:focus-visible { outline:3px solid var(--navy); outline-offset:5px; }
.home-page a:focus-visible { outline:3px solid #afcee3; outline-offset:5px; }

/* A consistent, compact rhythm for the homepage. */
.home-page .section { padding-block:clamp(48px,6vw,80px); border-bottom:1px solid var(--line); }
.home-page .section-heading { gap:24px; margin-bottom:36px; align-items:center; }
.home-page .section h2 { font-size:clamp(1.8rem,3vw,3rem); line-height:1.2; letter-spacing:-.025em; }
.home-page.font-ar .section h2 { line-height:1.45; letter-spacing:0; }
.home-page .section .eyebrow { color:#afcee3; letter-spacing:.08em; margin-bottom:12px; }
.home-page .section { background:var(--navy); color:#fff; border-color:#ffffff20; }
.home-page .introduction-section { gap:36px; }
.home-page .introduction-section .large-copy { gap:16px; }
.home-page .introduction-section .large-copy p { margin:0; font-size:1rem; line-height:1.8; }
.home-page .text-link.dark { color:#e1edf5; border-color:#ffffff66; }
.home-page .solution-preview-grid>a { min-height:300px; }
.home-page .project-highlight-grid { grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:260px; }
.home-page .project-highlight-grid .featured,.home-page .project-highlight-grid figure:last-child { grid-column:auto; grid-row:auto; }
.home-page .why-grid article { background:var(--navy-2); border-color:#ffffff26; }

/* One navy palette across the homepage, including the request form. */
.home-page main { --gold:#afcee3; --gold-2:#dcebf5; background:var(--navy); color:#fff; }
.home-page .section-heading>p,.home-page .introduction-section .large-copy p,
.home-page .home-path-description,.home-page .why-grid p { color:#c4d3df; }
.home-page .section h2,.home-page .why-grid h3 { color:#fff; }
.home-page .hero-kicker,.home-page .hero-promise strong { color:#dcebf5; }
.home-page .hero .button:not(.button-ghost) { background:var(--navy); color:#fff; border-color:#afcee3; }
.home-page .hero .button:not(.button-ghost):hover { background:var(--navy-2); }
.home-page .service-strip,.home-page .document-request,.home-page .document-footer { background:var(--navy); }
.home-page .document-request { border-top:1px solid #ffffff20; }
.home-page .contact-form { background:var(--navy-2); color:#fff; border-color:#ffffff26; }
.home-page .contact-form label small,.home-page .contact-form label b { color:#c4d3df; }
.home-page .contact-form input,.home-page .contact-form select,.home-page .contact-form textarea { background:var(--navy); color:#fff; border-color:#647d90; }
.home-page .contact-form input::placeholder,.home-page .contact-form textarea::placeholder { color:#b9cbd8; }
.home-page .contact-form input:focus,.home-page .contact-form select:focus,.home-page .contact-form textarea:focus { border-color:#afcee3; box-shadow:0 0 0 3px #afcee333; }
.home-page .contact-submit { background:#dcebf5; color:var(--navy); }
.home-page .contact-submit:hover { background:#fff; }
.home-page .contact-status.success { color:#99e2b8; }
.home-page .contact-status.error,.home-page .contact-form .field-validation-error { color:#ffb8b8; }

/* Astrea-inspired circular image links with a solid brand-colour hover state. */
#explore { scroll-margin-top:100px; }
.home-paths { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(16px,2.5vw,38px); }
.home-path { display:flex; flex-direction:column; gap:18px; text-align:center; min-width:0; border-radius:12px; }
.home-path-circle { position:relative; display:grid; place-items:center; width:100%; aspect-ratio:1; overflow:hidden; isolation:isolate; border-radius:50%; background:var(--navy); transition:transform .3s ease,box-shadow .3s ease; }
.home-path-circle>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; transition:transform .45s ease; }
.home-path-circle::after { content:""; position:absolute; inset:0; z-index:-1; background:var(--navy); opacity:0; transition:opacity .3s ease; }
.home-path-label { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; width:100%; min-height:52%; padding:16px 10px; color:white; background:#071c2cbb; transition:background .3s ease; }
.home-path-label strong { font-size:clamp(.95rem,1.25vw,1.25rem); font-weight:650; line-height:1.4; }
.home-path-action { display:block; border-top:1px solid #ffffff99; padding-top:10px; font-size:.8rem; }
.home-path-description { color:var(--muted); font-size:.86rem; line-height:1.65; }
.home-path:focus-visible .home-path-circle { transform:translateY(-5px); box-shadow:0 0 0 2px #afcee3,0 12px 28px #0003; }
.home-path:focus-visible .home-path-circle::after { opacity:1; }
.home-path:focus-visible .home-path-label { background:transparent; }
@media (hover:hover) {
  .home-path:hover .home-path-circle { transform:translateY(-5px); box-shadow:0 0 0 2px #afcee3,0 12px 28px #0003; }
  .home-path:hover .home-path-circle>img { transform:scale(1.06); }
  .home-path:hover .home-path-circle::after { opacity:1; }
  .home-path:hover .home-path-label { background:transparent; }
}
@media (max-width:1000px) {
  .home-paths { grid-template-columns:repeat(6,minmax(0,1fr)); gap:28px 20px; }
  .home-path { grid-column:span 2; }
  .home-path:nth-child(4) { grid-column:2/span 2; }
  .home-page .project-highlight-grid { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,240px); }
}
@media (max-width:600px) {
  .home-paths { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 16px; }
  .home-path,.home-path:nth-child(4) { grid-column:auto; }
  .home-path:last-child { grid-column:1/-1; width:calc(50% - 8px); justify-self:center; }
  .home-path-label { gap:8px; padding:12px 8px; }
  .home-path-label strong { font-size:.9rem; }
  .home-path-action { font-size:.72rem; padding-top:7px; }
  .home-page .section-heading { flex-direction:column; align-items:flex-start; }
  .home-page .solution-preview-grid { grid-template-columns:1fr; }
  .home-page .project-highlight-grid { display:grid; grid-template-columns:1fr; grid-template-rows:none; }
  .home-page .project-highlight-grid figure { height:260px; margin:0; }
  .return-current { flex-basis:100%; margin:0; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .home-path-circle,.home-path-circle>img,.home-path-circle::after,.home-path-label { transition:none; }
  .home-path:hover .home-path-circle,.home-path:focus-visible .home-path-circle,.home-path:hover .home-path-circle>img { transform:none; }
}

/* Four primary capabilities and a persistent direct-contact action. */
.home-page .home-paths { grid-template-columns:repeat(4,minmax(0,1fr)); }
.hero-actions { flex-wrap:wrap; }
.floating-whatsapp { position:fixed; inset-inline-end:22px; bottom:22px; z-index:90; display:flex; align-items:center; gap:8px; min-height:48px; padding:12px 20px; border-radius:30px; background:#126c3e; color:#fff; font-weight:700; box-shadow:0 4px 20px #0004; }
.floating-whatsapp:hover { background:#0b512e; }
.floating-whatsapp:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.document-footer { padding-bottom:100px; }
@media(max-width:900px) { .home-page .home-paths { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .home-page .home-paths { gap:24px 14px; } .floating-whatsapp { inset-inline-end:12px; bottom:12px; padding:12px 16px; } }
