:root {
  --paper: #f7f7ef;
  --ink: #122e26;
  --muted: #4c6157;
  --green: #214c3a;
  --accent: #d7e69d;
  --line: #d8dfd2;
  --font: 'DM Sans', sans-serif;
  --display: 'Manrope', 'DM Sans', sans-serif;
}
:root[lang="ar"] { --font: 'Noto Sans Arabic', Tahoma, sans-serif; --display: var(--font); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.65 var(--font); }
:root[lang="ar"] body { line-height: 1.9; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #55732b; outline-offset: 4px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-family: var(--display); }
h1 { font-size: clamp(2.5rem, 5vw, 4.65rem); font-weight: 800; line-height: 1.04; letter-spacing: -.065em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.8rem); font-weight: 800; line-height: 1.18; letter-spacing: -.04em; }
h3 { font-size: 1.22rem; font-weight: 800; line-height: 1.35; }
:root[lang="ar"] :is(h1,h2,h3) { letter-spacing: 0; line-height: 1.37; }
h1 em { display: inline-block; font-style: normal; color: #3b674e; }
.wrap { width: min(100% - 96px, 1232px); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; white-space: nowrap; line-height: 1.3; }
.brand strong { display: block; font-size: 1.3rem; font-weight: 800; }
.brand small { display: block; margin-top: 4px; font-size: .67rem; font-weight: 600; color: var(--muted); }
.mark { direction: ltr; position: relative; width: 42px; height: 42px; flex: none; display: flex; align-items: end; justify-content: center; gap: 3px; padding: 9px; border-radius: 11px; background: var(--green); }
.mark i { display: block; width: 4px; background: var(--accent); border-radius: 2px; transform: skewY(-22deg); }
.mark i:nth-child(1) { height: 9px; }
.mark i:nth-child(2) { height: 15px; }
.mark i:nth-child(3) { height: 22px; }
nav { display: flex; gap: 27px; align-items: center; }
nav a, .locale { text-decoration: none; white-space: nowrap; font-size: .89rem; font-weight: 700; padding-block: 6px; }
nav a[aria-current] { box-shadow: 0 2px var(--green); }
nav a:hover, .locale:hover { color: #49763d; }
.header-actions { display: flex; justify-content: end; gap: 18px; align-items: center; }
.header-actions .button { min-height: 41px; padding: 7px 13px; font-size: .84rem; }
.locale { border-inline-start: 1px solid var(--line); padding-inline-start: 13px; }
.button { min-height: 51px; display: inline-flex; gap: 12px; align-items: center; justify-content: center; border-radius: 7px; padding: 10px 18px; border: 1px solid transparent; text-decoration: none; font-size: .94rem; font-weight: 700; line-height: 1.4; width: fit-content; }
.button span, .text-link > span:first-child { font-family: sans-serif; }
.solid { background: var(--green); color: #fff; }
.solid:hover { background: #15392b; }
.outline { border-color: #8ca194; color: var(--ink); background: transparent; }
.outline:hover { background: #e9eddf; }
.light { background: var(--accent); color: var(--ink); }
.light:hover { background: #e8f3bd; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: 50px 57px; }
.hero-copy { padding-block: 24px; }
.kicker { display: flex; align-items: center; gap: 9px; color: #355b47; font-size: .84rem; font-weight: 800; margin-bottom: 15px; }
:root[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .1em; }
.kicker span { width: 9px; height: 9px; border-radius: 50%; background: #759448; flex: none; }
.lead { max-width: 60ch; font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--muted); margin-top: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.section { padding-block: clamp(42px, 6vw, 82px); }
.services-band { border-block: 1px solid var(--line); background: #eef0e5; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 26px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-weight: 800; text-underline-offset: 4px; text-decoration-thickness: 1px; white-space: nowrap; }
.text-link:hover { color: #49763d; }
.cards, .steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.card { background: #fbfcf6; border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; align-items: start; }
.card p { color: var(--muted); margin: 10px 0 20px; }
.card .text-link { margin-top: auto; }
.icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 17px; border-radius: 8px; background: #e4ebd9; color: var(--green); }
.steps { list-style: none; margin: 25px 0 0; padding: 0; }
.steps li { padding: 17px 0; border-top: 1px solid #9aad9b; }
.step-index { display: inline-block; color: #456548; font-weight: 800; margin-bottom: 11px; }
.steps p, .about-grid p, .contact-grid aside p, .service-row p { margin-top: 10px; color: var(--muted); }
.cta { background: #193c2e; color: #f8f9ef; display: flex; justify-content: space-between; align-items: center; gap: 22px; border-radius: 14px; padding: clamp(23px, 5vw, 58px); }
.cta p { margin-top: 10px; color: #dce7d7; }
.cta .button { flex: none; }
.footer { border-top: 1px solid var(--line); padding-block: 27px; background: #edf0e5; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer-inner > small { color: var(--muted); }
.inner-intro { padding-block: clamp(46px, 8vw, 102px); background: #e8ede1; border-bottom: 1px solid var(--line); }
.inner-intro h1 { max-width: 18ch; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-block: 27px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.service-row:first-child { border-top: 1px solid var(--line); }
.service-row ul { padding-inline-start: 22px; margin: 0 0 16px; }
.service-row li + li { margin-top: 7px; }
.about-grid, .contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(22px, 5vw, 74px); }
.about-grid .kicker { margin-top: 0; }
.process { background: #eef0e5; border-block: 1px solid var(--line); }
form { border: 1px solid var(--line); background: #fcfcf7; border-radius: 12px; padding: clamp(16px, 3vw, 30px); }
form label { display: block; font-weight: 700; margin-bottom: 14px; }
form :is(input,select,textarea) { display: block; max-width: 100%; width: 100%; margin-top: 5px; padding: 10px; border: 1px solid #9caf9d; border-radius: 6px; background: #fff; color: var(--ink); }
form textarea { resize: vertical; }
#draft { margin-top: 19px; }
#draft label { margin-bottom: 0; }
#draft button { margin-top: 10px; }
#status:not(:empty) { color: var(--green); margin-top: 12px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; background: white; padding: 8px; }
@media (max-width: 1050px) {
  .wrap { width: min(100% - 54px, 1232px); }
  .topbar { gap: 16px; }
  nav { gap: 16px; }
  .header-actions .button { display: none; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 34px); }
  .topbar { grid-template-columns: 1fr auto; column-gap: 10px; row-gap: 8px; padding-block: 13px 9px; }
  .topbar nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 4px; }
  .header-actions { grid-row: 1; grid-column: 2; }
  .hero, .about-grid, .contact-grid, .service-row { grid-template-columns: 1fr; }
  .hero { gap: 18px; padding-block: 30px; }
  .hero-copy { padding-block: 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .cta { align-items: start; flex-direction: column; }
  .footer-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 365px) {
  .actions .button { width: 100%; }
  .footer nav { flex-wrap: wrap; }
}



:root { --font: 'Segoe UI', Arial, sans-serif; --display: var(--font); }
:root[lang="ar"] { --font: Tahoma, Arial, sans-serif; --display: 'Zahra Local', Tahoma, Arial, sans-serif; }
.brand-logo { display:block; flex:none; object-fit:contain; object-position:center; }
[hidden] { display:none!important; }
[dir="rtl"] input[type=email] { direction:ltr; text-align:left; }
:focus-visible { outline:3px solid #0083bd; outline-offset:4px; }
@media (max-width:365px) {
  .brand-logo { width:39px; height:38px; }
  .brand { gap:7px; }
  .brand small { white-space:normal; }
  .topbar nav a { font-size:.79rem; }
}

:root { --paper:#fcfcff; --ink:#23234b; --muted:#505471; --green:#393185; --accent:#d6f1ff; --line:#dadeef; }
.header, .footer { background:#fff; }
.kicker, h1 em, .text-link, .steps .step-index { color:#393185; }
.kicker span { background:#00a0e3; }
.solid:hover { background:#30266f; }
.outline { border-color:#a6a9c8; }
.outline:hover { background:#edf3fd; }
nav a:hover, .locale:hover, .text-link:hover { color:#006b9a; }
.hero { grid-template-columns:1.13fr 1fr; }
.services-band,.process { background:#f1f3fa; }
.inner-intro { background:linear-gradient(130deg,#edf1fa,#eaf8ff); }
.card { background:white; border-top:3px solid #00a0e3; box-shadow:0 10px 22px #3931850a; }
.icon { color:#393185; background:#e6f3fc; }
.steps li { border-color:#a0a8c9; }
.cta { background:#393185; }
.cta p { color:#eeeefe; }
.light:hover { background:#eafaFF; }
form { background:#fff; }
form :is(input,select,textarea) { border-color:#a6a9c8; }
@media (max-width:720px) { .hero { grid-template-columns:1fr; } }

/* V2 photography and financial illustration */
.hero > * { min-width:0; }
.finance-showcase { position:relative; isolation:isolate; min-width:0; margin:0; align-self:stretch; min-height:410px; background:#393185; overflow:hidden; border-radius:12px; box-shadow:0 20px 44px #231c5220; }
.finance-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 45%; }
.finance-showcase::after { content:""; position:absolute; inset:0; pointer-events:none; z-index:0; background:linear-gradient(0deg,#211944b0 0%,#21194400 51%); }
.finance-overlay { position:absolute; z-index:1; inset-inline:clamp(10px,3vw,24px); inset-block-end:20px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; align-items:end; max-width:335px; }
.finance-metric { min-width:0; background:#fcfdff; color:#393185; padding:8px 11px 6px; border:1px solid #dbe9ff; border-radius:9px; box-shadow:0 8px 24px #15112e54; }
.finance-metric strong { display:block; font-size:.77rem; line-height:1.4; }
.finance-metric svg { display:block; width:100%; height:36px; margin-top:4px; }
.finance-overlay small { grid-column:1/-1; justify-self:start; background:#211944; color:#fff; border-radius:4px; padding:2px 7px; font-size:.7rem; }
.modern-editorial .finance-showcase { border-radius:0; min-height:100%; box-shadow:none; }
.modern-editorial .finance-overlay { max-width:350px; margin-inline-start:auto; inset-block-end:24px; }
.modern-editorial .finance-metric { border-radius:3px; border-block-start:3px solid #00a0e3; }
.modern-editorial .finance-photo { object-position:52% 45%; }
.service-row { grid-template-columns:minmax(130px,.75fr) minmax(0,1fr) minmax(0,1.1fr); align-items:center; }
.service-photo,.about-photo { width:100%; display:block; object-fit:cover; border-radius:9px; background:#e4e9f7; }
.service-photo { aspect-ratio: 4 / 3; max-height:205px; }
.about-photo { grid-column:1/-1; aspect-ratio: 2.8 / 1; max-height:330px; object-position:center 40%; }
.modern-editorial .service-photo,.modern-editorial .about-photo { border-radius:0; }
.service-row .icon { background:#e7f4ff; color:#393185; }
@media (max-width: 850px) { .service-row { gap:14px; } }
@media (max-width: 720px) {
  .finance-showcase,.modern-editorial .finance-showcase { min-height:clamp(265px,67vw,395px); }
  .modern-editorial .finance-overlay,.finance-overlay { inset-block-end:11px; }
  .service-row { grid-template-columns:1fr; }
  .service-photo { max-height:270px; aspect-ratio:2 / 1; }
  .about-photo { aspect-ratio:1.8 / 1; }
}




:root[lang="ar"] :is(h1,h2,h3,.topbar nav,.header-actions,.kicker,.button,.brand strong,.locale) {
  font-family:var(--display);
  font-weight:700;
}
:root[lang="ar"] .lead, :root[lang="ar"] p { text-wrap:pretty; }
.topbar { min-height:108px; grid-template-columns:auto 1fr auto; gap:clamp(14px,3vw,34px); }
.topbar > nav { justify-content:center; }
.topbar .brand-logo { display:block; width:104px; height:auto; aspect-ratio:16500 / 13395; object-fit:contain; }
.topbar .brand strong { font-size:1.35rem; }
.topbar .brand small { font-size:.72rem; }
.locale { padding-inline:10px; }
.services-band .cards { grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr)); }
.card .text-link { white-space:normal; }
.about-feature { display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,1fr); gap:clamp(24px,6vw,76px); padding-block:clamp(32px,5.5vw,70px); align-items:center; }
.about-feature h1 { font-size:clamp(2.25rem,4.3vw,3.8rem); }
.about-feature .lead + .lead { margin-top:12px; }
.about-feature .about-photo { grid-column:auto; aspect-ratio: 4 / 3; max-height:440px; object-position:center; }
.page-about .process { padding-block:42px; }
.service-row { grid-template-columns:minmax(165px,.75fr) minmax(0,1.15fr) minmax(0,.65fr); }
.service-row > .button { justify-self:start; }
.contact-grid { align-items:start; }
.contact-details { border:1px solid var(--line); border-radius:12px; padding:clamp(18px,3vw,28px); background:#eff5ff; }
.contact-details address { font-style:normal; margin-block:12px 15px; }
.contact-details .contact-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.contact-details .text-link { margin-block:6px; }
.contact-icon { width:20px; height:20px; flex:0 0 auto; vertical-align:middle; color:#393185; }
.contact-line { display:flex; align-items:baseline; gap:8px; }
.contact-line .contact-icon { align-self:center; }
.footer-inner { display:grid; grid-template-columns:minmax(200px,1fr) minmax(180px,1fr) minmax(210px,1fr); gap:20px; align-items:start; }
.footer-inner nav { display:flex; flex-wrap:wrap; gap:5px 15px; }
.footer-contact { display:grid; gap:8px; }
.footer-contact a { width:fit-content; }
.footer-contact .text-link { white-space:normal; }
.footer-inner > small { grid-column:1/-1; border-top:1px solid var(--line); padding-top:12px; }
.whatsapp-float { position:fixed; z-index:5; inset-inline-end:14px; inset-block-end:max(14px,env(safe-area-inset-bottom)); display:grid; place-items:center; width:50px; height:50px; border-radius:50%; color:white; background:#16794d; box-shadow:0 4px 16px #102b2460; border:2px solid #fff; }
.whatsapp-float:hover { background:#115f3d; }
.whatsapp-float svg { width:25px; height:25px; }
body { padding-block-end:70px; }
@media (min-width:721px) { .wrap { width:min(calc(100% - 126px),1232px); } }
@media (max-width:980px) { .topbar .brand-logo { width:86px; } .footer-inner { grid-template-columns:1fr 1fr; } }
@media (max-width:720px) {
  .topbar { grid-template-columns:minmax(0,1fr) auto; min-height:0; gap:6px 10px; }
  .topbar > nav { justify-content:space-between; }
  .topbar .brand-logo { width:69px; }
  .topbar .brand small { white-space:normal; }
  .about-feature,.service-row,.footer-inner { grid-template-columns:1fr; }
  .about-feature { gap:20px; }
  .about-feature .about-photo { aspect-ratio:16/10; }
  .service-row > .button { margin-top:4px; }
  main, .footer { padding-inline:0; }
  .whatsapp-float { width:46px; height:46px; inset-inline-end:8px; }
}
@media (prefers-reduced-motion:no-preference) {
  .button,.whatsapp-float,.text-link { transition:background-color .18s,color .18s,box-shadow .18s; }
}

.enquiry-note { margin-bottom:16px; color:var(--muted); }


@font-face {
  font-family: Almarai;
  src: url("assets/almarai-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Almarai;
  src: url("assets/almarai-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root[lang="ar"] { --display:Almarai,Tahoma,Arial,sans-serif; --font:Almarai,Tahoma,Arial,sans-serif; }
:root[lang="ar"] :is(h1,h2,h3) { line-height:1.35; }
:root[lang="ar"] .lead { line-height:1.75; }
.topbar { min-height:112px; gap:clamp(12px,2.2vw,28px); }
.topbar .brand-logo { width:120px; }
.topbar .brand small,.footer .brand small { font-size:.79rem; }
.topbar nav a,.locale,.footer nav a { font-size:.99rem; }
.button,.header-actions .button { font-size:.99rem; }
.footer .brand-logo { width:99px; height:auto; }
.footer { padding-block:20px; }
.footer-contact { font-size:1rem; }
.section { padding-block:clamp(28px,3.35vw,48px); }
.hero { padding-block:clamp(22px,3.5vw,46px); }
.hero-copy { padding-block:12px; }
.hero h1 { font-size:clamp(2.45rem,4.5vw,4.2rem); }
.about-feature { padding-block:clamp(24px,4vw,50px); }
.about-feature .about-photo { max-height:370px; }
.page-about .process { padding-block:30px; }
.inner-intro { padding-block:clamp(22px,3.45vw,46px); }
.inner-intro h1 { max-width:none; font-size:clamp(2rem,3.6vw,3.4rem); }
.inner-intro .lead { margin-top:9px; }
.service-row { grid-template-columns:minmax(140px,.7fr) minmax(0,1.5fr) auto; gap:clamp(14px,2.4vw,28px); padding-block:20px; }
.service-row .icon,.card .icon { width:54px; height:54px; margin-bottom:10px; }
.service-row .icon svg,.card .icon svg { width:32px;height:32px; }
.service-row h2 { font-size:clamp(1.32rem,2.45vw,2.05rem); }
.service-row ul { margin:8px 0 0; }
.service-row li + li { margin-top:3px; }
.service-photo { max-height:188px; }
.contact-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); align-items:start; gap:clamp(18px,3vw,40px); }
.contact-details h2 { font-size:clamp(1.25rem,2.4vw,1.85rem); }
.contact-details .text-link { white-space:normal; overflow-wrap:anywhere; }
.enquiry-title { font-size:clamp(1.2rem,2vw,1.55rem); margin-bottom:7px; }
.enquiry-fields { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
.enquiry-fields > * { min-width:0; }
.full-field { grid-column:1/-1; }
.honeypot { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); pointer-events:none; }
#status[data-state=error] { color:#951f2e; }
button:disabled { cursor:not-allowed; opacity:.65; }
.map-panel { margin-top:16px; border-top:1px solid var(--line); padding-top:12px; }
.map-panel summary { cursor:pointer; color:#393185; font-weight:700; }
.map-panel p { font-size:.88rem; }
.map-frame iframe { display:block; width:100%; aspect-ratio:16/11; border:0; border-radius:8px; margin-top:12px; }
footer .contact-icon { margin-inline-end:4px; }
@media (min-width:721px) and (max-width:980px) { .topbar .brand-logo { width:96px; } .topbar nav { gap:12px; } .topbar nav a { font-size:.9rem; } }
@media (max-width:720px) {
  .topbar .brand-logo { width:78px; }
  .topbar .brand small { font-size:.7rem; }
  .topbar nav a,.locale { font-size:.93rem; }
  .topbar .brand strong { font-size:1.14rem; }
  .service-row,.contact-grid { grid-template-columns:1fr; }
  .service-row > .button { margin-top:0; }
  .service-photo { max-height:215px; }
  .contact-details .contact-actions { margin-top:10px; }
}
@media (max-width:420px) {
  .enquiry-fields { grid-template-columns:1fr; }
  .topbar .brand-logo { width:72px; }
}


/* V5 section rhythm and action placement. */
.page-home .services-band .section-heading { margin-block-end:18px; }
.page-home .card p { margin-block-end:12px; }
.page-home .card .text-link { margin-block-start:0; }
.page-home .process { padding-block:clamp(24px,2.5vw,34px); }
:is(.page-home,.page-about) .consultation-section { padding-block:clamp(18px,2.25vw,30px); }
.consultation-section .cta { padding-block:clamp(24px,3vw,38px); }
.page-about .about-feature { padding-block:clamp(22px,2.75vw,36px); }

.page-services .inner-intro { padding-block:clamp(20px,2.3vw,32px); }
.page-services .service-list { padding-block:clamp(20px,2.1vw,28px); }
.page-services .service-row {
  grid-template-columns:minmax(140px,.7fr) minmax(0,1.5fr);
  padding-block:16px;
}
.service-row .button { margin-block-start:12px; }

.page-contact .inner-intro { padding-block:clamp(16px,1.9vw,26px); }
.page-contact .contact-grid { padding-block:clamp(18px,1.8vw,25px) clamp(22px,2.25vw,30px); }
.page-contact .enquiry-note { margin-block-end:12px; }
.enquiry-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; }

@media (max-width:720px) {
  .page-services .service-row { grid-template-columns:1fr; }
  .page-services .service-row .button { margin-block-start:10px; }
}


/* Align shared address details with the page direction and finish at the footer. */
body { padding-block-end:0; }
.contact-details address,.footer-contact { text-align:start; }
.contact-details address .contact-line { align-items:flex-start; }
.contact-details address .contact-icon { align-self:flex-start; margin-block-start:.22em; }
.postal-numbers { margin-block-start:4px; }
.footer-contact .footer-location { display:flex; align-items:flex-start; gap:6px; }
.footer-location .contact-icon { margin-inline-end:0; margin-block-start:.15em; }
.footer-branding { display:grid; justify-items:start; gap:4px; }
.footer-branding .footer-copyright { color:var(--muted); }
.whatsapp-float { inset-inline-end:auto; inset-inline-start:14px; inset-block-end:max(20px,calc(env(safe-area-inset-bottom) + 8px)); }
@media (max-width:720px) {
  .whatsapp-float { inset-inline-start:8px; }
  .footer-contact { padding-inline-start:50px; }
}

/* Footer layout follows the document's reading direction. */
.footer-inner {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(16px, 3vw, 40px);
  row-gap: 12px;
}
.footer-branding { justify-self: start; }
.footer-inner nav { justify-content: center; justify-self: center; }
.footer-contact {
  justify-self: end;
  grid-template-columns: max-content auto;
  align-items: center;
  gap: 6px 8px;
  padding-inline-start: 0;
}
.footer-contact .footer-location, .footer-contact a[href^="tel:"] { grid-column: 1 / -1; }
.footer-contact .footer-location { align-items: center; }
.footer-contact .footer-location .contact-icon { margin-block-start: 0; }
.footer-contact .footer-facebook, .contact-details .contact-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}
.footer-facebook .contact-icon, .contact-facebook .contact-icon { margin: 0; }
.footer-inner > .footer-legal {
  grid-column: 1 / -1;
  text-align: center;
  padding-inline: 56px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-branding, .footer-inner nav, .footer-contact { justify-self: start; }
  .footer-inner nav { justify-content: start; }
}

/* Purple footer, with a light version of the existing logo. */
.footer {
  color: #fff;
  background: linear-gradient(115deg, #382474 0%, #302165 60%, #35206b 100%);
  border-top-color: transparent;
  padding-block: 18px 12px;
}
.footer .brand small, .footer .text-link, .footer-inner > .footer-legal { color: #f4f1ff; }
.footer a:hover { color: #c5e9ff; }
.footer a:focus-visible { outline: 2px solid #c5e9ff; outline-offset: 3px; }
.footer-inner { grid-template-columns: minmax(0, 1fr) minmax(340px, 1.6fr) minmax(0, 1fr); }
.footer-branding, .footer .brand { min-width: 0; }
.footer .brand-logo { flex-shrink: 0; }
.footer .brand small { white-space: normal; }
.footer-inner nav {
  width: 100%;
  min-height: 72px;
  align-content: center;
  border-inline: 1px solid #ffffff80;
  padding-inline: 10px;
}
.footer .footer-contact { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 6px; }
.footer .footer-contact a {
  display: inline-flex;
  align-items: center;
  column-gap: 10px;
  text-decoration: none;
  max-width: 100%;
}
.footer .footer-contact a:hover { text-decoration: underline; }
.footer .footer-contact .contact-icon { color: inherit; flex: none; width: 18px; height: 18px; margin: 0; }
.footer .footer-contact .footer-facebook { min-height: 28px; min-width: 28px; }
.footer-inner > .footer-legal { border-block-start: 1px solid #ffffff91; padding-block-start: 8px; }
@media (min-width: 1001px) {
  .footer[dir="rtl"] .footer-contact { direction: ltr; }
  .footer[dir="ltr"] .footer-contact { direction: rtl; }
  .footer[dir="rtl"] .footer-location span { direction: rtl; }
  .footer[dir="ltr"] .footer-location span { direction: ltr; }
}
@media (max-width: 1000px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-inner nav {
    min-height: 0;
    border: 0;
    padding-inline: 0;
    padding-block: 8px;
  }
  .footer .footer-contact { grid-template-columns: max-content auto; }
  .footer-inner > .footer-legal { min-height: 56px; align-content: center; padding-block-start: 0; }
}

/* Keep the three columns centered vertically while giving the postal address room to wrap. */
.footer-inner {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.25fr) minmax(0, 1fr);
  align-items: center;
}
.footer .footer-contact {
  width: fit-content;
  max-width: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
  gap: 8px;
}
.footer .footer-contact .footer-location { align-items: flex-start; }
.footer .footer-location .contact-icon { margin-block-start: .25em; }
.footer-location .footer-address { min-width: 0; }
.footer-address > span { display: block; }
.footer-inner > .footer-legal { padding-block-start: 9px; }
.footer .footer-copyright { font-size: .9375rem; }
@media (max-width: 1000px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .footer .footer-contact { grid-template-columns: minmax(0, 1fr) 28px; }
  .footer-inner > .footer-legal { padding-block-start: 0; }
}
